]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
devtool-source.bbclass: Do not create annotated tags if tag.gpgSign is set
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Mon, 17 Mar 2025 17:13:02 +0000 (18:13 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 19 Mar 2025 12:09:04 +0000 (12:09 +0000)
If tag.gpgSign is configured in Git's configuration, then creating the
devtool-patched tag will fail (if Git's core.editor is not configured)
or it will hang (when trying to open the editor). This is beacause
tag.gpgSign causes git tag to create annotated tags. To avoid this,
specify --no-sign as argument to git tag.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/devtool-source.bbclass

index 3e24800dcb03c8931a6d0d1e944ab42256765a59..9762003ba75aad2b975a9b72669fe3e48a69f4c5 100644 (file)
@@ -179,9 +179,9 @@ python devtool_post_patch() {
                 # (otherwise we'd likely be left with identical commits that have different hashes)
                 bb.process.run('git rebase devtool-no-overrides', cwd=srcsubdir)
         bb.process.run('git checkout %s' % devbranch, cwd=srcsubdir)
-    bb.process.run('git tag -f devtool-patched', cwd=srcsubdir)
+    bb.process.run('git tag -f --no-sign devtool-patched', cwd=srcsubdir)
     if os.path.exists(os.path.join(srcsubdir, '.gitmodules')):
-        bb.process.run('git submodule foreach --recursive  "git tag -f devtool-patched"', cwd=srcsubdir)
+        bb.process.run('git submodule foreach --recursive  "git tag -f --no-sign devtool-patched"', cwd=srcsubdir)
 
 }