summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2025-03-27 22:17:15 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-04-08 15:49:17 +0100
commit37b54ce75e82b399d0d7f8c212254d248cbdbbea (patch)
tree1f8140a4310d0dd5197491ea6e600441c62f5300
parent8e714088296b9edfea628a1265bb5171394e1f87 (diff)
downloadpoky-37b54ce75e82b399d0d7f8c212254d248cbdbbea.tar.gz
time: fix runtime version from UNKNOWN to 1.9
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 (From OE-Core rev: 201d1851666d558124226c871754a581cf427530) 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>
-rw-r--r--meta/recipes-extended/time/time_1.9.bb5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-extended/time/time_1.9.bb b/meta/recipes-extended/time/time_1.9.bb
index 366a64d8e5..125554b378 100644
--- a/meta/recipes-extended/time/time_1.9.bb
+++ b/meta/recipes-extended/time/time_1.9.bb
@@ -23,3 +23,8 @@ SRC_URI[md5sum] = "d2356e0fe1c0b85285d83c6b2ad51b5f"
23SRC_URI[sha256sum] = "fbacf0c81e62429df3e33bda4cee38756604f18e01d977338e23306a3e3b521e" 23SRC_URI[sha256sum] = "fbacf0c81e62429df3e33bda4cee38756604f18e01d977338e23306a3e3b521e"
24 24
25inherit autotools 25inherit autotools
26
27# Submitted fix: https://lists.gnu.org/archive/html/bug-time/2021-01/msg00000.html
28do_configure:prepend () {
29 [ ! -e ${S}/.tarball-version ] && echo ${PV} > ${S}/.tarball-version
30}