From 28e28adc401b344fa5c230e2609c542873c372f8 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 21 Aug 2023 09:43:30 +0100 Subject: gentoo auto-resync : 21:08:2023 - 09:43:30 --- .../files/c-blosc2-2.9.3-no-unaligned.patch | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 dev-libs/c-blosc2/files/c-blosc2-2.9.3-no-unaligned.patch (limited to 'dev-libs/c-blosc2/files') diff --git a/dev-libs/c-blosc2/files/c-blosc2-2.9.3-no-unaligned.patch b/dev-libs/c-blosc2/files/c-blosc2-2.9.3-no-unaligned.patch new file mode 100644 index 000000000000..5e6ca9c9ee9a --- /dev/null +++ b/dev-libs/c-blosc2/files/c-blosc2-2.9.3-no-unaligned.patch @@ -0,0 +1,32 @@ +Causes SIGBUS on armv7 (at least in jiji's arm32-on-arm64 chroot) in Pandas test +suite. Unaligned access is UB anyway. +--- a/include/blosc2/blosc2-common.h ++++ b/include/blosc2/blosc2-common.h +@@ -47,27 +47,6 @@ + */ + #if !defined(BLOSC_STRICT_ALIGN) + #define BLOSC_STRICT_ALIGN +-#if defined(__i386__) || defined(__386) || defined (__amd64) /* GNU C, Sun Studio */ +-#undef BLOSC_STRICT_ALIGN +-#elif defined(__i486__) || defined(__i586__) || defined(__i686__) /* GNU C */ +-#undef BLOSC_STRICT_ALIGN +-#elif defined(_M_IX86) || defined(_M_X64) /* Intel, MSVC */ +-#undef BLOSC_STRICT_ALIGN +-#elif defined(__386) +-#undef BLOSC_STRICT_ALIGN +-#elif defined(_X86_) /* MinGW */ +-#undef BLOSC_STRICT_ALIGN +-#elif defined(__I86__) /* Digital Mars */ +-#undef BLOSC_STRICT_ALIGN +-/* Modern ARM systems (like ARM64) should support unaligned access +- quite efficiently. */ +-#elif defined(__ARM_FEATURE_UNALIGNED) /* ARM, GNU C */ +-#undef BLOSC_STRICT_ALIGN +-#elif defined(_ARCH_PPC) || defined(__PPC__) +-/* Modern PowerPC systems (like POWER8) should support unaligned access +- quite efficiently. */ +-#undef BLOSC_STRICT_ALIGN +-#endif + #endif + + #if defined(__SSE2__) -- cgit v1.2.3