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

Can't run root in the build tree for an installation build

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 6.04/02
    • Fix Version/s: 6.10/00
    • Component/s: Build System
    • Labels:
      None
    • Environment:

      Fedora 22

    • Development:

      Description

      When making an installation build (i.e. using --prefix), it is beneficial to be able to run the compiled root inside the build tree in order to e.g. generate the documentation or run tests.

      With root 5 this was possible - though you had to use a lot of weird settings. With root 6 it doesn't work.

      There are 2 problems:

      a) for some reason root 6 hardcodes the path to the libCling library it should dlopen instead of using gSystem->DynamicPathName(), which means it ignores LD_LIBRARY_PATH.

      b) there is no way to tell root 6 to use the buildtree path to the header files.

      With the attached patch it is possible to run a root 6 installation build in the build tree using a .rootrc like:

      Cling.RootBuild: 1
      Gui.IconPath: $(ROOTSYS)/icons
      Gui.MimeTypeFile: $(ROOTSYS)/etc/root.mimes
      Unix.*.Root.MacroPath: .:$(ROOTSYS)/macros
      Unix.*.Root.PluginPath: $(ROOTSYS)/etc/plugins
      Root.StacktraceScript: $(ROOTSYS)/etc/gdb-backtrace.sh
      *.*.Root.TTFontPath: $(ROOTSYS)/fonts

      and starting root using:

      LD_LIBRARY_PATH=${PWD}/lib PATH=${PWD}/bin:$PATH ROOTSYS=${PWD} ./bin/root.exe

      (This can also be used to generate the hsimple.root file - a step of the build that doesn't work at the moment. The build currently tries to generate it after installation instead which also fails when using DESTDIR=/some/path since then the hardcoded paths are not correct either.)

        Attachments

          Activity

            People

            Assignee:
            axel Axel Naumann
            Reporter:
            ellert Mattias Ellert
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: