public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/cachelib] epel10.3: Update to 17^2023.07.03.00
@ 2026-10-08  9:23 Michel Alexandre Salim
  0 siblings, 0 replies; only message in thread
From: Michel Alexandre Salim @ 2026-10-08  9:23 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/cachelib
            Branch : epel10.3
            Commit : cddbcc1224e6d0b45ab0af641e894cdbadf90ca9
            Author : Michel Alexandre Salim <salimma@fedoraproject.org>
            Date   : 2023-07-06T22:11:06-05:00
            Stats  : +53/-5 in 5 file(s)
            URL    : https://src.fedoraproject.org/rpms/cachelib/c/cddbcc1224e6d0b45ab0af641e894cdbadf90ca9?branch=epel10.3

            Log:
            Update to 17^2023.07.03.00

- Properly bump major version
- Patch to support fmt 10 (fixes: rhbz#2219451)
- Use SPDX license identifier

Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>

---
diff --git a/.gitignore b/.gitignore
index d17a447..4ab2e52 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 /CacheLib-03dcb9bbddb977b5ec6e9ba6c5b1a53cac521f85.tar.gz
 /CacheLib-bd22b0eb79f7e2326f77a22c278c48e454882291.tar.gz
 /cachelib-2023.04.24.00.tar.gz
+/cachelib-2023.07.03.00.tar.gz

diff --git a/cachelib-fix_for_atomic_formatting.patch b/cachelib-fix_for_atomic_formatting.patch
new file mode 100644
index 0000000..6efb3b7
--- /dev/null
+++ b/cachelib-fix_for_atomic_formatting.patch
@@ -0,0 +1,29 @@
+From 39f1f92f6f039e7b1a161b5302fd9b8952fc97f8 Mon Sep 17 00:00:00 2001
+From: Dan Melnic <dmm@meta.com>
+Date: Thu, 6 Jul 2023 17:42:20 -0700
+Subject: [PATCH] Fix for atomic formatting
+
+Summary: static assertion failed: Cannot format an argument
+
+Reviewed By: vitaut
+
+Differential Revision: D47277406
+
+fbshipit-source-id: 4e784997d72860a9447cc069c72f0e4bf92af7e0
+---
+ cachelib/navy/admission_policy/DynamicRandomAP.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/cachelib/navy/admission_policy/DynamicRandomAP.cpp b/cachelib/navy/admission_policy/DynamicRandomAP.cpp
+index 3a8a1aa09..d8238415b 100644
+--- a/cachelib/navy/admission_policy/DynamicRandomAP.cpp
++++ b/cachelib/navy/admission_policy/DynamicRandomAP.cpp
+@@ -189,7 +189,7 @@ void DynamicRandomAP::updateThrottleParamsLocked(std::chrono::seconds curTime) {
+     XLOGF(INFO,
+           "max write rate {} will be used because target current write rate {} "
+           "exceeds it.",
+-          maxRate_, curTargetRate);
++          maxRate_.load(), curTargetRate);
+     curTargetRate = maxRate_;
+   }
+   writeStats_.curTargetRate = curTargetRate;

diff --git a/cachelib-fix_for_atomic_formatting_part2.patch b/cachelib-fix_for_atomic_formatting_part2.patch
new file mode 100644
index 0000000..a5b029c
--- /dev/null
+++ b/cachelib-fix_for_atomic_formatting_part2.patch
@@ -0,0 +1,16 @@
+--- a/cachelib/cachebench/cache/ItemRecords.h
++++ b/cachelib/cachebench/cache/ItemRecords.h
+@@ -102,11 +102,11 @@ class ItemRecords {
+     }
+     if (record.destructCount != 0) {
+       XLOGF(ERR, "unexpected destructCount {} for item {}, context {}|{}",
+-            record.destructCount, item.getKey(), data.context, record.context);
++            record.destructCount, item.getKey().toString(), data.context, record.context);
+     }
+     if (record.version != ptr->getVersion()) {
+       XLOGF(ERR, "unexpected version {}|{} for item {}", record.version,
+-            ptr->getVersion(), item.getKey());
++            ptr->getVersion(), item.getKey().toString());
+     }
+     ++record.destructCount;
+ 

diff --git a/cachelib.spec b/cachelib.spec
index 8c495f0..dac82e6 100644
--- a/cachelib.spec
+++ b/cachelib.spec
@@ -9,7 +9,7 @@
 %bcond_with check
 
 %global forgeurl https://github.com/facebook/CacheLib
-%global tag 2023.04.24.00
+%global tag 2023.07.03.00
 %global date %(echo %{tag} | sed -e 's|.00$||' | sed -e 's|\\.||g')
 # disable forge macro snapinfo generation
 # https://pagure.io/fedora-infra/rpmautospec/issue/240
@@ -17,17 +17,19 @@
 %forgemeta
 
 # see cachelib/allocator/CacheVersion.h's kCachelibVersion
-%global major_ver 16
+%global major_ver 17
 
 Name:           cachelib
 Version:        %{major_ver}^%{date}
 Release:        %autorelease
 Summary:        Pluggable caching engine for scale high performance cache services
 
-License:        ASL 2.0
+License:        Apache-2.0
 URL:            %forgeurl
 Source0:        %{url}/archive/v%{tag}/%{name}-%{tag}.tar.gz
-Patch0:         %{name}-add_missing_includes.diff
+# needed for compiling with fmt 10
+Patch0:         %{url}/commit/39f1f92f6f039e7b1a161b5302fd9b8952fc97f8.patch#/%{name}-fix_for_atomic_formatting.patch
+Patch1:         %{name}-fix_for_atomic_formatting_part2.patch
 # needed on EL8; its gtest does not come with cmake files
 Patch100:       %{name}-find-gtest.patch
 # Workaround for gcc issue (still needed on epel9 x86_64)

diff --git a/sources b/sources
index 39916fa..18f7fd3 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (cachelib-2023.04.24.00.tar.gz) = 6cc979da911cad5beb80aec4f340b3ef42f2ba6cfa49855cea9c2367a4b1af92874822cf369c1e52485bb34a5c6263159c331ba962319ec7769f7645a8d0112d
+SHA512 (cachelib-2023.07.03.00.tar.gz) = aa5ab56e36bbf7197eeb8b21dcb7c0abe6947e2e37d0665a1ead0492b01dd71c6b4ab2c7e63637b49ac3b077d0507799176d4a525efd4513e1f6cca2332d919f

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-08  9:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-08  9:23 [rpms/cachelib] epel10.3: Update to 17^2023.07.03.00 Michel Alexandre Salim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox