From c13dc0f5006ad1f4299255a83a858098e6bfc2d1 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 1 Mar 2022 10:57:01 +0100 Subject: update to 0.11.1 add pkgconfig file, fix its installation using patch from https://github.com/HdrHistogram/HdrHistogram_c/pull/104 --- bumpsoname.patch | 10 +- compat_reports/0.11.2_to_0.11.4/compat_report.html | 831 +++++++++++++++++++++ hdrhistogram.spec | 16 +- libhdr_histogram.xml | 2 +- 4 files changed, 848 insertions(+), 11 deletions(-) create mode 100644 compat_reports/0.11.2_to_0.11.4/compat_report.html diff --git a/bumpsoname.patch b/bumpsoname.patch index 7ecca99..8dba7f0 100644 --- a/bumpsoname.patch +++ b/bumpsoname.patch @@ -1,12 +1,12 @@ -diff -up ./CMakeLists.txt.rpm ./CMakeLists.txt ---- ./CMakeLists.txt.rpm 2020-12-08 15:46:32.605630957 +0100 -+++ ./CMakeLists.txt 2020-12-08 15:51:22.722473979 +0100 -@@ -13,7 +13,7 @@ include(CMakePackageConfigHelpers) +diff -up ./CMakeLists.txt.bump ./CMakeLists.txt +--- ./CMakeLists.txt.bump 2022-03-01 09:35:49.462118228 +0100 ++++ ./CMakeLists.txt 2022-03-01 09:37:01.000864286 +0100 +@@ -17,7 +17,7 @@ include(CMakePackageConfigHelpers) # 3. If any interfaces have been added since the last public release, then increment age. # 4. If any interfaces have been removed since the last public release, then set age to 0. -set(HDR_SOVERSION_CURRENT 6) +set(HDR_SOVERSION_CURRENT 106) set(HDR_SOVERSION_AGE 1) - set(HDR_SOVERSION_REVISION 0) + set(HDR_SOVERSION_REVISION 1) diff --git a/compat_reports/0.11.2_to_0.11.4/compat_report.html b/compat_reports/0.11.2_to_0.11.4/compat_report.html new file mode 100644 index 0000000..e097042 --- /dev/null +++ b/compat_reports/0.11.2_to_0.11.4/compat_report.html @@ -0,0 +1,831 @@ + + + + + + + + + +libhdr_histogram: 0.11.2 to 0.11.4 compatibility report + + + +

API compatibility report for the libhdr_histogram library between 0.11.2 and 0.11.4 versions on x86_64

+ +
+
+ Binary
Compatibility
+ Source
Compatibility
+
+

Test Info


+ + + + + + + +
Library Namelibhdr_histogram
Version #10.11.2
Version #20.11.4
Archx86_64
GCC Version11
SubjectBinary Compatibility
+

Test Results


+ + + + + + +
Total Header Files6
Total Libraries1
Total Symbols / Types81 / 34
Compatibility100%
+

Problem Summary


+ + + + + + + + + +
SeverityCount
Added Symbols-1
Removed SymbolsHigh0
Problems with
Data Types
High0
Medium0
Low2
Problems with
Symbols
High0
Medium0
Low4
Problems with
Constants
Low0
+ +

Added Symbols  1 


+hdr_histogram.h, libhdr_histogram.so.106.1.1
+hdr_value_at_percentiles ( struct hdr_histogram const* h, double const* percentiles, int64_t* values, size_t length )
+
+to the top
+ +

Problems with Data Types, Low Severity  2 


+hdr_histogram.h
+ +[+] struct hdr_histogram  1  +
+ + + +[+] struct hdr_histogram_bucket_config  1  +
+ + +
+to the top
+ +

Problems with Symbols, Low Severity  4 


+hdr_histogram.h, libhdr_histogram.so.106.1.0
+ +[+] hdr_calculate_bucket_config ( int64_t lowest_trackable_value, int64_t highest_trackable_value, int significant_figures, struct hdr_histogram_bucket_config* cfg )  1  +
+ + +[+] hdr_init ( int64_t lowest_trackable_value, int64_t highest_trackable_value, int significant_figures, struct hdr_histogram** result )  1  +
+ + +[+] hdr_record_corrected_value ( struct hdr_histogram* h, int64_t value, int64_t expexcted_interval )  1  +
+ + +[+] hdr_record_corrected_value_atomic ( struct hdr_histogram* h, int64_t value, int64_t expexcted_interval )  1  +
+ +
+to the top
+

Header Files  6 


+
+hdr_histogram.h
+hdr_histogram_log.h
+hdr_interval_recorder.h
+hdr_thread.h
+hdr_time.h
+hdr_writer_reader_phaser.h
+
+
to the top
+

Libraries  1 


+
+libhdr_histogram.so.106.1.0
+
+
to the top
+


+

Test Info


