[packages/crc32c] - skip SSE4.2 test on not capable builders; release 2
qboosh
qboosh at pld-linux.org
Thu Jun 30 16:22:27 CEST 2022
commit 57e1a30bf0a7ad8fd8eaccd5dd00578646fce710
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Jun 30 16:24:01 2022 +0200
- skip SSE4.2 test on not capable builders; release 2
crc32c.spec | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/crc32c.spec b/crc32c.spec
index 8c751a3..071a47a 100644
--- a/crc32c.spec
+++ b/crc32c.spec
@@ -6,7 +6,7 @@ Summary: CRC32C library
Summary(pl.UTF-8): Biblioteka cyklicznego kodu nadmiarowego CRC32C
Name: crc32c
Version: 1.1.2
-Release: 1
+Release: 2
License: BSD
Group: Libraries
#Source0Download: https://github.com/google/crc32c/tags
@@ -16,6 +16,7 @@ Patch0: %{name}-system-libs.patch
URL: https://github.com/google/crc32c
BuildRequires: cmake >= 3.1
BuildRequires: libstdc++-devel >= 6:4.7
+BuildRequires: sed >= 4.0
%if %{with tests}
# with cmake support
BuildRequires: glog-devel >= 0.6
@@ -62,6 +63,11 @@ Pliki nagłówkowe biblioteki crc32c.
%setup -q
%patch0 -p1
+# crc32c_sse42_unittest is missing runtime detection of CPU capabilities
+if ! grep -q '^flags .* sse4_2' /proc/cpuinfo ; then
+ %{__sed} -i -e 's/if HAVE_SSE42 /if 0 /' src/crc32c_sse42_unittest.cc
+fi
+
%build
install -d build
cd build
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/crc32c.git/commitdiff/57e1a30bf0a7ad8fd8eaccd5dd00578646fce710
More information about the pld-cvs-commit
mailing list