Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-9794

Pass both LSST_LIBRARY_PATH and DYLD_LIBRARY_PATH in scons on Mac OS

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: sconsUtils
    • Labels:
      None

      Description

      To allow both Python code and shell scripts to inherit the necessary env settings, I'd like sconsUtils.utils.libraryLoaderEnvironment to pass both LSST_LIBRARY_PATH and DYLD_LIBRARY_PATH to things it calls on Mac OS.

      Currently libraryLoaderEnvironment is used within sconsUtils only by sconsUtils.tests.Control.run to ensure that, on Mac OS, that DYLD_LIBRARY_PATH is passed with either DYLD_LIBRARY_PATH or LSST_LIBRARY_PATH, whichever is defined first in that search order.

      But a shell script will be called out of /bin or an equivalently system-protected directory and needs LSST_LIBRARY_PATH passed (which will not be stripped) so that that shell script can then reset DYLD_LIBRARY_PATH (which will be stripped by SIP).

      The particularly motivating usage is to enable Python test code to call a shell script as part of DM-9740.

        Attachments

          Container Issues

            Issue Links

              Activity

                People

                • Assignee:
                  wmwood-vasey Michael Wood-Vasey
                  Reporter:
                  wmwood-vasey Michael Wood-Vasey
                  Watchers:
                  Jim Bosch, John Parejko, Michael Wood-Vasey, Tim Jenness
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Summary Panel