]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
gnupg: drop -unknown suffix from version number
authorYi Zhao <yi.zhao@eng.windriver.com>
Wed, 2 Jul 2025 07:28:52 +0000 (15:28 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 3 Jul 2025 09:38:22 +0000 (10:38 +0100)
commitf6efe56a8c73ae9f58cb70f1469c617ff0647b49
tree81d28734b71aeb00454e51e46a7c1b6cbdbe6f78
parentf149a9541789286299c1afb84f61df0484d0f72e
gnupg: drop -unknown suffix from version number

For gnupg and related packages, if autogen.sh is run outside of a git
repo, the find-version function always assumes that the package is a
beta version and adds the suffix '-unknown' to the version number.

Add drop-unknow-suffix.inc file that can be included by gnupg and other
recipes. This file is used to modify autogen.sh:
1. Replace beta=yes with beta=no.
2. Replace tmp="-unknown" with tmp=""

Also remove 0004-autogen.sh-fix-find-version-for-beta-checking.patch as
it is no longer needed.

Befor the fix:
$ gpg --version
gpg (GnuPG) 2.5.5-unknown

After the fix:
$ gpg --version
gpg (GnuPG) 2.5.5

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/gnupg/drop-unknown-suffix.inc [new file with mode: 0644]
meta/recipes-support/gnupg/gnupg/0004-autogen.sh-fix-find-version-for-beta-checking.patch [deleted file]
meta/recipes-support/gnupg/gnupg_2.5.5.bb