diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2026-06-06 07:54:21 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2026-06-06 07:54:21 +0000 |
| commit | 8d9dff23f206cb86aed9857a985ed09cd38eb5ac (patch) | |
| tree | 78b7926bb910421a0255e5b23b0a3682f95bc391 | |
| parent | bad3c15dffea69ea84f95489d26a86ad0498d942 (diff) | |
check-old-libs: Show information about packages
If pkg is installed, for each old library found to still be present,
check if any installed packages either provide or require the library,
and inform the user.
MFC after: 1 week
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D53977
| -rw-r--r-- | Makefile.inc1 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1 index 2927054c2e83..f7d68dd0b4bd 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -3816,6 +3816,15 @@ check-old-libs: .PHONY while read file; do \ if [ -f "${DESTDIR}/$${file}" -o -L "${DESTDIR}/$${file}" ]; then \ echo "${DESTDIR}/$${file}"; \ + if packages=$$(${LOCALBASE:Q}/sbin/pkg -r ${DESTDIR:U/} \ + shlib -qP $${file##*/} 2>/dev/null) && \ + [ -n "$${packages}" ]; then \ + echo " also provided by:" $${packages}; \ + elif packages=$$(${LOCALBASE:Q}/sbin/pkg -r ${DESTDIR:U/} \ + shlib -qR $${file##*/} 2>/dev/null) && \ + [ -n "$${packages}" ]; then \ + echo " required by:" $${packages}; \ + fi; \ fi; \ for ext in debug symbols; do \ if [ -f "${DESTDIR}${DEBUGDIR}/$${file}.$${ext}" ]; then \ |
