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] f43: Update to 2026.10.05.00 and build on EPEL 10
Date: Thu, 08 Oct 2026 13:35:36 GMT	[thread overview]
Message-ID: <179146653699.1.6567286588051514580.rpms-cachelib-4215538fbc51@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/cachelib
            Branch : f43
            Commit : 4215538fbc5193a40beec84bd906e8da72aa7c0a
            Author : Michel Lind <salimma@fedoraproject.org>
            Date   : 2026-10-08T08:34:52+01:00
            Stats  : +258/-333 in 8 file(s)
            URL    : https://src.fedoraproject.org/rpms/cachelib/c/4215538fbc5193a40beec84bd906e8da72aa7c0a?branch=f43

            Log:
            Update to 2026.10.05.00 and build on EPEL 10

- Drop the getdeps vendor-record patch, which this tag contains
- Carry the EL 10 system package mappings for getdeps, so EL takes fmt,
  gflags, googletest, benchmark, fast_float and Boost from EPEL, uses
  zlib-ng there and stops asking for the lz4-static EL does not have
- Add a second vendor tarball for EL with the one dependency it cannot take
  from the system, glog, and its license override
- Require folly-rpm-macros 46-11, which installs without licensecheck and
  pulls in the git that getdeps needs to apply a manifest patchfile

The EL tarball is 140 kB beside the shared 22 MB one, and %prep unpacks it
into the same vendor/ and appends its manifest, so the bundled() Provides,
the license install and the license check cover it with no second tree to
keep in step. Its Source is declared unconditionally on purpose: inside
%if 0%{?rhel} it would be missing from an SRPM built on Fedora, which could
then not be rebuilt for EL at all.

Verified with the license_check_only bcond on Fedora rawhide (9720 files
scanned, tag covers everything) and on CentOS Stream 10 with EPEL 10, where
the generated BuildRequires resolve to the mapped packages, tsl-sparse-map
included.

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

---
diff --git a/.gitignore b/.gitignore
index 2f83557..f6d8b85 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,3 +14,6 @@
 /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
+/cachelib-19.2026.10.05.00-vendor-el.tar.xz
+/cachelib-19.2026.10.05.00-vendor.tar.xz
+/cachelib-19.2026.10.05.00.tar.gz

diff --git a/0009-getdeps-record-the-checked-out-commit-and-a-version.patch b/0009-getdeps-record-the-checked-out-commit-and-a-version.patch
deleted file mode 100644
index 3a5aeb9..0000000
--- a/0009-getdeps-record-the-checked-out-commit-and-a-version.patch
+++ /dev/null
@@ -1,312 +0,0 @@
-From: Michel Lind <salimma@fedoraproject.org>
-Date: Thu, 24 Sep 2026 11:00:00 +0100
-Subject: [PATCH] getdeps: record the checked-out commit and a version in getdeps-vendor.txt
-
-`getdeps.py vendor` wrote fetcher.hash() next to each vendored project,
-which for a git project without a pinned rev is the branch name, so a
-project that ships no build/deps/github_hashes (mcrouter) got "folly
-main" recorded, identifying nothing. Ask the checkout for HEAD instead.
-
-Also record a version as a third field where one can be determined: for
-a git checkout the nearest tag (git describe, deepening the shallow clone
-as needed), as the tag itself when HEAD is tagged or
-<tag>^<distance>.<commit> otherwise; for a downloaded archive the
-version in its file name. Distributions that bundle the vendored tree
-need "Provides: bundled(<name>) = <version>" (Fedora's bundling
-guidelines), and this is what they can derive it from.
-
-Signed-off-by: Michel Lind <salimma@fedoraproject.org>
-Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
----
-  build/fbcode_builder/getdeps/cli.py              | 106 +++++++++++++++++++-
-  build/fbcode_builder/getdeps/test/vendor_test.py | 118 +++++++++++++++++++++++
-  2 files changed, 223 insertions(+), 1 deletion(-)
-
-diff --git a/build/fbcode_builder/getdeps/cli.py b/build/fbcode_builder/getdeps/cli.py
-index cbd4589f..01f3f919 100644
---- a/build/fbcode_builder/getdeps/cli.py
-+++ b/build/fbcode_builder/getdeps/cli.py
-@@ -6,12 +6,14 @@
- import argparse
- import json
- import os
-+import re
- import shutil
- import subprocess
- import sys
- import tarfile
- import tempfile
- from pathlib import Path
-+from urllib.parse import urlparse
- 
- # We don't import cache.create_cache directly as the facebook
- # specific import below may monkey patch it, and we want to
-@@ -25,7 +27,9 @@ from .cmd_base import BUILD_TYPE_ARG, ProjectCmdBase, UsageError
- from .dyndeps import create_dyn_dep_munger
- from .errors import TransientFailure
- from .fetcher import (
-+    ArchiveFetcher,
-     file_name_is_cmake_file,
-+    GitFetcher,
-     is_public_commit,
-     list_files_under_dir_newer_than_timestamp,
-     safe_extractall,
-@@ -260,7 +264,11 @@ class VendorCmd(ProjectCmdBase):
-                 ignore=shutil.ignore_patterns(".git"),
-                 ignore_dangling_symlinks=True,
-             )
--            vendored.append("%s %s\n" % (m.name, fetcher.hash()))
-+            entry = "%s %s" % (m.name, _vendored_revision(fetcher))
-+            version = _vendored_version(fetcher)
-+            if version:
-+                entry += " " + version
-+            vendored.append(entry + "\n")
-             vendored_names.add(m.name)
-         # Drop trees recorded by a previous run that are no longer
-         # dependencies (e.g. after --allow-system-packages or --no-tests
-@@ -289,6 +297,102 @@ class VendorCmd(ProjectCmdBase):
-             f.writelines(vendored)
- 
- 
-+_VERSION_IN_NAME = re.compile(r"\d+(?:[._]\d+)+|\d{4}-\d{2}-\d{2}")
-+
-+
-+def _version_from_url(url: str) -> str | None:
-+    """Best-effort version of a downloaded archive, from its file name:
-+    liboqs/archive/refs/tags/0.12.0.tar.gz -> 0.12.0,
-+    boost_1_83_0.tar.bz2 -> 1.83.0, re2/archive/2020-11-01.tar.gz ->
-+    2020.11.01. None when the name has no version-like run (e.g. a commit
-+    hash)."""
-+    name = urlparse(url).path.rsplit("/", 1)[-1]
-+    m = _VERSION_IN_NAME.search(name)
-+    if not m:
-+        return None
-+    return m.group(0).replace("_", ".").replace("-", ".")
-+
-+
-+def _git_describe_version(repo_dir: str) -> str | None:
-+    """Version of a git checkout relative to its nearest tag, in the form
-+    a distribution can use: the tag itself (without a leading v) when HEAD
-+    is tagged, else <tag>^<distance>.<short commit>. getdeps clones are
-+    shallow, so deepen the history a few times before giving up."""
-+    git = ["git", "-C", repo_dir]
-+
-+    def describe() -> str | None:
-+        try:
-+            out = subprocess.check_output(
-+                git + ["describe", "--tags", "--long", "--abbrev=7"],
-+                stderr=subprocess.DEVNULL,
-+            )
-+        except (subprocess.CalledProcessError, OSError):
-+            return None
-+        return out.decode("utf-8").strip()
-+
-+    desc = describe()
-+    for _ in range(4):
-+        if desc:
-+            break
-+        try:
-+            subprocess.check_call(
-+                git + ["fetch", "-q", "--tags", "--deepen=250", "origin"],
-+                stdout=subprocess.DEVNULL,
-+                stderr=subprocess.DEVNULL,
-+            )
-+        except (subprocess.CalledProcessError, OSError):
-+            return None
-+        desc = describe()
-+    if not desc:
-+        return None
-+    m = re.match(r"^(.*)-(\d+)-g([0-9a-f]+)$", desc)
-+    if not m:
-+        return None
-+    tag, distance, commit = m.groups()
-+    tag = re.sub(r"^v(?=\d)", "", tag)
-+    if distance == "0":
-+        return tag
-+    return "%s^%s.%s" % (tag, distance, commit)
-+
-+
-+def _vendored_version(fetcher) -> str | None:
-+    """The version to record next to a vendored tree, or None when it cannot
-+    be determined; see _version_from_url and _git_describe_version."""
-+    if isinstance(fetcher, GitFetcher):
-+        repo_dir = fetcher.get_src_dir()
-+        if os.path.isdir(os.path.join(repo_dir, ".git")):
-+            return _git_describe_version(repo_dir)
-+        return None
-+    if isinstance(fetcher, ArchiveFetcher):
-+        return _version_from_url(fetcher.url)
-+    return None
-+
-+
-+def _vendored_revision(fetcher) -> str:
-+    """The revision to record for a vendored tree.
-+
-+    fetcher.hash() is the manifest's idea of the version, which for a git
-+    project without a pinned rev is a branch name ("main"); record the
-+    commit that was actually checked out so the vendor manifest identifies
-+    the sources. Falls back to hash() when there is no checkout to ask."""
-+    if isinstance(fetcher, GitFetcher):
-+        repo_dir = fetcher.get_src_dir()
-+        if os.path.isdir(os.path.join(repo_dir, ".git")):
-+            try:
-+                return (
-+                    subprocess.check_output(
-+                        ["git", "rev-parse", "HEAD"],
-+                        cwd=repo_dir,
-+                        stderr=subprocess.DEVNULL,
-+                    )
-+                    .decode("utf-8")
-+                    .strip()
-+                )
-+            except (subprocess.CalledProcessError, OSError):
-+                pass
-+    return fetcher.hash()
-+
-+
- @cmd("install-system-deps", "Install system packages to satisfy the deps for a project")
- class InstallSysDepsCmd(ProjectCmdBase):
-     def setup_project_cmd_parser(self, parser):
-diff --git a/build/fbcode_builder/getdeps/test/vendor_test.py b/build/fbcode_builder/getdeps/test/vendor_test.py
-index 1d96fea6..898b4f40 100644
---- a/build/fbcode_builder/getdeps/test/vendor_test.py
-+++ b/build/fbcode_builder/getdeps/test/vendor_test.py
-@@ -9,6 +9,7 @@ import contextlib
- import io
- import os
- import shutil
-+import subprocess
- import tempfile
- import unittest
- from unittest.mock import MagicMock, patch
-@@ -16,6 +17,7 @@ from unittest.mock import MagicMock, patch
- from ..buildopts import BuildOptions
- from ..cli import VendorCmd
- from ..fetcher import (
-+    GitFetcher,
-     ChangeStatus,
-     LocalDirFetcher,
-     PreinstalledNopFetcher,
-@@ -119,6 +121,122 @@ class VendorCmdTest(unittest.TestCase):
-         with open(os.path.join(self.output_dir, "getdeps-vendor.txt")) as f:
-             self.assertEqual(f.read(), "depa %s\n" % ("a" * 40))
- 
-+    def test_records_checked_out_commit_for_git_projects(self) -> None:
-+        # An unpinned git project has rev "main"; the manifest must name the
-+        # commit that was actually vendored, not the branch.
-+        build_opts = MagicMock()
-+        build_opts.scratch_dir = self.tmp
-+        fetcher = GitFetcher(
-+            build_opts,
-+            MagicMock(),
-+            "https://example.invalid/depa.git",
-+            rev=None,
-+            depth=None,
-+            branch="main",
-+        )
-+        repo = fetcher.get_src_dir()
-+        os.makedirs(repo)
-+        # independent of the developer's git config (identity, signing, hooks)
-+        git = [
-+            "git",
-+            "-c",
-+            "user.name=t",
-+            "-c",
-+            "user.email=t@t",
-+            "-c",
-+            "commit.gpgsign=false",
-+            "-c",
-+            "core.hooksPath=/dev/null",
-+        ]
-+        subprocess.check_call(git + ["init", "-q", "-b", "main"], cwd=repo)
-+        subprocess.check_call(
-+            git + ["commit", "-q", "--allow-empty", "-m", "x"], cwd=repo
-+        )
-+        head = (
-+            subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=repo)
-+            .decode()
-+            .strip()
-+        )
-+        fetcher.update = lambda: ChangeStatus()  # no network
-+        self.assertEqual(fetcher.hash(), "main")
-+
-+        self.run_vendor(
-+            [make_manifest("depa"), make_manifest("top")],
-+            {
-+                "depa": fetcher,
-+                "top": FakeSourceFetcher(self.make_src_tree("top"), "t" * 40),
-+            },
-+        )
-+
-+        with open(os.path.join(self.output_dir, "getdeps-vendor.txt")) as f:
-+            self.assertEqual(f.read(), "depa %s\n" % head)
-+        self.assertEqual(len(head), 40)
-+
-+    def test_records_version_from_nearest_tag(self) -> None:
-+        build_opts = MagicMock()
-+        build_opts.scratch_dir = self.tmp
-+        fetcher = GitFetcher(
-+            build_opts,
-+            MagicMock(),
-+            "https://example.invalid/depa.git",
-+            rev=None,
-+            depth=None,
-+            branch="main",
-+        )
-+        repo = fetcher.get_src_dir()
-+        os.makedirs(repo)
-+        git = [
-+            "git",
-+            "-c",
-+            "user.name=t",
-+            "-c",
-+            "user.email=t@t",
-+            "-c",
-+            "commit.gpgsign=false",
-+            "-c",
-+            "core.hooksPath=/dev/null",
-+        ]
-+        run = lambda *a: subprocess.check_call(git + list(a), cwd=repo)
-+        run("init", "-q", "-b", "main")
-+        run("commit", "-q", "--allow-empty", "-m", "one")
-+        run("tag", "v2026.09.21.00")
-+        fetcher.update = lambda: ChangeStatus()
-+        top = FakeSourceFetcher(self.make_src_tree("top"), "t" * 40)
-+        manifests = [make_manifest("depa"), make_manifest("top")]
-+
-+        # exactly on the tag: the tag, without its v
-+        self.run_vendor(manifests, {"depa": fetcher, "top": top})
-+        with open(os.path.join(self.output_dir, "getdeps-vendor.txt")) as f:
-+            self.assertTrue(f.read().endswith(" 2026.09.21.00\n"))
-+
-+        # two commits past it: <tag>^<distance>.<commit>
-+        run("commit", "-q", "--allow-empty", "-m", "two")
-+        run("commit", "-q", "--allow-empty", "-m", "three")
-+        head = (
-+            subprocess.check_output(["git", "rev-parse", "--short=7", "HEAD"], cwd=repo)
-+            .decode()
-+            .strip()
-+        )
-+        self.run_vendor(manifests, {"depa": fetcher, "top": top})
-+        with open(os.path.join(self.output_dir, "getdeps-vendor.txt")) as f:
-+            self.assertTrue(f.read().endswith(" 2026.09.21.00^2.%s\n" % head))
-+
-+    def test_version_from_download_url(self) -> None:
-+        from ..cli import _version_from_url
-+
-+        cases = {
-+            "https://github.com/open-quantum-safe/liboqs/archive/refs/tags/0.12.0.tar.gz": "0.12.0",
-+            "https://github.com/fmtlib/fmt/archive/refs/tags/12.1.0.tar.gz": "12.1.0",
-+            "https://example.invalid/boost_1_83_0.tar.bz2": "1.83.0",
-+            "https://github.com/google/re2/archive/2020-11-01.tar.gz": "2020.11.01",
-+            "https://github.com/LMDB/lmdb/archive/refs/tags/LMDB_0.9.31.tar.gz": "0.9.31",
-+            "https://sourceware.org/elfutils/ftp/0.193/elfutils-0.193.tar.bz2": "0.193",
-+            "https://files.pythonhosted.org/packages/ab/PyYAML-6.0.3-cp38-cp38-manylinux2014_x86_64.whl": "6.0.3",
-+            "https://github.com/libunwind/libunwind/archive/f081cf42917bdd5c428b77850b473f31f81767cf.tar.gz": None,
-+        }
-+        for url, expected in cases.items():
-+            self.assertEqual(_version_from_url(url), expected, url)
-+
-     def test_replaces_stale_vendored_tree(self) -> None:
-         stale = os.path.join(self.output_dir, "depa", "stale.txt")
-         os.makedirs(os.path.dirname(stale))

diff --git a/0010-getdeps-map-the-EL-10-system-packages.patch b/0010-getdeps-map-the-EL-10-system-packages.patch
new file mode 100644
index 0000000..cc6bd4d
--- /dev/null
+++ b/0010-getdeps-map-the-EL-10-system-packages.patch
@@ -0,0 +1,152 @@
+From 1aef16709eae912f846f17888924173e38bc8001 Mon Sep 17 00:00:00 2001
+From: Michel Lind <salimma@fedoraproject.org>
+Date: Wed, 7 Oct 2026 20:02:47 +0100
+Subject: [PATCH] getdeps: take the EL 10 system packages the manifests still
+ build from source
+
+CentOS Stream 10 and EPEL 10 carry nearly everything cachelib needs, but the
+manifests only map most of these libraries for distro=fedora, so getdeps
+builds fmt, gflags, googletest, benchmark and Boost from source there for no
+reason. Two mappings are also wrong for EL 10 rather than merely missing: it
+ships zlib-ng under the compat names like Fedora, not the plain
+zlib-devel/zlib-static the "not fedora" section assumes, and it has no
+lz4-static at all, which the selector only excluded for EL 8 and 9.
+
+Select on the rhel family rather than naming CentOS Stream, and spell the
+mappings as "Fedora, or the rhel family other than 8 and 9", so Alma, Rocky
+and RHEL itself get them and EL 11 needs no further edit.
+
+Two libraries stay unmapped outside Fedora because EPEL's versions are too
+old for the revisions pinned here: glog, where EPEL 9 and 10 both have 0.3.5
+against a post-0.6.0 commit, and fast_float, where EPEL 10's 6.1.6 lacks the
+parse_options_t constructor folly's Conv.cpp uses (that one was found by
+building: koji task 151005880).
+
+install-system-deps --dry-run --recursive cachelib now asks for 35 packages
+on centos_stream 10, the Fedora list minus glog-devel, fast_float-devel and
+lz4-static, and all of them exist in CentOS Stream 10 or EPEL 10. The
+centos_stream 9 and 8 lists are unchanged: 9 still takes zlib-devel and
+zlib-static and builds the rest, 8 still takes the boost169 compat packages.
+
+Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
+---
+ build/fbcode_builder/manifests/benchmark  | 3 ++-
+ build/fbcode_builder/manifests/boost      | 4 +++-
+ build/fbcode_builder/manifests/fast_float | 2 ++
+ build/fbcode_builder/manifests/fmt        | 3 ++-
+ build/fbcode_builder/manifests/gflags     | 3 ++-
+ build/fbcode_builder/manifests/googletest | 3 ++-
+ build/fbcode_builder/manifests/lz4        | 4 ++--
+ build/fbcode_builder/manifests/zlib       | 5 +++--
+ 8 files changed, 18 insertions(+), 9 deletions(-)
+
+diff --git a/build/fbcode_builder/manifests/benchmark b/build/fbcode_builder/manifests/benchmark
+index d09f761c..b48fc8a3 100644
+--- a/build/fbcode_builder/manifests/benchmark
++++ b/build/fbcode_builder/manifests/benchmark
+@@ -12,5 +12,6 @@ subdir = benchmark-1.8.0/
+ [cmake.defines]
+ BENCHMARK_ENABLE_TESTING=OFF
+ 
+-[rpms.distro=fedora]
++# EPEL 10 ships this too; EL 8 and 9 do not have a usable version.
++[rpms.any(distro=fedora,all(distro_family=rhel,not(any(distro_vers=8,distro_vers=9))))]
+ google-benchmark-devel
+diff --git a/build/fbcode_builder/manifests/boost b/build/fbcode_builder/manifests/boost
+index efa1278f..1315b3bc 100644
+--- a/build/fbcode_builder/manifests/boost
++++ b/build/fbcode_builder/manifests/boost
+@@ -59,7 +59,9 @@ boost169-python3
+ boost169-serialization
+ boost169-program-options
+ 
+-[rpms.distro=fedora]
++# EL 10 and later carry a new enough Boost under the same names (EL 8
++# needs the boost169 compat packages above).
++[rpms.any(distro=fedora,all(distro_family=rhel,not(any(distro_vers=8,distro_vers=9))))]
+ boost-devel
+ boost-static
+ 
+diff --git a/build/fbcode_builder/manifests/fast_float b/build/fbcode_builder/manifests/fast_float
+index 531a1dd0..ca6a22e9 100644
+--- a/build/fbcode_builder/manifests/fast_float
++++ b/build/fbcode_builder/manifests/fast_float
+@@ -16,5 +16,7 @@ FASTFLOAT_SANITIZE = OFF
+ [debs.not(all(distro=ubuntu,any(distro_vers="18.04",distro_vers="20.04",distro_vers="22.04",distro_vers="24.04")))]
+ libfast-float-dev
+ 
++# Not mapped outside Fedora: EPEL 10 has 6.1.6, and folly's Conv.cpp needs
++# the parse_options_t constructor this manifest's 8.0.0 has.
+ [rpms.distro=fedora]
+ fast_float-devel
+diff --git a/build/fbcode_builder/manifests/fmt b/build/fbcode_builder/manifests/fmt
+index f99dc7f2..c840b5bf 100644
+--- a/build/fbcode_builder/manifests/fmt
++++ b/build/fbcode_builder/manifests/fmt
+@@ -20,5 +20,6 @@ FMT_DOC = OFF
+ [cmake.defines.feature_shared_libs=on]
+ BUILD_SHARED_LIBS = ON
+ 
+-[rpms.distro=fedora]
++# EPEL 10 ships this too; EL 8 and 9 do not have a usable version.
++[rpms.any(distro=fedora,all(distro_family=rhel,not(any(distro_vers=8,distro_vers=9))))]
+ fmt-devel
+diff --git a/build/fbcode_builder/manifests/gflags b/build/fbcode_builder/manifests/gflags
+index 34e9e6cf..8276f512 100644
+--- a/build/fbcode_builder/manifests/gflags
++++ b/build/fbcode_builder/manifests/gflags
+@@ -20,5 +20,6 @@ gflags
+ [debs]
+ libgflags-dev
+ 
+-[rpms.distro=fedora]
++# EPEL 10 ships this too; EL 8 and 9 do not have a usable version.
++[rpms.any(distro=fedora,all(distro_family=rhel,not(any(distro_vers=8,distro_vers=9))))]
+ gflags-devel
+diff --git a/build/fbcode_builder/manifests/googletest b/build/fbcode_builder/manifests/googletest
+index 70739da7..a691f06e 100644
+--- a/build/fbcode_builder/manifests/googletest
++++ b/build/fbcode_builder/manifests/googletest
+@@ -25,6 +25,7 @@ googletest
+ libgtest-dev
+ libgmock-dev
+ 
+-[rpms.distro=fedora]
++# EPEL 10 ships this too; EL 8 and 9 do not have a usable version.
++[rpms.any(distro=fedora,all(distro_family=rhel,not(any(distro_vers=8,distro_vers=9))))]
+ gmock-devel
+ gtest-devel
+diff --git a/build/fbcode_builder/manifests/lz4 b/build/fbcode_builder/manifests/lz4
+index faa17b00..664c3b22 100644
+--- a/build/fbcode_builder/manifests/lz4
++++ b/build/fbcode_builder/manifests/lz4
+@@ -6,8 +6,8 @@ lz4
+ 
+ [rpms]
+ lz4-devel
+-# centos 8 and centos_stream 9 are missing this rpm
+-[rpms.not(all(distro_family=rhel,any(distro_vers=8,distro_vers=9)))]
++# Only Fedora packages the static library; no EL version has it.
++[rpms.distro=fedora]
+ lz4-static
+ 
+ [debs]
+diff --git a/build/fbcode_builder/manifests/zlib b/build/fbcode_builder/manifests/zlib
+index 9a7da168..ae77a3ba 100644
+--- a/build/fbcode_builder/manifests/zlib
++++ b/build/fbcode_builder/manifests/zlib
+@@ -7,11 +7,12 @@ zlib1g-dev
+ [homebrew]
+ zlib
+ 
+-[rpms.not(distro=fedora)]
++[rpms.all(distro_family=rhel,any(distro_vers=8,distro_vers=9))]
+ zlib-devel
+ zlib-static
+ 
+-[rpms.distro=fedora]
++# Fedora and EL 10 and later ship zlib-ng under the compat names.
++[rpms.any(distro=fedora,all(distro_family=rhel,not(any(distro_vers=8,distro_vers=9))))]
+ zlib-ng-compat-devel
+ zlib-ng-compat-static
+ 

