public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/google-benchmark] rawhide: Update to 1.10.0 (close RHBZ#2552172)
Date: Wed, 21 Oct 2026 19:31:01 GMT	[thread overview]
Message-ID: <179261106183.1.3879394618562256788.rpms-google-benchmark-065547cf6ed2@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/google-benchmark
            Branch : rawhide
            Commit : 065547cf6ed22c6fbddecefe128c44082a3c8d55
            Author : Benjamin A. Beasley <code@musicinmybrain.net>
            Date   : 2026-10-19T12:47:53+01:00
            Stats  : +35/-91 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/google-benchmark/c/065547cf6ed22c6fbddecefe128c44082a3c8d55?branch=rawhide

            Log:
            Update to 1.10.0 (close RHBZ#2552172)

- Patch to use full version as SONAME version due to an ABI break

---
diff --git a/0001-In-PerfCountersTest.MultiThreaded-serialize-worker-t.patch b/0001-In-PerfCountersTest.MultiThreaded-serialize-worker-t.patch
deleted file mode 100644
index 5d88c2d..0000000
--- a/0001-In-PerfCountersTest.MultiThreaded-serialize-worker-t.patch
+++ /dev/null
@@ -1,52 +0,0 @@
-From d238ec4965eef94896b8984a9764d5e195793864 Mon Sep 17 00:00:00 2001
-From: "Benjamin A. Beasley" <code@musicinmybrain.net>
-Date: Mon, 20 Apr 2026 09:51:10 +0100
-Subject: [PATCH] In PerfCountersTest.MultiThreaded, serialize worker threads
-
----
- test/perf_counters_gtest.cc | 14 +++++++++++++-
- 1 file changed, 13 insertions(+), 1 deletion(-)
-
-diff --git a/test/perf_counters_gtest.cc b/test/perf_counters_gtest.cc
-index 5de262f..bd288ab 100644
---- a/test/perf_counters_gtest.cc
-+++ b/test/perf_counters_gtest.cc
-@@ -1,3 +1,4 @@
-+#include <mutex>
- #include <random>
- #include <thread>
- 
-@@ -217,7 +218,16 @@ void measure(size_t threadcount, PerfCounterValues* before,
-   BM_CHECK_NE(before, nullptr);
-   BM_CHECK_NE(after, nullptr);
-   std::vector<std::thread> threads(threadcount);
--  auto work = [&]() { BM_CHECK(do_work() > 1000); };
-+  // Because we do not care whether the threads execute concurrently, but we do
-+  // care that they do all of their work between the SnapshotAndCombine calls,
-+  // we serialize them with a mutex. See
-+  // https://github.com/google/benchmark/issues/2173.
-+  std::mutex mutex;
-+  auto work = [&mutex]() {
-+    mutex.lock();
-+    BM_CHECK(do_work() > 1000);
-+    mutex.unlock();
-+  };
- 
-   // We need to first set up the counters, then start the threads, so the
-   // threads would inherit the counters. But later, we need to first destroy
-@@ -226,10 +236,12 @@ void measure(size_t threadcount, PerfCounterValues* before,
-   // threadpool.
-   auto counters =
-       PerfCounters::Create({kGenericPerfEvent1, kGenericPerfEvent2});
-+  mutex.lock();
-   for (auto& t : threads) {
-     t = std::thread(work);
-   }
-   counters.Snapshot(before);
-+  mutex.unlock();
-   for (auto& t : threads) {
-     t.join();
-   }
--- 
-2.53.0
-

diff --git a/2342.patch b/2342.patch
new file mode 100644
index 0000000..2471471
--- /dev/null
+++ b/2342.patch
@@ -0,0 +1,27 @@
+From 1d91d9cd2f2509ec3d2fd800259046979f5b63e5 Mon Sep 17 00:00:00 2001
+From: "Benjamin A. Beasley" <code@musicinmybrain.net>
+Date: Mon, 19 Oct 2026 12:32:54 +0100
+Subject: [PATCH] Use the full version as the SOVERSION
+
+This assumes that ABI is likely to be broken any time, including in patch
+releases.
+
+If this is a good assumption, then this change fixes
+https://github.com/google/benchmark/issues/2340.
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 698e1ff50..f313b5585 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -126,7 +126,7 @@ message(STATUS "Google Benchmark version: ${VERSION}, normalized to ${NORMALIZED
+ 
+ # The version of the libraries
+ set(GENERIC_LIB_VERSION ${NORMALIZED_VERSION})
+-string(SUBSTRING ${NORMALIZED_VERSION} 0 1 GENERIC_LIB_SOVERSION)
++set(GENERIC_LIB_SOVERSION ${NORMALIZED_VERSION})
+ 
+ # Import our CMake modules
+ include(AddCXXCompilerFlag)

diff --git a/google-benchmark.spec b/google-benchmark.spec
index 40e1cad..ad9a0a2 100644
--- a/google-benchmark.spec
+++ b/google-benchmark.spec
@@ -3,7 +3,7 @@
 %bcond libpfm 1
 
 Name:           google-benchmark
-Version:        1.9.5
+Version:        1.10.0
 %global so_version 1
 Release:        %autorelease
 
@@ -12,14 +12,14 @@ Summary:        A microbenchmark support library
 URL:            https://github.com/google/benchmark
 Source:         %{url}/archive/v%{version}/benchmark-%{version}.tar.gz
 
-# In PerfCountersTest.MultiThreaded, serialize worker threads
-# https://github.com/google/benchmark/pull/2175
+# Use the full version as the SOVERSION
+# https://github.com/google/benchmark/pull/2342
 #
-# Fixes:
+# A candidate fix for:
 #
-# [BUG] Flaky failure of PerfCountersTest.MultiThreaded
-# https://github.com/google/benchmark/issues/2173
-Patch:          0001-In-PerfCountersTest.MultiThreaded-serialize-worker-t.patch
+# [BUG] ABI break in 1.10.0 without SONAME version bump
+# https://github.com/google/benchmark/issues/2340
+Patch:          %{url}/pull/2342.patch
 
 BuildSystem:    cmake
 
@@ -38,37 +38,6 @@ BuildOption(conf): -DBENCHMARK_USE_BUNDLED_GTEST:BOOL=OFF
 BuildOption(conf): -DBENCHMARK_ENABLE_LIBPFM:BOOL=%{with libfpm}
 BuildOption(conf): -DBENCHMARK_ENABLE_GTEST_TESTS:BOOL=%{with ctest}
 BuildOption(conf): -DBENCHMARK_ENABLE_TESTING:BOOL=%{with ctest}
-%ifarch s390x
-# [BUG] Multiple PerfCountersTest failures with counter.num_counters() zero on
-# some s390x systems
-# https://github.com/google/benchmark/issues/2174
-#
-# Five of the nine tests in perf_counters_gtest fail with:
-#
-#   Expected equality of these values:
-#     counter.num_counters()
-#       Which is: 0
-#     1
-#
-# Tests in perf_counters_test also fail for similar reasons:
-#
-#   […]/test/output_test.h:146: GetAs: Check `sv != nullptr && !sv->empty()'
-#   failed.
-#
-# It’s likely that these are a “correct failures,” in that the library is
-# compiled with libpfm support (so performance counters are supported in
-# general) but even basic performance counters are not necessarily supported on
-# more recent s390x hardware versions (i.e., probably z14 and later).
-#
-# We don’t bother attempting to run the four tests that do succeed in
-# perf_counters_gtest; it’s much more straightforward to just skip these two
-# executables at the ctest level entirely, and little is lost by doing so.
-#
-# This is fixed upstream by https://github.com/google/benchmark/pull/2204, but
-# it is not trivial to backport, so we keep this workaround until the next
-# upstream release.
-BuildOption(check): --exclude-regex '^perf_counters_g?test$'
-%endif
 
 BuildRequires:  gcc
 BuildRequires:  gcc-c++

diff --git a/sources b/sources
index 982ae83..b416268 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (benchmark-1.9.5.tar.gz) = f207a63868e0c52f31a66ff9fd0ee75183ce3aaaa0946b00a49b77836507363bac8574feef8d9da82810a3167847303d6edf939e74802ad17e5a615bbf61e372
+SHA512 (benchmark-1.10.0.tar.gz) = a75672db9ae72a54bb5436c3c16b2eb186eec45ef6b8b5bd0ffbc62a150bd7b8aaeeb937239d166492306b3f3c36a244be5a73253d697d24cc50961def500e0f

                 reply	other threads:[~2026-10-21 19:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179261106183.1.3879394618562256788.rpms-google-benchmark-065547cf6ed2@fedoraproject.org \
    --to=code@musicinmybrain.net \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox