>>> Unpacking xmlstarlet-1.6.1.tar.gz to /var/tmp/portage/app-text/xmlstarlet-1.6.1/work >>> Source unpacked in /var/tmp/portage/app-text/xmlstarlet-1.6.1/work >>> Preparing source in /var/tmp/portage/app-text/xmlstarlet-1.6.1/work/xmlstarlet-1.6.1 ... : ${LIBXXX()_LIBDIR="$LIBXXX()_PREFIX/lib"}]) * ERROR: app-text/xmlstarlet-1.6.1::gentoo failed (prepare phase): * (no error message) * ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.0_musl_hardened-j4-20211222-160113 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-gentoo-linux-musl-11.2.1 * clang version 13.0.0 Target: x86_64-gentoo-linux-musl Thread model: posix InstalledDir: /usr/lib/llvm/13/bin /usr/lib/llvm/13 13.0.0 Python 3.9.9 Available Ruby profiles: [1] ruby26 (with Rubygems) [2] ruby27 (with Rubygems) [3] ruby30 (with Rubygems) * Available Rust versions: [1] rust-bin-1.57.0 [2] rust-1.57.0 * The following VMs are available for generation-2: Available Java Virtual Machines: (none found) php cli: HEAD of ::gentoo commit b4175685d16cd23243fc6c480dbe28b335d47cf7 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Sun Dec 26 21:06:49 2021 +0000 2021-12-26 21:06:48 UTC emerge -qpvO app-text/xmlstarlet [ebuild N ] app-text/xmlstarlet-1.6.1
Created attachment 760325 [details] emerge-info.txt
Created attachment 760326 [details] app-text:xmlstarlet-1.6.1:20211226-215139.log
Created attachment 760327 [details] emerge-history.txt
Created attachment 760328 [details] environment
Created attachment 760329 [details] etc.portage.tar.bz2
Created attachment 760330 [details] temp.tar.bz2
The 'grep sandwich' fix for bug 729600 breaks this package for all 32bit and musl archs. The referred fix adds the following lines in src_prepare() grep -wq _PREFIX/lib m4/xstar-check-libs.m4 || die sed "s,_PREFIX/lib,_PREFIX/$(get_libdir)," -i m4/xstar-check-libs.m4 || die grep -w _PREFIX/lib m4/xstar-check-libs.m4 && die The first line checks that _PREFIX/lib is present in m4/xstar-check-libs.m4 and the second line substitutes 'lib' with the correspondent libdir for the arch. The problem is the last line, because it checks the change was applied. The fix, made for amd64, changes 'lib' to 'lib64'. But for 32bit archs and musl, 'lib' doesn't change and the ebuild dies here. The easiest way to fix this bug is to delete the bottom of the grep sandwich, but it doesn't assure the fix was applied. Another way to fix this bug is to restrict the grep sandwich to 64bit archs, but I'm not sure what's the best answer for this.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd06c9384096477b8dcfe3c12ec27f3c2c293d9d commit cd06c9384096477b8dcfe3c12ec27f3c2c293d9d Author: Sebastian Pipping <sping@gentoo.org> AuthorDate: 2022-09-02 13:05:57 +0000 Commit: Sebastian Pipping <sping@gentoo.org> CommitDate: 2022-09-02 13:05:57 +0000 app-text/xmlstarlet: Fix compile for libdir "lib" Closes: https://bugs.gentoo.org/830062 Signed-off-by: Sebastian Pipping <sping@gentoo.org> Package-Manager: Portage-3.0.30, Repoman-3.0.3 app-text/xmlstarlet/xmlstarlet-1.6.1.ebuild | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
@CFuga good explanation, thank you!