Skip to content

Commit

Permalink
dev-ada/gprbuild: add /usr to the search path for gpr files
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.6, Repoman-2.3.1
  • Loading branch information
atupone committed Sep 12, 2017
1 parent a75a493 commit 891b88e
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
19 changes: 19 additions & 0 deletions dev-ada/gprbuild/files/gprbuild-2016-gentoo.patch
Original file line number Diff line number Diff line change
Expand Up @@ -214,3 +214,22 @@ diff -Naur gprbuild-gpl-2016-src.old/src/gprinstall-sigint_intercepted.ads gprbu

package Binder is
make BUILDER="$(BUILDER)" BUILD="$(BUILD)"
--- gprbuild-gpl-2016-src/gpr/src/gpr-conf.adb.old 2017-09-12 21:29:25.945747949 +0200
+++ gprbuild-gpl-2016-src/gpr/src/gpr-conf.adb 2017-09-12 21:35:16.299101715 +0200
@@ -1839,6 +1839,16 @@
end;
end if;

+ Compiler_Root := First_Compiler_Root;
+ while Compiler_Root.Next /= null loop
+ Compiler_Root := Compiler_Root.Next;
+ end loop;
+ Compiler_Root.Next :=
+ new Compiler_Root_Data'
+ (Root => new String'("/usr"),
+ Runtimes => null,
+ Next => null);
+
-- Now that the compiler roots are in a correct order, add the
-- directories corresponding to these compiler roots in the
-- project path.
19 changes: 19 additions & 0 deletions dev-ada/gprbuild/files/gprbuild-2017-gentoo.patch
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,22 @@

end if;
end if;
--- gprbuild-gpl-2016-src/gpr/src/gpr-conf.adb.old 2017-09-12 21:29:25.945747949 +0200
+++ gprbuild-gpl-2016-src/gpr/src/gpr-conf.adb 2017-09-12 21:35:16.299101715 +0200
@@ -1839,6 +1839,16 @@
end;
end if;

+ Compiler_Root := First_Compiler_Root;
+ while Compiler_Root.Next /= null loop
+ Compiler_Root := Compiler_Root.Next;
+ end loop;
+ Compiler_Root.Next :=
+ new Compiler_Root_Data'
+ (Root => new String'("/usr"),
+ Runtimes => null,
+ Next => null);
+
-- Now that the compiler roots are in a correct order, add the
-- directories corresponding to these compiler roots in the
-- project path.

0 comments on commit 891b88e

Please sign in to comment.