Subject: [PATCH] testing/b3sum: enable for armhf

From: Eric Roshan-Eisner <[email-masked]>
Date: Fri, 3 Jun 2022 13:54:18 -0700

Previously the APKBUILD enabled neon instructions which are not supported for armv6.
Upstream has since added broken auto-detection of arm version, which unintentionally ignores the neon flag for armv6.
https://github.com/BLAKE3-team/BLAKE3/commit/0a0bb7126e9207d3bb3d9af0f0b5ae646d532cf2

Don't set the flag for armhf in case they "fix" this bug.
---
 testing/b3sum/APKBUILD | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/testing/b3sum/APKBUILD b/testing/b3sum/APKBUILD
index 4b365727a2..93f6e7e846 100644
--- a/testing/b3sum/APKBUILD
+++ b/testing/b3sum/APKBUILD
@@ -2,17 +2,16 @@
 # Maintainer:
 pkgname=b3sum
 pkgver=1.3.1
-pkgrel=0
+pkgrel=1
 pkgdesc="Command line implementation of the BLAKE3 hash function"
 url="https://blake3.io"
-# armhf: 'vaddq_u32': target specific option mismatch
-arch="all !s390x !armhf !riscv64"
+arch="all !s390x !riscv64"
 license="CC0-1.0 OR Apache-2.0"
 makedepends="cargo"
 source="b3sum-$pkgver.tar.gz::https://crates.io/api/v1/crates/b3sum/$pkgver/download"
 
 case "$CARCH" in
-	arm*) _features="neon" ;;
+	armv7) _features="neon" ;;
 esac
 
 build() {
-- 
2.36.1