summary refs log tree commit diff stats
path: root/gitlab/issues/target_missing/host_missing/accel_missing/1414.toml
diff options
context:
space:
mode:
authorChristian Krinitsin <mail@krinitsin.com>2025-05-21 21:21:26 +0200
committerChristian Krinitsin <mail@krinitsin.com>2025-05-21 21:21:26 +0200
commit4b927bc37359dec23f67d3427fc982945f24f404 (patch)
tree245449ef9146942dc7fffd0235b48b7e70a00bf2 /gitlab/issues/target_missing/host_missing/accel_missing/1414.toml
parentaa8bd79cec7bf6790ddb01d156c2ef2201abbaab (diff)
downloademulator-bug-study-4b927bc37359dec23f67d3427fc982945f24f404.tar.gz
emulator-bug-study-4b927bc37359dec23f67d3427fc982945f24f404.zip
add gitlab issues in toml format
Diffstat (limited to 'gitlab/issues/target_missing/host_missing/accel_missing/1414.toml')
-rw-r--r--gitlab/issues/target_missing/host_missing/accel_missing/1414.toml28
1 files changed, 28 insertions, 0 deletions
diff --git a/gitlab/issues/target_missing/host_missing/accel_missing/1414.toml b/gitlab/issues/target_missing/host_missing/accel_missing/1414.toml
new file mode 100644
index 00000000..258710c0
--- /dev/null
+++ b/gitlab/issues/target_missing/host_missing/accel_missing/1414.toml
@@ -0,0 +1,28 @@
+id = 1414
+title = "Configure script fix for glib version"
+state = "closed"
+created_at = "2023-01-04T17:29:31.786Z"
+closed_at = "2023-01-12T15:42:19.269Z"
+labels = ["Build System"]
+url = "https://gitlab.com/qemu-project/qemu/-/issues/1414"
+host-os = "Linux / any"
+host-arch = "n/a"
+qemu-version = "7.2.0"
+guest-os = "n/a"
+guest-arch = "n/a"
+description = """Script "configure" uses "pkg-config" directly, at line 2420: https://gitlab.com/qemu-project/qemu/-/blob/f9f0e6173e1d570847930abfe2b4560c7b6a964a/configure#L2420
+
+Because of it, GLIB_VERSION in "config-host.mak" can be taken from host system, under some circumstances (if PKG_CONFIG_PATH is not defined).
+
+In case of cross-compilation, "**$pkg_config**" should be used instead of "pkg-config", to use pkg-config from cross-compilation toolchain and to take GLIB_VERSION of cross-compiled glib (as it is **correctly used at line 1476**: https://gitlab.com/qemu-project/qemu/-/blob/f9f0e6173e1d570847930abfe2b4560c7b6a964a/configure#L1476 )."""
+reproduce = """1. Do not define PKG_CONFIG_PATH environment variable, use PKG_CONFIG variable instead.
+2. Try to ./configure with cross-compiled glib.
+3. GLIB_VERSION in config-host.mak will be from host glib."""
+additional = """Change lihe 2420:<br>
+https://gitlab.com/qemu-project/qemu/-/blob/f9f0e6173e1d570847930abfe2b4560c7b6a964a/configure#L2420
+<br>
+echo "GLIB_VERSION=$(**pkg-config** --modversion glib-2.0)" >> $config_host_mak
+<br>to:<br>
+echo "GLIB_VERSION=$(**\\$pkg_config** --modversion glib-2.0)" >> $config_host_mak
+
+P.s. Sorry for posting the patch here, GitLab requires signing with a key to push the commit, it's too complicated to post 2-bytes fix."""