Skip to content

Commit

Permalink
dev-ada/gprbuild: use AR or NM env instead
Browse files Browse the repository at this point in the history
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Alfredo Tupone <[email protected]>
  • Loading branch information
atupone committed Dec 23, 2021
1 parent df70fe0 commit 778901b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 18 deletions.
11 changes: 0 additions & 11 deletions dev-ada/gprbuild/files/gprbuild-2021-ar.patch

This file was deleted.

5 changes: 3 additions & 2 deletions dev-ada/gprbuild/files/gprbuild-2021-nm.patch
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
--- a/share/gprconfig/linker.xml 2021-12-21 21:36:45.306813518 +0100
+++ b/share/gprconfig/linker.xml 2021-12-21 22:20:21.642668870 +0100
@@ -128,7 +128,7 @@
@@ -128,7 +128,8 @@
<host name="^i686.*-linux.*$" />
</hosts>
<config>
- for Object_Lister use ("nm", "-g");
+ for Object_Lister use ("${HOST(Ada)}-nm", "-g");
+ NM := External("NM", "nm");
+ for Object_Lister use (NM, "-g");
for Object_Lister_Matcher use " [TDRB] (.*)";

LDFLAGS := External_As_List ("LDFLAGS", " ");
5 changes: 3 additions & 2 deletions dev-ada/gprbuild/files/gprbuild-22.0.0-ar.patch
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
--- a/share/gprconfig/linker.xml 2021-12-22 22:40:42.611766036 +0100
+++ b/share/gprconfig/linker.xml 2021-12-22 22:42:28.839096356 +0100
@@ -877,7 +877,7 @@
@@ -877,7 +877,8 @@
<host name="^x86_64-.*linux.*" />
</hosts>
<config>
- for Archive_Builder use ("ar", "cr");
+ for Archive_Builder use ("${HOST(Ada)}-ar", "cr");
+ AR := External("AR", "ar");
+ for Archive_Builder use (AR, "cr");
for Archive_Builder_Append_Option use ("q");
for Archive_Indexer use ("ranlib");
for Archive_Suffix use ".a";
5 changes: 3 additions & 2 deletions dev-ada/gprbuild/files/gprbuild-22.0.0-nm.patch
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
--- a/share/gprconfig/linker.xml 2021-12-21 22:36:01.054738486 +0100
+++ b/share/gprconfig/linker.xml 2021-12-21 22:36:59.973738600 +0100
@@ -128,7 +128,7 @@
@@ -128,7 +128,8 @@
<host name="^i686.*-linux.*$" />
</hosts>
<config>
- for Object_Lister use ("nm", "-g");
+ for Object_Lister use ("${HOST(Ada)}-nm", "-g");
+ NM := External("NM", "nm");
+ for Object_Lister use (NM, "-g");
for Object_Lister_Matcher use " [TDRB] (.*)";

package Linker is
2 changes: 1 addition & 1 deletion dev-ada/gprbuild/gprbuild-2021-r2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ REQUIRED_USE="${ADA_REQUIRED_USE}"
PATCHES=(
"${FILESDIR}"/${P}-gentoo.patch
"${FILESDIR}"/${P}-nm.patch
"${FILESDIR}"/${P}-ar.patch
"${FILESDIR}"/${PN}-22.0.0-ar.patch
)

src_prepare() {
Expand Down

0 comments on commit 778901b

Please sign in to comment.