Source: softhsm2
Version: 2.0.0-2
Tags: patch
It failed to build on arm64:
https://buildd.debian.org/status/package.php?p=softhsm2&suite=sid
You can fix it with the attached patch, though you might want to
investigate whether and why it is necessary for debian/rules to add
"CONFIGURE_FLAGS = --enable-64bit" on some 64-bit architectures.
(Which 64-bit architectures need this?)
--- softhsm2-2.0.0.orig/debian/rules
+++ softhsm2-2.0.0/debian/rules
@@ -9,10 +9,10 @@
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_HOST_ARCH_BITS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_BITS)
-SKIP_64BIT_ON_CPU="alpha ia64 mips64 mips64el"
+SKIP_64BIT_ON_CPU="aarch64 alpha ia64 mips64 mips64el"
ifeq ($(DEB_HOST_ARCH_BITS),64)
- # -m64 is not recognized on some architectures
+ # -m64 is not recognized on most architectures
ifeq (,$(findstring $(DEB_HOST_GNU_CPU),$(SKIP_64BIT_ON_CPU)))
CONFIGURE_FLAGS = --enable-64bit
endif