commit: e34418b72b97118e4d781ffbd75d9f5afccf27dd Author: Z. Liu <zhixu.liu <AT> gmail <DOT> com> AuthorDate: Mon Jan 27 05:38:01 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue May 13 03:19:45 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e34418b7
sys-devel/dwz: fix build w/ llvm profile llvm-readelf has different arguments w/ gnu readelf, so always define READELF as the one in binutils. Please note: dwz-0.15-readelf.patch isn't applied by upstream. See also: https://sourceware.org/bugzilla/show_bug.cgi?id=32611 Closes: https://bugs.gentoo.org/945628 Signed-off-by: Z. Liu <zhixu.liu <AT> gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/40327 Closes: https://github.com/gentoo/gentoo/pull/40327 Signed-off-by: Sam James <sam <AT> gentoo.org> sys-devel/dwz/dwz-0.15-r4.ebuild | 5 ++++- sys-devel/dwz/dwz-0.15-r5.ebuild | 5 ++++- sys-devel/dwz/dwz-9999.ebuild | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/sys-devel/dwz/dwz-0.15-r4.ebuild b/sys-devel/dwz/dwz-0.15-r4.ebuild index 329c701a4973..96ce05dabb12 100644 --- a/sys-devel/dwz/dwz-0.15-r4.ebuild +++ b/sys-devel/dwz/dwz-0.15-r4.ebuild @@ -54,7 +54,10 @@ src_prepare() { src_compile() { export LANG=C LC_ALL=C # grep find nothing for non-ascii locales - tc-export PKG_CONFIG + local current_binutils_path=$(binutils-config -B) + export READELF="${current_binutils_path}/readelf" + + tc-export PKG_CONFIG READELF export LIBS="-lelf" if use elibc_musl; then diff --git a/sys-devel/dwz/dwz-0.15-r5.ebuild b/sys-devel/dwz/dwz-0.15-r5.ebuild index 3e791fa62af7..6d6533ae4965 100644 --- a/sys-devel/dwz/dwz-0.15-r5.ebuild +++ b/sys-devel/dwz/dwz-0.15-r5.ebuild @@ -54,7 +54,10 @@ src_prepare() { src_compile() { export LANG=C LC_ALL=C # grep find nothing for non-ascii locales - tc-export PKG_CONFIG + local current_binutils_path=$(binutils-config -B) + export READELF="${current_binutils_path}/readelf" + + tc-export PKG_CONFIG READELF export LIBS="-lelf" if use elibc_musl; then diff --git a/sys-devel/dwz/dwz-9999.ebuild b/sys-devel/dwz/dwz-9999.ebuild index 2087550f34b4..4fee7e3d80aa 100644 --- a/sys-devel/dwz/dwz-9999.ebuild +++ b/sys-devel/dwz/dwz-9999.ebuild @@ -48,7 +48,10 @@ src_prepare() { src_compile() { export LANG=C LC_ALL=C # grep find nothing for non-ascii locales - tc-export PKG_CONFIG + local current_binutils_path=$(binutils-config -B) + export READELF="${current_binutils_path}/readelf" + + tc-export PKG_CONFIG READELF export LIBS="-lelf" if use elibc_musl; then
