Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion easybuild/framework/easyblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -3804,7 +3804,7 @@ def sanity_check_rpath(self, rpath_dirs=None, check_readelf_rpath=None):
out = get_linked_libs_raw(path)

if out is None:
msg = "Failed to determine dynamically linked libraries for {path}, "
msg = f"Failed to determine dynamically linked libraries for {path}, "
msg += "so skipping it in RPATH sanity check"
self.log.debug(msg)
else:
Expand Down
3 changes: 3 additions & 0 deletions easybuild/tools/systemtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1118,6 +1118,9 @@ def get_linked_libs_raw(path):
or None for other types of files.
"""

if os.path.islink(path):
_log.debug(f"{path} is a symbolic link, so skipping check for linked libs")
return None
res = run_shell_cmd("file %s" % path, fail_on_error=False, hidden=True, output_file=False, stream_output=False)
if res.exit_code != EasyBuildExit.SUCCESS:
fail_msg = "Failed to run 'file %s': %s" % (path, res.output)
Expand Down