meta-openembedded/meta-oe/recipes-extended/minifi-cpp/files/0005-generateVersion.sh-set-correct-buildrev.patch
Yi Zhao cf88ed337b
minifi: upgrade 0.15.0 -> 0.99.1
ChangeLog:
https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=65145325

License-Update: Drop the license for cxxopts and add the license for
                argparse(MIT)[1].
                Update the license for protobuf(3-Clause BSD) and add
                the licenses for RE2(3-Clause BSD) and c-ares(MIT)[2].
                Drop the license for ios-cmake[3].
                Add the license for Lua(MIT)[4].
                Drop the license for libcoap[5].
                Drop the license for uthash[6].
                Drop the licenses for LightPcapNg and PcapPlusPlus[7].
                Add the licenses for HdrHistogram(CC0-1.0) and
                llhttp(MIT)[8].

[1] 1dfab222d4
[2] 20d281adaf
[3] 1815c018ce
[4] 3d7262a883
[5] 3bbaa0789a
[6] 78af9f665a
[7] 37891aafb8
[8] bd1182eb8c

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-03-17 14:01:16 -07:00

33 lines
922 B
Diff

From 1861170c6de3dd851324debf3a6eaeff4d8d8bce Mon Sep 17 00:00:00 2001
From: Yi Zhao <yi.zhao@windriver.com>
Date: Fri, 14 Mar 2025 20:26:38 +0800
Subject: [PATCH] generateVersion.sh: set correct buildrev
Since this script is run outside the source directory, git log can not
get the commit id, so buildrev is not set correctly. Fix the issue by
adding -C option.
Upstream-Status: Inappropriate [embedded specific]
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
generateVersion.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/generateVersion.sh b/generateVersion.sh
index ff25afba8..0b50a1693 100755
--- a/generateVersion.sh
+++ b/generateVersion.sh
@@ -28,7 +28,7 @@ buildident=$8
date=$(date +%s)
if [ -d "${src_dir}"/.git ]; then
- buildrev=$(git log -1 --pretty=format:"%H")
+ buildrev=$(git -C "${src_dir}" log -1 --pretty=format:"%H")
else
buildrev="Unknown"
fi
--
2.34.1