Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 867766 - app-emulation/qemu: Unprefixed invocations of pkg-config and clang
Summary: app-emulation/qemu: Unprefixed invocations of pkg-config and clang
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: John Helmert III
Depends on:
Blocks: tc-directly
  Show dependency tree
Reported: 2022-08-31 20:35 UTC by Allen Webb
Modified: 2022-08-31 20:37 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Allen Webb 2022-08-31 20:35:05 UTC
I have filed this upstream in, but figured I would file it here to since the clang part of the issue might not get fixed upstream.

The qemu configure script calls `pkg-config` directly instead of de-referencing the value they obtain earlier in `./configure`. This can be fixed in `src_prepare()` with:
sed -i -e 's/pkg-config --modversion/${pkg-config} --modversion/g' configure

The configure script also sets `objcc` to `clang` if clang is available even for cross compilation. This can be fixed by including `--objcc="$(tc-getCC)"` in conf_opts in `qemu_src_configure()`.

Reproducible: Always