[DHG_packages] 01/01: ghc/Cabal: Upstream patch c30b179a73d9fd3f6edcdda5e881523cd6edd46a to Cabal, fixing incorrect retrieval of ld flags.
Clint Adams
clint at moszumanska.debian.org
Wed Nov 2 19:52:54 UTC 2016
This is an automated email from the git hooks/post-receive script.
clint pushed a commit to branch master
in repository DHG_packages.
commit 844ec54c6d781a65c8bd75ac36957fd362fc1141
Author: Clint Adams <clint at debian.org>
Date: Wed Nov 2 15:52:04 2016 -0400
ghc/Cabal: Upstream patch c30b179a73d9fd3f6edcdda5e881523cd6edd46a to Cabal, fixing incorrect retrieval of ld flags.
---
p/ghc/debian/changelog | 5 +++
p/ghc/debian/patches/get-linker-flags-correctly | 43 +++++++++++++++++++++++++
p/ghc/debian/patches/series | 1 +
3 files changed, 49 insertions(+)
diff --git a/p/ghc/debian/changelog b/p/ghc/debian/changelog
index 2bc0db0..9660a36 100644
--- a/p/ghc/debian/changelog
+++ b/p/ghc/debian/changelog
@@ -1,7 +1,12 @@
ghc (8.0.1-10) UNRELEASED; urgency=medium
+ [ Emilio Pozuelo Monfort ]
* Re-enable parallel builds, broken since 7.10.1.20150630-1.
+ [ Clint Adams ]
+ * Upstream patch c30b179a73d9fd3f6edcdda5e881523cd6edd46a to Cabal,
+ fixing incorrect retrieval of ld flags.
+
-- Emilio Pozuelo Monfort <pochu at debian.org> Wed, 02 Nov 2016 10:36:08 +0100
ghc (8.0.1-9) unstable; urgency=medium
diff --git a/p/ghc/debian/patches/get-linker-flags-correctly b/p/ghc/debian/patches/get-linker-flags-correctly
new file mode 100644
index 0000000..4c33bd9
--- /dev/null
+++ b/p/ghc/debian/patches/get-linker-flags-correctly
@@ -0,0 +1,43 @@
+From c30b179a73d9fd3f6edcdda5e881523cd6edd46a Mon Sep 17 00:00:00 2001
+From: Anders Kaseorg <andersk at mit.edu>
+Date: Thu, 19 May 2016 03:18:02 -0400
+Subject: [PATCH] =?utf8?q?Get=20linker=20flags=20correctly=20from=20GHC=20?=
+ =?utf8?q?=E2=89=A5=207.8?=
+MIME-Version: 1.0
+Content-Type: text/plain; charset=utf8
+Content-Transfer-Encoding: 8bit
+
+GHC 7.8 renamed "Gcc Linker flags" to "C compiler link flags" and "Ld
+Linker flags" to "ld flags"
+(https://ghc.haskell.org/trac/ghc/ticket/4862).
+
+Without this corresponding fix in Cabal, the old-time package fails to
+compile on Ubuntu yakkety amd64, where the system GCC now defaults to
+-pie and GHC has
+
+ $ ghc --info | grep -i pie
+ ,("C compiler flags","-fno-PIE -fno-stack-protector")
+ ,("C compiler link flags","-no-pie")
+ ,("ld flags","-no-pie")
+
+Signed-off-by: Anders Kaseorg <andersk at mit.edu>
+(cherry picked from commit c993a0c6660aa10d8c79ed0cc4961c59acfc91c8)
+---
+ libraries/Cabal/Cabal/Distribution/Simple/GHC/Internal.hs | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+--- a/libraries/Cabal/Cabal/Distribution/Simple/GHC/Internal.hs
++++ b/libraries/Cabal/Cabal/Distribution/Simple/GHC/Internal.hs
+@@ -139,8 +139,10 @@
+ mbStripLocation = M.lookup "strip command" ghcInfo
+
+ ccFlags = getFlags "C compiler flags"
+- gccLinkerFlags = getFlags "Gcc Linker flags"
+- ldLinkerFlags = getFlags "Ld Linker flags"
++ -- GHC 7.8 renamed "Gcc Linker flags" to "C compiler link flags"
++ -- and "Ld Linker flags" to "ld flags" (GHC #4862).
++ gccLinkerFlags = getFlags "Gcc Linker flags" ++ getFlags "C compiler link flags"
++ ldLinkerFlags = getFlags "Ld Linker flags" ++ getFlags "ld flags"
+
+ -- It appears that GHC 7.6 and earlier encode the tokenized flags as a
+ -- [String] in these settings whereas later versions just encode the flags as
diff --git a/p/ghc/debian/patches/series b/p/ghc/debian/patches/series
index 6dc4453..d7dedf7 100644
--- a/p/ghc/debian/patches/series
+++ b/p/ghc/debian/patches/series
@@ -10,3 +10,4 @@ opt-pic
no-pie
find-tycon-panic
compiler-cmm-PprC-sparc-alignment.patch
+get-linker-flags-correctly
--
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