commit:     1e957d1d9d8dc21185e4213ae28eecae9ffa5696
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 25 22:30:27 2025 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sat Jan 25 22:30:27 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e957d1d

dev-ada/gprconfig_kb: fix nm path on arm64

Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 .../files/gprconfig_kb-25.0.0-gentoo.patch         | 39 ++++++++++++++++++++--
 ...25.0.0.ebuild => gprconfig_kb-25.0.0-r1.ebuild} |  0
 2 files changed, 37 insertions(+), 2 deletions(-)

diff --git a/dev-ada/gprconfig_kb/files/gprconfig_kb-25.0.0-gentoo.patch 
b/dev-ada/gprconfig_kb/files/gprconfig_kb-25.0.0-gentoo.patch
index c65cc6e1eab1..b0c32043b32b 100644
--- a/dev-ada/gprconfig_kb/files/gprconfig_kb-25.0.0-gentoo.patch
+++ b/dev-ada/gprconfig_kb/files/gprconfig_kb-25.0.0-gentoo.patch
@@ -99,6 +99,43 @@
     package Linker is
        for Export_File_Format use "GNU";
        for Export_File_Switch use "-Wl,--version-script=";
+@@ -166,32 +166,14 @@
+   <configuration>
+     <!-- aarch64-linux - native compiler. -->
+     <targets>
+-      <target name="^aarch64-linux-gnu$" />
++      <target name="^aarch64(-unknown)-linux-gnu$" />
+     </targets>
+     <hosts>
+-      <host name="^aarch64-linux-gnu$" />
++      <host name="^aarch64(-unknown)-linux-gnu$" />
+     </hosts>
+     <config>
+-   for Object_Lister use ("nm", "-g");
+-   for Object_Lister_Matcher use " [TDRBSG] (.*)";
+-
+-   package Linker is
+-      for Export_File_Format use "GNU";
+-      for Export_File_Switch use "-Wl,--version-script=";
+-   end Linker;
+-    </config>
+-  </configuration>
+-
+-  <configuration>
+-    <!-- aarch64-linux - cross compiler. -->
+-    <targets>
+-      <target name="^aarch64-.*linux-gnu$" />
+-    </targets>
+-    <hosts negate="true">
+-      <host name="^aarch64-linux-gnu$" />
+-    </hosts>
+-    <config>
+-   for Object_Lister use ("aarch64-linux-gnu-nm", "-g");
++   NM := External("NM", "nm");
++   for Object_Lister use (NM, "-g");
+    for Object_Lister_Matcher use " [TDRBSG] (.*)";
+ 
+    package Linker is
 @@ -696,34 +696,19 @@
    <configuration>
      <!-- aarch64-linux - native compiler. -->
@@ -166,5 +203,3 @@
        &amp; GCC_No_Pie
        &amp; ("-Wl,-r", "-o");
      </config>
---- db/linker.xml.old  2025-01-04 23:22:02.343268592 +0100
-+++ db/linker.xml      2025-01-04 23:24:11.562660779 +0100

diff --git a/dev-ada/gprconfig_kb/gprconfig_kb-25.0.0.ebuild 
b/dev-ada/gprconfig_kb/gprconfig_kb-25.0.0-r1.ebuild
similarity index 100%
rename from dev-ada/gprconfig_kb/gprconfig_kb-25.0.0.ebuild
rename to dev-ada/gprconfig_kb/gprconfig_kb-25.0.0-r1.ebuild

Reply via email to