Merged
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Contributor
|
If they expect shared objects in libdir then I'd argue it's an upstream bug and it would be preferable to send them a patch like this one: diff --git a/configure.ac b/configure.ac
index dc2534d..dc5726e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -30,7 +30,7 @@ fi
PKG_CHECK_MODULES([LIBZ], [zlib])
AC_MSG_CHECKING([libz library directory])
-PKG_CHECK_VAR([LIBZ_LIBDIR], [zlib], [libdir])
+PKG_CHECK_VAR([LIBZ_LIBDIR], [zlib], [sharedlibdir])
AC_MSG_RESULT([$LIBZ_LIBDIR])
AS_IF([test "x$LIBZ_LIBDIR" = "x"], [
AC_MSG_FAILURE([Unable to identify libz lib path.]) |
Contributor
Author
|
Unfortunately upstream repo is gone (at least temporarily): Main instance - https://notabug.org says:
I can convert to patch if that is preferable (so it may be submitted upstream someday). |
- add patch changing path to `libz.so` from `libdir` to `sharedlibdir` variable from `zlib.pc` In `guile-zlib` default way of finding `libz.so` is to load `zlib.pc` with `PKG_CHECK_MODULES` macro and take path from `libdir` variable inside. After change in: https://www.github.com/NixOS/nixpkgs/pull/476830 NixOS@ff59162 `libdir` variable in `zlib.pc` points to `zlib.static`, so only `libz.a` is there. Add patch fixing `configure.ac` to load path from `sharedlibdir` instead. Fixes build failure of `guile-zlib`: ``` make check-TESTS make[1]: Entering directory '/build/source' make[2]: Entering directory '/build/source' make[2]: *** [Makefile:873: tests/zlib.log] Error 1 make[2]: Leaving directory '/build/source' make[1]: *** [Makefile:856: check-TESTS] Error 2 make[1]: Leaving directory '/build/source' make: *** [Makefile:1059: check-am] Error 2 ``` zlib.log: ``` Backtrace: 19 (primitive-load-path "tests/zlib.scm") ... In unknown file: 2 (primitive-load-path "zlib" #<procedure 7fffeee418c0 at ice-9/boot-9.scm:3603:37 ()>) In zlib.scm: 486:25 1 (_) 486:25 0 (_) zlib.scm:486:25: Wrong type to apply: #f ```
dcb3ca8 to
682ba25
Compare
Contributor
Author
|
marcin-serwin
approved these changes
Mar 7, 2026
13 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
libz.sofromlibdirtosharedlibdirvariable from
zlib.pcIn
guile-zlibdefault way of findinglibz.sois to loadzlib.pcwith
PKG_CHECK_MODULESmacro and take path fromlibdirvariableinside.
After change in:
#476830
ff59162
libdirvariable inzlib.pcpoints tozlib.static, so onlylibz.ais there.
Add patch fixing
configure.acto load path fromsharedlibdirinstead.Fixes build failure of
guile-zlib:zlib.log:
See comments in #494567 for extra context.
Fixes #493503
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.