Skip to content

haskellPackages.heystone: fix darwin dylibs#214680

Merged
cdepillabout merged 1 commit intoNixOS:haskell-updatesfrom
cdepillabout:heystone-darwin
Feb 12, 2023
Merged

haskellPackages.heystone: fix darwin dylibs#214680
cdepillabout merged 1 commit intoNixOS:haskell-updatesfrom
cdepillabout:heystone-darwin

Conversation

@cdepillabout
Copy link
Member

@cdepillabout cdepillabout commented Feb 5, 2023

Description of changes

haskellPackages.heystone is currently failing to build on x86_64-darwin on the haskell-updates branch (#213089).

@sternenseemann recommended that we add fixDarwinDylibNames, which I've done in this PR. I don't know anything about darwin though, so it is possible this is not the right fix.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.05 Release Notes (or backporting 22.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@ofborg ofborg bot added the 6.topic: darwin Running or building packages on Darwin label Feb 5, 2023
@github-actions github-actions bot added the 6.topic: haskell General-purpose, statically typed, purely functional programming language label Feb 5, 2023
@cdepillabout
Copy link
Member Author

@ofborg build haskellPackages.heystone
@ofborg build haskellPackages.bytepatch

@cdepillabout
Copy link
Member Author

@cdepillabout
Copy link
Member Author

cdepillabout commented Feb 5, 2023

@ofborg build haskellPackages.heystone
@ofborg build haskellPackages.bytepatch

Trying again after adding fixDarwinDylibNames to the actual keystone package just to see if it makes a difference.

edit: I'm not sure what is going on, but it seems like that didn't work either: https://github.com/NixOS/nixpkgs/pull/214680/checks?check_run_id=11115747683.

@raehik
Copy link
Contributor

raehik commented Feb 8, 2023

edit: I'm not sure what is going on, but it seems like that didn't work either: https://github.com/NixOS/nixpkgs/pull/214680/checks?check_run_id=11115747683.

@cdepillabout is that run not aarch64-darwin? It looks like the original Hydra logs were x86_64-darwin, which pass here. That log seems to be complaining about some missing Nix attributes in aarch64-darwin (which seems quite strange, but unrelated to the dylib problem).

@cdepillabout
Copy link
Member Author

is that run not aarch64-darwin? It looks like the original Hydra logs were x86_64-darwin, which pass here

Ah, I see. I think I was getting confused.

It looks like my original commit did fix this on x86_64-darwin, which is what you were originally asking about, right? I've taken just that commit and rebased it on haskell-updates in this PR as 8c3d7d94062.

This should hopefully be ready to merge in? Maybe someone from @NixOS/darwin-maintainers could take a quick look and give a thumbs up.

@cdepillabout cdepillabout marked this pull request as ready for review February 11, 2023 09:35
@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. labels Feb 12, 2023
@cdepillabout
Copy link
Member Author

Okay, it looks like this now builds on x86_64-darwin.

I'll go ahead and merge in, but feel free to leave a message if this wasn't the correct fix.

@cdepillabout cdepillabout merged commit 7f60074 into NixOS:haskell-updates Feb 12, 2023
@cdepillabout cdepillabout deleted the heystone-darwin branch February 12, 2023 02:26
@raehik
Copy link
Contributor

raehik commented Feb 14, 2023

Perfect. Thanks for doing this (and I have a bit more context for the next time I might happen)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: darwin Running or building packages on Darwin 6.topic: haskell General-purpose, statically typed, purely functional programming language 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

Comments