diff options
author | Joseph Mingrone <jrm@FreeBSD.org> | 2025-06-14 16:29:27 -0300 |
---|---|---|
committer | Joseph Mingrone <jrm@FreeBSD.org> | 2025-06-16 20:24:17 -0300 |
commit | eb3f4375632b6c6b29280241d62aba0ae6208a54 (patch) | |
tree | b4f8a013437c12e2389c8fa99b3bee4e8ca9f948 | |
parent | net/pjsip: remove zero size patches (diff) |
Mk/Scripts/qa.sh: Fix false positives in LIB_DEPENDS warnings
To warn when library dependencies may not be required, the proxydeps()
function compares the libraries listed in LIB_DEPENDS with those
reported by ldd. However, the list from ldd is sanitized to remove
version information from the library names, while the entries from
LIB_DEPENDS are not. This leads to comparisons such as libreadline.so.8
from LIB_DEPENDS versus libreadline.so from ldd, resulting in false
positives. Adjust the comparison to avoid such false-positive warnings.
Event: Kitchener-Waterloo Hackathon 202506
Reviewed by: emaste, rene
Approved by: portmgr (rene)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D50860
-rw-r--r-- | Mk/Scripts/qa.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mk/Scripts/qa.sh b/Mk/Scripts/qa.sh index a0a7aa21d29a..781143db972e 100644 --- a/Mk/Scripts/qa.sh +++ b/Mk/Scripts/qa.sh @@ -724,7 +724,7 @@ proxydeps() { # Check whether all files in LIB_DEPENDS are actually linked against for _library in ${WANTED_LIBRARIES} ; do - if ! listcontains ${_library} "${dep_lib_files}" ; then + if ! listcontains ${_library%%.so*}.so "${dep_lib_files}" ; then warn "you might not need LIB_DEPENDS on ${_library}" fi done |