xbps-src: [verify_rundeps] safer way to detect invalid SONAMEs.

This commit is contained in:
Juan RP 2011-11-17 15:39:00 +01:00
parent eb9e0f4058
commit 5701dffe63

View file

@ -101,23 +101,18 @@ verify_rundeps()
#
for f in ${verify_deps}; do
unset j rdep _rdep rdepcnt
rdep="$(grep "$f" $maplib|awk '{print $2}')"
rdepcnt="$(grep "$f" $maplib|awk '{print $2}'|wc -l)"
rdep="$(grep "^${f}.*$" $maplib|awk '{print $2}')"
rdepcnt="$(grep "^${f}.*$" $maplib|awk '{print $2}'|wc -l)"
if [ -z "$rdep" ]; then
# Ignore libs by current pkg
for j in ${verify_deps}; do
[ "$j" != "$f" ] && continue
found=1
break
done
if [ -n "$found" ]; then
echo " SONAME: $f <-> $pkgname (ignored)"
continue
else
# Bail out if maplib is not aware for this lib
soname=$(find ${DESTDIR} -type f -name "$f");
if [ -z "$soname" ]; then
echo " SONAME: $f <-> UNKNOWN PKG PLEASE FIX!"
broken=1
else
echo " SONAME: $f <-> $pkgname (ignored)"
fi
continue
elif [ "$rdepcnt" -gt 1 ]; then
unset j found
# Check if shlib is provided by multiple pkgs.