Skip to content
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

zlib: Fix iOS cross build for 18.09 #46904

Merged
merged 1 commit into from Sep 19, 2018

Conversation

Ericson2314
Copy link
Member

@Ericson2314 Ericson2314 commented Sep 19, 2018

Motivation for this change

Backport of #46905.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

  1. CHOST is how one specifies the cross host platform with this
  non-standard configure script. We were just getting lucky with Linux
  cross.

  2. install_name_tool needs the the binutils prefix.
@@ -78,4 +78,8 @@ stdenv.mkDerivation rec {
license = licenses.zlib;
platforms = platforms.all;
};
}
} // stdenv.lib.optionalAttrs (stdenv.hostPlatform != stdenv.buildPlatform) {
preConfigure = ''
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is pretty weird, is it wrong to define preConfigure always with an optional value?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would be a mass rebuild.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll do a staging PR after.

@GrahamcOfBorg
Copy link

Success on x86_64-darwin (full log)

Attempted: zlib

Partial log (click to expand)

/nix/store/r3nzm8qdsfb19fys6ah01mjyzyylxwpp-zlib-1.2.11

@GrahamcOfBorg
Copy link

Success on aarch64-linux (full log)

Attempted: zlib

Partial log (click to expand)

/nix/store/nibz005bsdprcdyym883saf5sfi6lky0-zlib-1.2.11

@GrahamcOfBorg
Copy link

Success on x86_64-linux (full log)

Attempted: zlib

Partial log (click to expand)

/nix/store/bv6znzsv2qkbcwwa251dx7n5dshz3nr3-zlib-1.2.11

@Ericson2314 Ericson2314 merged commit 90e9b8d into NixOS:release-18.09 Sep 19, 2018
@Ericson2314 Ericson2314 deleted the zlib-ios branch September 19, 2018 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants