From ea3114ae55990b8e824a2d68d14796c25355b2d6 Mon Sep 17 00:00:00 2001 From: John Date: Wed, 27 Nov 2019 21:44:03 +0100 Subject: [PATCH] NetworkManager: fix cross gir patch for ppc64le target --- srcpkgs/NetworkManager/patches/fix-cross-gir.patch | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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