Commit ed8e5411 authored by Ilias Tsitsimpis's avatar Ilias Tsitsimpis
Browse files

ghc: Cap number of parallel jobs to 2 for s390x

Build fails with out-of-memory on Ubuntu's s390x builders. Setting
`ggc-min-expand=10` doesn't solve this. For now, reduce number of
parallel jobs.
parent 1deafa31
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -8,11 +8,11 @@ ghc (8.6.5+dfsg1-4) unstable; urgency=medium
  * build with -mxgot on mips64el

  [ Ilias Tsitsimpis ]
  * Remove cap on parallel builds, use `ggc-min-expand=10` instead
  * Use `ggc-min-expand=10` on mips64el and s390x
  * Avoid virtual memory exhaustion on 32-bit unregisterised architectures
    (Closes: #933968)

 -- Ilias Tsitsimpis <iliastsi@debian.org>  Fri, 30 Aug 2019 12:53:32 +0300
 -- Ilias Tsitsimpis <iliastsi@debian.org>  Sat, 31 Aug 2019 18:01:40 +0300

ghc (8.6.5+dfsg1-3) unstable; urgency=medium

+7 −0
Original line number Diff line number Diff line
@@ -56,7 +56,14 @@ ifneq (,$(filter mips mipsel powerpc powerpcspe sparc64, $(DEB_HOST_ARCH)))
endif

%:
ifneq (,$(filter s390x, $(DEB_HOST_ARCH)))
	# Build fails with out-of-memory on Ubuntu's s390x builders.
	# Setting `ggc-min-expand=10` doesn't solve this.
	# For now, reduce number of parallel jobs.
	dh $@ --max-parallel=2
else
	dh $@
endif


override_dh_autoreconf: