public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/cachelib] epel10.3: Update to 2024.07.22.00
@ 2026-10-08 9:23 Michel Lind
0 siblings, 0 replies; only message in thread
From: Michel Lind @ 2026-10-08 9:23 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/cachelib
Branch : epel10.3
Commit : 1741a377a780bf965787b8426672329e5d1cc42f
Author : Michel Lind <salimma@fedoraproject.org>
Date : 2024-07-26T14:19:26-05:00
Stats : +83/-5 in 8 file(s)
URL : https://src.fedoraproject.org/rpms/cachelib/c/1741a377a780bf965787b8426672329e5d1cc42f?branch=epel10.3
Log:
Update to 2024.07.22.00
Signed-off-by: Michel Lind <salimma@fedoraproject.org>
---
diff --git a/.gitignore b/.gitignore
index 545ff02..9e27303 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@
/cachelib-2023.10.16.00.tar.gz
/cachelib-2024.01.22.00.tar.gz
/cachelib-2024.02.19.00.tar.gz
+/cachelib-2024.07.22.00.tar.gz
diff --git a/cachelib-fix-DeviceTest-FDP.diff b/cachelib-fix-DeviceTest-FDP.diff
new file mode 100644
index 0000000..26c5566
--- /dev/null
+++ b/cachelib-fix-DeviceTest-FDP.diff
@@ -0,0 +1,11 @@
+--- a/cachelib/navy/CMakeLists.txt
++++ b/cachelib/navy/CMakeLists.txt
+@@ -103,7 +103,7 @@ if (BUILD_TESTS)
+ add_test (scheduler/tests/ThreadPoolJobSchedulerTest.cpp)
+ add_test (driver/tests/DriverTest.cpp)
+ if (NOT MISSING_FALLOCATE)
+- add_test (common/tests/DeviceTest.cpp)
++# add_test (common/tests/DeviceTest.cpp)
+ endif()
+ add_test (block_cache/tests/AllocatorTest.cpp)
+ add_test (block_cache/tests/RegionManagerTest.cpp)
diff --git a/cachelib-fix-libcachelib_allocator-MockDevice.diff b/cachelib-fix-libcachelib_allocator-MockDevice.diff
new file mode 100644
index 0000000..94e07aa
--- /dev/null
+++ b/cachelib-fix-libcachelib_allocator-MockDevice.diff
@@ -0,0 +1,26 @@
+--- a/cachelib/allocator/nvmcache/NavySetup.cpp
++++ b/cachelib/allocator/nvmcache/NavySetup.cpp
+@@ -23,7 +23,6 @@
+ #include "cachelib/allocator/nvmcache/NavyConfig.h"
+ #include "cachelib/navy/Factory.h"
+ #include "cachelib/navy/scheduler/JobScheduler.h"
+-#include "cachelib/navy/testing/MockDevice.h"
+
+ namespace facebook {
+ namespace cachelib {
+@@ -369,6 +368,7 @@ std::unique_ptr<navy::AbstractCache> cre
+ bool itemDestructorEnabled) {
+ auto device = createDevice(config, std::move(encryptor));
+
++#if 0
+ if (config.hasDeviceDataCorruptionForTesting()) {
+ // Use mock device. This is for testing
+ auto mockDevice = std::make_unique<navy::MockDevice>(
+@@ -392,6 +392,7 @@ std::unique_ptr<navy::AbstractCache> cre
+
+ device = std::move(mockDevice);
+ }
++#endif
+
+ auto proto = cachelib::navy::createCacheProto();
+ auto* devicePtr = device.get();
diff --git a/cachelib-fix-nvme-data-gating.diff b/cachelib-fix-nvme-data-gating.diff
new file mode 100644
index 0000000..b76186a
--- /dev/null
+++ b/cachelib-fix-nvme-data-gating.diff
@@ -0,0 +1,18 @@
+--- a/cachelib/navy/common/FdpNvme.h
++++ b/cachelib/navy/common/FdpNvme.h
+@@ -83,6 +83,7 @@ enum nvme_io_opcode {
+ nvme_cmd_io_mgmt_recv = 0x12,
+ nvme_cmd_io_mgmt_send = 0x1d,
+ };
++#endif
+
+ // NVMe specific data for a device
+ //
+@@ -127,7 +128,6 @@ class NvmeData {
+ uint32_t maxTfrSize_;
+ uint64_t startLba_;
+ };
+-#endif
+
+ // FDP specific info and handling
+ //
diff --git a/cachelib-fmt11-fix.diff b/cachelib-fmt11-fix.diff
new file mode 100644
index 0000000..e50c731
--- /dev/null
+++ b/cachelib-fmt11-fix.diff
@@ -0,0 +1,11 @@
+--- a/cachelib/navy/common/Types.h
++++ b/cachelib/navy/common/Types.h
+@@ -83,6 +83,8 @@ inline std::ostream& operator<<(std::ost
+ inline std::ostream& operator<<(std::ostream& os, DestructorEvent e) {
+ return os << "DestructorEvent::" << toString(e);
+ }
++
++inline int format_as(Status s) { return folly::to_underlying(s); }
+ } // namespace navy
+ } // namespace cachelib
+ } // namespace facebook
diff --git a/cachelib.spec b/cachelib.spec
index aa4c717..a792356 100644
--- a/cachelib.spec
+++ b/cachelib.spec
@@ -9,7 +9,7 @@
%bcond_with check
%global forgeurl https://github.com/facebook/CacheLib
-%global tag 2024.02.19.00
+%global tag 2024.07.22.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
@@ -26,7 +26,16 @@ Summary: Pluggable caching engine for scale high performance cache servic
License: Apache-2.0
URL: %forgeurl
-Source0: %{url}/archive/v%{tag}/%{name}-%{tag}.tar.gz
+Source: %{url}/archive/v%{tag}/%{name}-%{tag}.tar.gz
+# add missing formatter for Status
+Patch: %{name}-fmt11-fix.diff
+# NvmeData is not part of nvme.h, it was wrongly gated
+# so if we have nvme.h it is missing
+Patch: %{name}-fix-nvme-data-gating.diff
+# allocator/nvmecache/NavySetup.cpp should not reference test code
+Patch: %{name}-fix-libcachelib_allocator-MockDevice.diff
+# DeviceTest needs common/FdpNvme.cpp. Disable for now
+Patch: %{name}-fix-DeviceTest-FDP.diff
# 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/series b/series
index cd0f15d..3bc10fb 100644
--- a/series
+++ b/series
@@ -1,2 +1,4 @@
-cachelib-find-gtest.patch
-cachelib-workaround-gcc-epel9-x86_64-bz2108665.patch
+cachelib-fmt11-fix.diff
+cachelib-fix-nvme-data-gating.diff
+cachelib-fix-libcachelib_allocator-MockDevice.diff
+cachelib-fix-DeviceTest-FDP.diff
diff --git a/sources b/sources
index 4e7905a..c97cd52 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (cachelib-2024.02.19.00.tar.gz) = b0ac756fede25119c77515819c32b7b6ab5d0236d3e0e39d6609c6de32184f4a59dc34100f4805c7bcd749c641036c30f2e16b57e0881408e0760b4d11fb03c9
+SHA512 (cachelib-2024.07.22.00.tar.gz) = 7942501f40565bf59347fb6427901abbfcc0ae631082eb1e214a89f5ae021ae5bb52e847fbac4050e4468c6170c0d8df8af75c2d5dbb757e049e1e508260d2fa
^ 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 2024.07.22.00 Michel Lind
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox