xbps-src: [verify_rundeps] use SONAME for matching pkgname if found.
This commit is contained in:
parent
9dbd63969b
commit
f4c0b67184
2 changed files with 21 additions and 9 deletions
|
@ -101,7 +101,6 @@ verify_rundeps()
|
||||||
#
|
#
|
||||||
for f in ${verify_deps}; do
|
for f in ${verify_deps}; do
|
||||||
unset j rdep _rdep rdepcnt
|
unset j rdep _rdep rdepcnt
|
||||||
# Bail out if maplib is not aware for this lib
|
|
||||||
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
|
||||||
|
@ -115,25 +114,38 @@ verify_rundeps()
|
||||||
echo " SONAME: $f <-> $pkgname (ignored)"
|
echo " SONAME: $f <-> $pkgname (ignored)"
|
||||||
continue
|
continue
|
||||||
else
|
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
|
||||||
fi
|
fi
|
||||||
fi
|
elif [ "$rdepcnt" -gt 1 ]; then
|
||||||
# Check if shlib is provided by multiple pkgs.
|
unset j found
|
||||||
if [ "$rdepcnt" -gt 1 ]; then
|
# Check if shlib is provided by multiple pkgs.
|
||||||
for j in ${rdep}; do
|
for j in ${rdep}; do
|
||||||
[ -z "${_rdep}" ] && _rdep=$j
|
# if there's a SONAME matching pkgname, use it.
|
||||||
|
[ "${j}" != "${pkgname}" ] && continue
|
||||||
|
found=1
|
||||||
|
break
|
||||||
done
|
done
|
||||||
|
if [ -n "$found" ]; then
|
||||||
|
_rdep=$j
|
||||||
|
else
|
||||||
|
# otherwise pick up the first one.
|
||||||
|
for j in ${rdep}; do
|
||||||
|
[ -z "${_rdep}" ] && _rdep=$j
|
||||||
|
done
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
_rdep=$rdep
|
_rdep=$rdep
|
||||||
fi
|
fi
|
||||||
# Ignore libs by current pkg
|
if [ "${_rdep}" != "$pkgname" ]; then
|
||||||
if [ "${_rdep}" = "$pkgname" ]; then
|
echo " SONAME: $f <-> ${_rdep}"
|
||||||
|
else
|
||||||
|
# Ignore libs by current pkg
|
||||||
echo " SONAME: $f <-> ${_rdep} (ignored)"
|
echo " SONAME: $f <-> ${_rdep} (ignored)"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
# Add required shlib to rundeps.
|
# Add required shlib to rundeps.
|
||||||
echo " SONAME: $f <-> ${_rdep}"
|
|
||||||
if [ -z "$soname_list" ]; then
|
if [ -z "$soname_list" ]; then
|
||||||
soname_list="${f}"
|
soname_list="${f}"
|
||||||
else
|
else
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
#-
|
#-
|
||||||
readonly XBPS_SRC_BUILD_VERSION=20111116
|
readonly XBPS_SRC_BUILD_VERSION=20111117
|
||||||
XBPS_CONFIG_FILE=@@XBPS_INSTALL_ETCDIR@@/xbps-src.conf
|
XBPS_CONFIG_FILE=@@XBPS_INSTALL_ETCDIR@@/xbps-src.conf
|
||||||
|
|
||||||
PROGNAME=$(basename $0)
|
PROGNAME=$(basename $0)
|
||||||
|
|
Loading…
Reference in a new issue