diff options
| author | sternenseemann <sternenseemann@systemli.org> | 2023-03-10 14:15:44 +0100 |
|---|---|---|
| committer | sternenseemann <sternenseemann@systemli.org> | 2023-03-11 12:22:48 +0100 |
| commit | 45aae5c2fec488f0dac3051b840650f7cd274fbb (patch) | |
| tree | e86c072eb53fba6dac4584a1bf515c663902d58c /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch | |
| parent | 41c538f80f3a98d6e40e7ea5e79f33429850a43e (diff) | |
haskell.compiler.ghc9*: work around output cycles on aarch64-darwin
Due to link time dead code elimination not working on aarch64-darwin,
some unused store path references in Paths_* modules are retained. This
causes reference cycles when a separate `bin` output is used.
To prevent this, add a patch to Cabal as shipped by GHC which infers
based on the installation layout (which is influenced by
enableSeparateBinOutput, enableSeparateDataOutput etc. in a Nix build)
which references can be retained without causing a reference cycle. This
ensures that packages that were fine with a bin output will also work on
aarch64-darwin. Packages that cause a reference cycle anyways (by
actually using references that do cause one) fail due to a missing
symbol – here we are trading the overall benefit for a more confusing
error message.
For details, refer to the explanation comment in the patch.
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions
