hooks: pkglint: only match exact shlibs (avoids multiple matches).
This commit is contained in:
parent
efde1e1fbf
commit
581f3e29ab
1 changed files with 3 additions and 3 deletions
|
@ -30,15 +30,15 @@ hook() {
|
||||||
for filename in `cat ${PKGDESTDIR}/shlib-provides`; do
|
for filename in `cat ${PKGDESTDIR}/shlib-provides`; do
|
||||||
rev=${filename#*.so.}
|
rev=${filename#*.so.}
|
||||||
libname=${filename%.so*}
|
libname=${filename%.so*}
|
||||||
_libname=$(echo "$libname"|sed -E 's|\+|\\+|g')
|
_shlib=$(echo "$filename"|sed -E 's|\+|\\+|g')
|
||||||
_pkgname=$(echo "$pkgname"|sed -E 's|\+|\\+|g')
|
_pkgname=$(echo "$pkgname"|sed -E 's|\+|\\+|g')
|
||||||
grep -E "^${_libname}\.so[\.0-9.]*[[:blank:]]+${_pkgname}-[^-]+_[0-9]+$" $mapshlibs | { \
|
grep -E "^${_shlib}[[:blank:]]+${_pkgname}-[^-]+_[0-9]+$" $mapshlibs | { \
|
||||||
while read conflictFile conflictPkg; do
|
while read conflictFile conflictPkg; do
|
||||||
found=1
|
found=1
|
||||||
conflictRev=${conflictFile#*.so.}
|
conflictRev=${conflictFile#*.so.}
|
||||||
if [ "$rev" = "$conflictRev" ]; then
|
if [ "$rev" = "$conflictRev" ]; then
|
||||||
continue
|
continue
|
||||||
elif [[ "$rev".* =~ "$conflictRev" ]]; then
|
elif [[ ${rev}.* =~ $conflictRev ]]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
msg_red "${pkgver}: SONAME bump detected: ${libname}.so.${conflictRev} -> ${libname}.so.${rev}\n"
|
msg_red "${pkgver}: SONAME bump detected: ${libname}.so.${conflictRev} -> ${libname}.so.${rev}\n"
|
||||||
|
|
Loading…
Reference in a new issue