[jhbuild/wip/path-env: 1/18] sysdeps: look in C{, PLUS}_INCLUDE_PATH for headers



commit aeab9047d22c7abdd0eaf04a0a11e26dc5f84528
Author: Ryan Lortie <desrt desrt ca>
Date:   Sun Mar 9 10:59:51 2014 -0400

    sysdeps: look in C{,PLUS}_INCLUDE_PATH for headers
    
    jhbuild itself sets this variable, but it doesn't seem to consult it
    when looking for sysdeps.
    
    For additional system library paths, it turns out that setting this
    variable is a better idea than using -I or -isystem in CFLAGS because
    those options are "more powerful" than C_INCLUDE_PATH which is what
    jhbuild uses for pointing to the include directory in its prefix (which
    should take precedence).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=725986

 jhbuild/utils/systeminstall.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/jhbuild/utils/systeminstall.py b/jhbuild/utils/systeminstall.py
index e6cf675..93afc11 100644
--- a/jhbuild/utils/systeminstall.py
+++ b/jhbuild/utils/systeminstall.py
@@ -98,6 +98,8 @@ def systemdependencies_met(module_name, sysdeps, config):
                                              (module_name, ''))
         paths += extract_path_from_cflags(config.module_makeargs.get
                                              (module_name, ''))
+        paths += os.environ.get('C_INCLUDE_PATH', '').split(':')
+        paths += os.environ.get('CPLUS_INCLUDE_PATH', '').split(':')
         paths = list(set(paths)) # remove duplicates
         return paths
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]