1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
Description: search projects in /usr/share/ada/adainclude Debian path
The hardcoded /usr/share/gpr makes sense, and we should probably drop
this patch once all packaged libraries have been updated.
Author: Nicolas Boulenguez <nicolas@debian.org>
Forwarded: not-needed
--- a/src/gprbuild-main.adb
+++ b/src/gprbuild-main.adb
@@ -1711,6 +1711,9 @@
Prj.Env.Initialize_Default_Project_Path
(Root_Environment.Project_Path, Target_Name => "-");
+ Prj.Env.Add_Directories (Root_Environment.Project_Path,
+ "/usr/share/ada/adainclude");
+
-- If --display-paths was specified, display the config and the user
-- project paths and exit.
--- a/src/gprclean-main.adb
+++ b/src/gprclean-main.adb
@@ -671,6 +671,9 @@
Prj.Env.Initialize_Default_Project_Path
(Root_Environment.Project_Path, Target_Name => "-");
+ Prj.Env.Add_Directories (Root_Environment.Project_Path,
+ "/usr/share/ada/adainclude");
+
if Load_Standard_Base then
Parse_Knowledge_Base (Project_Tree);
end if;
--- a/src/gprinstall-main.adb
+++ b/src/gprinstall-main.adb
@@ -561,6 +561,9 @@
Prj.Env.Initialize_Default_Project_Path
(Root_Environment.Project_Path, Target_Name => "-");
+ Prj.Env.Add_Directories (Root_Environment.Project_Path,
+ "/usr/share/ada/adainclude");
+
if Opt.Verbose_Mode then
Copyright;
end if;
|