package/gobject-introspection: Add QEMU_USERMODE_ARGS support
authorAdam Duskett <aduskett@gmail.com>
Fri, 3 Sep 2021 16:20:27 +0000 (09:20 -0700)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Sat, 11 Sep 2021 19:31:36 +0000 (21:31 +0200)
Now that the qemu package has the BR2_PACKAGE_HOST_QEMU_USER_MODE_ARGS string,
the gobject-introspection g-ir-scanner-qemuwrapper script can pass that string
to qemu.

Add the QEMU_USERMODE_ARGS to g-ir-scanner-qemuwrapper.in and unconditionally
sed @QEMU_USERMODE_ARGS@ with BR2_PACKAGE_HOST_QEMU_USER_MODE_ARGS.

Fixes:
http://autobuild.buildroot.org/results/2e9dbc0d36600c09fa9e59ab1b1903c9f40661e8

Signed-off-by: Adam Duskett <aduskett@gmail.com>
[Arnout: don't add QEMU_USERMODE_ARGS variable to shell script]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/gobject-introspection/g-ir-scanner-qemuwrapper.in
package/gobject-introspection/gobject-introspection.mk

index 85f0750b4d1371eb04fb8d80562b9cf613a36d49..9786feea409cbcaac0358d92f5d12c42299872b1 100644 (file)
@@ -8,6 +8,7 @@ GOI_LIBRARY_PATH="${GIR_EXTRA_LIBS_PATH:+${GIR_EXTRA_LIBS_PATH}:}.libs:$(dirname
 # which may then get deleted (or their dependencies) and potentially segfault
 GIO_MODULE_DIR="$(dirname "$0")/../lib/gio/modules-dummy" \
 @QEMU_USER@ -r @TOOLCHAIN_HEADERS_VERSION@ \
+    @QEMU_USERMODE_ARGS@ \
     -L "$(dirname "$0")/../../" \
     -E LD_LIBRARY_PATH="${GOI_LIBRARY_PATH}" \
     "$@"
index f34dca7278a5df43f52dfbc132e0dcb3d68fd5cc..6a3d321cc741afafdbece04f9125782bda8e753b 100644 (file)
@@ -84,6 +84,8 @@ define GOBJECT_INTROSPECTION_INSTALL_PRE_WRAPPERS
                $(STAGING_DIR)/usr/bin/g-ir-scanner-qemuwrapper
        $(SED) "s%@QEMU_USER@%$(QEMU_USER)%g" \
                $(STAGING_DIR)/usr/bin/g-ir-scanner-qemuwrapper
+       $(SED) "s%@QEMU_USERMODE_ARGS@%$(call qstrip,$(BR2_PACKAGE_HOST_QEMU_USER_MODE_ARGS))%g" \
+               $(STAGING_DIR)/usr/bin/g-ir-scanner-qemuwrapper
        $(SED) "s%@TOOLCHAIN_HEADERS_VERSION@%$(BR2_TOOLCHAIN_HEADERS_AT_LEAST)%g" \
                $(STAGING_DIR)/usr/bin/g-ir-scanner-qemuwrapper