Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions easybuild/framework/easyblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -3395,6 +3395,13 @@ def sanity_check_rpath(self, rpath_dirs=None, check_readelf_rpath=True):
self.log.debug(f"Sanity checking RPATH for files in {dirpath}")

for path in [os.path.join(dirpath, x) for x in os.listdir(dirpath)]:
# skip the check for any symlinks that resolve to outside the installation directory
if not is_parent_path(self.installdir, path):
msg = (f"Skipping RPATH sanity check for {path}, since its absolute path resolves to outside "
"the installation directory")
self.log.debug(msg)
continue

self.log.debug(f"Sanity checking RPATH for {path}")

out = get_linked_libs_raw(path)
Expand Down
Loading