mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] ntp: Version bump. 4.2.8p12 -> 4.2.8p15
@ 2022-04-12  8:56 Christian Melki
  2022-04-13 19:33 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Melki @ 2022-04-12  8:56 UTC (permalink / raw)
  To: ptxdist

Almost 4 years worth of bugfixes.
https://fossies.org/linux/ntp/ChangeLog

* Drop old patchset, it was fixed in p14.
* Add new patch to circumvent issues with glibc-2.34+.

Signed-off-by: Christian Melki <christian.melki@t2data.com>
---
 .../0001-make-the-build-reproducible.patch    | 26 -----------------
 patches/ntp-4.2.8p12/series                   |  4 ---
 ...o-not-use-PTHREAD_STACK_MIN-on-glibc.patch | 29 +++++++++++++++++++
 patches/ntp-4.2.8p15/series                   |  4 +++
 rules/ntp.make                                |  4 +--
 5 files changed, 35 insertions(+), 32 deletions(-)
 delete mode 100644 patches/ntp-4.2.8p12/0001-make-the-build-reproducible.patch
 delete mode 100644 patches/ntp-4.2.8p12/series
 create mode 100644 patches/ntp-4.2.8p15/0001-libntp-Do-not-use-PTHREAD_STACK_MIN-on-glibc.patch
 create mode 100644 patches/ntp-4.2.8p15/series

diff --git a/patches/ntp-4.2.8p12/0001-make-the-build-reproducible.patch b/patches/ntp-4.2.8p12/0001-make-the-build-reproducible.patch
deleted file mode 100644
index 5c70b10a2..000000000
--- a/patches/ntp-4.2.8p12/0001-make-the-build-reproducible.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-From: Michael Olbrich <m.olbrich@pengutronix.de>
-Date: Tue, 23 Oct 2018 00:21:54 +0200
-Subject: [PATCH] make the build reproducible
-
-Don't include the current date / time into the build.
-
-Original patch from Debian.
-
-Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
----
- scripts/build/mkver.in | 2 --
- 1 file changed, 2 deletions(-)
-
-diff --git a/scripts/build/mkver.in b/scripts/build/mkver.in
-index 3aef1c816a7f..badd2cda8c1f 100644
---- a/scripts/build/mkver.in
-+++ b/scripts/build/mkver.in
-@@ -15,8 +15,6 @@ case "@VER_SUFFIX@" in
-  *) ConfStr="${ConfStr}-@VER_SUFFIX@" ;;
- esac
- 
--ConfStr="$ConfStr `LC_TIME=C TZ=UTC date`"
--
- if [ ! -f .version ]; then
-   echo 0 > .version
- fi
diff --git a/patches/ntp-4.2.8p12/series b/patches/ntp-4.2.8p12/series
deleted file mode 100644
index 6b9bdfd27..000000000
--- a/patches/ntp-4.2.8p12/series
+++ /dev/null
@@ -1,4 +0,0 @@
-# generated by git-ptx-patches
-#tag:base --start-number 1
-0001-make-the-build-reproducible.patch
-# a698708e9f96ed91827a81d376db1955  - git-ptx-patches magic
diff --git a/patches/ntp-4.2.8p15/0001-libntp-Do-not-use-PTHREAD_STACK_MIN-on-glibc.patch b/patches/ntp-4.2.8p15/0001-libntp-Do-not-use-PTHREAD_STACK_MIN-on-glibc.patch
new file mode 100644
index 000000000..017b4d41f
--- /dev/null
+++ b/patches/ntp-4.2.8p15/0001-libntp-Do-not-use-PTHREAD_STACK_MIN-on-glibc.patch
@@ -0,0 +1,29 @@
+From: Khem Raj <raj.khem@gmail.com>
+Date: Sat, 31 Jul 2021 10:51:41 -0700
+Subject: [PATCH] libntp: Do not use PTHREAD_STACK_MIN on glibc
+
+In glibc 2.34+ PTHREAD_STACK_MIN is not a compile-time constant which
+could mean different stack sizes at runtime on different architectures
+and it also causes compile failure. Default glibc thread stack size
+or 64Kb set by ntp should be good in glibc these days.
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+[Copied from https://github.com/openembedded/meta-openembedded/blob/master/meta-networking/recipes-support/ntp/ntp/0001-libntp-Do-not-use-PTHREAD_STACK_MIN-on-glibc.patch]
+Signed-off-by: Alexey Brodkin <abrokdin@synopsys.com>
+---
+ libntp/work_thread.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/libntp/work_thread.c b/libntp/work_thread.c
+index 03a5647bea36..3ddd751557e0 100644
+--- a/libntp/work_thread.c
++++ b/libntp/work_thread.c
+@@ -41,7 +41,7 @@
+ #ifndef THREAD_MINSTACKSIZE
+ # define THREAD_MINSTACKSIZE	(64U * 1024)
+ #endif
+-#ifndef __sun
++#if !defined(__sun) && !defined(__GLIBC__)
+ #if defined(PTHREAD_STACK_MIN) && THREAD_MINSTACKSIZE < PTHREAD_STACK_MIN
+ # undef THREAD_MINSTACKSIZE
+ # define THREAD_MINSTACKSIZE PTHREAD_STACK_MIN
diff --git a/patches/ntp-4.2.8p15/series b/patches/ntp-4.2.8p15/series
new file mode 100644
index 000000000..7a2de77a2
--- /dev/null
+++ b/patches/ntp-4.2.8p15/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-libntp-Do-not-use-PTHREAD_STACK_MIN-on-glibc.patch
+# e85ebd807ca50b5d07918a17d9595773  - git-ptx-patches magic
diff --git a/rules/ntp.make b/rules/ntp.make
index 168cfc2c4..332778118 100644
--- a/rules/ntp.make
+++ b/rules/ntp.make
@@ -15,8 +15,8 @@ PACKAGES-$(PTXCONF_NTP) += ntp
 #
 # Paths and names
 #
-NTP_VERSION	:= 4.2.8p12
-NTP_MD5		:= 1522d66574bae14abb2622746dad2bdc
+NTP_VERSION	:= 4.2.8p15
+NTP_MD5		:= e1e6b23d2fc75cced41801dbcd6c2561
 NTP		:= ntp-$(NTP_VERSION)
 NTP_SUFFIX	:= tar.gz
 NTP_URL		:= http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/$(NTP).$(NTP_SUFFIX)
-- 
2.32.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] [PATCH] ntp: Version bump. 4.2.8p12 -> 4.2.8p15
  2022-04-12  8:56 [ptxdist] [PATCH] ntp: Version bump. 4.2.8p12 -> 4.2.8p15 Christian Melki
