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/folly-rpm-macros] f44: Require git, which getdeps needs to apply a manifest's patchfile
Date: Thu, 08 Oct 2026 13:34:40 GMT	[thread overview]
Message-ID: <179146648098.1.17260640209987004843.rpms-folly-rpm-macros-d4dc7959f135@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/folly-rpm-macros
            Branch : f44
            Commit : d4dc7959f13588cde7e55a82e786afbb809bbd3d
            Author : Michel Lind <salimma@fedoraproject.org>
            Date   : 2026-10-07T19:32:23+01:00
            Stats  : +6/-1 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/folly-rpm-macros/c/d4dc7959f13588cde7e55a82e786afbb809bbd3d?branch=f44

            Log:
            Require git, which getdeps needs to apply a manifest's patchfile

- Requires: git-core, so the buildroot has it wherever these macros run

getdeps' builder applies a project's patchfile with `git apply`, so any
build that builds a project carrying one needs git. Fedora buildroots
happen to have it, and on Fedora the projects with patchfiles come from
system packages anyway, so this never showed there. On EPEL 10 the vendored
glog has a patchfile and the buildroot has no git: all three architectures
of the cachelib scratch build died with

    FileNotFoundError: [Errno 2] No such file or directory: 'git'

before compiling anything (koji task 151003941).

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

---
diff --git a/AGENTS.md b/AGENTS.md
index fb15998..3f0e78d 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -51,7 +51,7 @@ folly-rpm-macros' Version is the Fedora release number current when it was
 last touched (46 today), not a version of its own, so a macro change usually
 only moves the *release*: 46-2, 46-3. A dependent that needs the new
 behaviour must therefore require the release too, `BuildRequires:
-folly-rpm-macros >= 46-10`, which cachelib and mcrouter both do. Ask
+folly-rpm-macros >= 46-11`, which cachelib and mcrouter both do. Ask
 `fedpkg verrel` for the number rather than counting builds: rpmautospec
 counts the commits since the last version change, one release each, so
 commits that were never built still raise it. On a clean tree it reports

diff --git a/folly-rpm-macros.spec b/folly-rpm-macros.spec
index 6788854..4d5d982 100644
--- a/folly-rpm-macros.spec
+++ b/folly-rpm-macros.spec
@@ -17,6 +17,11 @@ Requires:       rpm
 Requires:       python3
 # %%getdeps_install runs %%{__cmake}
 Requires:       cmake-rpm-macros
+# getdeps applies a manifest's patchfile with `git apply`, so a build needs
+# git whenever it builds a project that has one. Fedora buildroots happen to
+# have it; EPEL 10's do not, and there the vendored glog (which carries a
+# patchfile) made the build fail with FileNotFoundError: 'git'.
+Requires:       git-core
 # the %%getdeps_vendor_license_* macros wrap go_vendor_license and licensecheck
 Requires:       go-vendor-tools
 # licensecheck is Fedora-only (no EPEL build of it); without it the check

                 reply	other threads:[~2026-10-08 13: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=179146648098.1.17260640209987004843.rpms-folly-rpm-macros-d4dc7959f135@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