summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-10-17 07:21:32 +0100
committerSam James <sam@gentoo.org>2021-10-17 07:21:40 +0100
commit7094bf58386e8970a0b96b92938f42e61c6bb656 (patch)
treee31c0f9888e5fb2b4d47178ac94bd49a1214e203 /net-misc/ntp/files
parentmedia-sound/hydrogen: removed obsolete 1.0.2 (diff)
downloadgentoo-7094bf58386e8970a0b96b92938f42e61c6bb656.tar.gz
gentoo-7094bf58386e8970a0b96b92938f42e61c6bb656.tar.bz2
gentoo-7094bf58386e8970a0b96b92938f42e61c6bb656.zip
net-misc/ntp: fix build with glibc-2.34
Closes: https://bugs.gentoo.org/806358 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-misc/ntp/files')
-rw-r--r--net-misc/ntp/files/ntp-4.2.8_p15-glibc-2.34.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/net-misc/ntp/files/ntp-4.2.8_p15-glibc-2.34.patch b/net-misc/ntp/files/ntp-4.2.8_p15-glibc-2.34.patch
new file mode 100644
index 000000000000..a32f3adabd8b
--- /dev/null
+++ b/net-misc/ntp/files/ntp-4.2.8_p15-glibc-2.34.patch
@@ -0,0 +1,28 @@
+https://bugs.gentoo.org/806358
+https://patchwork.openembedded.org/patch/180019/
+
+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.
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+--- 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
+--
+2.32.0
+