commit:     473ba9da56f59fc0bb59045d51629d14dd0c00b8
Author:     Tupone Alfredo <tupone <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 30 19:31:00 2018 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Fri Nov 30 19:31:00 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=473ba9da

dev-ada/gprbuild: add -no-pie

Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

 dev-ada/gprbuild/files/gprbuild-2018-gentoo.patch | 11 ++++++++++-
 dev-ada/gprbuild/gprbuild-2018-r3.ebuild          |  9 +--------
 2 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/dev-ada/gprbuild/files/gprbuild-2018-gentoo.patch 
b/dev-ada/gprbuild/files/gprbuild-2018-gentoo.patch
index 1f967b61d4c..34936ea1f52 100644
--- a/dev-ada/gprbuild/files/gprbuild-2018-gentoo.patch
+++ b/dev-ada/gprbuild/files/gprbuild-2018-gentoo.patch
@@ -264,12 +264,21 @@
     </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>
  

diff --git a/dev-ada/gprbuild/gprbuild-2018-r3.ebuild 
b/dev-ada/gprbuild/gprbuild-2018-r3.ebuild
index 719ce8ae472..a1157f5c370 100644
--- a/dev-ada/gprbuild/gprbuild-2018-r3.ebuild
+++ b/dev-ada/gprbuild/gprbuild-2018-r3.ebuild
@@ -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
 }

Reply via email to