[Git][haskell-team/DHG_packages][master] gtk2hs-buildtools: Fix FTBFS on ppc64el

Ilias Tsitsimpis gitlab at salsa.debian.org
Fri Oct 25 10:38:26 BST 2019



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


Commits:
de5c4fc3 by Ilias Tsitsimpis at 2019-10-25T09:25:47Z
gtk2hs-buildtools: Fix FTBFS on ppc64el

- - - - -


4 changed files:

- p/gtk2hs-buildtools/debian/changelog
- − p/gtk2hs-buildtools/debian/patches/BangPatterns.patch
- p/gtk2hs-buildtools/debian/patches/series
- p/gtk2hs-buildtools/debian/rules


Changes:

=====================================
p/gtk2hs-buildtools/debian/changelog
=====================================
@@ -1,3 +1,10 @@
+gtk2hs-buildtools (0.13.5.0-2) unstable; urgency=medium
+
+  * Remove obsolete `BangPatterns` patch
+  * Build with -O0 on ppc64el to workaround a GHC bug (Closes: #942585)
+
+ -- Ilias Tsitsimpis <iliastsi at debian.org>  Fri, 25 Oct 2019 12:25:32 +0300
+
 gtk2hs-buildtools (0.13.5.0-1) unstable; urgency=medium
 
   [ Dmitry Bogatov ]


=====================================
p/gtk2hs-buildtools/debian/patches/BangPatterns.patch deleted
=====================================
@@ -1,23 +0,0 @@
-Description: The generated code has BangPatterns, newer ghc wants this mentioned explicitly
-Author: Joachim Breitner <nomeata at debian.org>
-Bug-Debian: http://bugs.debian.org/628302
-Index: gtk2hs-buildtools-0.12.1/c2hs/c/CLexer.x
-===================================================================
---- gtk2hs-buildtools-0.12.1.orig/c2hs/c/CLexer.x	2011-09-12 13:44:10.000000000 +0200
-+++ gtk2hs-buildtools-0.12.1/c2hs/c/CLexer.x	2012-02-24 22:47:58.000000000 +0100
-@@ -63,6 +63,7 @@
- --
-
- {
-+{-# LANGUAGE BangPatterns #-}
-
- module CLexer (lexC, parseError) where
-
-@@ -229,6 +230,7 @@
-
-
- {
-+{-# LANGUAGE BangPatterns #-}
-
- -- We use the odd looking list of string patterns here rather than normal
- -- string literals since GHC converts the latter into a sequence of string


=====================================
p/gtk2hs-buildtools/debian/patches/series
=====================================
@@ -1,2 +1 @@
 manpages.patch
-BangPatterns.patch


=====================================
p/gtk2hs-buildtools/debian/rules
=====================================
@@ -5,6 +5,13 @@ include /usr/share/cdbs/1/class/hlibrary.mk
 
 DEB_SETUP_GHC_CONFIGURE_ARGS = --datasubdir=gtk2hs-buildtools
 
+# Build with -O0 on ppc64el to work-around a GHC bug
+# see https://bugs.debian.org/942585
+# and https://gitlab.haskell.org/ghc/ghc/issues/17203
+ifneq (,$(filter $(DEB_BUILD_ARCH),ppc64el ppc64))
+	DEB_SETUP_GHC_CONFIGURE_ARGS += --ghc-options="-O0"
+endif
+
 build/gtk2hs-buildtools:: build-ghc-stamp
 
 install/gtk2hs-buildtools::



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

-- 
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/commit/de5c4fc31d2774bdda58302bc22a614b95b26d2b
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/20191025/7a8fb314/attachment-0001.html>


More information about the Pkg-haskell-commits mailing list