[packages/HdrHistogram_c] - updated to 0.11.10 (+x86 fix)
qboosh
qboosh at pld-linux.org
Sat Jul 4 21:31:09 CEST 2026
commit e5f2853691c961df28788f87577f5362fd21dde4
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Jul 4 21:31:06 2026 +0200
- updated to 0.11.10 (+x86 fix)
HdrHistogram_c-avx2.patch | 12 ++++++++++++
HdrHistogram_c.spec | 8 +++++---
2 files changed, 17 insertions(+), 3 deletions(-)
---
diff --git a/HdrHistogram_c.spec b/HdrHistogram_c.spec
index dcb5ec6..b99bc02 100644
--- a/HdrHistogram_c.spec
+++ b/HdrHistogram_c.spec
@@ -5,13 +5,14 @@
Summary: C port of High Dynamic Range (HDR) histogram
Summary(pl.UTF-8): Port C biblioteki histogramów HDR (High Dynamic Range)
Name: HdrHistogram_c
-Version: 0.11.9
+Version: 0.11.10
Release: 1
License: Public Domain/CC0 v1.0 or BSD
Group: Libraries
#Source0Download: https://github.com/HdrHistogram/HdrHistogram_c/releases
Source0: https://github.com/HdrHistogram/HdrHistogram_c/archive/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 38dbfeb8be486839abb3c159b7e349c5
+# Source0-md5: cbead3109b56d662b50b1cf2c50bb7b7
+Patch0: %{name}-avx2.patch
URL: https://github.com/HdrHistogram/HdrHistogram_c
BuildRequires: cmake >= 3.12
BuildRequires: libstdc++-devel >= 6:4.7
@@ -51,6 +52,7 @@ Statyczna biblioteka HdrHistogram.
%prep
%setup -q
+%patch -P0 -p1
%build
install -d build
@@ -79,7 +81,7 @@ rm -rf $RPM_BUILD_ROOT
%doc LICENSE.txt README.md
%attr(755,root,root) %{_bindir}/hdr_decoder
%attr(755,root,root) %{_bindir}/hiccup
-%attr(755,root,root) %{_libdir}/libhdr_histogram.so.*.*.*
+%{_libdir}/libhdr_histogram.so.*.*.*
%ghost %{_libdir}/libhdr_histogram.so.6
%files devel
diff --git a/HdrHistogram_c-avx2.patch b/HdrHistogram_c-avx2.patch
new file mode 100644
index 0000000..a36e300
--- /dev/null
+++ b/HdrHistogram_c-avx2.patch
@@ -0,0 +1,12 @@
+AVX2 code uses 64-bit operation (_mm_extract_epi64)
+--- HdrHistogram_c-0.11.10/src/hdr_histogram.c.orig 2026-07-04 21:29:01.042257118 +0200
++++ HdrHistogram_c-0.11.10/src/hdr_histogram.c 2026-07-04 21:29:20.172153483 +0200
+@@ -36,7 +36,7 @@
+
+ /* Runtime-dispatched AVX2 path: keep the rest of this TU at the project's
+ baseline ISA so the shipped binary does not silently require AVX2. */
+-#if (defined(__x86_64__) || defined(_M_X64) || defined(__i386__) || defined(_M_IX86)) \
++#if (defined(__x86_64__) || defined(_M_X64)) \
+ && (defined(__GNUC__) || defined(__clang__)) && !defined(__INTEL_COMPILER)
+ # define HDR_HAS_AVX2_DISPATCH 1
+ # include <immintrin.h>
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/HdrHistogram_c.git/commitdiff/e5f2853691c961df28788f87577f5362fd21dde4
More information about the pld-cvs-commit
mailing list