42 lines
1.4 KiB
Diff
42 lines
1.4 KiB
Diff
Reason: Fix crossbuilding GIR
|
|
Upstream: No, not upstreamable since this is very specific to the Void setup
|
|
Index: b/src/libnm-client-impl/meson.build
|
|
===================================================================
|
|
--- a/src/libnm-client-impl/meson.build
|
|
+++ b/src/libnm-client-impl/meson.build
|
|
@@ -178,6 +178,16 @@ if enable_introspection
|
|
endif
|
|
ld_library_path = meson.current_build_dir() + ld_library_path
|
|
|
|
+ if meson.is_cross_build()
|
|
+ qemu_python3_cmd = [
|
|
+ '/usr/bin/qemu-@XBPS_TARGET_QEMU_MACHINE@-static',
|
|
+ '-L', '@XBPS_CROSS_BASE@',
|
|
+ '@XBPS_CROSS_BASE@/usr/bin/python3'
|
|
+ ]
|
|
+ else
|
|
+ qemu_python3_cmd = python.path()
|
|
+ endif
|
|
+
|
|
gen_infos_cmd = join_paths(meson.source_root(), 'tools', 'generate-docs-nm-property-infos.py')
|
|
gen_gir_cmd = join_paths(meson.source_root(), 'tools', 'generate-docs-nm-settings-docs-gir.py')
|
|
|
|
@@ -191,7 +201,7 @@ if enable_introspection
|
|
input: [gen_infos_cmd, libnm_gir[0]] + libnm_core_settings_sources,
|
|
output: 'nm-property-infos-' + name + '.xml',
|
|
command: [
|
|
- python.path(),
|
|
+ qemu_python3_cmd,
|
|
gen_infos_cmd,
|
|
name,
|
|
'@OUTPUT@',
|
|
@@ -207,7 +217,7 @@ if enable_introspection
|
|
'env',
|
|
'GI_TYPELIB_PATH=' + gi_typelib_path,
|
|
'LD_LIBRARY_PATH=' + ld_library_path,
|
|
- python.path(),
|
|
+ qemu_python3_cmd,
|
|
gen_gir_cmd,
|
|
'--lib-path', meson.current_build_dir(),
|
|
'--gir', libnm_gir[0],
|