diff --git a/cachelib.spec b/cachelib.spec
index 18cf20f..488691c 100644
--- a/cachelib.spec
+++ b/cachelib.spec
@@ -25,7 +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.28.00
+%global basetag v2026.10.05.00
 %global tagver %(echo %{basetag} | sed 's|^v||')
 %if 0%{?commit:1}
 %global shortcommit %(c=%{commit}; echo ${c:0:7})
@@ -47,6 +47,9 @@
 # object; the macro adds the braces (rpm would strip them from the value).
 %global getdeps_extra_cmake_defines "LIB_INSTALL_DIR": "%{_lib}", "CACHELIB_MAJOR_VERSION": "%{major_ver}", "CONFIGS_INSTALL_DIR": "share/%{name}/test_configs"
 
+# the license config the macros read: Source2, plus the EL fragment on EL
+%global getdeps_licenses_toml vendor-licenses.toml
+
 Name:           cachelib
 Version:        %{major_ver}.%{tagver}%{?snapinfo}
 Release:        %autorelease
@@ -99,11 +102,32 @@ Source0:        %{url}/archive/%{archive_ref}/%{name}-%{version}.tar.gz
 # getdeps-vendor.txt listing each project's pinned revision.
 Source1:        %{name}-%{version}-vendor.tar.xz
 Source2:        getdeps-vendor-licenses.toml
