--variables-files=etc/scons/propagate_shell_environment.vars does not work

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 3.2.3
    • Component/s: Build
    • None
    • Fully Compatible
    • ALL
    • Hide

      CXX=/usr/bin/clang++ scons --variables-files=etc/scons/propagate_shell_environment.vars

      Show
      CXX=/usr/bin/clang++ scons --variables-files=etc/scons/propagate_shell_environment.vars
    • Platforms 12 (04/01/16)
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Hello, I'm the maintainer of mongodb in MacPorts, trying to update our port from 3.0.8 to 3.2.3.

      Running scons with --variables-files=etc/scons/compilers_from_env.vars works, to the extent that the CC and CXX environment variables are imported into scons, but the build fails later because it can't find OpenSSL, because it doesn't know to look for it in our custom prefix.

      Additionally setting CPPPATH and LIBPATH in the environment and running scons with --variables-files=etc/scons/propagate_shell_environment.vars does not work; nothing is imported from the environment, not even CC nor CXX.

      Specifying the path to a custom vars file containing

      import os
      
      CC=os.environ['CC']
      CPPPATH=os.environ['CPPPATH']
      CXX=os.environ['CXX']
      LIBPATH=os.environ['LIBPATH']
      

      works but I shouldn't have to do that.

              Assignee:
              Jonathan Reams
              Reporter:
              Ryan Schmidt
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: