diff options
| author | Fabio Berton <fabio.berton@ctw.bmwgroup.com> | 2026-02-18 09:50:16 +0000 |
|---|---|---|
| committer | Paul Barker <paul@pbarker.dev> | 2026-02-27 15:54:02 +0000 |
| commit | b249264a0c2d298a37c19dd613e5babccd484bc0 (patch) | |
| tree | f9ff898f91ffc4b7ab275f25e1d5bec0086955d4 /meta/classes | |
| parent | f210d0fc0579d032bbb074885e33b085cf86c781 (diff) | |
| download | poky-b249264a0c2d298a37c19dd613e5babccd484bc0.tar.gz | |
classes/buildhistory: Do not sign buildhistory commits
This change adds the --no-gpg-sign option to prevent buildhistory
commits from failing due to GPG signing issues. Depending on the setup,
buildhistory may fail to create a commit if the user has the
commit.gpgsign option enabled.
For example, if the user creates a signing key that requires a password,
the commit won't be created and will fail with the following error:
/
|error: Enter passphrase: Load key "/home/<user>/.ssh/id_ed25519":
|incorrect passphrase supplied to decrypt private key?
|fatal: failed to write commit object
\
The bitbake command won't fail, but buildhistory won't have a commit.
Also, the commit may silently fail when building inside a container due
to missing packages or issues with accessing the GPG agent.
This is similar to [1], and signing the buildhistory commit
should be avoided to prevent such issues.
1 - https://git.openembedded.org/openembedded-core/commit/?id=7595a0a63a933af9dd9d1e458dc34a4ba80d9eae
(From OE-Core rev: 5294d15737e176ee96d9b590808ded2164386362)
Signed-off-by: Fabio Berton <fabio.berton@ctw.bmwgroup.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a5e18714aee52db898aaf9d222fb5a4168bde96e)
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Signed-off-by: Paul Barker <paul@pbarker.dev>
Diffstat (limited to 'meta/classes')
| -rw-r--r-- | meta/classes/buildhistory.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass index 83993f5752..52f886dff6 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass | |||
| @@ -859,7 +859,7 @@ result: $result | |||
| 859 | metadata revisions: | 859 | metadata revisions: |
| 860 | END | 860 | END |
| 861 | cat ${BUILDHISTORY_DIR}/metadata-revs >> $commitmsgfile | 861 | cat ${BUILDHISTORY_DIR}/metadata-revs >> $commitmsgfile |
| 862 | git commit $commitopts -F $commitmsgfile --author "${BUILDHISTORY_COMMIT_AUTHOR}" > /dev/null | 862 | git commit --no-gpg-sign $commitopts -F $commitmsgfile --author "${BUILDHISTORY_COMMIT_AUTHOR}" > /dev/null |
| 863 | rm $commitmsgfile | 863 | rm $commitmsgfile |
| 864 | } | 864 | } |
| 865 | 865 | ||
