diff options
author | Wang Mingyu <wangmy@fujitsu.com> | 2023-06-05 15:52:53 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-06-05 09:29:35 -0700 |
commit | d17e287c81187eee57c2744945cf0d9c4d5ca326 (patch) | |
tree | 015096abbf8c3245fde2c9fc618115e664dc3787 | |
parent | 036ccc767a02b5a290dc1efaca5655fb0e808102 (diff) | |
download | meta-openembedded-d17e287c81187eee57c2744945cf0d9c4d5ca326.tar.gz |
ntp: upgrade 4.2.8p15 -> 4.2.8p16
0001-libntp-Do-not-use-PTHREAD_STACK_MIN-on-glibc.patch
0001-test-Fix-build-with-new-compiler-defaults-to-fno-com.patch
refreshed for new version.
Changelog
=========
- fixes 4 vulnerabilities (3 LOW and 1 None severity),
- fixes 46 bugs
- includes 15 general improvements
- adds support for OpenSSL-3.0
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-networking/recipes-support/ntp/ntp/0001-libntp-Do-not-use-PTHREAD_STACK_MIN-on-glibc.patch | 23 | ||||
-rw-r--r-- | meta-networking/recipes-support/ntp/ntp/0001-test-Fix-build-with-new-compiler-defaults-to-fno-com.patch | 16 | ||||
-rw-r--r-- | meta-networking/recipes-support/ntp/ntp/reproducibility-fixed-path-to-posix-shell.patch | 17 | ||||
-rw-r--r-- | meta-networking/recipes-support/ntp/ntp_4.2.8p16.bb (renamed from meta-networking/recipes-support/ntp/ntp_4.2.8p15.bb) | 4 |
4 files changed, 31 insertions, 29 deletions
diff --git a/meta-networking/recipes-support/ntp/ntp/0001-libntp-Do-not-use-PTHREAD_STACK_MIN-on-glibc.patch b/meta-networking/recipes-support/ntp/ntp/0001-libntp-Do-not-use-PTHREAD_STACK_MIN-on-glibc.patch index 372938c6d6..d61a6e70b8 100644 --- a/meta-networking/recipes-support/ntp/ntp/0001-libntp-Do-not-use-PTHREAD_STACK_MIN-on-glibc.patch +++ b/meta-networking/recipes-support/ntp/ntp/0001-libntp-Do-not-use-PTHREAD_STACK_MIN-on-glibc.patch | |||
@@ -10,23 +10,24 @@ or 64Kb set by ntp should be good in glibc these days. | |||
10 | 10 | ||
11 | Upstream-Status: Pending | 11 | Upstream-Status: Pending |
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
13 | Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> | ||
13 | --- | 14 | --- |
14 | libntp/work_thread.c | 2 +- | 15 | libntp/work_thread.c | 2 +- |
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | 16 | 1 file changed, 1 insertion(+), 1 deletion(-) |
16 | 17 | ||
17 | diff --git a/libntp/work_thread.c b/libntp/work_thread.c | 18 | diff --git a/libntp/work_thread.c b/libntp/work_thread.c |
18 | index 03a5647..3ddd751 100644 | 19 | index c1fe5c2..21db4a0 100644 |
19 | --- a/libntp/work_thread.c | 20 | --- a/libntp/work_thread.c |
20 | +++ b/libntp/work_thread.c | 21 | +++ b/libntp/work_thread.c |
21 | @@ -41,7 +41,7 @@ | 22 | @@ -598,7 +598,7 @@ start_blocking_thread_internal( |
22 | #ifndef THREAD_MINSTACKSIZE | 23 | /* now clamp on lower stack limit. */ |
23 | # define THREAD_MINSTACKSIZE (64U * 1024) | 24 | if (nstacksize < THREAD_MINSTACKSIZE) |
24 | #endif | 25 | nstacksize = THREAD_MINSTACKSIZE; |
25 | -#ifndef __sun | 26 | -# ifdef PTHREAD_STACK_MIN |
26 | +#if !defined(__sun) && !defined(__GLIBC__) | 27 | +# ifdef PTHREAD_STACK_MIN && !defined(__GLIBC__) |
27 | #if defined(PTHREAD_STACK_MIN) && THREAD_MINSTACKSIZE < PTHREAD_STACK_MIN | 28 | if (nstacksize < PTHREAD_STACK_MIN) |
28 | # undef THREAD_MINSTACKSIZE | 29 | nstacksize = PTHREAD_STACK_MIN; |
29 | # define THREAD_MINSTACKSIZE PTHREAD_STACK_MIN | 30 | # endif |
30 | -- | 31 | -- |
31 | 2.32.0 | 32 | 2.34.1 |
32 | 33 | ||
diff --git a/meta-networking/recipes-support/ntp/ntp/0001-test-Fix-build-with-new-compiler-defaults-to-fno-com.patch b/meta-networking/recipes-support/ntp/ntp/0001-test-Fix-build-with-new-compiler-defaults-to-fno-com.patch index 42e1efd8be..24019e974b 100644 --- a/meta-networking/recipes-support/ntp/ntp/0001-test-Fix-build-with-new-compiler-defaults-to-fno-com.patch +++ b/meta-networking/recipes-support/ntp/ntp/0001-test-Fix-build-with-new-compiler-defaults-to-fno-com.patch | |||
@@ -5,12 +5,12 @@ Subject: [PATCH] test: Fix build with new compiler defaults to -fno-common | |||
5 | 5 | ||
6 | Upstream-Status: Pending | 6 | Upstream-Status: Pending |
7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
8 | Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> | ||
8 | --- | 9 | --- |
9 | sntp/tests/run-packetHandling.c | 2 +- | 10 | sntp/tests/run-packetHandling.c | 2 +- |
10 | sntp/tests/run-t-log.c | 2 +- | 11 | sntp/tests/run-t-log.c | 2 +- |
11 | sntp/tests/run-utilities.c | 2 +- | 12 | sntp/tests/run-utilities.c | 2 +- |
12 | tests/libntp/test-libntp.h | 2 +- | 13 | 3 files changed, 3 insertions(+), 3 deletions(-) |
13 | 4 files changed, 4 insertions(+), 4 deletions(-) | ||
14 | 14 | ||
15 | diff --git a/sntp/tests/run-packetHandling.c b/sntp/tests/run-packetHandling.c | 15 | diff --git a/sntp/tests/run-packetHandling.c b/sntp/tests/run-packetHandling.c |
16 | index 7790b20..c58380c 100644 | 16 | index 7790b20..c58380c 100644 |
@@ -51,16 +51,6 @@ index f717882..98d9bf1 100644 | |||
51 | 51 | ||
52 | 52 | ||
53 | //=======MAIN===== | 53 | //=======MAIN===== |
54 | diff --git a/tests/libntp/test-libntp.h b/tests/libntp/test-libntp.h | ||
55 | index 93050b3..60461d8 100644 | ||
56 | --- a/tests/libntp/test-libntp.h | ||
57 | +++ b/tests/libntp/test-libntp.h | ||
58 | @@ -5,4 +5,4 @@ | ||
59 | |||
60 | time_t timefunc(time_t *ptr); | ||
61 | void settime(int y, int m, int d, int H, int M, int S); | ||
62 | -time_t nowtime; | ||
63 | +extern time_t nowtime; | ||
64 | -- | 54 | -- |
65 | 2.32.0 | 55 | 2.34.1 |
66 | 56 | ||
diff --git a/meta-networking/recipes-support/ntp/ntp/reproducibility-fixed-path-to-posix-shell.patch b/meta-networking/recipes-support/ntp/ntp/reproducibility-fixed-path-to-posix-shell.patch index 571db75f7c..1961ada9b6 100644 --- a/meta-networking/recipes-support/ntp/ntp/reproducibility-fixed-path-to-posix-shell.patch +++ b/meta-networking/recipes-support/ntp/ntp/reproducibility-fixed-path-to-posix-shell.patch | |||
@@ -1,9 +1,17 @@ | |||
1 | --- ntp-4.2.8p12.original/sntp/libopts/m4/libopts.m4 2018-11-12 17:54:57.747220846 +1300 | 1 | reproducibility fixed path to posixshell |
2 | +++ ntp-4.2.8p12/sntp/libopts/m4/libopts.m4 2018-11-12 18:00:50.626211641 +1300 | 2 | --- |
3 | @@ -114,12 +114,6 @@ | 3 | sntp/libopts/m4/libopts.m4 | 7 ------- |
4 | 1 file changed, 7 deletions(-) | ||
5 | |||
6 | diff --git a/sntp/libopts/m4/libopts.m4 b/sntp/libopts/m4/libopts.m4 | ||
7 | index 23738ca..4e18187 100644 | ||
8 | --- a/sntp/libopts/m4/libopts.m4 | ||
9 | +++ b/sntp/libopts/m4/libopts.m4 | ||
10 | @@ -107,13 +107,6 @@ AC_DEFUN([INVOKE_LIBOPTS_MACROS_FIRST],[ | ||
4 | AC_PROG_SED | 11 | AC_PROG_SED |
5 | [while : | 12 | [while : |
6 | do | 13 | do |
14 | - test -x "$POSIX_SHELL" && break | ||
7 | - POSIX_SHELL=`which bash` | 15 | - POSIX_SHELL=`which bash` |
8 | - test -x "$POSIX_SHELL" && break | 16 | - test -x "$POSIX_SHELL" && break |
9 | - POSIX_SHELL=`which dash` | 17 | - POSIX_SHELL=`which dash` |
@@ -13,3 +21,6 @@ | |||
13 | POSIX_SHELL=`/bin/sh -c ' | 21 | POSIX_SHELL=`/bin/sh -c ' |
14 | exec 2>/dev/null | 22 | exec 2>/dev/null |
15 | if ! true ; then exit 1 ; fi | 23 | if ! true ; then exit 1 ; fi |
24 | -- | ||
25 | 2.34.1 | ||
26 | |||
diff --git a/meta-networking/recipes-support/ntp/ntp_4.2.8p15.bb b/meta-networking/recipes-support/ntp/ntp_4.2.8p16.bb index 5d2f05e925..8899f1254c 100644 --- a/meta-networking/recipes-support/ntp/ntp_4.2.8p15.bb +++ b/meta-networking/recipes-support/ntp/ntp_4.2.8p16.bb | |||
@@ -6,7 +6,7 @@ or satellite receiver or modem." | |||
6 | HOMEPAGE = "http://support.ntp.org" | 6 | HOMEPAGE = "http://support.ntp.org" |
7 | SECTION = "net" | 7 | SECTION = "net" |
8 | LICENSE = "NTP" | 8 | LICENSE = "NTP" |
9 | LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=4190b39435611e92a4da74e682623f19" | 9 | LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=3a8ffebbcad335abf2c39fec38671eec" |
10 | 10 | ||
11 | DEPENDS = "libevent" | 11 | DEPENDS = "libevent" |
12 | 12 | ||
@@ -24,7 +24,7 @@ SRC_URI = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-${PV}.tar.g | |||
24 | file://ntpd.list \ | 24 | file://ntpd.list \ |
25 | " | 25 | " |
26 | 26 | ||
27 | SRC_URI[sha256sum] = "f65840deab68614d5d7ceb2d0bb9304ff70dcdedd09abb79754a87536b849c19" | 27 | SRC_URI[sha256sum] = "5225858bfd843b080fb9daa5b7370519130e5e49ac3eb0371e334bdc06c52dd7" |
28 | 28 | ||
29 | # CVE-2016-9312 is only for windows. | 29 | # CVE-2016-9312 is only for windows. |
30 | # CVE-2019-11331 is inherent to RFC 5905 and cannot be fixed without breaking compatibility | 30 | # CVE-2019-11331 is inherent to RFC 5905 and cannot be fixed without breaking compatibility |