Bug#712228: Hardening flag -pie breaks compilation with GHC

Bálint Réczey balint at balintreczey.hu
Fri Sep 30 20:57:39 UTC 2016


Hi Gianfranco,

2016-09-27 17:10 GMT+02:00 Gianfranco Costamagna <locutusofborg at debian.org>:
> Hi
>
>>The built package also builds haskell-asn1-encoding fine with the
>>changed compiler.
>>
>>Please consider using this patch an upload it soon to the archive.
>>I can help with test rebuilds if needed.
>
>
> https://anonscm.debian.org/cgit/pkg-haskell/DHG_packages.git/commit/?id=3354959ffaddb30572e3609841f20a26859323ff
> https://anonscm.debian.org/cgit/pkg-haskell/DHG_packages.git/commit/?h=experimental
>
> I committed your patches on both master and experimental, can you please test them?

The indentation got lost in the commit thus this additional patch is
needed both in
unstable and experimental:

diff --git a/p/ghc/debian/rules b/p/ghc/debian/rules
index faae250..d58b85a 100755
--- a/p/ghc/debian/rules
+++ b/p/ghc/debian/rules
@@ -60,9 +60,9 @@ endif
 ifeq (armel,$(DEB_HOST_ARCH))
        patch -p1 < debian/patches/armel-revert-ghci-fixes.patch
 endif
-echo "SRC_HC_OPTS += -optc-fno-PIE -optl-no-pie" >> mk/build.mk
-echo "SRC_CC_OPTS += -fno-PIE" >> mk/build.mk
-echo "SRC_LD_OPTS += -no-pie" >> mk/build.mk
+       echo "SRC_HC_OPTS += -optc-fno-PIE -optl-no-pie" >> mk/build.mk
+       echo "SRC_CC_OPTS += -fno-PIE" >> mk/build.mk
+       echo "SRC_LD_OPTS += -no-pie" >> mk/build.mk
 ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 #      echo "GhcStage1HcOpts += -DDEBUG" >> mk/build.mk
 #      echo "GhcStage2HcOpts += -DDEBUG" >> mk/build.mk

With this change the package builds fine in unstable and experimental,
thank you.

>
> I hope somebody will upload them soon, I don't think it is good to upload right now,
> since we are in the middle of a transition (as always), and I don't know when it will finish.

Fingers crossed :-)

Cheers,
Balint



More information about the Pkg-haskell-maintainers mailing list