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/mcrouter] epel10.3: Update to 2026.10.05.00 and build on EPEL 10
Date: Thu, 08 Oct 2026 09:34:16 GMT	[thread overview]
Message-ID: <179145205694.1.1717525211534002134.rpms-mcrouter-ba3a38692a7c@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/mcrouter
            Branch : epel10.3
            Commit : ba3a38692a7c1767ef02495fe97363a9c785f364
            Author : Michel Lind <salimma@fedoraproject.org>
            Date   : 2026-10-08T08:34:53+01:00
            Stats  : +268/-358 in 9 file(s)
            URL    : https://src.fedoraproject.org/rpms/mcrouter/c/ba3a38692a7c1767ef02495fe97363a9c785f364?branch=epel10.3

            Log:
            Update to 2026.10.05.00 and build on EPEL 10

- First build from a weekly tag: the export now ships build/fbcode_builder
  and the dependency pins, so the snapshot globals are gone
- Drop the getdeps vendor-record patch, which this tag contains
- Rebase the gflags and Boost patch: upstream no longer declares
  mcrouter_propagate_folly_request_context in lib/MessageQueue.h, so that
  file needs no gflags include
- 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 tag pins the same folly, fizz, wangle, mvfst and fbthrift revisions as
cachelib's, so the two packages stay in step.

Verified with the license_check_only bcond on Fedora rawhide (10014 files
scanned, tag covers everything) and on CentOS Stream 10 with EPEL 10.

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

---
diff --git a/.gitignore b/.gitignore
index a97404d..64709d3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,5 @@
 /mcrouter-????.??.??.00.tar.gz
 /mcrouter-2026.09.21.00^1.d8b07b0-vendor.tar.xz
 /mcrouter-2026.09.21.00^1.d8b07b0.tar.gz
+/mcrouter-2026.10.05.00-vendor-el.tar.xz
+/mcrouter-2026.10.05.00-vendor.tar.xz

diff --git a/0005-Build-against-current-folly-and-Boost-1.90.patch b/0005-Build-against-current-folly-and-Boost-1.90.patch
index aa2a2d3..d11f840 100644
--- a/0005-Build-against-current-folly-and-Boost-1.90.patch
+++ b/0005-Build-against-current-folly-and-Boost-1.90.patch
@@ -1,5 +1,5 @@
 From: Michel Lind <salimma@fedoraproject.org>
-Date: Mon, 21 Sep 2026 19:30:00 +0100
+Date: Wed, 7 Oct 2026 18:10:00 +0100
 Subject: [PATCH] Build against current folly and Boost 1.90
 
 Two toolchain moves that mcrouter's own CI (Ubuntu 24.04 recipes) does
@@ -9,10 +9,8 @@ not see yet:
   that use DECLARE_bool/DEFINE_bool need <folly/portability/GFlags.h>
   themselves:
 
-    mcrouter/lib/MessageQueue.h:21:13: error: expected constructor,
+    mcrouter/CarbonRouterInstance.cpp:66:1: error: expected constructor,
     destructor, or type conversion before '(' token
-    mcrouter/lib/MessageQueue.h:377:11: error:
-    'FLAGS_mcrouter_propagate_folly_request_context' was not declared
 
 - Boost 1.90 removed boost/filesystem/convenience.hpp and
   boost::filesystem::complete; absolute() is the documented
@@ -21,12 +19,12 @@ not see yet:
     mcrouter/FileDataProvider.cpp:13:10: fatal error:
     boost/filesystem/convenience.hpp: No such file or directory
 
-Found building mcrouter d8b07b00 with getdeps on Fedora Rawhide aarch64
-(GCC 16.2, Boost 1.90, folly main); with these, mcrouter and mcpiper
-build, link and start.
+Rebased onto v2026.10.05.00: mcrouter/lib/MessageQueue.h no longer
+declares mcrouter_propagate_folly_request_context, so it needs no gflags
+include any more and is dropped from this patch.
 
 Signed-off-by: Michel Lind <salimma@fedoraproject.org>
-Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
+Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
 ---
 diff --git a/mcrouter/CarbonRouterInstance.cpp b/mcrouter/CarbonRouterInstance.cpp
 index e91b7cfe..b92e0476 100644
@@ -71,18 +69,6 @@ index c48d5b7a..7d341017 100644
      std::swap(link, file);
    }
    inotify_ = std::move(tmpInotify);
-diff --git a/mcrouter/lib/MessageQueue.h b/mcrouter/lib/MessageQueue.h
-index 94e31190..4edba3b4 100644
---- a/mcrouter/lib/MessageQueue.h
-+++ b/mcrouter/lib/MessageQueue.h
-@@ -17,6 +17,7 @@
- #include <folly/Random.h>
- #include <folly/io/async/EventHandler.h>
- #include <folly/io/async/VirtualEventBase.h>
-+#include <folly/portability/GFlags.h>
- 
- DECLARE_bool(mcrouter_propagate_folly_request_context);
- 
 diff --git a/mcrouter/lib/carbon/connection/ExternalCarbonConnectionImpl-inl.h b/mcrouter/lib/carbon/connection/ExternalCarbonConnectionImpl-inl.h
 index 3bea8f08..dcc313a3 100644
 --- a/mcrouter/lib/carbon/connection/ExternalCarbonConnectionImpl-inl.h

diff --git a/0006-getdeps-record-the-checked-out-commit-in-getdeps-vendor.txt.patch b/0006-getdeps-record-the-checked-out-commit-in-getdeps-vendor.txt.patch
deleted file mode 100644
index 3a5aeb9..0000000
--- a/0006-getdeps-record-the-checked-out-commit-in-getdeps-vendor.txt.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/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 ab45d4f..05b84f6 100644
--- a/getdeps-vendor-licenses.toml
+++ b/getdeps-vendor-licenses.toml
@@ -111,4 +111,3 @@ expression = "CC0-1.0 OR Apache-2.0"
 prune_directories = [
   "vendor/fbthrift/thrift/lib/go",
 ]
-

diff --git a/mcrouter.spec b/mcrouter.spec
index 75f476a..8aa9017 100644
--- a/mcrouter.spec
+++ b/mcrouter.spec
@@ -21,11 +21,7 @@
 # snapshot form, and the distance keeps several snapshots between two tags in
 # order. 0.41.0.20250203, the last build of the autotools-era scheme, sorts
 # below.
-%global basetag v2026.09.21.00
-# Snapshot: the first commit shipping build/fbcode_builder, which the
-# %%getdeps_* macros need; the next weekly tag will contain it.
-%global commit d8b07b00c72e94237d3710db0e36ec58de414b6c
-%global commits 1
+%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})
@@ -43,6 +39,9 @@
 # Contents of a JSON object; the macro adds the braces.
 %global getdeps_extra_cmake_defines "MCROUTER_PACKAGE_VERSION": "%{version}"
 
+# the license config the macros read: Source2, plus the EL fragment on EL
+%global getdeps_licenses_toml vendor-licenses.toml
+
 Name:           mcrouter
 Version:        %{tagver}%{?snapinfo}
 Release:        %autorelease
@@ -90,11 +89,32 @@ Source0:        %{url}/archive/%{archive_ref}/%{name}-%{version}.tar.gz
 # recorded in vendor/getdeps-vendor.txt; produced by ./vendor.sh
 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 5471feffa64249ad669fb4f831aa05c468d429edf688abd40aade27f10e0f42d463105c7d41b89581d9151176168815390acdd28ada762272229155dfa9b38fb
+%global vendor_checked_sha512 03ce1dc3b255275bd8d074f2ed26a156806925901a8c6fbb21208ecbfa8234558ca4cf446ac0a1179b435a7097dce3be96cd6732ed2e6fa12a742ef675710268
 %if "%(sha512sum %{SOURCE1} 2>/dev/null | cut -c1-128)" == "%{vendor_checked_sha512}"
 %bcond_with license_full_check
 %else
@@ -105,31 +125,39 @@ Source2:        getdeps-vendor-licenses.toml
 # time, after Source1 is unpacked; ./vendor.sh skips them when vendoring.
 # folly against OpenSSL 4.0 (Fedora 45+): facebook/folly#2706, in review
 # (wangle's counterpart, facebook/wangle#254, has landed)
-Patch0:         0001-folly-build-against-OpenSSL-4.0.patch
+Patch:          0001-folly-build-against-OpenSSL-4.0.patch
 # fbthrift puts relocated metadata in a .rodata section, which -fPIC/-fPIE
 # makes writable; the linker then emits an RWX segment that Fedora's
 # --error-rwx-segments refuses and glibc's aarch64 loader crashes on.
 # facebook/fbthrift#712 landed and was reverted for an unrelated internal
 # size limit; carried until it lands again.