+# EL needs two dependencies from source that Fedora takes from the system,
+# because EPEL's versions are older than the manifests pin: glog, 0.3.5
+# against a post-0.6.0 commit, and fast_float, 6.1.6 against 8.0.0, whose
+# parse_options_t constructor folly's Conv.cpp needs. Rather than a second
+# full vendor tree, this tarball holds only what EL builds additionally need;
+# %%prep unpacks it there and appends its manifest to getdeps-vendor.txt, so
+# the bundled() Provides, the license install and the license check cover it.
+# Declared unconditionally on purpose: a Source inside %%if 0%%{?rhel} would
+# be absent from an SRPM built on Fedora, and that SRPM could then not be
+# rebuilt for EL at all. Fedora builds carry the 140 kB and ignore it.
+# Its licenses are not covered by the per-file pass of any build: Fedora
+# builds never unpack it, and EL has no licensecheck. They were scanned by
+# hand on Fedora: glog is BSD-3-Clause throughout, plus an Apache-2.0 fuzzer
+# source and an MIT Windows header, neither compiled; fast_float is
+# Apache-2.0 OR MIT OR BSL-1.0, its license files in a versioned subdirectory
+# (hence -L). Redo that scan whenever either pin moves.
+Source3:        %{name}-%{version}-vendor-el.tar.xz
+# The glog override the above tarball needs, kept apart because an override
+# for a file that is not present is an error: %%prep appends it to a copy of
+# Source2 on EL, and every license macro reads that copy.
+Source4:        getdeps-vendor-licenses-el.toml
 # The per-file licensecheck pass of the license check is expensive; run it
 # 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 d024cc25d384a1625eb92ed2a642174f513cb247ddbb8436c3d1167771353566cb300e69e3f5996be0fb0193278b4010666f05af63cbbd7fbb399a12ca4475ea
