39 lines
1.5 KiB
Diff
39 lines
1.5 KiB
Diff
Reason: Fix crossbuilding GIR
|
|
Upstream: No, not upstreamable since this is very specific to the Void setup
|
|
--- clients/common/meson.build
|
|
+++ clients/common/meson.build
|
|
@@ -34,7 +34,7 @@ if enable_introspection
|
|
settings_docs,
|
|
input: nm_property_docs,
|
|
output: settings_docs,
|
|
- command: [xsltproc, '--output', '@OUTPUT@', join_paths(meson.current_source_dir(), 'settings-docs.xsl'), '@INPUT@'],
|
|
+ command: [xsltproc, '--output', '@OUTPUT@', join_paths(meson.current_source_dir(), 'settings-docs.xsl'), join_paths(meson.current_source_dir(), '..', '..', '@INPUT@')],
|
|
)
|
|
|
|
test(
|
|
--- libnm/meson.build
|
|
+++ libnm/meson.build
|
|
@@ -244,7 +244,21 @@ if enable_introspection
|
|
)
|
|
endif
|
|
|
|
- generate_setting_docs = join_paths(meson.current_source_dir(), 'generate-setting-docs.py')
|
|
+ if meson.is_cross_build()
|
|
+ arch = host_machine.cpu_family()
|
|
+ if arch == 'x86'
|
|
+ qemu_arch = 'i386'
|
|
+ elif arch == 'x86_64'
|
|
+ qemu_arch = 'x86_64'
|
|
+ else
|
|
+ qemu_arch = host_machine.cpu_family()
|
|
+ endif
|
|
+ qemu = '/usr/bin/qemu-' + qemu_arch + '-static'
|
|
+ qemu_python3_cmd = qemu + ' -L @XBPS_CROSS_BASE@ @XBPS_CROSS_BASE@/bin/python3'
|
|
+ generate_setting_docs = ['sh', '-c', qemu_python3_cmd, join_paths(meson.current_source_dir(), 'generate-setting-docs.py')]
|
|
+ else
|
|
+ generate_setting_docs = join_paths(meson.current_source_dir(), 'generate-setting-docs.py')
|
|
+ endif
|
|
|
|
gi_typelib_path = run_command('printenv', 'GI_TYPELIB_PATH').stdout()
|
|
if gi_typelib_path != ''
|