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: Fix windows cross compile #229465

Merged
merged 1 commit into from
May 3, 2023

Conversation

hamishmack
Copy link
Contributor

Windows cross compile of openssl was broken by 18f1be7

You can test with:

nix build .#pkgsCross.mingwW64.openssl

It currently fails because of #120726

This fix disables the use of makeWrapper when !stdenv.hostPlatform.isWindows in the same way the old version skipped using c_rehash for windows builds to work.

@wegank
Copy link
Member

wegank commented May 2, 2023

Would you please make this PR rebuild-free under Linux?

@wegank wegank marked this pull request as draft May 2, 2023 12:46
@ofborg ofborg bot added 6.topic: cross-compilation Building packages on a different platform than they will be used on 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild 10.rebuild-darwin: 501+ 10.rebuild-darwin: 5001+ 10.rebuild-linux: 501+ 10.rebuild-linux: 5001+ labels May 2, 2023
@hamishmack
Copy link
Contributor Author

Would you please make this PR rebuild-free under Linux?

Done

@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux and removed 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild 10.rebuild-darwin: 501+ 10.rebuild-darwin: 5001+ 10.rebuild-linux: 501+ 10.rebuild-linux: 5001+ labels May 3, 2023
hamishmack added a commit to input-output-hk/haskell.nix that referenced this pull request May 3, 2023
@alyssais alyssais added the 6.topic: windows Running, or buiding, packages on Windows label May 3, 2023
Copy link
Member

@alyssais alyssais left a comment

Choose a reason for hiding this comment

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

Does this still need to be a draft?

@wegank wegank marked this pull request as ready for review May 3, 2023 11:34
@wegank wegank merged commit c4acb8b into NixOS:master May 3, 2023
hamishmack added a commit to input-output-hk/haskell.nix that referenced this pull request May 4, 2023
Update the nixpkgs pins to keep them up to date and to help catch issues that arise when using newer versions.

This PR includes fixes and work arounds for a number that came up when nixpkgs was updated:

* GHC 9.6.1 is now included in nixpkgs, but the package database locations and formats are different enough that compiling tools with it does not work.  The work around is not to use this version of GHC from nixpkgs for now.
* Autoreconf now has a newer `config.sub` and this broke a couple of things.  It overwrote the version used for GHC 9.6.1 (which included ghcjs) and it broke the library patches in ghcjs 8.10.7.
* We included a work around for a openssl windows cross compilation issue (also fixed it upstream NixOS/nixpkgs#229465).
* -optc-mno-outline-atomics was added for lGHC builds targeting aarch64 linux that now use ghc 12
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 platform than they will be used on 6.topic: windows Running, or buiding, packages on Windows 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants