From d5423311b94d87aed13b58a8078b71fd387b4afa Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 25 Jun 2026 10:43:40 -0700 Subject: [PATCH] crash: drop unnecessary git scaffolding from do_compile The do_compile:prepend ran "git init && git add . && git commit" inside the staged gdb-16.2 tree. crash's build does not use git at all - the bundled gdb is unpacked from a release tarball and merged with plain "patch -p0" - so this served no purpose and only made the build depend on a working git identity. In any environment where committer identity is unset, or where commit signing is enabled globally (commit.gpgsign=true), do_compile fails with: error: gpg failed to sign the data fatal: failed to write commit object Drop the git scaffolding entirely; the gdb patch still applies with patch(1). Signed-off-by: Khem Raj --- meta-oe/recipes-kernel/crash/crash.inc | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/meta-oe/recipes-kernel/crash/crash.inc b/meta-oe/recipes-kernel/crash/crash.inc index 4e889f7677..e7b3b9cf13 100644 --- a/meta-oe/recipes-kernel/crash/crash.inc +++ b/meta-oe/recipes-kernel/crash/crash.inc @@ -90,13 +90,6 @@ do_compile:prepend() { # 2. Copy the official clean GNU tarball source footprint into the active workspace mapping cp -rf ${UNPACKDIR}/gdb/gdb-16.2 ${B}/gdb-16.2 - # 3. Initialize the localized tracking repository required by the crash build architecture - cd ${B}/gdb-16.2/ - git init - git add . - git commit -m "initial commit" - cd ${B} - bbnote "Writing dynamic target layout architecture context: ${ARCH_UPPER}" echo "${ARCH_UPPER}" > ${B}/gdb-16.2/crash.target @@ -110,10 +103,6 @@ do_compile:prepend() { cd ${B} bbnote "Applying the native upstream crash integration patch onto the GDB source tree..." patch -p0 --fuzz=3 < gdb-16.2.patch - cd ${B}/gdb-16.2/ - git add . - git commit -m "after upstream crash gdb-16.2.patch" - cd ${B} } do_compile() {