diff --git a/Makefile.inc1 b/Makefile.inc1 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -3766,6 +3766,15 @@ while read file; do \ if [ -f "${DESTDIR}/$${file}" -o -L "${DESTDIR}/$${file}" ]; then \ echo "${DESTDIR}/$${file}"; \ + if packages=$$(${LOCALBASE:Q}/sbin/pkg \ + shlib -qP $${file##*/} 2>/dev/null) && \ + [ -n "$${packages}" ]; then \ + echo " also provided by:" $${packages}; \ + elif packages=$$(${LOCALBASE:Q}/sbin/pkg \ + 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 \