summaryrefslogtreecommitdiffstats
path: root/academic
diff options
context:
space:
mode:
author Andrew Clemons2022-05-16 06:24:22 +0200
committer Willy Sudiarto Raharjo2022-05-21 03:25:04 +0200
commite4f4264aefbdffbfcf87344dbd80468f486fdfc3 (patch)
tree091f9b3c4b534f6907b63530be253d68c3c473b1 /academic
parent31f399dbcb7fd2fb3450c4dcbf86110f61baac59 (diff)
downloadslackbuilds-e4f4264aefbdffbfcf87344dbd80468f486fdfc3.tar.gz
academic/xsimd: Fix 32bit build.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic')
-rw-r--r--academic/xsimd/6f6b2fa82b8a0cf24ac50899a6d53cd9fd329d2b.patch48
-rw-r--r--academic/xsimd/xsimd.SlackBuild2
2 files changed, 50 insertions, 0 deletions
diff --git a/academic/xsimd/6f6b2fa82b8a0cf24ac50899a6d53cd9fd329d2b.patch b/academic/xsimd/6f6b2fa82b8a0cf24ac50899a6d53cd9fd329d2b.patch
new file mode 100644
index 0000000000..6e09ea5bf5
--- /dev/null
+++ b/academic/xsimd/6f6b2fa82b8a0cf24ac50899a6d53cd9fd329d2b.patch
@@ -0,0 +1,48 @@
+From 6f6b2fa82b8a0cf24ac50899a6d53cd9fd329d2b Mon Sep 17 00:00:00 2001
+From: serge-sans-paille <serge.guelton@telecom-bretagne.eu>
+Date: Fri, 13 May 2022 11:34:53 +0200
+Subject: [PATCH] Do not run tests on unsupported architectures
+
+---
+ test/test_batch_manip.cpp | 5 +++++
+ test/test_sum.hpp | 3 +++
+ 2 files changed, 8 insertions(+)
+
+diff --git a/test/test_batch_manip.cpp b/test/test_batch_manip.cpp
+index 45c8939f8..b8ca978d3 100644
+--- a/test/test_batch_manip.cpp
++++ b/test/test_batch_manip.cpp
+@@ -9,6 +9,9 @@
+ * The full license is in the file LICENSE, distributed with this software. *
+ ****************************************************************************/
+
++#include "xsimd/xsimd.hpp"
++#ifndef XSIMD_NO_SUPPORTED_ARCHITECTURE
++
+ #include "test_utils.hpp"
+
+ namespace xsimd
+@@ -212,3 +215,5 @@ TYPED_TEST(swizzle_test, swizzle_dup)
+ {
+ this->swizzle_dup();
+ }
++
++#endif
+diff --git a/test/test_sum.hpp b/test/test_sum.hpp
+index 89af1a236..e5edeaf0f 100644
+--- a/test/test_sum.hpp
++++ b/test/test_sum.hpp
+@@ -1,6 +1,7 @@
+ #ifndef XSIMD_TEST_SUM_HPP
+ #define XSIMD_TEST_SUM_HPP
+ #include "xsimd/xsimd.hpp"
++#ifndef XSIMD_NO_SUPPORTED_ARCHITECTURE
+
+ struct sum
+ {
+@@ -29,3 +30,5 @@ extern template float sum::operator()(xsimd::avx, float const*, unsigned);
+ #endif
+
+ #endif
++
++#endif
diff --git a/academic/xsimd/xsimd.SlackBuild b/academic/xsimd/xsimd.SlackBuild
index a88f321c44..5938fdb195 100644
--- a/academic/xsimd/xsimd.SlackBuild
+++ b/academic/xsimd/xsimd.SlackBuild
@@ -71,6 +71,8 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
+# https://github.com/xtensor-stack/xsimd/pull/742
+patch -p1 -i $CWD/6f6b2fa82b8a0cf24ac50899a6d53cd9fd329d2b.patch
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \