]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
procps: fix runtime version when using git shallow tarball
authorYi Zhao <yi.zhao@eng.windriver.com>
Tue, 1 Jul 2025 15:47:30 +0000 (23:47 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 3 Jul 2025 09:38:22 +0000 (10:38 +0100)
Add tag to SRC_URI to fix runtime version when using git shallow
tarball.

Before the fix:
root@intel-x86-64:~# ps -V
ps from procps-ng UNKNOWN
root@intel-x86-64:~# sysctl -V
sysctl from procps-ng UNKNOWN

After the fix:
root@intel-x86-64:~# ps -V
ps from procps-ng 4.0.5
root@intel-x86-64:~# sysctl -V
sysctl from procps-ng 4.0.5

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/procps/procps_4.0.5.bb

index 2b41be393022b0c9e2fbe38be05adf10511f4782..d568cc831e45ce5cc063d86865b467f6ee71de0e 100644 (file)
@@ -12,7 +12,7 @@ DEPENDS = "ncurses"
 
 inherit autotools gettext pkgconfig update-alternatives
 
-SRC_URI = "git://gitlab.com/procps-ng/procps.git;protocol=https;branch=master \
+SRC_URI = "git://gitlab.com/procps-ng/procps.git;protocol=https;branch=master;tag=v${PV} \
            file://sysctl.conf \
            "
 SRCREV = "f46b2f7929cdfe2913ed0a7f585b09d6adbf994e"