aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/ntpsec/ntpsec/0001-wscript-Widen-the-search-for-tags.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-08-22 21:29:32 -0700
committerArmin Kuster <akuster808@gmail.com>2022-09-15 08:25:06 -0400
commit9f1013ba4555257989b640d3c37bf2f322a1a311 (patch)
treedb7de8ba2278b66638ed60d8a5d367ad2374c0ab /meta-networking/recipes-support/ntpsec/ntpsec/0001-wscript-Widen-the-search-for-tags.patch
parentd230d1178f22fab3529c7eac3c438513c04b954e (diff)
downloadmeta-openembedded-contrib-9f1013ba4555257989b640d3c37bf2f322a1a311.tar.gz
ntpsec: Add -D_GNU_SOURCE and fix building with devtool
wscript detects .git directory and if its present them invokes git describe --dirty which does not work on the devtool created git repository, since its synthesized. Add GNU_SOURCE define to get strptime() definition Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit 375be9fd60e22fb60b53d664983cb70d26d8a288) Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-networking/recipes-support/ntpsec/ntpsec/0001-wscript-Widen-the-search-for-tags.patch')
-rw-r--r--meta-networking/recipes-support/ntpsec/ntpsec/0001-wscript-Widen-the-search-for-tags.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/ntpsec/ntpsec/0001-wscript-Widen-the-search-for-tags.patch b/meta-networking/recipes-support/ntpsec/ntpsec/0001-wscript-Widen-the-search-for-tags.patch
new file mode 100644
index 0000000000..98c62eed49
--- /dev/null
+++ b/meta-networking/recipes-support/ntpsec/ntpsec/0001-wscript-Widen-the-search-for-tags.patch
@@ -0,0 +1,29 @@
+From 9a7dead72f41e79979625c9bdef2fb638427d3d6 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Mon, 22 Aug 2022 20:54:17 -0700
+Subject: [PATCH] wscript: Widen the search for tags
+
+Default is to look for annotated tags, howveer when using devtool we
+create our own git tree from release tarballs which will have tags but
+they are not annotated, therefore broaden the search to include all tags
+
+Upstream-Status: Inappropriate [OE-specific]
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ wscript | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/wscript b/wscript
+index 879ded1..dff835d 100644
+--- a/wscript
++++ b/wscript
+@@ -177,7 +177,7 @@ def configure(ctx):
+ if build_desc:
+ build_desc = ' ' + build_desc
+ if ctx.env.BIN_GIT:
+- cmd = ctx.env.BIN_GIT + shlex.split("describe --dirty")
++ cmd = ctx.env.BIN_GIT + shlex.split("describe --tags --dirty")
+ git_short_hash = ctx.cmd_and_log(cmd).strip()
+ git_short_hash = '-'.join(git_short_hash.split('-')[1:])
+