Skip to content
Snippets Groups Projects
Commit e3cf64ad authored by Eric Bélanger's avatar Eric Bélanger Committed by Pierre Schmitz
Browse files

checkpkg: Only match .so at end of filenames for soname check

parent 7524bec6
No related branches found
No related tags found
No related merge requests found
...@@ -74,7 +74,7 @@ for _pkgname in "${pkgname[@]}"; do ...@@ -74,7 +74,7 @@ for _pkgname in "${pkgname[@]}"; do
if diff "$TEMPDIR/filelist-$_pkgname"{-old,} | grep '\.so' &>/dev/null; then if diff "$TEMPDIR/filelist-$_pkgname"{-old,} | grep '\.so' &>/dev/null; then
mkdir -p "$TEMPDIR/pkg" mkdir -p "$TEMPDIR/pkg"
bsdtar -x -C "$TEMPDIR" -f "$pkgfile" #> /dev/null bsdtar -x -C "$TEMPDIR" -f "$pkgfile" #> /dev/null
diff "$TEMPDIR/filelist-$_pkgname-old" "$TEMPDIR/filelist-$_pkgname" | awk '/>.*\.so/{$1 = ""; print $0}' | while read i; do comm -13 <(sort "$TEMPDIR/filelist-$_pkgname-old") <(sort "$TEMPDIR/filelist-$_pkgname") | grep .so$ | while read i; do
echo "${i}: " "$(objdump -p "$TEMPDIR/$i" | grep SONAME)" echo "${i}: " "$(objdump -p "$TEMPDIR/$i" | grep SONAME)"
done done
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment