]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
time: fix runtime version from UNKNOWN to 1.9
authorChen Qi <Qi.Chen@windriver.com>
Fri, 28 Mar 2025 05:17:15 +0000 (22:17 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 7 Apr 2025 16:59:29 +0000 (17:59 +0100)
The runtime version of time is determined by:
build-aux/git-version-gen .tarball-version

But there's no .tarball-version in the tarball. So we add this file
manually with ${PV} as the content if it does not exist.

Note that there's a patch for upstream:
https://lists.gnu.org/archive/html/bug-time/2021-01/msg00000.html
So it's possible that when this time recipe is upgraded to a new
version, we won't need such adjust any more.

Before the fix, time --version:
time (GNU Time) UNKNOWN

After the fix, time --version:
time (GNU Time) 1.9

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/time/time_1.9.bb

index 366a64d8e5d23d080eabd51b45a71ffffb11e9b3..125554b378a6682b8ac02e60dce235551f067732 100644 (file)
@@ -23,3 +23,8 @@ SRC_URI[md5sum] = "d2356e0fe1c0b85285d83c6b2ad51b5f"
 SRC_URI[sha256sum] = "fbacf0c81e62429df3e33bda4cee38756604f18e01d977338e23306a3e3b521e"
 
 inherit autotools
+
+# Submitted fix: https://lists.gnu.org/archive/html/bug-time/2021-01/msg00000.html
+do_configure:prepend () {
+    [ ! -e ${S}/.tarball-version ] && echo ${PV} > ${S}/.tarball-version
+}