From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/git/files/, dev-vcs/git/
Date: Wed, 19 Mar 2025 01:06:39 +0000 (UTC) [thread overview]
Message-ID: <1742346332.9301c2f9d1cb966ab4fd292a9e5973fff40792d5.sam@gentoo> (raw)
commit: 9301c2f9d1cb966ab4fd292a9e5973fff40792d5
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 19 01:05:32 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Mar 19 01:05:32 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9301c2f9
dev-vcs/git: fix USE=doc build issue
Pull in the patch Eli sent upstream and applt it to 2.48.1 and 2.49.0;
for 2.48.1, I've rebased it as credential_helper didn't exist then.
Closes: https://bugs.gentoo.org/949247
Thanks-to: Eli Schwartz <eschwartz <AT> gentoo.org>
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-vcs/git/files/git-2.48.1-docs.patch | 49 +++++++++++++++++++++++++++++++++
dev-vcs/git/files/git-2.49.0-docs.patch | 49 +++++++++++++++++++++++++++++++++
dev-vcs/git/git-2.48.1.ebuild | 1 +
dev-vcs/git/git-2.49.0-r1.ebuild | 1 +
4 files changed, 100 insertions(+)
diff --git a/dev-vcs/git/files/git-2.48.1-docs.patch b/dev-vcs/git/files/git-2.48.1-docs.patch
new file mode 100644
index 000000000000..db9aeae7862d
--- /dev/null
+++ b/dev-vcs/git/files/git-2.48.1-docs.patch
@@ -0,0 +1,49 @@
+[This is the same as git-2.49.1-docs.patch, but modified to apply to 2.48.1.]
+
+https://public-inbox.org/git/20250316060605.166364-1-eschwartz@gentoo.org/T/
+
+From: Eli Schwartz <eschwartz@gentoo.org>
+To: git@vger.kernel.org
+Cc: Patrick Steinhardt <ps@pks.im>,
+ Sam James <sam@gentoo.org>
+Subject: [PATCH] meson: fix perl detection when docs are enabled, but perl bindings aren't
+Date: Sun, 16 Mar 2025 02:06:05 -0400
+Message-ID: <20250316060605.166364-1-eschwartz@gentoo.org>
+X-Mailer: git-send-email 2.48.1
+Precedence: bulk
+X-Mailing-List: git@vger.kernel.org
+List-Id: <git.vger.kernel.org>
+List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
+List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
+MIME-Version: 1.0
+Content-Transfer-Encoding: 8bit
+
+The `perl` variable in meson.build is assigned to a program lookup,
+which may have the value "not-found object" if configuring with
+`-Dperl=disabled`.
+
+There is already a list of other cases where we do need a perl command,
+even when not building perl bindings. Building documentation should be
+one of those cases, but was missing from the list. Add it.
+
+Fixes:
+
+```
+$ meson setup builddir/ -Ddocs=man -Dperl=disabled -Dtests=false
+[...]
+Documentation/meson.build:308:22: ERROR: Tried to use not-found external program in "command"
+```
+
+Bug: https://bugs.gentoo.org/949247
+Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
+--- a/meson.build
++++ b/meson.build
+@@ -749,7 +749,7 @@ endif
+ # features. It is optional if you want to neither execute tests nor use any of
+ # these optional features.
+ perl_required = get_option('perl')
+-if get_option('tests') or get_option('gitweb').enabled()
++if get_option('tests') or get_option('gitweb').enabled() or get_option('docs') != []
+ perl_required = true
+ endif
+
diff --git a/dev-vcs/git/files/git-2.49.0-docs.patch b/dev-vcs/git/files/git-2.49.0-docs.patch
new file mode 100644
index 000000000000..13ea597cfbcb
--- /dev/null
+++ b/dev-vcs/git/files/git-2.49.0-docs.patch
@@ -0,0 +1,49 @@
+https://public-inbox.org/git/20250316060605.166364-1-eschwartz@gentoo.org/T/
+
+From: Eli Schwartz <eschwartz@gentoo.org>
+To: git@vger.kernel.org
+Cc: Patrick Steinhardt <ps@pks.im>,
+ Sam James <sam@gentoo.org>
+Subject: [PATCH] meson: fix perl detection when docs are enabled, but perl bindings aren't
+Date: Sun, 16 Mar 2025 02:06:05 -0400
+Message-ID: <20250316060605.166364-1-eschwartz@gentoo.org>
+X-Mailer: git-send-email 2.48.1
+Precedence: bulk
+X-Mailing-List: git@vger.kernel.org
+List-Id: <git.vger.kernel.org>
+List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
+List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
+MIME-Version: 1.0
+Content-Transfer-Encoding: 8bit
+
+The `perl` variable in meson.build is assigned to a program lookup,
+which may have the value "not-found object" if configuring with
+`-Dperl=disabled`.
+
+There is already a list of other cases where we do need a perl command,
+even when not building perl bindings. Building documentation should be
+one of those cases, but was missing from the list. Add it.
+
+Fixes:
+
+```
+$ meson setup builddir/ -Ddocs=man -Dperl=disabled -Dtests=false
+[...]
+Documentation/meson.build:308:22: ERROR: Tried to use not-found external program in "command"
+```
+
+Bug: https://bugs.gentoo.org/949247
+Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
+--- a/meson.build
++++ b/meson.build
+@@ -772,7 +772,7 @@ endif
+ # features. It is optional if you want to neither execute tests nor use any of
+ # these optional features.
+ perl_required = get_option('perl')
+-if get_option('tests') or get_option('gitweb').enabled() or 'netrc' in get_option('credential_helpers')
++if get_option('tests') or get_option('gitweb').enabled() or 'netrc' in get_option('credential_helpers') or get_option('docs') != []
+ perl_required = true
+ endif
+
+--
+2.48.1
diff --git a/dev-vcs/git/git-2.48.1.ebuild b/dev-vcs/git/git-2.48.1.ebuild
index 38036e16bda6..a65507786715 100644
--- a/dev-vcs/git/git-2.48.1.ebuild
+++ b/dev-vcs/git/git-2.48.1.ebuild
@@ -151,6 +151,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-2.48.0-doc-deps.patch
"${FILESDIR}"/${PN}-2.48.1-parallel-build.patch
"${FILESDIR}"/${PN}-2.48.1-macos-no-fsmonitor.patch
+ "${FILESDIR}"/${PN}-2.48.1-docs.patch
)
pkg_setup() {
diff --git a/dev-vcs/git/git-2.49.0-r1.ebuild b/dev-vcs/git/git-2.49.0-r1.ebuild
index e5f4bb671f79..9675dd25cdec 100644
--- a/dev-vcs/git/git-2.49.0-r1.ebuild
+++ b/dev-vcs/git/git-2.49.0-r1.ebuild
@@ -150,6 +150,7 @@ RESTRICT="!test? ( test )"
PATCHES=(
"${FILESDIR}"/${PN}-2.48.1-macos-no-fsmonitor.patch
"${FILESDIR}"/${PN}-2.49.0-meson-use-test_environment-conditionally.patch
+ "${FILESDIR}"/${PN}-2.49.0-docs.patch
)
pkg_setup() {
next reply other threads:[~2025-03-19 1:06 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-19 1:06 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-03-28 19:48 [gentoo-commits] repo/gentoo:master commit in: dev-vcs/git/files/, dev-vcs/git/ Sam James
2025-02-23 12:20 Fabian Groffen
2024-10-17 7:19 Sam James
2024-09-30 5:14 Sam James
2022-08-19 1:43 Sam James
2022-06-18 7:03 Lars Wendler
2022-06-16 11:16 Lars Wendler
2022-06-11 6:31 Ulrich Müller
2021-12-06 9:01 Lars Wendler
2021-03-18 9:21 Lars Wendler
2021-02-26 9:30 Lars Wendler
2021-01-07 13:01 Lars Wendler
2019-10-21 8:18 Lars Wendler
2019-04-12 7:23 Robin H. Johnson
2018-11-22 0:12 Lars Wendler
2018-06-06 14:34 Lars Wendler
2018-03-23 11:23 Lars Wendler
2017-03-21 9:29 Lars Wendler
2016-09-03 19:19 Lars Wendler
2016-01-17 15:34 Andreas Hüttel
2016-01-16 23:16 Andreas Hüttel
2015-11-06 8:48 Lars Wendler
2015-10-06 8:55 Lars Wendler
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=1742346332.9301c2f9d1cb966ab4fd292a9e5973fff40792d5.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.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