File: projects_lookup_path.diff

package info (click to toggle)
gprbuild 2015-6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,228 kB
  • ctags: 67
  • sloc: ada: 27,214; xml: 4,127; makefile: 337; sh: 227; cpp: 89; fortran: 62; ansic: 37
file content (42 lines) | stat: -rw-r--r-- 1,476 bytes parent folder | download
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;