+%global vendor_checked_sha512 4da31af2482892790d02438ce0c0758a93a493b8e6b84541d06bdf0b08975c10e90a83e0c91384639c824b44c3502be1cdf4005d0601dfc861db5589861f6143
 %if "%(sha512sum %{SOURCE1} 2>/dev/null | cut -c1-128)" == "%{vendor_checked_sha512}"
 %bcond_with license_full_check
 %else
@@ -112,10 +136,11 @@ Source2:        getdeps-vendor-licenses.toml
 # 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.
+# v2026.10.05.00 contains the getdeps change that records each vendored
+# project's commit and version in getdeps-vendor.txt, so that patch is gone;
+# v2026.09.28.00 had already taken folly's FindLibDwarf fix
+# (facebook/folly#2707), wangle's OpenSSL 4.0 fix (facebook/wangle#254) and
+# the cachebench binary_trace_gen link fix (facebook/CacheLib#498).
 #
 # OpenSSL 4.0 (Fedora 45+) made ASN1_STRING opaque and the X509_get_*
 # accessors return const; folly does not compile against it.
@@ -135,9 +160,12 @@ Patch:          0007-getdeps-keep-LDFLAGS-on-the-shared-library-links.patch
 # libstdc++ 16's own heterogeneous lookup; fix on Michel's fork, submitted
 # internally
 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)
