From d036a2e38fe5bcdf9069e32ef8842f5448e1a4b6 Mon Sep 17 00:00:00 2001 From: Flatcar Buildbot Date: Mon, 10 Feb 2025 07:07:35 +0000 Subject: [PATCH] dev-vcs/git: Sync with Gentoo It's from Gentoo commit ce19ef933625f7cb551cc3c8f5d5d8e3dc30fa4a. --- .../git/files/git-2.48.1-parallel-build.patch | 85 +++++++++++++++++++ .../dev-vcs/git/git-2.48.1.ebuild | 1 + 2 files changed, 86 insertions(+) create mode 100644 sdk_container/src/third_party/portage-stable/dev-vcs/git/files/git-2.48.1-parallel-build.patch diff --git a/sdk_container/src/third_party/portage-stable/dev-vcs/git/files/git-2.48.1-parallel-build.patch b/sdk_container/src/third_party/portage-stable/dev-vcs/git/files/git-2.48.1-parallel-build.patch new file mode 100644 index 0000000000..fb10f59b2d --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-vcs/git/files/git-2.48.1-parallel-build.patch @@ -0,0 +1,85 @@ +https://bugs.gentoo.org/948865 +https://lore.kernel.org/git/20250122-b4-pks-meson-additions-v3-4-5a51eb5d3dcd@pks.im/ + +From: Patrick Steinhardt +Date: Wed, 22 Jan 2025 13:05:47 +0100 +Subject: [PATCH v3 04/11] meson: fix dependencies for generated headers +Precedence: bulk +X-Mailing-List: git@vger.kernel.org +List-Id: +List-Subscribe: +List-Unsubscribe: +MIME-Version: 1.0 +Content-Type: text/plain; charset="utf-8" +Content-Transfer-Encoding: 7bit +Message-Id: <20250122-b4-pks-meson-additions-v3-4-5a51eb5d3dcd@pks.im> +References: <20250122-b4-pks-meson-additions-v3-0-5a51eb5d3dcd@pks.im> +In-Reply-To: <20250122-b4-pks-meson-additions-v3-0-5a51eb5d3dcd@pks.im> +To: git@vger.kernel.org +Cc: Evan Martin , + Eli Schwartz , Junio C Hamano , + M Hickford , Toon Claes +X-Mailer: b4 0.14.2 + +We generate a couple of headers from our documentation. These headers +are added to the libgit sources, but two of them aren't used by the +library, but instead by our builtins. This can cause parallel builds to +fail because the builtin object may be compiled before the header was +generated. + +Fix the issue by adding both "config-list.h" and "hook-list.h" to the +list of builtin sources. While "command-list.h" is generated similarly, +it is used by "help.c" and thus part of the libgit sources indeed. + +Reported-by: Evan Martin +Signed-off-by: Patrick Steinhardt +--- + meson.build | 18 +++++++++--------- + 1 file changed, 9 insertions(+), 9 deletions(-) + +diff --git a/meson.build b/meson.build +index 213998986e..4053024dad 100644 +--- a/meson.build ++++ b/meson.build +@@ -487,6 +487,13 @@ libgit_sources = [ + 'xdiff/xutils.c', + ] + ++libgit_sources += custom_target( ++ input: 'command-list.txt', ++ output: 'command-list.h', ++ command: [shell, meson.current_source_dir() + '/generate-cmdlist.sh', meson.current_source_dir(), '@OUTPUT@'], ++ env: script_environment, ++) ++ + builtin_sources = [ + 'builtin/add.c', + 'builtin/am.c', +@@ -614,14 +621,7 @@ builtin_sources = [ + 'builtin/write-tree.c', + ] + +-libgit_sources += custom_target( +- input: 'command-list.txt', +- output: 'command-list.h', +- command: [shell, meson.current_source_dir() + '/generate-cmdlist.sh', meson.current_source_dir(), '@OUTPUT@'], +- env: script_environment, +-) +- +-libgit_sources += custom_target( ++builtin_sources += custom_target( + output: 'config-list.h', + command: [ + shell, +@@ -632,7 +632,7 @@ libgit_sources += custom_target( + env: script_environment, + ) + +-libgit_sources += custom_target( ++builtin_sources += custom_target( + input: 'Documentation/githooks.txt', + output: 'hook-list.h', + command: [ + +-- +2.48.1.321.gbf1f004a4a.dirty diff --git a/sdk_container/src/third_party/portage-stable/dev-vcs/git/git-2.48.1.ebuild b/sdk_container/src/third_party/portage-stable/dev-vcs/git/git-2.48.1.ebuild index f90f10f55f..12b9dd2011 100644 --- a/sdk_container/src/third_party/portage-stable/dev-vcs/git/git-2.48.1.ebuild +++ b/sdk_container/src/third_party/portage-stable/dev-vcs/git/git-2.48.1.ebuild @@ -149,6 +149,7 @@ RESTRICT="!test? ( test )" PATCHES=( "${FILESDIR}"/${PN}-2.48.0-doc-deps.patch + "${FILESDIR}"/${PN}-2.48.1-parallel-build.patch ) pkg_setup() {