Skip to content

Commit

Permalink
epic-eic: ensure ROOT libs are found in LD_LIBRARY_PATH before 24.04
Browse files Browse the repository at this point in the history
  • Loading branch information
wdconinc committed Apr 21, 2024
1 parent 33b156c commit c83030f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/epic-eic/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ def postinstall(self, spec, prefix):
detector_path = join_path(self.prefix.share, "epic")
with working_dir(detector_path):
os.environ["LD_LIBRARY_PATH"] += os.pathsep + self.prefix.lib
if spec.satisfies("@:24.03"): # no rpath linking until 24.04
os.environ["LD_LIBRARY_PATH"] += os.pathsep + self.spec["root"].prefix.lib.root
os.environ["DETECTOR_PATH"] = detector_path
checkGeometry = Executable(join_path(spec['dd4hep'].prefix.bin, 'checkGeometry'))
checkGeometry('-c', join_path(detector_path, spec.variants["artifacts"].value + ".xml"))
Expand Down

0 comments on commit c83030f

Please sign in to comment.