dev-ada/gprbuild: add -no-pie
authorTupone Alfredo <tupone@gentoo.org>
Fri, 30 Nov 2018 19:31:00 +0000 (20:31 +0100)
committerTupone Alfredo <tupone@gentoo.org>
Fri, 30 Nov 2018 19:31:00 +0000 (20:31 +0100)
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

dev-ada/gprbuild/files/gprbuild-2018-gentoo.patch
dev-ada/gprbuild/gprbuild-2018-r3.ebuild

index 1f967b61d4c76aec2e7aba0fd18080092dba731b..34936ea1f52bde15e7452f179f6d0a50a4350fc0 100644 (file)
     </configuration>
 --- a/share/gprconfig/linker.xml       2018-10-17 21:36:15.856883517 +0200
 +++ b/share/gprconfig/linker.xml       2018-10-17 21:35:15.985896804 +0200
+@@ -1025,7 +1025,7 @@
+     </targets>
+     <config>
+    for Library_Partial_Linker use
+-         ("${PATH(ada)}${PREFIX(ada)}gcc", "-nostdlib", "-Wl,-r", "-o");
++         ("${PATH(ada)}${PREFIX(ada)}gcc-@VER@", "-nostdlib", "-Wl,-r", "-no-pie", "-o");
+     </config>
+   </configuration>
+ 
 @@ -1044,7 +1044,7 @@
      </targets>
      <config>
     for Library_Partial_Linker use
 -         ("${PATH(c)}${PREFIX(c)}gcc", "-nostdlib", "-Wl,-r", "-o");
-+         ("${PATH(c)}${PREFIX(c)}gcc-@VER@", "-nostdlib", "-Wl,-r", "-o");
++         ("${PATH(c)}${PREFIX(c)}gcc-@VER@", "-nostdlib", "-Wl,-r", "-no-pie", "-o");
      </config>
    </configuration>
  
index 719ce8ae4725d559f1d2154a95aafcad1b56970d..a1157f5c37010334f00e460dbbcb70502f4a778d 100644 (file)
@@ -30,9 +30,7 @@ REQUIRED_USE="!gnat_2016 ^^ ( gnat_2017 gnat_2018 )"
 PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
 
 src_prepare() {
-       if use gnat_2016; then
-               GCC_PV=4.9.4
-       elif use gnat_2017; then
+       if use gnat_2017; then
                GCC_PV=6.3.0
        else
                GCC_PV=7.3.1
@@ -49,10 +47,6 @@ src_prepare() {
                -e "s:@GNATBIND@:gnatbind-${GCC_PV}:g" \
                src/gprlib.adb \
                || die
-#      sed -i \
-#              -e "s:\"-Wl,-r\":\"-r\":g" \
-#              share/gprconfig/linker.xml \
-#              || die
 }
 
 src_configure() {
@@ -88,6 +82,5 @@ src_install() {
        doins share/gprconfig/*
        insinto /usr/share/gpr
        doins share/_default.gpr
-       insinto /usr/share/gprconfig
        einstalldocs
 }