-Patch:          0009-getdeps-record-the-checked-out-commit-and-a-version.patch
+# The manifests build fmt, gflags, googletest, benchmark and Boost from
+# source on EL although EPEL 10 has them, and they get zlib and lz4-static
+# wrong there; submitted internally from michel-slm/CacheLib
+# 21baa410 (applied by vendor.sh before vendoring, so the vendored set
+# matches what each distro builds)
+Patch:          0010-getdeps-map-the-EL-10-system-packages.patch
 
 ExclusiveArch:  x86_64 aarch64 ppc64le
 # -devel (last shipped as 17^20250203 in Fedora, 16^20230424 in EPEL 9) is gone:
@@ -145,7 +173,7 @@ ExclusiveArch:  x86_64 aarch64 ppc64le
 # packages, so there is nothing usable to ship. No Provides on purpose.
 Obsoletes:      %{name}-devel < 19.2026.09.14.00
 
-BuildRequires:  folly-rpm-macros >= 46-9
+BuildRequires:  folly-rpm-macros >= 46-11
 %if %{with toolchain_clang}
 BuildRequires:  clang
 %else
@@ -164,14 +192,21 @@ caching transparently.}
 
 %generate_buildrequires
 %getdeps_generate_buildrequires
-%getdeps_vendor_license_buildrequires -c %{SOURCE2}
+%getdeps_vendor_license_buildrequires -c %{getdeps_licenses_toml}
 
 
 %prep
 %autosetup -n %{archive_dir} -a1 -p1
 # delete vendored code that is neither compiled nor referenced by the build
 # (the config's prune_directories: fbthrift's Go bindings)
-%getdeps_vendor_prune -c %{SOURCE2}
+cp -p %{SOURCE2} %{getdeps_licenses_toml}
+%if 0%{?rhel}
+tar -xf %{SOURCE3}
+cat %{getdeps_vendor_dir}/getdeps-vendor-el.txt >> %{getdeps_vendor_dir}/getdeps-vendor.txt
+rm -f %{getdeps_vendor_dir}/getdeps-vendor-el.txt
+cat %{SOURCE4} >> %{getdeps_licenses_toml}
+%endif
+%getdeps_vendor_prune -c %{getdeps_licenses_toml}
 
 
 %build
@@ -182,7 +217,7 @@ caching transparently.}
 # vendor_checked_sha512 above.
 # -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}
+%getdeps_vendor_license_check -c %{getdeps_licenses_toml} -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}
 
@@ -200,7 +235,7 @@ mv %{buildroot}%{_bindir}/binary_trace_gen %{buildroot}%{_bindir}/cachelib_binar
 # build tree in %%check and not shipped
 rm -rf %{buildroot}%{_prefix}/tests
 %endif
-%getdeps_vendor_license_install -c %{SOURCE2}
+%getdeps_vendor_license_install -c %{getdeps_licenses_toml}
 
 
 %check

diff --git a/getdeps-vendor-licenses-el.toml b/getdeps-vendor-licenses-el.toml
new file mode 100644
index 0000000..105fe57
--- /dev/null
+++ b/getdeps-vendor-licenses-el.toml
@@ -0,0 +1,13 @@
+# Appended to getdeps-vendor-licenses.toml in %prep on EL only, where the
+# extras tarball adds vendor/glog. An override for a file that is not
+# present is an error, not a no-op, so it cannot live in the shared config.
+# EL only: the vendored glog (Source3) has two BSD-3-Clause notices in one
+# COPYING, Google's and the one covering the gettimeofday helper taken from
+# Jouni Malinen's code, which askalono will not classify. Fedora takes glog
+# from the system, so this file is only present on EL. Its tree also holds an
+# Apache-2.0 fuzzer source and an MIT Windows header, neither of them built;
+# both identifiers are in the License tag already.
+[[licensing.licenses]]
+path = "vendor/glog/COPYING"
+sha256sum = "0fc497129c5c69ff6f22da6933c7e4aaef082fde8437fd57680c2780100772a4"
+expression = "BSD-3-Clause"

diff --git a/getdeps-vendor-licenses.toml b/getdeps-vendor-licenses.toml
index 308a65b..109fa04 100644
--- a/getdeps-vendor-licenses.toml
+++ b/getdeps-vendor-licenses.toml
@@ -113,4 +113,3 @@ expression = "CC0-1.0 OR Apache-2.0"
 prune_directories = [
   "vendor/fbthrift/thrift/lib/go",
 ]
-

