Skip to content

Commit e0ec34b

Browse files
committed
clean up logging for check_readelf_rpath in sanity_check_rpath
1 parent 9dfac20 commit e0ec34b

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

easybuild/framework/easyblock.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3742,13 +3742,11 @@ def sanity_check_rpath(self, rpath_dirs=None, check_readelf_rpath=None):
37423742
fails = []
37433743

37443744
# Configure RPATH checking by readelf using easyconfig variable 'check_readelf_rpath' (default True)
3745-
if check_readelf_rpath is None:
3746-
check_readelf_rpath = self.cfg["check_readelf_rpath"]
3747-
(
3748-
self.log.info("RPATH checking by readelf is enabled")
3749-
if check_readelf_rpath
3750-
else self.log.info("RPATH checking by readelf is disabled")
3751-
)
3745+
check_readelf_rpath = self.cfg["check_readelf_rpath"]
3746+
if check_readelf_rpath:
3747+
self.log.info("Checks on RPATH section of binaries/libraries (via 'readelf -d') enabled")
3748+
else:
3749+
self.log.info("Checks on RPATH section of binaries/libraries (via 'readelf -d') disabled")
37523750

37533751
if build_option('strict_rpath_sanity_check'):
37543752
self.log.info("Unsetting $LD_LIBRARY_PATH since strict RPATH sanity check is enabled...")

0 commit comments

Comments
 (0)