Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-8704

thisroot.sh does not always modify LD_LIBRARY_PATH correctly.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 6.08/06
    • Fix Version/s: 6.10/00
    • Component/s: Other
    • Labels:
      None
    • Environment:

      Ubuntu 16.04

      Description

      the following code

      export ROOTSYS=/my/path
      export LD_LIBRARY_PATH=/my/path/lib:/my/path/lib64
      . thisroot.sh
      echo $LD_LIBRARY_PATH

      will print an additional :64 at the end of the LD_LIBRARY_PATH as thisroot.sh tries to remove the old $ROOTSYS/lib but also removes parts of the second path.

      I guess this could be fixed by using begin/end of line matches in the sed call.

         newpath=`echo $p | sed -e "s;:${drop}:;:;g" \
                                -e "s;:${drop}$;;g"   \
                                -e "s;^${drop}:;;g"   \
                                -e "s;^${drop}$;;g"`

      As far as I can see This will also affect thisroot.csh

        Attachments

          Activity

            People

            • Assignee:
              mato Pere Mato Vila
              Reporter:
              d0efd835d09c19439b33 Martin Ritter
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: