public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michel Alexandre Salim <salimma@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/cachelib] epel10.3: Update to 2023.04.24.00
Date: Thu, 08 Oct 2026 09:23:14 GMT [thread overview]
Message-ID: <179145139461.1.5632071335501112426.rpms-cachelib-955685469c70@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/cachelib
Branch : epel10.3
Commit : 955685469c70ed62e941719f1fef90fe3ee669cb
Author : Michel Alexandre Salim <salimma@fedoraproject.org>
Date : 2023-04-25T14:30:53-05:00
Stats : +21/-113 in 6 file(s)
URL : https://src.fedoraproject.org/rpms/cachelib/c/955685469c70ed62e941719f1fef90fe3ee669cb?branch=epel10.3
Log:
Update to 2023.04.24.00
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
---
diff --git a/.gitignore b/.gitignore
index efd78cc..d17a447 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/CacheLib-03dcb9bbddb977b5ec6e9ba6c5b1a53cac521f85.tar.gz
/CacheLib-bd22b0eb79f7e2326f77a22c278c48e454882291.tar.gz
+/cachelib-2023.04.24.00.tar.gz
diff --git a/cachelib-add_missing_includes.diff b/cachelib-add_missing_includes.diff
new file mode 100644
index 0000000..5849cb3
--- /dev/null
+++ b/cachelib-add_missing_includes.diff
@@ -0,0 +1,10 @@
+--- a/cachelib/cachebench/consistency/ShortThreadId.cpp
++++ b/cachelib/cachebench/consistency/ShortThreadId.cpp
+@@ -19,6 +19,7 @@
+ #include <limits>
+ #include <mutex>
+ #include <shared_mutex>
++#include <stdexcept>
+
+ namespace facebook {
+ namespace cachelib {
diff --git a/cachelib-avoid-bind-packed-buffer.patch b/cachelib-avoid-bind-packed-buffer.patch
deleted file mode 100644
index afd3dd4..0000000
--- a/cachelib-avoid-bind-packed-buffer.patch
+++ /dev/null
@@ -1,39 +0,0 @@
-From 2114d3fe8b60992e4b98c2e4e07761649aa47d89 Mon Sep 17 00:00:00 2001
-From: Jimmy Lu <beyondsora@fb.com>
-Date: Tue, 28 Jun 2022 15:48:00 -0700
-Subject: [PATCH] DO NOT COMMIT YET - Do not "pack" FixedArraySize elements
-
-Summary:
-DO NOT COMMIT YET.
-Needs to be discussed.
-
-Remove the FOLLY_PACK_ATTR to avoid packing the FixedArraySize elements.
-This avoids the C++ error "cannot bind unpacked field".
-
-C.f. D24538466 (https://github.com/facebook/CacheLib/commit/ab1f75cbdcc1c40a48e0f6eaf76488ce482cbd2a) .
-
-Reviewed By: haowu14
-
-Differential Revision: D35907647
-
-fbshipit-source-id: 7e3ed0a9bc78c1eb1818a2e725361a5c2fceaca1
----
- cachelib/datatype/FixedSizeArray.h | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/cachelib/datatype/FixedSizeArray.h b/cachelib/datatype/FixedSizeArray.h
-index 6d6a1fa5b..9155ad60e 100644
---- a/cachelib/datatype/FixedSizeArray.h
-+++ b/cachelib/datatype/FixedSizeArray.h
-@@ -26,8 +26,10 @@ namespace cachelib {
-
- namespace detail {
- // @param T must be a POD like type
-+// Note that packing is not guaranteed with this data structure. User
-+// of FixedSizeArray must ensure their type is packed if they need it.
- template <typename T>
--class FOLLY_PACK_ATTR FixedSizeArrayLayout {
-+class FixedSizeArrayLayout {
- public:
- // Compute the storage required for the number of elements
- static uint32_t computeStorageSize(uint32_t numElements) {
diff --git a/cachelib-fix_test_linking.patch b/cachelib-fix_test_linking.patch
deleted file mode 100644
index fd9df62..0000000
--- a/cachelib-fix_test_linking.patch
+++ /dev/null
@@ -1,61 +0,0 @@
-diff '--color=auto' -ruN CacheLib-bd22b0eb79f7e2326f77a22c278c48e454882291/cachelib/allocator/CMakeLists.txt CacheLib-bd22b0eb79f7e2326f77a22c278c48e454882291-fix_test_linking/cachelib/allocator/CMakeLists.txt
---- CacheLib-bd22b0eb79f7e2326f77a22c278c48e454882291/cachelib/allocator/CMakeLists.txt 2022-03-14 10:49:38.000000000 -0700
-+++ CacheLib-bd22b0eb79f7e2326f77a22c278c48e454882291-fix_test_linking/cachelib/allocator/CMakeLists.txt 2022-03-15 14:00:37.874691691 -0700
-@@ -77,7 +77,8 @@
- DESTINATION ${LIB_INSTALL_DIR} )
-
- if (BUILD_TESTS)
-- add_library (allocator_test_support
-+ add_library (allocator_test_support OBJECT
-+ ../common/TestUtils.cpp
- ${DATASTRUCT_TESTS_THRIFT_FILES}
- ./nvmcache/tests/NvmTestBase.cpp
- ./memory/tests/TestBase.cpp
-diff '--color=auto' -ruN CacheLib-bd22b0eb79f7e2326f77a22c278c48e454882291/cachelib/benchmarks/CMakeLists.txt CacheLib-bd22b0eb79f7e2326f77a22c278c48e454882291-fix_test_linking/cachelib/benchmarks/CMakeLists.txt
---- CacheLib-bd22b0eb79f7e2326f77a22c278c48e454882291/cachelib/benchmarks/CMakeLists.txt 2022-03-14 10:49:38.000000000 -0700
-+++ CacheLib-bd22b0eb79f7e2326f77a22c278c48e454882291-fix_test_linking/cachelib/benchmarks/CMakeLists.txt 2022-03-15 13:21:46.885003006 -0700
-@@ -44,7 +44,7 @@
- add_test (CachelibTickerClockBench.cpp)
- add_test (CompactCacheBench.cpp)
- add_test (HashMapBenchmark.cpp)
-- add_test (ItemsReaperBench.cpp)
-+ add_test (ItemsReaperBench.cpp allocator_test_support)
- add_test (tl-bench/main.cpp)
- add_test (MMTypeAccessBench.cpp)
- add_test (MMTypeBench.cpp)
-diff '--color=auto' -ruN CacheLib-bd22b0eb79f7e2326f77a22c278c48e454882291/cachelib/common/CMakeLists.txt CacheLib-bd22b0eb79f7e2326f77a22c278c48e454882291-fix_test_linking/cachelib/common/CMakeLists.txt
---- CacheLib-bd22b0eb79f7e2326f77a22c278c48e454882291/cachelib/common/CMakeLists.txt 2022-03-14 10:49:38.000000000 -0700
-+++ CacheLib-bd22b0eb79f7e2326f77a22c278c48e454882291-fix_test_linking/cachelib/common/CMakeLists.txt 2022-03-15 12:15:28.818925017 -0700
-@@ -76,12 +76,12 @@
- add_test (tests/CohortTests.cpp)
- add_test (tests/CounterTests.cpp)
- add_test (tests/CountMinSketchTest.cpp)
-- add_test (tests/EventInterfaceTest.cpp cachelib_allocator)
-+ add_test (tests/EventInterfaceTest.cpp allocator_test_support)
- add_test (tests/HashTests.cpp)
- add_test (tests/IteratorsTests.cpp)
- add_test (tests/MutexTests.cpp)
- add_test (tests/PeriodicWorkerTest.cpp)
-- add_test (tests/SerializationTest.cpp cachelib_allocator)
-+ add_test (tests/SerializationTest.cpp allocator_test_support)
- add_test (tests/UtilTests.cpp)
- add_test (tests/CountDownLatchTest.cpp)
- add_test (tests/UtilTestsRSS.cpp)
-diff '--color=auto' -ruN CacheLib-bd22b0eb79f7e2326f77a22c278c48e454882291/cachelib/compact_cache/CMakeLists.txt CacheLib-bd22b0eb79f7e2326f77a22c278c48e454882291-fix_test_linking/cachelib/compact_cache/CMakeLists.txt
---- CacheLib-bd22b0eb79f7e2326f77a22c278c48e454882291/cachelib/compact_cache/CMakeLists.txt 2022-03-14 10:49:38.000000000 -0700
-+++ CacheLib-bd22b0eb79f7e2326f77a22c278c48e454882291-fix_test_linking/cachelib/compact_cache/CMakeLists.txt 2022-03-15 11:33:00.611186014 -0700
-@@ -12,11 +12,10 @@
- # See the License for the specific language governing permissions and
- # limitations under the License.
-
--add_library (compact_cache_test_support INTERFACE)
--add_dependencies(compact_cache_test_support INTERFACE thrift_generated_files)
--
- if (BUILD_TESTS)
-- target_link_libraries (compact_cache_test_support INTERFACE
-+ add_library (compact_cache_test_support OBJECT ../common/TestUtils.cpp)
-+
-+ target_link_libraries (compact_cache_test_support PUBLIC
- cachelib_allocator
- glog::glog
- gflags
diff --git a/cachelib.spec b/cachelib.spec
index cbc7739..452fdb9 100644
--- a/cachelib.spec
+++ b/cachelib.spec
@@ -9,9 +9,8 @@
%bcond_with check
%global forgeurl https://github.com/facebook/CacheLib
-%global commit bd22b0eb79f7e2326f77a22c278c48e454882291
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-%global date 20220314
+%global tag 2023.04.24.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
%global distprefix %{nil}
@@ -21,16 +20,14 @@
%global major_ver 16
Name: cachelib
-Version: %{major_ver}^%{date}git%{shortcommit}
+Version: %{major_ver}^%{date}
Release: %autorelease
Summary: Pluggable caching engine for scale high performance cache services
License: ASL 2.0
URL: %forgeurl
-Source0: %forgesource
-Patch0: %{name}-fix_test_linking.patch
-# https://github.com/facebook/CacheLib/commit/2114d3fe8b60992e4b98c2e4e07761649aa47d89
-Patch2: %{name}-avoid-bind-packed-buffer.patch
+Source0: %{url}/archive/v%{tag}/%{name}-%{tag}.tar.gz
+Patch0: %{name}-add_missing_includes.diff
# needed on EL8; its gtest does not come with cmake files
Patch100: %{name}-find-gtest.patch
@@ -53,6 +50,7 @@ BuildRequires: gmock-devel
BuildRequires: gtest-devel
BuildRequires: libdwarf-devel
BuildRequires: libzstd-devel
+BuildRequires: numactl-devel
BuildRequires: wangle-devel
BuildRequires: zlib-devel
BuildRequires: tsl-sparse-map-devel
@@ -79,11 +77,10 @@ applications that use %{name}.
%prep
-%forgesetup
-%patch0 -p1
-%patch2 -p1
+%autosetup -n CacheLib-%{tag} -N
+%autopatch -p1 -M 99
%if 0%{?el8}
-%patch100 -p1
+%autopatch -p1 -m 100 -M 199
%endif
diff --git a/sources b/sources
index 9425ec2..39916fa 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (CacheLib-bd22b0eb79f7e2326f77a22c278c48e454882291.tar.gz) = 38643e57c51047abf9888b4442c305cf9de9c42bd1560cdb68edabd10158ce9d904eb1bdef546228e3818679135d6d6147c3b2d4c021ea0ad177f53f9f215305
+SHA512 (cachelib-2023.04.24.00.tar.gz) = 6cc979da911cad5beb80aec4f340b3ef42f2ba6cfa49855cea9c2367a4b1af92874822cf369c1e52485bb34a5c6263159c331ba962319ec7769f7645a8d0112d
reply other threads:[~2026-10-08 9:23 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=179145139461.1.5632071335501112426.rpms-cachelib-955685469c70@fedoraproject.org \
--to=salimma@fedoraproject.org \
--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