Skip to content

haskellPackages.mkDerivation: Remove Darwin dynamic libraries workaround#203963

Closed
Gabriella439 wants to merge 1 commit intoNixOS:haskell-updatesfrom
MercuryTechnologies:gabriella/remove_hack
Closed

haskellPackages.mkDerivation: Remove Darwin dynamic libraries workaround#203963
Gabriella439 wants to merge 1 commit intoNixOS:haskell-updatesfrom
MercuryTechnologies:gabriella/remove_hack

Conversation

@Gabriella439
Copy link
Contributor

The workaround that this change deletes was initially contributed in #25537 to mitigate #22810 until a more permanent solution could be devised. That more permanent solution was eventually contributed in #27536, which now obviates the initial workaround, so this change removes it.

I tested this on aarch64-darwin (macOS Ventura 13.1) on our main internal project at work which has:

  • 200+ direct dependencies
  • 800+ transitive dependencies
  • enableSharedExecutables = true;

… and everything built successfully without this work-around.

It may be possible that this succeeded because of my macOS version; specifically, the work-around might still be necessary for older versions of macOS for some reason that I'm not aware of. So keep that in mind when evaluating this PR.

Things done
  • Built on platform(s)
    • aarch64-darwin

@ofborg ofborg bot added the 6.topic: darwin Running or building packages on Darwin label Dec 1, 2022
@github-actions github-actions bot added the 6.topic: haskell General-purpose, statically typed, purely functional programming language label Dec 1, 2022
The workaround that this change deletes was initially
contributed in NixOS#25537 to mitigate NixOS#22810 until a more
permanent solution could be devised.  That more permanent
solution was eventually contributed in NixOS#27536, which
now obviates the initial workaround, so this change removes it.
@Gabriella439 Gabriella439 force-pushed the gabriella/remove_hack branch from d555180 to 8ef469a Compare December 1, 2022 17:17
@ofborg ofborg bot added 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Dec 1, 2022
@Gabriella439
Copy link
Contributor Author

@matthewbauer explained out of band that useMacosReexportHack (the flag that enables #27536) is not enabled by default, so the superseding fix was actually not in effect. So it seems more likely that the reason the build succeeded was due to the newer macOS version I tested on

@Gabriella439 Gabriella439 deleted the gabriella/remove_hack branch December 1, 2022 19:14
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: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 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.

1 participant