Skip to content

Commit 34627ca

Browse files
authored
Merge pull request #3508 from boegel/rpath_sanity_check_no_trace
don't include file/ldd/readelf commands run during RPATH sanity check in --trace output
2 parents 529a8b5 + bd4a885 commit 34627ca

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

easybuild/framework/easyblock.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2460,7 +2460,7 @@ def sanity_check_rpath(self, rpath_dirs=None):
24602460
for path in [os.path.join(dirpath, x) for x in os.listdir(dirpath)]:
24612461
self.log.debug("Sanity checking RPATH for %s", path)
24622462

2463-
out, ec = run_cmd("file %s" % path, simple=False)
2463+
out, ec = run_cmd("file %s" % path, simple=False, trace=False)
24642464
if ec:
24652465
fails.append("Failed to run 'file %s': %s" % (path, out))
24662466

@@ -2470,7 +2470,7 @@ def sanity_check_rpath(self, rpath_dirs=None):
24702470
# ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped
24712471
if "dynamically linked" in out:
24722472
# check whether all required libraries are found via 'ldd'
2473-
out, ec = run_cmd("ldd %s" % path, simple=False)
2473+
out, ec = run_cmd("ldd %s" % path, simple=False, trace=False)
24742474
if ec:
24752475
fail_msg = "Failed to run 'ldd %s': %s" % (path, out)
24762476
self.log.warning(fail_msg)
@@ -2483,7 +2483,7 @@ def sanity_check_rpath(self, rpath_dirs=None):
24832483
self.log.debug("Output of 'ldd %s' checked, looks OK", path)
24842484

24852485
# check whether RPATH section in 'readelf -d' output is there
2486-
out, ec = run_cmd("readelf -d %s" % path, simple=False)
2486+
out, ec = run_cmd("readelf -d %s" % path, simple=False, trace=False)
24872487
if ec:
24882488
fail_msg = "Failed to run 'readelf %s': %s" % (path, out)
24892489
self.log.warning(fail_msg)

0 commit comments

Comments
 (0)