-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build failure: osl #262633
Comments
I have verified that the problem exists with the current
I guess somehow the ZLIB_VERSION is replaced improperly here, but I've got no idea what could be causing it, and I'm really confused why it's only become a problem recently, as it doesn't look like osl has been touched in the last 3 months either. |
I've tracked it down to this commit updating zlib, and reverting it seems to fix it. I also believe it's a cmake issue. Consider this CMakeLists.txt file cmake_minimum_required(VERSION 3.25)
project(test)
find_package(ZLIB) Output:
Maybe because the header Either way, this patch seems to fix it diff --git a/pkgs/development/libraries/zlib/default.nix b/pkgs/development/libraries/zlib/d
efault.nix
index 9fccef25da17..12ce729b97e9 100644
--- a/pkgs/development/libraries/zlib/default.nix
+++ b/pkgs/development/libraries/zlib/default.nix
@@ -38,7 +38,12 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-/wukwpIBPbwnUws6geH5qBPNOd4Byl4Pi/NVcC76WT4=";
};
- postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
+ postPatch = ''
+ # TODO Remove next patch update
+ substituteInPlace zlib.h \
+ --replace '"1.3"' '"1.3.0"'
+ '' +
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace configure \
--replace '/usr/bin/libtool' '${stdenv.cc.targetPrefix}ar' \
--replace 'AR="libtool"' 'AR="${stdenv.cc.targetPrefix}ar"' \
I don't think it's worth raising with zlib because with the next patch version they're going to fix it anyway. It might be worth warning them in advance of 1.4. I can open a PR for this tomorrow or when I have time, but don't wait for me if anybody wants to do it before. |
Nice catch! One minor note: you are looking at We'll need that backport to UPDATE: or wait for |
Steps To Reproduce
Build log
Additional context
/nix/store/ljk2a5s49msk252is7zw3kwq5dxdbkdr-openimageio-2.4.15.0-dev/lib/cmake/OpenImageIO/OpenImageIOConfig.cmake:43
rendered inmicro
:bumping osl to
1.13.4.0-dev
did not work.Applying AcademySoftwareFoundation/OpenShadingLanguage#1742 did not work
Notify maintainers
@Hodapp87
Metadata
"x86_64-linux"
Linux 6.1.55, NixOS, 23.05 (Stoat), 23.05.20231011.bd1cde4
yes
yes
nix-env (Nix) 2.13.5
/nix/store/mbz4hixfgxq5b6vc0k3pp2iglcd4c353-source
The text was updated successfully, but these errors were encountered: