Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830062 - app-text/xmlstarlet-1.6.1 - ERROR: app-text/xmlstarlet-1.6.1::gentoo failed (prepare phase):
Summary: app-text/xmlstarlet-1.6.1 - ERROR: app-text/xmlstarlet-1.6.1::gentoo failed (...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-27 09:48 UTC by Toralf Förster
Modified: 2022-09-02 13:08 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.01 KB, text/plain)
2021-12-27 09:48 UTC, Toralf Förster
Details
app-text:xmlstarlet-1.6.1:20211226-215139.log (app-text:xmlstarlet-1.6.1:20211226-215139.log,1.52 KB, text/plain)
2021-12-27 09:48 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,375.56 KB, text/plain)
2021-12-27 09:48 UTC, Toralf Förster
Details
environment (environment,85.93 KB, text/plain)
2021-12-27 09:48 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,27.26 KB, application/x-bzip)
2021-12-27 09:48 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,21.60 KB, application/x-bzip)
2021-12-27 09:48 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-12-27 09:48:05 UTC
>>> 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
Comment 1 Toralf Förster gentoo-dev 2021-12-27 09:48:06 UTC
Created attachment 760325 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-12-27 09:48:07 UTC
Created attachment 760326 [details]
app-text:xmlstarlet-1.6.1:20211226-215139.log
Comment 3 Toralf Förster gentoo-dev 2021-12-27 09:48:09 UTC
Created attachment 760327 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-12-27 09:48:10 UTC
Created attachment 760328 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-12-27 09:48:11 UTC
Created attachment 760329 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-12-27 09:48:12 UTC
Created attachment 760330 [details]
temp.tar.bz2
Comment 7 CFuga 2022-09-01 23:02:37 UTC
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.
Comment 8 Larry the Git Cow gentoo-dev 2022-09-02 13:07:17 UTC
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(-)
Comment 9 Sebastian Pipping gentoo-dev 2022-09-02 13:08:15 UTC
@CFuga good explanation, thank you!