public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michel Lind <salimma@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/cachelib] rawhide: Update to 2026.09.28.00
Date: Tue, 29 Sep 2026 15:14:26 GMT	[thread overview]
Message-ID: <179069486643.1.8459329803361287571.rpms-cachelib-14090c87d4ad@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/cachelib
            Branch : rawhide
            Commit : 14090c87d4ad4f970f01b766eb0a69d101919b67
            Author : Michel Lind <salimma@fedoraproject.org>
            Date   : 2026-09-29T12:14:42+01:00
            Stats  : +30/-155 in 6 file(s)
            URL    : https://src.fedoraproject.org/rpms/cachelib/c/14090c87d4ad4f970f01b766eb0a69d101919b67?branch=rawhide

            Log:
            Update to 2026.09.28.00

- Drop the folly FindLibDwarf, wangle OpenSSL 4.0 and cachebench
  binary_trace_gen patches, whose fixes the tag's pins contain
- Regenerate the vendored dependencies from the tag's pins
- Add a license_check_only bcond: check the vendored licenses of a new
  tarball in minutes, without the full build

Signed-off-by: Michel Lind <salimma@fedoraproject.org>
Assisted-by: Claude Code:claude-opus-5

---
diff --git a/.gitignore b/.gitignore
index 3d4559a..2f83557 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,3 +12,5 @@
 /cachelib-2025.02.03.00.tar.gz
 /cachelib-19.2026.09.14.00^38.ee4c153.tar.gz
 /cachelib-19.2026.09.14.00^38.ee4c153-vendor.tar.xz
+/cachelib-19.2026.09.28.00-vendor.tar.xz
+/cachelib-19.2026.09.28.00.tar.gz

diff --git a/0001-folly-FindLibDwarf-look-in-libdwarf-2.patch b/0001-folly-FindLibDwarf-look-in-libdwarf-2.patch
deleted file mode 100644
index 98e1f5a..0000000
--- a/0001-folly-FindLibDwarf-look-in-libdwarf-2.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-folly: let FindLibDwarf find libdwarf 2.x headers
-
-libdwarf 2.x installs its headers under <includedir>/libdwarf-2/ (Fedora 44
-and later, EPEL 10); the module only searched libdwarf/ and libdwarf-0/,
-so FOLLY_HAVE_DWARF ended up FALSE and consumers of
-folly::exception_tracer::getCurrentExceptions() failed to compile.
-
---- a/vendor/folly/CMake/FindLibDwarf.cmake	2026-09-17 17:42:24.335966817 +0100
-+++ b/vendor/folly/CMake/FindLibDwarf.cmake	2026-09-17 17:42:24.337420456 +0100
-@@ -16,7 +16,7 @@
- # Linux distributions.  It is not installed in a libdwarf/ subdirectory on Mac
- # systems when installed with Homebrew.  Newer homebrew installations install
- # it in libdwarf-0.  Search for it in all locations.
--find_path(LIBDWARF_INCLUDE_DIR NAMES dwarf.h PATH_SUFFIXES libdwarf libdwarf-0)
-+find_path(LIBDWARF_INCLUDE_DIR NAMES dwarf.h PATH_SUFFIXES libdwarf libdwarf-2 libdwarf-0)
- mark_as_advanced(LIBDWARF_INCLUDE_DIR)
- 
- find_library(LIBDWARF_LIBRARY NAMES dwarf)

diff --git a/0003-wangle-build-against-OpenSSL-4.0.patch b/0003-wangle-build-against-OpenSSL-4.0.patch
deleted file mode 100644
index c89e3af..0000000
--- a/0003-wangle-build-against-OpenSSL-4.0.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-diff --git a/vendor/wangle/wangle/ssl/SSLUtil.cpp b/vendor/wangle/wangle/ssl/SSLUtil.cpp
-index 977ee636..9f66462b 100644
---- a/vendor/wangle/wangle/ssl/SSLUtil.cpp
-+++ b/vendor/wangle/wangle/ssl/SSLUtil.cpp
-@@ -54,7 +54,9 @@ SSLResumeEnum SSLUtil::getResumeState(folly::AsyncSSLSocket* sslSocket) {
- }
- 
- std::unique_ptr<std::string> SSLUtil::getCommonName(const X509* cert) {
--  X509_NAME* subject = X509_get_subject_name((X509*)cert);
-+  // X509_get_subject_name() returns const X509_NAME* since OpenSSL 4.0;
-+  // auto keeps this compiling on older versions too.
-+  auto subject = X509_get_subject_name((X509*)cert);
-   if (!subject) {
-     return nullptr;
-   }
-@@ -81,7 +83,8 @@ std::unique_ptr<std::list<std::string>> SSLUtil::getSubjectAltName(
-     for (int i = 0; i < (int)count; ++i) {
-       GENERAL_NAME* generalName = sk_GENERAL_NAME_value(names, i);
-       if (generalName->type == GEN_DNS) {
--        ASN1_STRING* s = generalName->d.dNSName;
-+        // auto: GENERAL_NAME union members are const since OpenSSL 4.0.
-+        auto s = generalName->d.dNSName;
-         const char* name = (const char*)ASN1_STRING_get0_data(s);
-         // I can't find any docs on what a negative return value here
-         // would mean, so I'm going to ignore it.

diff --git a/0004-cachebench-link-binary_trace_gen-against-cachelib_cachebench.patch b/0004-cachebench-link-binary_trace_gen-against-cachelib_cachebench.patch
deleted file mode 100644
index e9af615..0000000
--- a/0004-cachebench-link-binary_trace_gen-against-cachelib_cachebench.patch
+++ /dev/null
@@ -1,82 +0,0 @@
-From be2afbff00abcd84cfef3d4d0c1632cd0e46dc71 Mon Sep 17 00:00:00 2001
-From: Michel Lind <salimma@fedoraproject.org>
-Date: Fri, 18 Sep 2026 12:16:05 +0100
-Subject: [PATCH] cachebench: link binary_trace_gen against cachelib_cachebench
-
-The cachelib_binary_trace_gen library duplicates a subset of the
-cachelib_cachebench sources, including runner/Runner.cpp and
-runner/Stressor.cpp, but leaves out the runner/, consistency/ and
-workload/ files those two depend on. With static libraries the linker
-only pulls the objects binary_trace_gen.cpp actually uses, so the gap
-is invisible; with BUILD_SHARED_LIBS=ON the whole library becomes a
-shared object with 36 undefined references and linking the executable
-fails:
-
-  ld: cachebench/libcachelib_binary_trace_gen.so: undefined reference
-  to `facebook::cachelib::cachebench::CacheStressorBase::finish()'
-
-It would also produce a binary_trace_gen that depends on a library the
-install rules never install. The duplicate also misses the
-SKIP_OPTION_SIZE_VERIFY definition applied to cachelib_cachebench on
-non-x86_64.
-
-Drop the duplicate and link binary_trace_gen against cachelib_cachebench,
-which already contains every source it listed.
-
-Tested with getdeps --shared-lib on Fedora Rawhide aarch64 (the Fedora
-package build): binary_trace_gen now links and depends on
-libcachelib_cachebench.so.19.
-
-Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
-Signed-off-by: Michel Lind <salimma@fedoraproject.org>
----
- cachelib/cachebench/CMakeLists.txt | 26 +-------------------------
- 1 file changed, 1 insertion(+), 25 deletions(-)
-
-diff --git a/cachelib/cachebench/CMakeLists.txt b/cachelib/cachebench/CMakeLists.txt
-index 712c3d74..c0b6200e 100644
---- a/cachelib/cachebench/CMakeLists.txt
-+++ b/cachelib/cachebench/CMakeLists.txt
-@@ -61,30 +61,6 @@ target_link_libraries(cachelib_cachebench
-     Boost::boost
- )
- 
--add_library (cachelib_binary_trace_gen
--  ./runner/Runner.cpp
--  ./runner/Stressor.cpp
--  ./util/CacheConfig.cpp
--  ./util/Config.cpp
--  ./util/MemoryMonitorScript.cpp
--  ./workload/BlockChunkCache.cpp
--  ./workload/BlockChunkReplayGenerator.cpp
--  ./workload/PieceWiseCache.cpp
--  ./workload/OnlineGenerator.cpp
--  ./workload/WorkloadGenerator.cpp
--  ./workload/PieceWiseReplayGenerator.cpp
--  ${OBJECT_CACHE_PERSISTENCE_THRIFT_FILES}
--  )
--add_dependencies(cachelib_binary_trace_gen thrift_generated_files)
--target_link_libraries(cachelib_binary_trace_gen
--  PUBLIC
--    cachelib_datatype
--    cachelib_allocator
--    gflags
--  PRIVATE
--    Boost::boost
--)
--
- if ((CMAKE_SYSTEM_NAME STREQUAL Linux) AND
-     (CMAKE_SYSTEM_PROCESSOR STREQUAL x86_64))
- else()
-@@ -96,7 +72,7 @@ endif()
- add_executable (cachebench main.cpp)
- add_executable (binary_trace_gen binary_trace_gen.cpp)
- target_link_libraries(cachebench cachelib_cachebench)
--target_link_libraries(binary_trace_gen cachelib_binary_trace_gen)
-+target_link_libraries(binary_trace_gen cachelib_cachebench)
- 
- install(
-   TARGETS
--- 
-2.55.0
-

diff --git a/cachelib.spec b/cachelib.spec
index 559386a..c57a281 100644
--- a/cachelib.spec
+++ b/cachelib.spec
@@ -9,6 +9,12 @@
 # SysV/POSIX shm and NUMA facilities a build chroot lacks.
 %bcond_with check
 
+# Run the license check and stop, without the (hours long) compile: the fast
+# way to find out whether a new vendor tarball needs a different License tag.
+# The build then fails on purpose, so this is for local runs only, never CI.
+#   mock -r fedora-rawhide-aarch64-getdeps --with license_check_only ...
+%bcond_with license_check_only
+
 # Upstream identifies a release by two numbers: kCachelibVersion, the
 # API/format major in cachelib/allocator/CacheVersion.h (%%major_ver), and the
 # weekly tag. Version joins them, major first: <major>.<tag without its v>,
@@ -19,11 +25,7 @@
 # <number>.<revision> snapshot form, and the distance keeps several snapshots
 # between two tags in order. 17^20250203, the last build of the old scheme,
 # sorts below.
-%global basetag v2026.09.14.00
-# Snapshot until the first weekly tag containing the getdeps vendoring
-# support this spec relies on (facebook/CacheLib#491), due 2026-09-22.
-%global commit ee4c153e648271a221f58998465cb5d1ddfe6f3c
-%global commits 38
+%global basetag v2026.09.28.00
 %global tagver %(echo %{basetag} | sed 's|^v||')
 %if 0%{?commit:1}
 %global shortcommit %(c=%{commit}; echo ${c:0:7})
@@ -101,46 +103,41 @@ Source2:        getdeps-vendor-licenses.toml
 # only when Source1 is not the tarball it last passed on. After a full pass
 # on a new tarball, copy its sha512 here from the sources file. (Plain rpm:
 # this also runs when the SRPM is built, without folly-rpm-macros.)
-%global vendor_checked_sha512 7ee9bfeb2d52ebe6ae885d0cbaecdccc7f778f7601a9c6e24359938f3e0c39de61b23e10caee867675e1faf5d43e91923a98f89a6d3833a8ef45ce41fd36c095
+%global vendor_checked_sha512 d024cc25d384a1625eb92ed2a642174f513cb247ddbb8436c3d1167771353566cb300e69e3f5996be0fb0193278b4010666f05af63cbbd7fbb399a12ca4475ea
 %if "%(sha512sum %{SOURCE1} 2>/dev/null | cut -c1-128)" == "%{vendor_checked_sha512}"
 %bcond_with license_full_check
 %else
 %bcond_without license_full_check
 %endif
-# Patches below apply to the vendored trees under vendor/. Each is an
-# upstream fix that the dependency revision this snapshot pins does not yet
-# include; drop them as the pins move past the landed commits.
+# Patches below apply to the vendored trees under vendor/ and to
+# build/fbcode_builder. Each is an upstream fix the revisions this tag pins
+# do not include yet; drop them as the pins move past the landed commits.
+# v2026.09.28.00 picked up folly's FindLibDwarf fix (facebook/folly#2707,
+# 51590144c), wangle's OpenSSL 4.0 fix (facebook/wangle#254) and the
+# cachebench binary_trace_gen link fix (facebook/CacheLib#498, 1a643ff6), so
+# those three patches are gone.
 #
-# folly's FindLibDwarf did not look in libdwarf-2/, where libdwarf 2.x
-# (Fedora 44+, EPEL 10) installs its headers, so folly built without DWARF
-# support and cachelib's use of folly::exception_tracer failed to compile.
-# Landed upstream as facebook/folly#2707 (51590144c).
-Patch0:         0001-folly-FindLibDwarf-look-in-libdwarf-2.patch
 # OpenSSL 4.0 (Fedora 45+) made ASN1_STRING opaque and the X509_get_*
-# accessors return const; folly and wangle did not compile against it.
-# facebook/folly#2706 and facebook/wangle#254, not yet landed. fizz's
-# matching fix (facebookincubator/fizz#171) only touches a test header the
-# dependency build never compiles, so it is not carried.
-Patch1:         0002-folly-build-against-OpenSSL-4.0.patch
-Patch2:         0003-wangle-build-against-OpenSSL-4.0.patch
-# binary_trace_gen fails to link with BUILD_SHARED_LIBS; drop the duplicate library.
-# Landed upstream as facebook/CacheLib#498 (1a643ff6); drop with the next snapshot.
-Patch3:         0004-cachebench-link-binary_trace_gen-against-cachelib_cachebench.patch
+# accessors return const; folly does not compile against it.
+# facebook/folly#2706, not landed. fizz's matching fix
+# (facebookincubator/fizz#171) only touches a test header the dependency
+# build never compiles, so it is not carried.
+Patch:          0002-folly-build-against-OpenSSL-4.0.patch
 # libcachelib_nvmitem.so is the one library built without a SOVERSION; facebook/CacheLib#500
-Patch4:         0005-cmake-give-cachelib_nvmitem-a-SOVERSION.patch
+Patch:          0005-cmake-give-cachelib_nvmitem-a-SOVERSION.patch
 # fbthrift puts relocated metadata in a .rodata section, which -fPIC makes
 # writable; the linker then emits an RWX text segment and glibc's aarch64
 # loader crashes on it (BTI note + RWX). Rename the section to RELRO; facebook/fbthrift#712
-Patch5:         0006-fbthrift-keep-thrift-data-out-of-a-writable-rodata-section.patch
+Patch:          0006-fbthrift-keep-thrift-data-out-of-a-writable-rodata-section.patch
 # --shared-lib dropped $LDFLAGS from the shared library links; facebook/CacheLib#499
-Patch6:         0007-getdeps-keep-LDFLAGS-on-the-shared-library-links.patch
+Patch:          0007-getdeps-keep-LDFLAGS-on-the-shared-library-links.patch
 # folly's F14 fallback (no SSE2/NEON: ppc64le) is ambiguous against
 # libstdc++ 16's own heterogeneous lookup; fix on Michel's fork, submitted
 # internally
-Patch7:         0008-folly-F14-fallback-forward-exact-key-lookups.patch
+Patch:          0008-folly-F14-fallback-forward-exact-key-lookups.patch
 # getdeps-vendor.txt gains the version of each vendored project, from which
 # the bundled() Provides are versioned (applied by vendor.sh before vendoring)
-Patch8:         0009-getdeps-record-the-checked-out-commit-and-a-version.patch
+Patch:          0009-getdeps-record-the-checked-out-commit-and-a-version.patch
 
 ExclusiveArch:  x86_64 aarch64 ppc64le
 # -devel (last shipped as 17^20250203 in Fedora, 16^20230424 in EPEL 9) is gone:
@@ -186,6 +183,7 @@ caching transparently.}
 # -L: liboqs's LICENSE.txt sits in a versioned subdirectory of its tree (as
 # did sparse-map's while it was vendored)
 %getdeps_vendor_license_check -c %{SOURCE2} -L %{?with_license_full_check:-f}
+%{?with_license_check_only: echo "license check only: stopping before the build"; exit 1}
 %getdeps_build %{?with_check:-t}
 
 

diff --git a/sources b/sources
index 7caa2e1..3d466f9 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-SHA512 (cachelib-19.2026.09.14.00^38.ee4c153.tar.gz) = 81937b719d32c01e5b9ca1e191020395551f0bfc30aafef6f1ec254ae7d469bac40b16f6fea13c4460985502e28e8fae9d913c7f5da87c24dabbfbd90825df96
-SHA512 (cachelib-19.2026.09.14.00^38.ee4c153-vendor.tar.xz) = 7ee9bfeb2d52ebe6ae885d0cbaecdccc7f778f7601a9c6e24359938f3e0c39de61b23e10caee867675e1faf5d43e91923a98f89a6d3833a8ef45ce41fd36c095
+SHA512 (cachelib-19.2026.09.28.00-vendor.tar.xz) = d024cc25d384a1625eb92ed2a642174f513cb247ddbb8436c3d1167771353566cb300e69e3f5996be0fb0193278b4010666f05af63cbbd7fbb399a12ca4475ea
+SHA512 (cachelib-19.2026.09.28.00.tar.gz) = 7f49042b62278f461fa760c8e5a842fd907de9061d432c336f53624ec1faa263f15d6dfd5541a14ad9e6a05d9858e0df19fcdbdec5b713502546db379c278789

                 reply	other threads:[~2026-09-29 15:14 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=179069486643.1.8459329803361287571.rpms-cachelib-14090c87d4ad@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