use-stage1-binaries-for-install
authorDebian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>
Sun, 8 Apr 2018 20:24:00 +0000 (21:24 +0100)
committerClint Adams <clint@debian.org>
Sun, 8 Apr 2018 20:24:00 +0000 (21:24 +0100)
Gbp-Pq: Name use-stage1-binaries-for-install.patch

ghc.mk

diff --git a/ghc.mk b/ghc.mk
index f03c8f6c2c4bda3edfa01e6d02805932097b52de..189f9b0288c28439cce005dc69cbcf6783abe749 100644 (file)
--- a/ghc.mk
+++ b/ghc.mk
@@ -963,8 +963,12 @@ INSTALLED_PACKAGE_CONF=$(DESTDIR)$(topdir)/package.conf.d
 # Install packages in the right order, so that ghc-pkg doesn't complain.
 # Also, install ghc-pkg first.
 ifeq "$(Windows_Host)" "NO"
-INSTALLED_GHC_REAL=$(DESTDIR)$(ghclibexecdir)/bin/ghc
-INSTALLED_GHC_PKG_REAL=$(DESTDIR)$(ghclibexecdir)/bin/ghc-pkg
+# Use the inplace/stage1 versions for installation,
+# since the installed versions are built for the target
+#INSTALLED_GHC_REAL=$(DESTDIR)$(ghclibexecdir)/bin/ghc
+#INSTALLED_GHC_PKG_REAL=$(DESTDIR)$(ghclibexecdir)/bin/ghc-pkg
+INSTALLED_GHC_REAL=$(CURDIR)/inplace/bin/ghc-stage1
+INSTALLED_GHC_PKG_REAL=$(CURDIR)/utils/ghc-pkg/dist/build/tmp/ghc-pkg
 else
 INSTALLED_GHC_REAL=$(DESTDIR)$(bindir)/ghc.exe
 INSTALLED_GHC_PKG_REAL=$(DESTDIR)$(bindir)/ghc-pkg.exe