summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/ntpsec/ntpsec_1.2.1.bb
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_1.2.1.bb
parentd230d1178f22fab3529c7eac3c438513c04b954e (diff)
downloadmeta-openembedded-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_1.2.1.bb')
-rw-r--r--meta-networking/recipes-support/ntpsec/ntpsec_1.2.1.bb6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta-networking/recipes-support/ntpsec/ntpsec_1.2.1.bb b/meta-networking/recipes-support/ntpsec/ntpsec_1.2.1.bb
index 3efac7d983..bed0e2e108 100644
--- a/meta-networking/recipes-support/ntpsec/ntpsec_1.2.1.bb
+++ b/meta-networking/recipes-support/ntpsec/ntpsec_1.2.1.bb
@@ -16,7 +16,9 @@ SRC_URI = "https://ftp.ntpsec.org/pub/releases/ntpsec-${PV}.tar.gz \
16 file://0001-ntpd-ntp_sandbox.c-allow-clone3-for-glibc-2.34-in-se.patch \ 16 file://0001-ntpd-ntp_sandbox.c-allow-clone3-for-glibc-2.34-in-se.patch \
17 file://0001-ntpd-ntp_sandbox.c-allow-newfstatat-on-all-archs-for.patch \ 17 file://0001-ntpd-ntp_sandbox.c-allow-newfstatat-on-all-archs-for.patch \
18 file://0002-ntpd-ntp_sandbox.c-match-riscv-to-aarch-in-seccomp-f.patch \ 18 file://0002-ntpd-ntp_sandbox.c-match-riscv-to-aarch-in-seccomp-f.patch \
19 file://volatiles.ntpsec" 19 file://volatiles.ntpsec \
20 file://0001-wscript-Widen-the-search-for-tags.patch \
21 "
20 22
21SRC_URI[sha256sum] = "f2684835116c80b8f21782a5959a805ba3c44e3a681dd6c17c7cb00cc242c27a" 23SRC_URI[sha256sum] = "f2684835116c80b8f21782a5959a805ba3c44e3a681dd6c17c7cb00cc242c27a"
22 24
@@ -54,7 +56,7 @@ export PYTAG = "cpython${@ d.getVar('PYTHON_BASEVERSION').replace('.', '')}"
54export pyext_PATTERN = "%s.so" 56export pyext_PATTERN = "%s.so"
55export PYTHON_LDFLAGS = "-lpthread -ldl" 57export PYTHON_LDFLAGS = "-lpthread -ldl"
56 58
57CFLAGS:append = " -I${PYTHON_INCLUDE_DIR}" 59CFLAGS:append = " -I${PYTHON_INCLUDE_DIR} -D_GNU_SOURCE"
58 60
59EXTRA_OECONF = "--cross-compiler='${CC}' \ 61EXTRA_OECONF = "--cross-compiler='${CC}' \
60 --cross-cflags='${CFLAGS}' \ 62 --cross-cflags='${CFLAGS}' \