diff --git a/sources b/sources
index 3d466f9..12dc3e1 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,3 @@
-SHA512 (cachelib-19.2026.09.28.00-vendor.tar.xz) = d024cc25d384a1625eb92ed2a642174f513cb247ddbb8436c3d1167771353566cb300e69e3f5996be0fb0193278b4010666f05af63cbbd7fbb399a12ca4475ea
-SHA512 (cachelib-19.2026.09.28.00.tar.gz) = 7f49042b62278f461fa760c8e5a842fd907de9061d432c336f53624ec1faa263f15d6dfd5541a14ad9e6a05d9858e0df19fcdbdec5b713502546db379c278789
+SHA512 (cachelib-19.2026.10.05.00-vendor-el.tar.xz) = 51c97b015056c8e2fd39921038b3b2cc42e90e79a5b13451ca1c292f34fe515ed1bfad788d7a10d33fe122d7206e91863d9f5cd5a59da0128ac2ec81f9bb0d32
+SHA512 (cachelib-19.2026.10.05.00-vendor.tar.xz) = 4da31af2482892790d02438ce0c0758a93a493b8e6b84541d06bdf0b08975c10e90a83e0c91384639c824b44c3502be1cdf4005d0601dfc861db5589861f6143
+SHA512 (cachelib-19.2026.10.05.00.tar.gz) = 4e9f40035cf76cc4bb216977b57650858359a2564fddcbfd400656180237b38274498a307224e6a07453bd446cb158c14fb0c273fd97030111ef5c69462c2d78

diff --git a/vendor.sh b/vendor.sh
index e7c884b..0dbd8c8 100755
--- a/vendor.sh
+++ b/vendor.sh
@@ -8,7 +8,17 @@
 # spec's BuildRequires are generated, so dnf builddep cannot see them). A
 # tarball made with fewer packages installed still works, it is only larger.
 set -eu
-# usage: vendor.sh [package.spec]   (defaults to the single spec in the cwd)
+# usage: vendor.sh [package.spec]        the tarball every distro shares
+#        vendor.sh --el [package.spec]   the EL extras tarball (Source3)
+#
+# EL takes one dependency from source that Fedora takes from the system
+# (EPEL's glog is far older than the manifest pins), so EL builds need the
+# shared tarball plus a small second one. --el vendors for EL and keeps only
+# what the shared tarball does not already have, recording those projects in
+# vendor/getdeps-vendor-el.txt, which %prep appends to getdeps-vendor.txt.
+# The shared tarball must exist first: it is what --el diffs against.
+el=
+if [ "${1-}" = "--el" ]; then el=1; shift; fi
 spec=${1:-$(ls ./*.spec)}
 name=$(rpmspec -q --srpm --qf '%{name}\n' "$spec")
 version=$(rpmspec -q --srpm --qf '%{version}\n' "$spec")
@@ -26,7 +36,31 @@ for p in $(spectool -P "$spec" | awk '{print $2}'); do
     grep -q '^+++ b/vendor/' "$p" && continue
     patch -d "$srcdir" -p1 --quiet < "$p"
 done
+# --host-type makes getdeps pick the EL manifest sections. It still asks the
+# running system whether each mapped package is installed, so the host needs
+# the EL package set installed as well; with the manifests mapping EL 10 to
+# the same names Fedora uses, that is what install-system-deps already gave.
 python3 "$srcdir/build/fbcode_builder/getdeps.py" --allow-system-packages \
-    --scratch-path "$tmp/scratch" vendor --no-tests --output-dir "$tmp/vendor" "${GETDEPS_PROJECT:-$name}"
-tar -C "$tmp" -cJf "$name-$version-vendor.tar.xz" vendor
-echo "wrote $name-$version-vendor.tar.xz"
+    --scratch-path "$tmp/scratch" vendor --no-tests --output-dir "$tmp/vendor" \
+    ${el:+--host-type linux-centos_stream-10} "${GETDEPS_PROJECT:-$name}"
+
+if [ -z "$el" ]; then
+    tar -C "$tmp" -cJf "$name-$version-vendor.tar.xz" vendor
+    echo "wrote $name-$version-vendor.tar.xz"
+    exit 0
+fi
+
+shared="$name-$version-vendor.tar.xz"
+[ -f "$shared" ] || { echo "$shared not found; run vendor.sh without --el first" >&2; exit 1; }
+tar xOf "$shared" vendor/getdeps-vendor.txt | awk '{print $1}' | sort > "$tmp/shared.txt"
+awk '{print $1}' "$tmp/vendor/getdeps-vendor.txt" | sort > "$tmp/el.txt"
+comm -13 "$tmp/shared.txt" "$tmp/el.txt" > "$tmp/extras.txt"
+[ -s "$tmp/extras.txt" ] || { echo "EL needs nothing beyond $shared; no extras tarball" >&2; exit 1; }
+for d in $(comm -12 "$tmp/shared.txt" "$tmp/el.txt"); do rm -rf "$tmp/vendor/$d"; done
+while read -r d; do
+    awk -v p="$d" '$1 == p' "$tmp/vendor/getdeps-vendor.txt"
+done < "$tmp/extras.txt" > "$tmp/vendor/getdeps-vendor-el.txt"
+extras=$(tr '\n' ' ' < "$tmp/extras.txt")
+rm -f "$tmp/vendor/getdeps-vendor.txt"
+tar -C "$tmp" -cJf "$name-$version-vendor-el.tar.xz" vendor
+echo "wrote $name-$version-vendor-el.tar.xz ($extras)"

                 reply	other threads:[~2026-10-08 13:35 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=179146653699.1.6567286588051514580.rpms-cachelib-4215538fbc51@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