zlib: fix cross-compilation not producing shared libraries#167395
zlib: fix cross-compilation not producing shared libraries#167395mweinelt merged 1 commit intoNixOS:stagingfrom
Conversation
Apply patch that already has been applied upstream: - madler/zlib#607 - madler/zlib@05796d3
|
Some list of currently new cross regressions, for reference: https://hydra.nixos.org/eval/1753445#tabs-now-fail |
|
Tested a few cross builds and this worked for me. |
wamserma
left a comment
There was a problem hiding this comment.
Checked changes against upstream. Diff LGTM.
As people are reporting that this improves the situation, I'd give it a go on staging.
This might also solve the woes with pypy3.
This is correct even if it causes rebuilds. Otherwise the patch gets forgotten and will not be removed or updated with the next update which is annoying for people that cross compile. but I think this should go to staging-next. |
There is no staging-next at this time, so this is as good as it gets. |
|
Maybe we'll consider |
|
@vcunat: made a backport PR. Indeed would be nice to keep the stable branch stable too :). I'm not tracking stable anywhere for cross-compilation, that's why I didn't think about it. May be worth starting to do this a bit to have a more stable base. |
|
Successfully created backport PR #167643 for |
Description of changes
Apply patch that already has been applied upstream:
Fixes the issue described here: #166451 (comment)
I did think about only applying when cross-compiling, but applying unconditionally seems generally better to me. It does cause a lot of rebuilds due to that though.
(building / cross-compiling some packages that were cross-compiling ok previously and which I'm using as canaries)
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes