Hello community,

here is the log from the commit of package ghc for openSUSE:Factory checked in 
at 2017-05-09 18:06:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc (Old)
 and      /work/SRC/openSUSE:Factory/.ghc.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc"

Tue May  9 18:06:21 2017 rev:54 rq:493496 version:8.0.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc/ghc.changes  2017-02-28 23:50:47.955327720 
+0100
+++ /work/SRC/openSUSE:Factory/.ghc.new/ghc.changes     2017-05-09 
18:06:27.136893220 +0200
@@ -1,0 +2,10 @@
+Sat May  6 09:02:02 UTC 2017 - [email protected]
+
+- enable for global PIE support:
+  - the compiler is built without PIE support due to the bootstrap
+    libraries being non-PIE using BuildIgnore: gcc-PIE
+  - the compiler itself builds -fPIC objects all the time,
+    which should make all ghc compiled binaries be PIE.
+- ghc-pie.patch: enable default -fPIC on Linux/x86_64
+
+-------------------------------------------------------------------

New:
----
  ghc-pie.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc.spec ++++++
--- /var/tmp/diff_new_pack.PEHBiB/_old  2017-05-09 18:06:29.568549599 +0200
+++ /var/tmp/diff_new_pack.PEHBiB/_new  2017-05-09 18:06:29.572549035 +0200
@@ -30,6 +30,8 @@
 License:        BSD-3-Clause
 Group:          Development/Languages/Other
 ExclusiveArch:  aarch64 %{ix86} x86_64 ppc ppc64 ppc64le s390 s390x
+# hard to port to PIE, some prebuilt static libraries are non-PIC ... 
+#!BuildIgnore: gcc-PIE
 BuildRequires:  binutils-devel
 BuildRequires:  gcc
 BuildRequires:  ghc-bootstrap >= 7.8
@@ -73,6 +75,7 @@
 Patch29:        ghc-no-madv-free.patch
 # PATCH-FIX-UPSTREAM 0001-PPC-CodeGen-fix-lwa-instruction-generation.patch 
[email protected] -- Fix PPC codegen: Fixes ghc-zeromq4-haskell 
build on 64-bit PowerPCs
 Patch30:        0001-PPC-CodeGen-fix-lwa-instruction-generation.patch
+Patch31:        ghc-pie.patch
 # PATCH-FIX-OPENSUSE ghc-8.0.2-Cabal-dynlibdir.patch -- Fix shared library 
directory location.
 Patch100:       ghc-8.0.2-Cabal-dynlibdir.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
@@ -163,6 +166,7 @@
 %patch28 -p1
 %patch29 -p1
 %patch30 -p1
+%patch31 -p1
 %patch100 -p1
 
 %build

++++++ ghc-pie.patch ++++++
Index: ghc-8.0.2/compiler/main/DynFlags.hs
===================================================================
--- ghc-8.0.2.orig/compiler/main/DynFlags.hs
+++ ghc-8.0.2/compiler/main/DynFlags.hs
@@ -3650,6 +3650,7 @@ default_PIC :: Platform -> [GeneralFlag]
 default_PIC platform =
   case (platformOS platform, platformArch platform) of
     (OSDarwin, ArchX86_64) -> [Opt_PIC]
+    (OSLinux, ArchX86_64) -> [Opt_PIC]
     (OSOpenBSD, ArchX86_64) -> [Opt_PIC] -- Due to PIE support in
                                          -- OpenBSD since 5.3 release
                                          -- (1 May 2013) we need to

Reply via email to