aboutsummaryrefslogtreecommitdiff
path: root/sbopkglint.d/20-arch.t.sh
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-02-14 12:59:30 -0500
committerB. Watson <urchlay@slackware.uk>2023-02-14 12:59:30 -0500
commitfa960de4b3f337a461481fb0687a34e2a73880d0 (patch)
tree6268046af50e853ffe954ce89439c99401251f3a /sbopkglint.d/20-arch.t.sh
parentdecb2fa1e8081ee588e7681368e372a2b22a5490 (diff)
downloadsbo-maintainer-tools-fa960de4b3f337a461481fb0687a34e2a73880d0.tar.gz
Bump VERSION, sbopkglint preliminary arm and aarch64 support.0.6.1
Diffstat (limited to 'sbopkglint.d/20-arch.t.sh')
-rw-r--r--sbopkglint.d/20-arch.t.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/sbopkglint.d/20-arch.t.sh b/sbopkglint.d/20-arch.t.sh
index 376074d..6ad2d72 100644
--- a/sbopkglint.d/20-arch.t.sh
+++ b/sbopkglint.d/20-arch.t.sh
@@ -15,16 +15,19 @@
# if an x86_64 package has any 32-bit ELF objects (libs or bins)
# if an i?86 package has lib64 or usr/lib64 at all
# if an x86_64 package has 64-bit libs in lib or usr/lib
+# same 32/64 checking for arm (32-bit) and aarch64 (64-bit)
# note: sometimes files in /lib/firmware are ELF, and would cause
# false "wrong directory" warnings, so we exclude that dir from the
# search.
case "$ARCH" in
- noarch) ;; # ok, do nothing.
- i?86) WRONGDIR="lib64"; CPU="80386" ;;
- x86_64) WRONGDIR="lib"; CPU="x86-64" ;;
- *) warn "ARCH isn't noarch, i?86, or x86_64. don't know how to check binaries." ;;
+ noarch) ;; # ok, do nothing.
+ i?86) WRONGDIR="lib64"; CPU="80386" ;;
+ x86_64) WRONGDIR="lib"; CPU="x86-64" ;;
+ aarch64) WRONGDIR="lib"; CPU="aarch64" ;;
+ arm) WRONGDIR="lib64"; CPU="ARM" ;;
+ *) warn "ARCH isn't noarch, i?86, x86_64, arm, or aarch64. don't know how to check binaries." ;;
esac
INWRONGDIR=""