aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sbopkglint.d/20-arch.t.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/sbopkglint.d/20-arch.t.sh b/sbopkglint.d/20-arch.t.sh
index 2b8268c..96bb120 100644
--- a/sbopkglint.d/20-arch.t.sh
+++ b/sbopkglint.d/20-arch.t.sh
@@ -53,9 +53,12 @@ if [ -n "$WRONGDIR" ]; then
# 20220414 bkw: only check for libs directly in the dir.
# this avoids e.g. lib/udev/<executable> and usr/lib/prgnam/plugins/*.so.
# had to relax this check; it was too strict.
- $WRONGDIR/*/*|usr/$WRONGDIR/*/*) continue ;;
+ # 20231216 bkw: don't check opt/ either.
+ opt/*|$WRONGDIR/*/*|usr/$WRONGDIR/*/*) continue ;;
$WRONGDIR/*|usr/$WRONGDIR/*)
ls -lb "$file" >> .inwrongdir.$$ ;;
+ usr/share/*)
+ ls -lb "$file" >> .insharedir.$$ ;;
esac
# 64-bit packages can contain 2 types of 32-bit binaries:
@@ -91,4 +94,11 @@ fi
[ -s .notstripped.$$ ] && warn "ELF object(s) not stripped:" && cat .notstripped.$$
[ -s .nonexec.$$ ] && warn "ELF binaries/libraries should be executable:" && cat .nonexec.$$
+if [ "$WRONGDIR" = "lib64" ]; then
+ [ -e usr/lib64 ] && warn "32-bit $ARCH package may not contain /usr/lib64"
+ [ -e lib64 ] && warn "32-bit $ARCH package may not contain /lib64"
+elif [ "$WRONGDIR" = "lib" -a -e usr/lib ]; then
+ note "64-bit $ARCH package contains /usr/lib; this may or may not be a problem."
+fi
+
rm -f .inwrongdir.$$ .wrongarch.$$ .notstripped.$$ .nonexec.$$