🐛 Keep the shell's PKG_CONFIG_PATH when configuring QEMU (#186)

install-ctl.sh ran QEMU's configure with PKG_CONFIG_PATH set to the
library's pkg-config directory alone, which drops the shell's own. On a
host whose libraries pkg-config finds only through that variable (NixOS,
in a nix-shell with the build's dependencies), configure then found no
glib-2.0 and stopped. Put the library's directory first and keep the rest.
This commit is contained in:
Alex Gleason authored and Anees Iqbal committed 2026-11-25 17:51:13 -08:00
1 parent f7787940ae
commit 21951eaf86
1 file changed
+1 -1
+1 -1
View File
@@ -757,7 +757,7 @@ if [[ $SKIP_QEMU == 0 ]]; then
! cmp -s "$PC/reims-vgpu.pc" "$BUILD/reims-vgpu.pc.configured" ||
! ninja -C "$BUILD" -n >/dev/null 2>&1; then
say "Configuring QEMU"
(cd "$BUILD" && PKG_CONFIG_PATH="$PC" "${CONFIGURE[@]}")
(cd "$BUILD" && PKG_CONFIG_PATH="$PC${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}" "${CONFIGURE[@]}")
cp "$PC/reims-vgpu.pc" "$BUILD/reims-vgpu.pc.configured"
printf '%s\n' "$CONFIGURED" >"$BUILD/configured-with"
printf '%s\n' "$QEMU_SOURCE" >"$BUILD/qemu-source"