]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
dpkg: drop suffix from version number
authorYi Zhao <yi.zhao@windriver.com>
Fri, 18 Apr 2025 11:39:34 +0000 (19:39 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 24 Apr 2025 10:25:00 +0000 (11:25 +0100)
commit04d00d69941a9d09bfbb0956186db7a7d0961327
tree1f683b1daab4ceb91791cf06c6151424e35d2291
parentfbac8d025585fe704f79ccdf00f376f677e3a89d
dpkg: drop suffix from version number

The current dpkg runtime version is generated by 'git describe' command
in build-aux/get-version. But since we have made changes to git repo
locally, it adds a -dirty suffix to the version number.

Add a .dist-version file in the source directory. Then get-version can
determine the version through .dist-version instead of "git describe"
command, thus removing the -dirty suffix.

Before the fix:
$ dpkg --version
Debian 'dpkg' package management program version 1.22.11-dirty (amd64).

After the fix:
$ dpkg --version
Debian 'dpkg' package management program version 1.22.11 (amd64).

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/dpkg/dpkg.inc