xbps-src: guess required shlibs by the same pkg automatically.

This commit is contained in:
Juan RP 2011-11-15 10:40:36 +01:00
parent 2ae416aa2f
commit 40d04c8ad5
2 changed files with 14 additions and 85 deletions

View file

@ -104,8 +104,20 @@ verify_rundeps()
rdep="$(grep "$f" $maplib|awk '{print $2}')"
rdepcnt="$(grep "$f" $maplib|awk '{print $2}'|wc -l)"
if [ -z "$rdep" ]; then
echo " SONAME: $f <-> UNKNOWN PKG PLEASE FIX!"
broken=1
# 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)"
unset found
continue
else
echo " SONAME: $f <-> UNKNOWN PKG PLEASE FIX!"
broken=1
fi
fi
# Check if shlib is provided by multiple pkgs.
if [ "$rdepcnt" -gt 1 ]; then
@ -115,12 +127,6 @@ verify_rundeps()
else
_rdep=$rdep
fi
# Ignore libs by current pkg
if [ "${_rdep}" = "$pkgname" ]; then
echo " SONAME: $f <-> ${_rdep} (ignored)"
continue
fi
# Add required shlib to rundeps.
echo " SONAME: $f <-> ${_rdep}"
if [ -z "$soname_list" ]; then