summaryrefslogtreecommitdiff
path: root/checkpkg.in
diff options
context:
space:
mode:
authorEric Bélanger <snowmaniscool@gmail.com>2013-10-23 23:24:45 -0400
committerPierre Schmitz <pierre@archlinux.de>2013-10-27 15:57:16 +0100
commit7524bec6d930992876611f6c901852d8ae0d7ab0 (patch)
tree7f483d029c913a310d18890f1b062256167caa35 /checkpkg.in
parent70309118ab1d082bf12dfd39c3068f5fdd6662dc (diff)
downloaddevtools-7524bec6d930992876611f6c901852d8ae0d7ab0.tar.xz
checkpkg: Fix soname check
The bsdtar options were in the incorrect order and objdump couldn't find the files. Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
Diffstat (limited to 'checkpkg.in')
-rw-r--r--checkpkg.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/checkpkg.in b/checkpkg.in
index 3bd22e4..4d2a905 100644
--- a/checkpkg.in
+++ b/checkpkg.in
@@ -73,9 +73,9 @@ for _pkgname in "${pkgname[@]}"; do
if diff "$TEMPDIR/filelist-$_pkgname"{-old,} | grep '\.so' &>/dev/null; then
mkdir -p "$TEMPDIR/pkg"
- bsdtar -C "$TEMPDIR" xf ../"$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
- echo "${i}: " "$(objdump -p "$i" | grep SONAME)"
+ echo "${i}: " "$(objdump -p "$TEMPDIR/$i" | grep SONAME)"
done
else
msg "No soname differences for $_pkgname."