xbps-src: [verify_rundeps] safer way to detect invalid SONAMEs.
This commit is contained in:
parent
eb9e0f4058
commit
5701dffe63
1 changed files with 7 additions and 12 deletions
|
@ -101,23 +101,18 @@ verify_rundeps()
|
||||||
#
|
#
|
||||||
for f in ${verify_deps}; do
|
for f in ${verify_deps}; do
|
||||||
unset j rdep _rdep rdepcnt
|
unset j rdep _rdep rdepcnt
|
||||||
rdep="$(grep "$f" $maplib|awk '{print $2}')"
|
rdep="$(grep "^${f}.*$" $maplib|awk '{print $2}')"
|
||||||
rdepcnt="$(grep "$f" $maplib|awk '{print $2}'|wc -l)"
|
rdepcnt="$(grep "^${f}.*$" $maplib|awk '{print $2}'|wc -l)"
|
||||||
if [ -z "$rdep" ]; then
|
if [ -z "$rdep" ]; then
|
||||||
# Ignore libs by current pkg
|
# Ignore libs by current pkg
|
||||||
for j in ${verify_deps}; do
|
soname=$(find ${DESTDIR} -type f -name "$f");
|
||||||
[ "$j" != "$f" ] && continue
|
if [ -z "$soname" ]; then
|
||||||
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
|
|
||||||
echo " SONAME: $f <-> UNKNOWN PKG PLEASE FIX!"
|
echo " SONAME: $f <-> UNKNOWN PKG PLEASE FIX!"
|
||||||
broken=1
|
broken=1
|
||||||
|
else
|
||||||
|
echo " SONAME: $f <-> $pkgname (ignored)"
|
||||||
fi
|
fi
|
||||||
|
continue
|
||||||
elif [ "$rdepcnt" -gt 1 ]; then
|
elif [ "$rdepcnt" -gt 1 ]; then
|
||||||
unset j found
|
unset j found
|
||||||
# Check if shlib is provided by multiple pkgs.
|
# Check if shlib is provided by multiple pkgs.
|
||||||
|
|
Loading…
Reference in a new issue