diff options
author | Juan RP <xtraeme@gmail.com> | 2014-04-04 15:24:47 +0000 |
---|---|---|
committer | Juan RP <xtraeme@gmail.com> | 2014-04-04 15:24:47 +0000 |
commit | 3ecb3c26faf71c2116c975e995c4641a778b7d13 (patch) | |
tree | cdfa320136b623104086f535dafec7bad8ba809d /common/hooks/post-install/99-pkglint.sh | |
parent | 2c2f51b4ca667c7e603d830023a6c9af09c61535 (diff) | |
download | void-packages-3ecb3c26faf71c2116c975e995c4641a778b7d13.tar void-packages-3ecb3c26faf71c2116c975e995c4641a778b7d13.tar.gz void-packages-3ecb3c26faf71c2116c975e995c4641a778b7d13.tar.bz2 void-packages-3ecb3c26faf71c2116c975e995c4641a778b7d13.tar.lz void-packages-3ecb3c26faf71c2116c975e995c4641a778b7d13.tar.xz void-packages-3ecb3c26faf71c2116c975e995c4641a778b7d13.tar.zst void-packages-3ecb3c26faf71c2116c975e995c4641a778b7d13.zip |
hooks/post-install/pkglint: repair and improve checks to detect soname bumps.
Diffstat (limited to 'common/hooks/post-install/99-pkglint.sh')
-rw-r--r-- | common/hooks/post-install/99-pkglint.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/common/hooks/post-install/99-pkglint.sh b/common/hooks/post-install/99-pkglint.sh index d3f3b294852..278060f9e16 100644 --- a/common/hooks/post-install/99-pkglint.sh +++ b/common/hooks/post-install/99-pkglint.sh @@ -30,9 +30,9 @@ hook() { for filename in `cat ${PKGDESTDIR}/shlib-provides`; do rev=${filename#*.so.} libname=${filename%.so*} - _shlib=$(echo "$filename"|sed -E 's|\+|\\+|g') + _shlib=$(echo "$libname"|sed -E 's|\+|\\+|g') _pkgname=$(echo "$pkgname"|sed -E 's|\+|\\+|g') - grep -E "^${_shlib}[[:blank:]]+${_pkgname}-[^-]+_[0-9]+$" $mapshlibs | { \ + grep -E "^${_shlib}\.so(.*)[[:blank:]]+${_pkgname}-[^-]+_[0-9]+$" $mapshlibs | { \ while read conflictFile conflictPkg; do found=1 conflictRev=${conflictFile#*.so.} @@ -44,8 +44,9 @@ hook() { msg_red "${pkgver}: SONAME bump detected: ${libname}.so.${conflictRev} -> ${libname}.so.${rev}\n" msg_red "${pkgver}: please update common/shlibs with this line: \"${libname}.so.${rev} ${pkgver}\"\n" msg_red "${pkgver}: all reverse dependencies should also be revbumped to be rebuilt against ${libname}.so.${rev}:\n" - for x in $($XBPS_QUERY_XCMD -RX ${pkgname}); do - msg_red " ${x}\n" + _revdeps=$($XBPS_QUERY_XCMD -s ${libname} -p shlib-requires|awk '{print $1}') + for x in ${_revdeps}; do + msg_red " ${x%:}\n" done msg_error "${pkgver}: cannot continue with installation!\n" done |