From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D25291581F0 for ; Sat, 11 Jan 2025 06:37:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BDAE2E0823; Sat, 11 Jan 2025 06:37:36 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 254C0E0824 for ; Sat, 11 Jan 2025 06:37:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 30D0833BE26 for ; Sat, 11 Jan 2025 06:37:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8B8551F96 for ; Sat, 11 Jan 2025 06:37:33 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1736577395.2f565e2703c06c2c82c0b5fb3bdbcaa0a09d2eec.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/git/, dev-vcs/git/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-vcs/git/files/git-2.48.0-doc-deps.patch dev-vcs/git/git-2.48.0.ebuild dev-vcs/git/git-9999-r1.ebuild dev-vcs/git/git-9999-r2.ebuild dev-vcs/git/git-9999-r3.ebuild X-VCS-Directories: dev-vcs/git/files/ dev-vcs/git/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 2f565e2703c06c2c82c0b5fb3bdbcaa0a09d2eec X-VCS-Branch: master Date: Sat, 11 Jan 2025 06:37:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e979baa3-5635-4196-b454-1f7b66f529fd X-Archives-Hash: e15a788d38c00e2f77fd3269012eae13 commit: 2f565e2703c06c2c82c0b5fb3bdbcaa0a09d2eec Author: Sam James gentoo org> AuthorDate: Sat Jan 11 06:35:13 2025 +0000 Commit: Sam James gentoo org> CommitDate: Sat Jan 11 06:36:35 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f565e27 dev-vcs/git: fix USE=doc * Fix parallel build w/ USE=doc for finding asciidoc.conf * Hack around issues with old Makefiles not knowing about out-of-source build artifacts from Meson Closes: https://bugs.gentoo.org/947827 Signed-off-by: Sam James gentoo.org> dev-vcs/git/files/git-2.48.0-doc-deps.patch | 18 ++++++++++++++++++ dev-vcs/git/git-2.48.0.ebuild | 21 +++++++++++++++++---- dev-vcs/git/git-9999-r1.ebuild | 17 +++++++++++++---- dev-vcs/git/git-9999-r2.ebuild | 17 +++++++++++++---- dev-vcs/git/git-9999-r3.ebuild | 17 +++++++++++++---- 5 files changed, 74 insertions(+), 16 deletions(-) diff --git a/dev-vcs/git/files/git-2.48.0-doc-deps.patch b/dev-vcs/git/files/git-2.48.0-doc-deps.patch new file mode 100644 index 000000000000..83efd62ab38d --- /dev/null +++ b/dev-vcs/git/files/git-2.48.0-doc-deps.patch @@ -0,0 +1,18 @@ +--- a/Documentation/technical/meson.build ++++ b/Documentation/technical/meson.build +@@ -42,6 +42,7 @@ api_index = custom_target( + '@OUTPUT@', + ], + env: script_environment, ++ depends: documentation_deps, + input: api_docs, + output: 'api-index.txt', + ) +@@ -60,6 +61,7 @@ foreach article : api_docs + articles + command: asciidoc_html_options, + input: article, + output: fs.stem(article) + '.html', ++ depends: documentation_deps, + install: true, + install_dir: get_option('datadir') / 'doc/git-doc/technical', + ) diff --git a/dev-vcs/git/git-2.48.0.ebuild b/dev-vcs/git/git-2.48.0.ebuild index 8d8904831f08..9aea3ab17bb8 100644 --- a/dev-vcs/git/git-2.48.0.ebuild +++ b/dev-vcs/git/git-2.48.0.ebuild @@ -148,6 +148,10 @@ REQUIRED_USE=" RESTRICT="!test? ( test )" +PATCHES=( + "${FILESDIR}"/${PN}-2.48.0-doc-deps.patch +) + pkg_setup() { if use subversion && has_version "dev-vcs/subversion[dso]" ; then ewarn "Per Gentoo bugs #223747, #238586, when subversion is built" @@ -193,7 +197,7 @@ src_configure() { ) # For non-live, we use a downloaded docs tarball instead. - if [[ ${PV} == *9999 ]] ; then + if [[ ${PV} == *9999 ]] || use doc ; then emesonargs+=( -Ddocs="man$(usev doc ',html')" ) @@ -248,8 +252,13 @@ src_compile() { git_emake -C contrib/mw-to-git fi - git_emake -C contrib/diff-highlight + if use doc ; then + # Workaround fragments that still use the Makefile and can't + # find the bits from Meson's out-of-source build + ln -s "${BUILD_DIR}"/Documentation/asciidoc.conf "${S}"/Documentation/asciidoc.conf || die + fi + git_emake -C contrib/diff-highlight git_emake -C contrib/subtree git-subtree # git-subtree.1 requires the full USE=doc dependency stack use doc && git_emake -C contrib/subtree git-subtree.html git-subtree.1 @@ -274,11 +283,17 @@ src_install() { dobin contrib/credential/osxkeychain/git-credential-osxkeychain fi + if use doc ; then + cp -r "${ED}"/usr/share/doc/git-doc/. "${ED}"/usr/share/doc/${PF}/html || die + rm -rf "${ED}"/usr/share/doc/git-doc/ || die + fi + # Depending on the tarball and manual rebuild of the documentation, the # manpages may exist in either OR both of these directories. find man?/*.[157] >/dev/null 2>&1 && doman man?/*.[157] find Documentation/*.[157] >/dev/null 2>&1 && doman Documentation/*.[157] dodoc README* Documentation/{SubmittingPatches,CodingGuidelines} + use doc && dodir /usr/share/doc/${PF}/html local d for d in / /howto/ /technical/ ; do @@ -290,8 +305,6 @@ src_install() { fi done docinto / - # Upstream does not ship this pre-built :-( - use doc && doinfo Documentation/{git,gitman}.info newbashcomp contrib/completion/git-completion.bash ${PN} bashcomp_alias git gitk diff --git a/dev-vcs/git/git-9999-r1.ebuild b/dev-vcs/git/git-9999-r1.ebuild index 8d8904831f08..6e9f44d049fa 100644 --- a/dev-vcs/git/git-9999-r1.ebuild +++ b/dev-vcs/git/git-9999-r1.ebuild @@ -193,7 +193,7 @@ src_configure() { ) # For non-live, we use a downloaded docs tarball instead. - if [[ ${PV} == *9999 ]] ; then + if [[ ${PV} == *9999 ]] || use doc ; then emesonargs+=( -Ddocs="man$(usev doc ',html')" ) @@ -248,8 +248,13 @@ src_compile() { git_emake -C contrib/mw-to-git fi - git_emake -C contrib/diff-highlight + if use doc ; then + # Workaround fragments that still use the Makefile and can't + # find the bits from Meson's out-of-source build + ln -s "${BUILD_DIR}"/Documentation/asciidoc.conf "${S}"/Documentation/asciidoc.conf || die + fi + git_emake -C contrib/diff-highlight git_emake -C contrib/subtree git-subtree # git-subtree.1 requires the full USE=doc dependency stack use doc && git_emake -C contrib/subtree git-subtree.html git-subtree.1 @@ -274,11 +279,17 @@ src_install() { dobin contrib/credential/osxkeychain/git-credential-osxkeychain fi + if use doc ; then + cp -r "${ED}"/usr/share/doc/git-doc/. "${ED}"/usr/share/doc/${PF}/html || die + rm -rf "${ED}"/usr/share/doc/git-doc/ || die + fi + # Depending on the tarball and manual rebuild of the documentation, the # manpages may exist in either OR both of these directories. find man?/*.[157] >/dev/null 2>&1 && doman man?/*.[157] find Documentation/*.[157] >/dev/null 2>&1 && doman Documentation/*.[157] dodoc README* Documentation/{SubmittingPatches,CodingGuidelines} + use doc && dodir /usr/share/doc/${PF}/html local d for d in / /howto/ /technical/ ; do @@ -290,8 +301,6 @@ src_install() { fi done docinto / - # Upstream does not ship this pre-built :-( - use doc && doinfo Documentation/{git,gitman}.info newbashcomp contrib/completion/git-completion.bash ${PN} bashcomp_alias git gitk diff --git a/dev-vcs/git/git-9999-r2.ebuild b/dev-vcs/git/git-9999-r2.ebuild index 8d8904831f08..6e9f44d049fa 100644 --- a/dev-vcs/git/git-9999-r2.ebuild +++ b/dev-vcs/git/git-9999-r2.ebuild @@ -193,7 +193,7 @@ src_configure() { ) # For non-live, we use a downloaded docs tarball instead. - if [[ ${PV} == *9999 ]] ; then + if [[ ${PV} == *9999 ]] || use doc ; then emesonargs+=( -Ddocs="man$(usev doc ',html')" ) @@ -248,8 +248,13 @@ src_compile() { git_emake -C contrib/mw-to-git fi - git_emake -C contrib/diff-highlight + if use doc ; then + # Workaround fragments that still use the Makefile and can't + # find the bits from Meson's out-of-source build + ln -s "${BUILD_DIR}"/Documentation/asciidoc.conf "${S}"/Documentation/asciidoc.conf || die + fi + git_emake -C contrib/diff-highlight git_emake -C contrib/subtree git-subtree # git-subtree.1 requires the full USE=doc dependency stack use doc && git_emake -C contrib/subtree git-subtree.html git-subtree.1 @@ -274,11 +279,17 @@ src_install() { dobin contrib/credential/osxkeychain/git-credential-osxkeychain fi + if use doc ; then + cp -r "${ED}"/usr/share/doc/git-doc/. "${ED}"/usr/share/doc/${PF}/html || die + rm -rf "${ED}"/usr/share/doc/git-doc/ || die + fi + # Depending on the tarball and manual rebuild of the documentation, the # manpages may exist in either OR both of these directories. find man?/*.[157] >/dev/null 2>&1 && doman man?/*.[157] find Documentation/*.[157] >/dev/null 2>&1 && doman Documentation/*.[157] dodoc README* Documentation/{SubmittingPatches,CodingGuidelines} + use doc && dodir /usr/share/doc/${PF}/html local d for d in / /howto/ /technical/ ; do @@ -290,8 +301,6 @@ src_install() { fi done docinto / - # Upstream does not ship this pre-built :-( - use doc && doinfo Documentation/{git,gitman}.info newbashcomp contrib/completion/git-completion.bash ${PN} bashcomp_alias git gitk diff --git a/dev-vcs/git/git-9999-r3.ebuild b/dev-vcs/git/git-9999-r3.ebuild index 8d8904831f08..6e9f44d049fa 100644 --- a/dev-vcs/git/git-9999-r3.ebuild +++ b/dev-vcs/git/git-9999-r3.ebuild @@ -193,7 +193,7 @@ src_configure() { ) # For non-live, we use a downloaded docs tarball instead. - if [[ ${PV} == *9999 ]] ; then + if [[ ${PV} == *9999 ]] || use doc ; then emesonargs+=( -Ddocs="man$(usev doc ',html')" ) @@ -248,8 +248,13 @@ src_compile() { git_emake -C contrib/mw-to-git fi - git_emake -C contrib/diff-highlight + if use doc ; then + # Workaround fragments that still use the Makefile and can't + # find the bits from Meson's out-of-source build + ln -s "${BUILD_DIR}"/Documentation/asciidoc.conf "${S}"/Documentation/asciidoc.conf || die + fi + git_emake -C contrib/diff-highlight git_emake -C contrib/subtree git-subtree # git-subtree.1 requires the full USE=doc dependency stack use doc && git_emake -C contrib/subtree git-subtree.html git-subtree.1 @@ -274,11 +279,17 @@ src_install() { dobin contrib/credential/osxkeychain/git-credential-osxkeychain fi + if use doc ; then + cp -r "${ED}"/usr/share/doc/git-doc/. "${ED}"/usr/share/doc/${PF}/html || die + rm -rf "${ED}"/usr/share/doc/git-doc/ || die + fi + # Depending on the tarball and manual rebuild of the documentation, the # manpages may exist in either OR both of these directories. find man?/*.[157] >/dev/null 2>&1 && doman man?/*.[157] find Documentation/*.[157] >/dev/null 2>&1 && doman Documentation/*.[157] dodoc README* Documentation/{SubmittingPatches,CodingGuidelines} + use doc && dodir /usr/share/doc/${PF}/html local d for d in / /howto/ /technical/ ; do @@ -290,8 +301,6 @@ src_install() { fi done docinto / - # Upstream does not ship this pre-built :-( - use doc && doinfo Documentation/{git,gitman}.info newbashcomp contrib/completion/git-completion.bash ${PN} bashcomp_alias git gitk