Skip to content
Commits on Source (2)
ghc (8.6.5+dfsg1-3) UNRELEASED; urgency=medium
ghc (8.6.5+dfsg1-3) unstable; urgency=medium
[ Gianfranco Costamagna ]
* debian/patches/Disable-unboxed-arrays.patch
- upstream proposed workaround for BE build failures.
* use parallel=2 for s390x builds
[ Clint Adams ]
* Patch from John Paul Adrian Glaubitz to set --host and --build for
cross-builds. closes: #933306.
-- Clint Adams <clint@debian.org> Sun, 28 Jul 2019 20:02:11 -0400
-- Gianfranco Costamagna <locutusofborg@debian.org> Thu, 01 Aug 2019 12:56:23 +0200
ghc (8.6.5+dfsg1-2) unstable; urgency=medium
......
Origin: https://gitlab.haskell.org/ghc/ghc/issues/15411#note_215852
Index: ghc-8.6.1/libraries/containers/include/containers.h
===================================================================
--- ghc-8.6.1.orig/libraries/containers/include/containers.h
+++ ghc-8.6.1/libraries/containers/include/containers.h
@@ -35,7 +35,6 @@
#ifdef __GLASGOW_HASKELL__
# define USE_ST_MONAD 1
-# define USE_UNBOXED_ARRAYS 1
#endif
#endif
......@@ -22,6 +22,7 @@ export HOME = /homedoesnotexistatbuildtime
export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
export DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
export DEB_TARGET_ARCH_ENDIAN ?= $(shell dpkg-architecture -qDEB_TARGET_ARCH_ENDIAN)
# We're cross-building if DEB_BUILD_GNU_TYPE != DEB_HOST_GNU_TYPE
ifneq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
......@@ -54,6 +55,10 @@ ifneq (,$(filter mips mipsel powerpc powerpcspe sparc64, $(DEB_HOST_ARCH)))
EXTRA_CONFIGURE_FLAGS += --disable-ld-override
endif
ifeq (s390x,$(DEB_HOST_ARCH))
export DEB_BUILD_OPTIONS=parallel=2
endif
%:
dh $@
......@@ -82,6 +87,9 @@ endif
ifeq (armhf,$(DEB_HOST_ARCH))
echo "SRC_HC_OPTS += -D__ARM_PCS_VFP" >> mk/build.mk
endif
ifeq (big, $(DEB_TARGET_ARCH_ENDIAN))
patch -p1 < debian/patches/Disable-unboxed-arrays.patch
endif
ifneq (,$(filter mips mipsel, $(DEB_HOST_ARCH)))
echo "SRC_HC_OPTS += -optc--param -optcggc-min-expand=10" >> mk/build.mk
endif
......