@ 2022-04-13 19:33 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2022-04-13 19:33 UTC (permalink / raw)
  To: Christian Melki; +Cc: ptxdist

On Tue, Apr 12, 2022 at 10:56:19AM +0200, Christian Melki wrote:
> Almost 4 years worth of bugfixes.
> https://fossies.org/linux/ntp/ChangeLog
> 
> * Drop old patchset, it was fixed in p14.
> * Add new patch to circumvent issues with glibc-2.34+.

The license file changed.

Michael

> Signed-off-by: Christian Melki <christian.melki@t2data.com>
> ---
>  .../0001-make-the-build-reproducible.patch    | 26 -----------------
>  patches/ntp-4.2.8p12/series                   |  4 ---
>  ...o-not-use-PTHREAD_STACK_MIN-on-glibc.patch | 29 +++++++++++++++++++
>  patches/ntp-4.2.8p15/series                   |  4 +++
>  rules/ntp.make                                |  4 +--
>  5 files changed, 35 insertions(+), 32 deletions(-)
>  delete mode 100644 patches/ntp-4.2.8p12/0001-make-the-build-reproducible.patch
>  delete mode 100644 patches/ntp-4.2.8p12/series
>  create mode 100644 patches/ntp-4.2.8p15/0001-libntp-Do-not-use-PTHREAD_STACK_MIN-on-glibc.patch
>  create mode 100644 patches/ntp-4.2.8p15/series
> 
> diff --git a/patches/ntp-4.2.8p12/0001-make-the-build-reproducible.patch b/patches/ntp-4.2.8p12/0001-make-the-build-reproducible.patch
> deleted file mode 100644
> index 5c70b10a2..000000000
> --- a/patches/ntp-4.2.8p12/0001-make-the-build-reproducible.patch
> +++ /dev/null
> @@ -1,26 +0,0 @@
> -From: Michael Olbrich <m.olbrich@pengutronix.de>
> -Date: Tue, 23 Oct 2018 00:21:54 +0200
> -Subject: [PATCH] make the build reproducible
> -
> -Don't include the current date / time into the build.
> -
> -Original patch from Debian.
> -
> -Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> ----
> - scripts/build/mkver.in | 2 --
> - 1 file changed, 2 deletions(-)
> -
> -diff --git a/scripts/build/mkver.in b/scripts/build/mkver.in
> -index 3aef1c816a7f..badd2cda8c1f 100644
> ---- a/scripts/build/mkver.in
> -+++ b/scripts/build/mkver.in
> -@@ -15,8 +15,6 @@ case "@VER_SUFFIX@" in
> -  *) ConfStr="${ConfStr}-@VER_SUFFIX@" ;;
> - esac
> - 
> --ConfStr="$ConfStr `LC_TIME=C TZ=UTC date`"
> --
> - if [ ! -f .version ]; then
> -   echo 0 > .version
> - fi
> diff --git a/patches/ntp-4.2.8p12/series b/patches/ntp-4.2.8p12/series
> deleted file mode 100644
> index 6b9bdfd27..000000000
> --- a/patches/ntp-4.2.8p12/series
> +++ /dev/null
> @@ -1,4 +0,0 @@
> -# generated by git-ptx-patches
> -#tag:base --start-number 1
> -0001-make-the-build-reproducible.patch
> -# a698708e9f96ed91827a81d376db1955  - git-ptx-patches magic
> diff --git a/patches/ntp-4.2.8p15/0001-libntp-Do-not-use-PTHREAD_STACK_MIN-on-glibc.patch b/patches/ntp-4.2.8p15/0001-libntp-Do-not-use-PTHREAD_STACK_MIN-on-glibc.patch
> new file mode 100644
> index 000000000..017b4d41f
> --- /dev/null
> +++ b/patches/ntp-4.2.8p15/0001-libntp-Do-not-use-PTHREAD_STACK_MIN-on-glibc.patch
> @@ -0,0 +1,29 @@
> +From: Khem Raj <raj.khem@gmail.com>
> +Date: Sat, 31 Jul 2021 10:51:41 -0700
> +Subject: [PATCH] libntp: Do not use PTHREAD_STACK_MIN on glibc
> +
> +In glibc 2.34+ PTHREAD_STACK_MIN is not a compile-time constant which
> +could mean different stack sizes at runtime on different architectures
> +and it also causes compile failure. Default glibc thread stack size
> +or 64Kb set by ntp should be good in glibc these days.
> +
> +Signed-off-by: Khem Raj <raj.khem@gmail.com>
> +[Copied from https://github.com/openembedded/meta-openembedded/blob/master/meta-networking/recipes-support/ntp/ntp/0001-libntp-Do-not-use-PTHREAD_STACK_MIN-on-glibc.patch]
> +Signed-off-by: Alexey Brodkin <abrokdin@synopsys.com>
> +---
> + libntp/work_thread.c | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/libntp/work_thread.c b/libntp/work_thread.c
> +index 03a5647bea36..3ddd751557e0 100644
> +--- a/libntp/work_thread.c
> ++++ b/libntp/work_thread.c
> +@@ -41,7 +41,7 @@
> + #ifndef THREAD_MINSTACKSIZE
> + # define THREAD_MINSTACKSIZE	(64U * 1024)
> + #endif
> +-#ifndef __sun
> ++#if !defined(__sun) && !defined(__GLIBC__)
> + #if defined(PTHREAD_STACK_MIN) && THREAD_MINSTACKSIZE < PTHREAD_STACK_MIN
> + # undef THREAD_MINSTACKSIZE
> + # define THREAD_MINSTACKSIZE PTHREAD_STACK_MIN
> diff --git a/patches/ntp-4.2.8p15/series b/patches/ntp-4.2.8p15/series
> new file mode 100644
> index 000000000..7a2de77a2
> --- /dev/null
> +++ b/patches/ntp-4.2.8p15/series
> @@ -0,0 +1,4 @@
> +# generated by git-ptx-patches
> +#tag:base --start-number 1
> +0001-libntp-Do-not-use-PTHREAD_STACK_MIN-on-glibc.patch
> +# e85ebd807ca50b5d07918a17d9595773  - git-ptx-patches magic
> diff --git a/rules/ntp.make b/rules/ntp.make
> index 168cfc2c4..332778118 100644
> --- a/rules/ntp.make
> +++ b/rules/ntp.make
> @@ -15,8 +15,8 @@ PACKAGES-$(PTXCONF_NTP) += ntp
>  #
>  # Paths and names
>  #
> -NTP_VERSION	:= 4.2.8p12
> -NTP_MD5		:= 1522d66574bae14abb2622746dad2bdc
> +NTP_VERSION	:= 4.2.8p15
> +NTP_MD5		:= e1e6b23d2fc75cced41801dbcd6c2561
>  NTP		:= ntp-$(NTP_VERSION)
>  NTP_SUFFIX	:= tar.gz
>  NTP_URL		:= http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/$(NTP).$(NTP_SUFFIX)
> -- 
> 2.32.0
> 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de
> To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-04-13 19:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-12  8:56 [ptxdist] [PATCH] ntp: Version bump. 4.2.8p12 -> 4.2.8p15 Christian Melki
2022-04-13 19:33 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox