[Git][haskell-team/DHG_packages][master] ghc-lib-parser: Fix FTBFS on i386

Ilias Tsitsimpis (@iliastsi) gitlab at salsa.debian.org
Wed Sep 28 15:13:53 BST 2022



Ilias Tsitsimpis pushed to branch master at Debian Haskell Group / DHG_packages


Commits:
9a364d7a by Ilias Tsitsimpis at 2022-09-28T15:40:03+03:00
ghc-lib-parser: Fix FTBFS on i386

- - - - -


2 changed files:

- p/haskell-ghc-lib-parser/debian/changelog
- p/haskell-ghc-lib-parser/debian/rules


Changes:

=====================================
p/haskell-ghc-lib-parser/debian/changelog
=====================================
@@ -1,3 +1,9 @@
+haskell-ghc-lib-parser (9.0.2.20211226-2) unstable; urgency=medium
+
+  * Fix FTBFS on architectures that don't support threaded RTS (Closes: #1020900)
+
+ -- Ilias Tsitsimpis <iliastsi at debian.org>  Wed, 28 Sep 2022 13:31:24 +0300
+
 haskell-ghc-lib-parser (9.0.2.20211226-1) unstable; urgency=medium
 
   * New upstream version.


=====================================
p/haskell-ghc-lib-parser/debian/rules
=====================================
@@ -5,9 +5,14 @@ DEB_CABAL_PACKAGE = ghc-lib-parser
 DEB_DEFAULT_COMPILER = ghc
 
 DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
-ifneq (,$(filter $(DEB_BUILD_ARCH),arm64 armhf armel))
+ifneq (,$(filter $(DEB_BUILD_ARCH),arm64 armhf armel i386 s390x x32))
        DEB_SETUP_GHC_CONFIGURE_ARGS += --ghc-options="-O0 -optc--param -optcggc-min-expand=10"
 endif
 
+# Compilation fails on non-threaded RTS, see https://bugs.debian.org/1020900.
+ifeq (0,$(shell ghc --info | grep 'Unregisterised.*YES' >/dev/null 2>&1; echo $$?))
+	DEB_SETUP_GHC_CONFIGURE_ARGS += --ghc-options="-optc-UTHREADED_RTS" --gcc-options="-UTHREADED_RTS"
+endif
+
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/hlibrary.mk



View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/9a364d7a2c4654cbabddaac822367d419e592134

-- 
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/9a364d7a2c4654cbabddaac822367d419e592134
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-commits/attachments/20220928/f82e9aaf/attachment-0001.htm>


More information about the Pkg-haskell-commits mailing list