-Patch1:         0003-fbthrift-keep-thrift-data-out-of-a-writable-rodata-section.patch
+Patch:          0003-fbthrift-keep-thrift-data-out-of-a-writable-rodata-section.patch
 # folly's F14 fallback (no SSE2/NEON: ppc64le) is ambiguous against
 # libstdc++ 16's own heterogeneous lookup; submitted internally from
 # michel-slm/folly 4193514eb
-Patch2:         0004-folly-F14-fallback-forward-exact-key-lookups.patch
+Patch:          0004-folly-F14-fallback-forward-exact-key-lookups.patch
 # mcrouter itself against current folly (explicit gflags includes) and
 # Boost 1.90 (filesystem/convenience.hpp removed); submitted internally
-Patch3:         0005-Build-against-current-folly-and-Boost-1.90.patch
-# getdeps-vendor.txt recorded "main" for the unpinned dependencies: record
-# the checked-out commit and the version each bundled() Provides carries
-# (applied by vendor.sh before vendoring)
-Patch4:         0006-getdeps-record-the-checked-out-commit-in-getdeps-vendor.txt.patch
+Patch:          0005-Build-against-current-folly-and-Boost-1.90.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
 
 # ppc64le was dropped in 0.41.0.20250203 over the folly F14 fallback bug
 # (rhbz#2344416); Patch2 fixes the current incarnation of it, and cachelib
 # builds on ppc64le with the same patch.
 ExclusiveArch:  x86_64 aarch64 ppc64le
 
-BuildRequires:  folly-rpm-macros >= 46-9
+BuildRequires:  folly-rpm-macros >= 46-11
+# mcrouter's CMake links the executables with -latomic. Fedora buildroots
+# have the library already; CentOS Stream 10's do not, and gcc ships only
+# the /usr/lib64/libatomic.so symlink, so the x86_64 link failed with
+# "cannot find /usr/lib64/libatomic.so.1.2.0" (koji task 151008378) while
+# aarch64 and ppc64le happened to have it installed.
+BuildRequires:  libatomic
 %if %{with toolchain_clang}
 BuildRequires:  clang
 %else
@@ -150,14 +178,21 @@ Memcached hosts.
 
 %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
+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
 # 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}
+%getdeps_vendor_prune -c %{getdeps_licenses_toml}
 # autotools leftovers (FSFAP boost macros, a GPL-3.0-or-later
 # ax_python_devel.m4), not used by the CMake build
 rm -rf mcrouter/m4
@@ -170,14 +205,14 @@ rm -rf mcrouter/m4
 # the detector is installed. -f adds the per-file licensecheck pass, see
 # vendor_checked_sha512 above.
 # -L: liboqs's LICENSE.txt sits in a versioned subdirectory of its tree
-%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}
 
 
 %install
 %getdeps_install
-%getdeps_vendor_license_install -c %{SOURCE2}
+%getdeps_vendor_license_install -c %{getdeps_licenses_toml}
 
 
 %check

diff --git a/sources b/sources
index d2acfe2..4f3f777 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,3 @@
-SHA512 (mcrouter-2026.09.21.00^1.d8b07b0-vendor.tar.xz) = 5471feffa64249ad669fb4f831aa05c468d429edf688abd40aade27f10e0f42d463105c7d41b89581d9151176168815390acdd28ada762272229155dfa9b38fb
-SHA512 (mcrouter-2026.09.21.00^1.d8b07b0.tar.gz) = 59e1433d6e95ff5005f4db4e9e4dd363e10343df2a792056073f0c204517cd676e310d14d9c6a86517580e9792e93575e2c7240852778be313c564888211cf07
+SHA512 (mcrouter-2026.10.05.00-vendor-el.tar.xz) = 28faad4d88c9d8dafd63a2e63841c4cde5a24eed47ac1c9ec8d1663a00b33615711e80d55438aa4178cbfc06cc7de89722b8c87ae051108ea9e5232b7a7619df
+SHA512 (mcrouter-2026.10.05.00-vendor.tar.xz) = 03ce1dc3b255275bd8d074f2ed26a156806925901a8c6fbb21208ecbfa8234558ca4cf446ac0a1179b435a7097dce3be96cd6732ed2e6fa12a742ef675710268
+SHA512 (mcrouter-2026.10.05.00.tar.gz) = 4429507b7a7d79bce7147f08ececaf489de75bc2422e964c0393bac43397886ac1667bf8d4573b66fd321cb1c2fe861eb9d498f21cdfaf2bad319606a480b47a

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  9:34 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=179145205694.1.1717525211534002134.rpms-mcrouter-ba3a38692a7c@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