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

openssl: switch to linux-x86 and linux-x86_64 targets #71457

Merged
merged 1 commit into from Oct 22, 2019

Conversation

dingxiangfei2009
Copy link
Contributor

Motivation for this change

Fix #71455
This PR switches Linux builds to target linux-x86_64 and linux-x86 instead of linux-generic*, while the upstream resolve the cross-compilation issue.

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 nix-review --run "nix-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)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
Notify maintainers

cc @peti

@ofborg ofborg bot requested a review from peti October 20, 2019 18:01
@FRidh FRidh added the 6.topic: cross-compilation Building packages on a different sort platform than than they will be run on label Oct 20, 2019
@FRidh
Copy link
Member

FRidh commented Oct 20, 2019

cc @dtzWill @matthewbauer for cross-compiling / musl

armv6l-linux = "./Configure linux-armv4 -march=armv6";
armv7l-linux = "./Configure linux-armv4 -march=armv7-a";
x86-linux = "./Configure linux-x86";
Copy link
Member

@veprbl veprbl Oct 20, 2019

Choose a reason for hiding this comment

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

The "x86-linux", is it a valid value for stdenv.hostPlatform.system?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am so damned. It should be i686-linux, sorry.

@ghost
Copy link

ghost commented Oct 20, 2019

I can confirm that this change fixes the compilation of pkgsCross.musl64.openssl.
Can you please adjust the commit message to adhere to the contributing guidelines by prefixing it with "openssl: "?

@dingxiangfei2009
Copy link
Contributor Author

@petabyteboy Yes, definitely. Sorry for the inconvenience.

@ghost
Copy link

ghost commented Oct 21, 2019

Looks good to me now

@c0bw3b c0bw3b changed the title Switch to linux-x86 and linux-x86_64 targets openssl: switch to linux-x86 and linux-x86_64 targets Oct 21, 2019
@FRidh FRidh merged commit 4c8695f into NixOS:master Oct 22, 2019
@FRidh
Copy link
Member

FRidh commented Oct 22, 2019

Ugh, wrong branch. Please check that as well when reviewing (and merging...)!

@FRidh
Copy link
Member

FRidh commented Oct 22, 2019

703e446 is now in staging

@FRidh
Copy link
Member

FRidh commented Oct 23, 2019

This broke pkgs.i686Linux.openssl_1_0_2, #71786

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: cross-compilation Building packages on a different sort platform than than they will be run on 10.rebuild-darwin: 0 10.rebuild-linux: 501+ 10.rebuild-linux: 5001+
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pkgsCross.musl64.openssl stops compiling
4 participants