+ + + + + + +
Library Namelibhdr_histogram
Version #10.11.2
Version #20.11.4
Archx86_64
SubjectSource Compatibility
+

Test Results


+ + + + + + +
Total Header Files6
Total Libraries1
Total Symbols / Types81 / 34
Compatibility29.6%
+

Problem Summary


+ + + + + + + + + + +
SeverityCount
Added Symbols-1
Removed SymbolsHigh0
Problems with
Data Types
High2
Medium0
Low0
Problems with
Symbols
High0
Medium0
Low0
Problems with
Constants
Low0
Other Changes
in Symbols
-4
+ +

Added Symbols  1 


+hdr_histogram.h
+hdr_value_at_percentiles ( struct hdr_histogram const* h, double const* percentiles, int64_t* values, size_t length )
+
+to the top
+ +

Problems with Data Types, High Severity  2 


+hdr_histogram.h
+ +[+] struct hdr_histogram  1  +
+ + + +[+] struct hdr_histogram_bucket_config  1  +
+ + +
+to the top
+ +

Other Changes in Symbols  4 


+hdr_histogram.h
+ +[+] hdr_calculate_bucket_config ( int64_t lowest_trackable_value, int64_t highest_trackable_value, int significant_figures, struct hdr_histogram_bucket_config* cfg )  1  +
+ + +[+] hdr_init ( int64_t lowest_trackable_value, int64_t highest_trackable_value, int significant_figures, struct hdr_histogram** result )  1  +
+ + +[+] hdr_record_corrected_value ( struct hdr_histogram* h, int64_t value, int64_t expexcted_interval )  1  +
+ + +[+] hdr_record_corrected_value_atomic ( struct hdr_histogram* h, int64_t value, int64_t expexcted_interval )  1  +
+ +
+to the top
+

Header Files  6 


+
+hdr_histogram.h
+hdr_histogram_log.h
+hdr_interval_recorder.h
+hdr_thread.h
+hdr_time.h
+hdr_writer_reader_phaser.h
+
+
to the top
+

Libraries  1 


+
+libhdr_histogram.so.106.1.0
+
+
to the top
+



+ +
+ + diff --git a/hdrhistogram.spec b/hdrhistogram.spec index 33acf12..1a972e5 100644 --- a/hdrhistogram.spec +++ b/hdrhistogram.spec @@ -1,13 +1,13 @@ # remirepo spec file for HdrHistogram_c # -# Copyright (c) 2016-2020 Remi Collet +# Copyright (c) 2016-2022 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # -%global gh_commit 16a9c93ef9f9e766d9336863da80bdf2e0543bee +%global gh_commit 622e3ac6df14fabe81a5857a4a5c9b68c3d3bf18 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner HdrHistogram %global gh_project HdrHistogram_c @@ -24,7 +24,7 @@ Name: HdrHistogram_c%{oldsoname}php Summary: A High Dynamic Range (HDR) Histogram -Version: 0.11.2 +Version: 0.11.4 Release: 1%{?dist} License: CC0 or BSD @@ -34,10 +34,10 @@ Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit} Patch0: bumpsoname.patch %if 0%{?rhel} == 7 -BuildRequires: cmake3 >= 3.5 +BuildRequires: cmake3 >= 3.12 BuildRequires: devtoolset-6-toolchain %else -BuildRequires: cmake >= 3.5 +BuildRequires: cmake >= 3.12 BuildRequires: gcc BuildRequires: gcc-c++ %endif @@ -99,6 +99,9 @@ This package contains the %{libname} library. %setup -q -n %{gh_project}-%{gh_commit} %patch0 -p1 -b .bump +sed -e 's/CMAKE_INSTALL_DATAROOTDIR/CMAKE_INSTALL_LIBDIR/' -i CMakeLists.txt +sed -e 's/CMAKR_CURRENT_BINARY_DIR/CMAKE_CURRENT_BINARY_DIR/' -i CMakeLists.txt + mkdir docs cp -pr examples docs/examples @@ -172,12 +175,15 @@ fi %doc docs/examples %{_libdir}/%{libname}.so %{_libdir}/cmake/hdr_histogram +%{_libdir}/pkgconfig/hdr_histogram.pc %{_includedir}/hdr %changelog * Thu Dec 10 2020 Remi Collet - 0.11.2-1 - update to 0.11.1 +- add pkgconfig file, fix its installation using patch from + https://github.com/HdrHistogram/HdrHistogram_c/pull/104 * Tue Dec 8 2020 Remi Collet - 0.11.1-2 - bump soname to 106 and rename to HdrHistogram_c6php to allow diff --git a/libhdr_histogram.xml b/libhdr_histogram.xml index 4c654c3..5e247e4 100644 --- a/libhdr_histogram.xml +++ b/libhdr_histogram.xml @@ -9,7 +9,7 @@ -0.11.2 +0.11.4 -- cgit