forked from pool/xxhash
Accepting request 904411 from home:oertel:branches:science
- add patch xxhash-avoid-armv6-unaligned-access.patch do not expect unaligned accesses to work on armv6, it breaks in our build setup using aarch64 kernels OBS-URL: https://build.opensuse.org/request/show/904411 OBS-URL: https://build.opensuse.org/package/show/science/xxhash?expand=0&rev=14
This commit is contained in:
parent
08df5df2f7
commit
a044c2b606
11
xxhash-avoid-armv6-unaligned-access.patch
Normal file
11
xxhash-avoid-armv6-unaligned-access.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- xxHash-0.8.0/xxhash.h 2021/07/06 15:14:04 1.1
|
||||
+++ xxHash-0.8.0/xxhash.h 2021/07/06 15:14:36
|
||||
@@ -807,7 +807,7 @@
|
||||
*/
|
||||
#ifndef XXH_FORCE_MEMORY_ACCESS /* can be defined externally, on command line for example */
|
||||
# if !defined(__clang__) && defined(__GNUC__) && defined(__ARM_FEATURE_UNALIGNED) && defined(__ARM_ARCH) && (__ARM_ARCH == 6)
|
||||
-# define XXH_FORCE_MEMORY_ACCESS 2
|
||||
+# define XXH_FORCE_MEMORY_ACCESS 1
|
||||
# elif !defined(__clang__) && ((defined(__INTEL_COMPILER) && !defined(_WIN32)) || \
|
||||
(defined(__GNUC__) && (defined(__ARM_ARCH) && __ARM_ARCH >= 7)))
|
||||
# define XXH_FORCE_MEMORY_ACCESS 1
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 6 17:15:34 CEST 2021 - ro@suse.de
|
||||
|
||||
- add patch xxhash-avoid-armv6-unaligned-access.patch
|
||||
do not expect unaligned accesses to work on armv6, it breaks
|
||||
in our build setup using aarch64 kernels
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 3 05:43:31 UTC 2020 - Ismail Dönmez <idonmez@suse.com>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package xxhash
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -20,10 +20,11 @@ Name: xxhash
|
||||
Version: 0.8.0
|
||||
Release: 0
|
||||
Summary: Non-cryptographic hash algorithm
|
||||
License: GPL-2.0-only AND BSD-2-Clause
|
||||
License: BSD-2-Clause AND GPL-2.0-only
|
||||
Group: Productivity/Security
|
||||
URL: https://github.com/Cyan4973/xxHash
|
||||
Source0: https://github.com/Cyan4973/xxHash/archive/v%{version}.tar.gz#/xxHash-%{version}.tar.gz
|
||||
Patch0: xxhash-avoid-armv6-unaligned-access.patch
|
||||
BuildRequires: c++_compiler
|
||||
BuildRequires: pkgconfig
|
||||
|
||||
@ -56,6 +57,7 @@ functions. Hashes are identical on all platforms.
|
||||
|
||||
%prep
|
||||
%setup -q -n xxHash-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags} prefix=%{_prefix} libdir=%{_libdir}
|
||||
|
Loading…
Reference in New Issue
Block a user