[Git][haskell-team/DHG_packages][master] crypton: Fix test failures on 64-bit arches
Scott Talbert (@swt2c)
gitlab at salsa.debian.org
Fri Jan 23 00:39:56 GMT 2026
Scott Talbert pushed to branch master at Debian Haskell Group / DHG_packages
Commits:
01a30887 by Scott Talbert at 2026-01-22T19:28:35-05:00
crypton: Fix test failures on 64-bit arches
- - - - -
3 changed files:
- p/haskell-crypton/debian/changelog
- + p/haskell-crypton/debian/patches/fix-tests-failure
- + p/haskell-crypton/debian/patches/series
Changes:
=====================================
p/haskell-crypton/debian/changelog
=====================================
@@ -1,3 +1,9 @@
+haskell-crypton (1.0.4-2) unstable; urgency=medium
+
+ * Fix test failures on 64-bit arches
+
+ -- Scott Talbert <swt at techie.net> Thu, 22 Jan 2026 19:28:15 -0500
+
haskell-crypton (1.0.4-1) unstable; urgency=medium
[ Scott Talbert ]
=====================================
p/haskell-crypton/debian/patches/fix-tests-failure
=====================================
@@ -0,0 +1,45 @@
+--- a/crypton.cabal
++++ b/crypton.cabal
+@@ -309,13 +309,13 @@ library
+ if flag(old_toolchain_inliner)
+ cc-options: -fgnu89-inline
+
+- if (arch(x86_64) || arch(aarch64))
++ if (arch(x86_64) || arch(aarch64) || arch(loong64) || arch(ppc64le) || arch(riscv64) || arch(s390x) || arch(alpha) || arch(ppc64) || arch(sparc64))
+ include-dirs: cbits/include64
+
+ else
+ include-dirs: cbits/include32
+
+- if (arch(x86_64) || arch(aarch64))
++ if (arch(x86_64) || arch(aarch64) || arch(loong64) || arch(ppc64le) || arch(riscv64) || arch(s390x) || arch(alpha) || arch(ppc64) || arch(sparc64))
+ c-sources:
+ cbits/decaf/p448/arch_ref64/f_impl.c
+ cbits/decaf/p448/f_generic.c
+@@ -339,13 +339,13 @@ library
+
+ include-dirs: cbits/decaf/include/arch_32 cbits/decaf/p448/arch_32
+
+- if (arch(x86_64) || arch(aarch64))
++ if (arch(x86_64) || arch(aarch64) || arch(loong64) || arch(ppc64le) || arch(riscv64) || arch(s390x) || arch(alpha) || arch(ppc64) || arch(sparc64))
+ c-sources: cbits/curve25519/curve25519-donna-c64.c
+
+ else
+ c-sources: cbits/curve25519/curve25519-donna.c
+
+- if (arch(i386) || arch(x86_64))
++ if (arch(i386) || arch(x86_64) || arch(loong64) || arch(ppc64le) || arch(riscv64) || arch(alpha))
+ cpp-options: -DARCH_IS_LITTLE_ENDIAN
+
+ if arch(i386)
+--- a/cbits/decaf/include/word.h
++++ b/cbits/decaf/include/word.h
+@@ -151,7 +151,7 @@ CRYPTON_DECAF_INLINE mask_t bit_to_mask(
+ br_set_to_mask(mask_t x) {
+ return vdupq_n_u32(x);
+ }
+-#elif __amd64__ || __X86_64__ || __aarch64__ /* || _WIN64 -> WIN64 does not support int128 so force the build on arch32 default so do not use this define for _WIN64*/
++#elif __amd64__ || __X86_64__ || __aarch64__ || __loongarch_lp64 || __PPC64__ || __riscv || __s390x__ || __alpha__ || __powerpc64__ || (__sparc__ && __arch64__) /* || _WIN64 -> WIN64 does not support int128 so force the build on arch32 default so do not use this define for _WIN64*/
+ #define VECTOR_ALIGNED __attribute__((aligned(8)))
+ typedef uint64_t big_register_t, uint64xn_t;
+
=====================================
p/haskell-crypton/debian/patches/series
=====================================
@@ -0,0 +1 @@
+fix-tests-failure
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/01a30887ffa047f78a0983d904c5c5df8a87c96d
--
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/01a30887ffa047f78a0983d904c5c5df8a87c96d
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-commits/attachments/20260123/fdfedff9/attachment-0001.htm>
More information about the Pkg-haskell-commits
mailing list