aboutsummaryrefslogtreecommitdiff
path: root/sbopkglint.d/20-arch.t.sh
diff options
context:
space:
mode:
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=""