https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: dev-scheme/guile-zlib-0.1.0 fails tests. Discovered on: amd64 (internal ref: ci)
Created attachment 824499 [details] build.log build log and emerge --info
Agostino, could You please post the .log & .trs files from the ${S}/tests directory?
Created attachment 824607 [details] zlib.log zlib.log
I got a similar report at https://github.com/trofi/nix-guix-gentoo/issues/23 I suspect it's an effect of https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9efb6a33633d85afc85372f0a2f92516b20294f "sys-libs/zlib: remove usr-ldscript support" The reproducer: $ guile --fresh-auto-compile -c '(use-modules (zlib))' ... zlib.scm:416:25: Wrong type to apply: #f `guile` fails to find `/usr/lib/libz.so`: $ strace -f -y guile --fresh-auto-compile -c '(use-modules (zlib))' |& fgrep libz [pid 1899114] newfstatat(AT_FDCWD</>, "/lib64/libz.so.1", 0x7ffeb4869f80, 0) = -1 ENOENT (No such file or directory) [pid 1899114] newfstatat(AT_FDCWD</>, "/lib64/.libs/libz.so.1", 0x7ffeb4869f80, 0) = -1 ENOENT (No such file or directory) ... [pid 1899114] newfstatat(AT_FDCWD</>, "/lib64/libz.so.1", 0x7ffeb4869f80, 0) = -1 ENOENT (No such file or directory) [pid 1899114] newfstatat(AT_FDCWD</>, "/lib64/.libs/libz.so.1", 0x7ffeb4869f80, 0) = -1 ENOENT (No such file or directory)
Possibly because `guile-zlib` hardcodes the absolute path to zlib: ``` $ cat /usr/share/guile/site/3.0/zlib/config.scm (define-module (zlib config) #:export (%libz)) (define %libz "/lib64/libz.so.1") ```
I think we need to drop `LIBZ_LIBDIR` assignment to let `pkg-config` detect /usr/lib64 at: src_configure() { # Gentoo installs zlib to /${libdir} and to /usr/${libdir}. # We need /${libdir} with shared library here. econf LIBZ_LIBDIR="${EPREFIX}/$(get_libdir)" }
(In reply to Sergei Trofimovich from comment #6) > I think we need to drop `LIBZ_LIBDIR` assignment to let `pkg-config` detect > /usr/lib64 at: > > src_configure() { > # Gentoo installs zlib to /${libdir} and to /usr/${libdir}. > # We need /${libdir} with shared library here. > econf LIBZ_LIBDIR="${EPREFIX}/$(get_libdir)" > } That function is to blame. Fails for me with this, passes otherwise.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0011cfe79cc62c70148f90026adbbe6f3367f6fc commit 0011cfe79cc62c70148f90026adbbe6f3367f6fc Author: Maciej Barć <xgqt@gentoo.org> AuthorDate: 2024-02-28 08:39:33 +0000 Commit: Maciej Barć <xgqt@gentoo.org> CommitDate: 2024-02-28 08:46:32 +0000 dev-scheme/guile-zlib: let pkg-config find zlib dir See-also: https://github.com/trofi/nix-guix-gentoo/commit/30bafb179db756c568ee498856a1f137cfa50530 Bug: https://github.com/trofi/nix-guix-gentoo/issues/23 Closes: https://bugs.gentoo.org/877383 Signed-off-by: Maciej Barć <xgqt@gentoo.org> ...-0.1.0-r1.ebuild => guile-zlib-0.1.0-r2.ebuild} | 29 +++++++++++++--------- 1 file changed, 17 insertions(+), 12 deletions(-)