Skip to content
Merged
Changes from all 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
8 changes: 8 additions & 0 deletions easybuild/framework/easyblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -3395,6 +3395,14 @@ 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):
realpath = os.path.realpath(path)
msg = (f"Skipping RPATH sanity check for {path}, since its absolute path {realpath} resolves to"
f" outside the installation directory {self.installdir}")
self.log.info(msg)
continue

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

out = get_linked_libs_raw(path)
Expand Down