Bootstrap of ghc doesn’t do DESTDIR correctly, propagates build dir
The bootstrap of ghc doesn’t do
DESTDIR correctly, embeds the build directory into the
ghc binary, and propagates the build directory to binaries built using bootstrapped ghc.
This is embedded in the
ghc binary in several places:
fgrep "/opt/local/var/macports/build" /opt/local/lib/ghc-8.10.4/bin/ghc Binary file /opt/local/lib/ghc-8.10.4/bin/ghc matches
Looking at binaries built with this bootstrapped
ghc shows that the issue propagates.
Here is the binary for
pandoc, built using
cabal 184.108.40.206 and this
fgrep "/opt/local/var/macports/build/_opt_local_ports_lang_ghc/ghc/work/src/ghc-8.10.4/rts" /opt/local/bin/pandoc Binary file /opt/local/bin/pandoc matches
Steps to reproduce
The Portfile simply implements ghc's basic quick start build instructions.
No build directories in the
ghc binary, or binaries built using it.
- GHC version used: 8.10.4
- Operating System: macOS