freebsd-ports/Mk/Scripts
Tobias C. Berner f3790c0170 sanity: warn about unnused LIB_DEPENDS entries
`stage-qa` already warns about missing dependencies. However, it does not warn
about possibly unneeded ones.

This change tries to address this, by simply walking the list of linked against
shared libraries and then matching the entries of LIB_DEPENDS against them.

Note: this may lead to false positives -- as always, user your brain,
and don't rely on output of static tools alone.

Possible output might look like:

[...]
====> Running Q/A tests (stage-qa)
Warning: you might not need LIB_DEPENDS on libqgpgme.so
Warning: you might not need LIB_DEPENDS on libintl.so
Warning: you might not need LIB_DEPENDS on libKF5IconThemes.so
Warning: you might not need LIB_DEPENDS on libqca-qt5.so
Warning: you might not need LIB_DEPENDS on libQt5Test.so
[...]

Note, that in this case all are false positives.

Differential Revision: https://reviews.freebsd.org/D27304
2023-09-12 20:27:47 +02:00
..
actual-package-depends.sh
cargo-crates-git-common.awk
cargo-crates-git-configure.awk
cargo-crates-git-fetch.awk
cargo-crates.awk
check-desktop-entries.sh
check-stagedir.sh
check-vulnerable.sh
check_leftovers.sh
checksum.sh
create-manifest.sh Mk: depulicate WWW information 2023-08-21 17:50:16 +02:00
depends-list.sh Mk/Scripts: Fix ports depends-list.sh 2023-06-13 22:09:59 +02:00
desktop-categories.sh x11/budgie: + Budgie desktop environment. 2023-03-04 21:18:16 +03:00
dialog4ports.sh
do-depends.sh
do-fetch.sh framework: Fix fetch-url-list and fetch-urlall-list 2023-07-12 16:18:21 +02:00
do-patch.sh
do-users-groups.sh
find-lib.sh
functions.sh
generate-symbols.sh
install-desktop-entries.sh
makesum.sh Mk/Scripts/makesum.sh: Fix for distinfo files with nothing but a TIMESTAMP 2022-12-25 23:05:55 +01:00
plist_sub_sed_sort.sh
ports_env.sh
qa.sh sanity: warn about unnused LIB_DEPENDS entries 2023-09-12 20:27:47 +02:00
rust-compat11-canary.sh
security-check.awk
sed_checked.sh
smart_makepatch.sh
split-url.awk
strip_RECORD.py strip_RECORD.py: move to Mk/Scripts 2023-03-09 06:18:17 -05:00