[DHG_packages] 01/01: GHC: Import Ubuntu fPIE patch

Gianfranco Costamagna locutusofborg-guest at moszumanska.debian.org
Sun Sep 11 08:39:46 UTC 2016


This is an automated email from the git hooks/post-receive script.

locutusofborg-guest pushed a commit to branch master
in repository DHG_packages.

commit 176885a9b0c93aff1e927299ac6eb87fd128c9a8
Author: Gianfranco Costamagna <costamagnagianfranco at yahoo.it>
Date:   Sun Sep 11 10:39:26 2016 +0200

    GHC: Import Ubuntu fPIE patch
---
 p/ghc/debian/changelog | 7 +++++++
 p/ghc/debian/rules     | 6 ++++--
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/p/ghc/debian/changelog b/p/ghc/debian/changelog
index 84394c2..1ee77ff 100644
--- a/p/ghc/debian/changelog
+++ b/p/ghc/debian/changelog
@@ -1,3 +1,10 @@
+ghc (7.10.3-10) UNRELEASED; urgency=medium
+
+  * Disable PIE on amd64, ppc64el and s390x
+    (change taken from Ubuntu, Closes: #712228)
+
+ -- Gianfranco Costamagna <locutusofborg at debian.org>  Sun, 11 Sep 2016 10:37:24 +0200
+
 ghc (7.10.3-9) unstable; urgency=medium
 
   * Improve debian/watch file.
diff --git a/p/ghc/debian/rules b/p/ghc/debian/rules
index 779d315..0085995 100755
--- a/p/ghc/debian/rules
+++ b/p/ghc/debian/rules
@@ -30,11 +30,13 @@ export DEB_HOST_ARCH      ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
 #  confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
 #endif
 
+pie_archs = amd64 ppc64el s390x
+
 ProjectVersion=$(shell cat VERSION)
 
 GHC=$(firstword $(shell bash -c "type -p ghc"))
 EXTRA_CONFIGURE_FLAGS=--with-ghc="$(GHC)"
-ifeq (s390x,$(DEB_HOST_ARCH))
+ifneq (,$(filter $(DEB_HOST_ARCH),$(pie_archs)))
   EXTRA_CONFIGURE_FLAGS += \
 	CONF_CC_OPTS_STAGE2=-fno-PIE \
 	CONF_GCC_LINKER_OPTS_STAGE2=-no-pie \
@@ -60,7 +62,7 @@ endif
 ifeq (armel,$(DEB_HOST_ARCH))
 	patch -p1 < debian/patches/armel-revert-ghci-fixes.patch
 endif
-ifeq (s390x,$(DEB_HOST_ARCH))
+ifneq (,$(filter $(DEB_HOST_ARCH),$(pie_archs)))
 	echo "SRC_CC_OPTS += -fno-PIE" >> mk/build.mk
 	echo "SRC_LD_OPTS += -no-pie" >> mk/build.mk
 endif

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-haskell/DHG_packages.git



More information about the Pkg-haskell-commits mailing list