diff --git a/srcpkgs/NetworkManager/patches/fix-cross-gir.patch b/srcpkgs/NetworkManager/patches/fix-cross-gir.patch index d48072d998e..3591f1a1296 100644 --- a/srcpkgs/NetworkManager/patches/fix-cross-gir.patch +++ b/srcpkgs/NetworkManager/patches/fix-cross-gir.patch @@ -11,19 +11,22 @@ Upstream: No, not upstreamable since this is very specific to the Void setup ) test( ---- libnm/meson.build -+++ libnm/meson.build -@@ -244,7 +244,21 @@ if enable_introspection +--- libnm/meson.build 2019-11-27 21:35:56.964752550 +0100 ++++ - 2019-11-27 21:40:25.516650233 +0100 +@@ -244,7 +244,24 @@ ) endif - generate_setting_docs = join_paths(meson.current_source_dir(), 'generate-setting-docs.py') + if meson.is_cross_build() + arch = host_machine.cpu_family() ++ endian = host_machine.endian() + if arch == 'x86' + qemu_arch = 'i386' + elif arch == 'x86_64' + qemu_arch = 'x86_64' ++ elif arch == 'ppc64' and endian == 'little' ++ qemu_arch = 'ppc64le' + else + qemu_arch = host_machine.cpu_family() + endif