Source: softhsm2
Version: 2.2.0-3.1
Severity: normal
Tags: patch
Usertags: riscv64


We need changes in this package to bootstrap the riscv64 architecture, in
particular we need to skip the (IMO harmful) "-m64" test in the compiler for
64-bit architectures.

I am attaching a minimal patch that makes possible to compile the package,
adding riscv64 to SKIP_64BIT_ON_CPU in debian/rules.

This change should not affect other architectures or have ill effects in

Since this is a fundamental dependency (for gnupg2, openldap, and apt, among
others) we're interested in having it available in unstable as quickly as
possible, to avoid accumulating too much delta while bootstrapping.

Seeing that there is an unacknowledge NMU and bugs have not been addressed for a
few months, I will upload an NMU soon, unless you have any objection.

Thanks and cheers.
Manuel A. Fernandez Montecelo <>
diff --git a/debian/rules b/debian/rules
index f5512b3..7ee5969 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,7 +16,7 @@ export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
 # package maintainers to append LDFLAGS
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
-SKIP_64BIT_ON_CPU="aarch64 alpha ia64 mips64 mips64el"
+SKIP_64BIT_ON_CPU="aarch64 alpha ia64 mips64 mips64el riscv64"

Reply via email to