fix: include upstream patch

should fix libsonata build on aarch64, s390x, ppc64le
This commit is contained in:
Ankur Sinha (Ankur Sinha Gmail) 2022-03-18 09:48:16 +00:00
parent 0df6b6284a
commit 187cc4742c
No known key found for this signature in database
GPG Key ID: F8D8C0BEBAC898BD
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,25 @@
From 27a8f06d58a0bdb5c31a84fd8a653a9433f06082 Mon Sep 17 00:00:00 2001
From: Matthias Wolf <matthias.wolf@epfl.ch>
Date: Thu, 17 Mar 2022 16:48:04 +0100
Subject: [PATCH] bugfix: always refer to the proper signed type for `signed
char`
The previous usage of H5T_NATIVE_CHAR for `signed char` fails on
Fedora/aarch64. Needed for BlueBrain/libsonata#184.
---
include/highfive/bits/H5DataType_misc.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/highfive/bits/H5DataType_misc.hpp b/include/highfive/bits/H5DataType_misc.hpp
index 9e012f86..babc0145 100644
--- a/include/highfive/bits/H5DataType_misc.hpp
+++ b/include/highfive/bits/H5DataType_misc.hpp
@@ -74,7 +74,7 @@ inline AtomicType<char>::AtomicType() {
template <>
inline AtomicType<signed char>::AtomicType() {
- _hid = H5Tcopy(H5T_NATIVE_CHAR);
+ _hid = H5Tcopy(H5T_NATIVE_SCHAR);
}
template <>

View File

@ -52,6 +52,7 @@ Source0: https://github.com/BlueBrain/HighFive/archive/v%{version}/%{name
# work around this by disabling OpenCV on armv7hl until a patch is available.
Patch0: 0001-fix-32bit-arches-use-explicit-casts.patch
Patch1: 0001-Fix-compiling-invalid-reinterpret_cast-on-32-bit.patch
Patch2: 27a8f06d58a0bdb5c31a84fd8a653a9433f06082.patch
BuildRequires: cmake
BuildRequires: gcc-c++