use-stage1-binaries-for-install
authorDebian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>
Tue, 6 Feb 2018 21:01:18 +0000 (21:01 +0000)
committerSean Whitton <spwhitton@spwhitton.name>
Tue, 6 Feb 2018 21:01:18 +0000 (21:01 +0000)
Gbp-Pq: Name use-stage1-binaries-for-install.patch

ghc.mk

diff --git a/ghc.mk b/ghc.mk
index b3a4e0274bd7e9f3aa1c70ca6733c15e8059fa20..63b946e6f5350bbe9e19a2faa2fd27c13ff4bed3 100644 (file)
--- a/ghc.mk
+++ b/ghc.mk
@@ -958,8 +958,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