[packages/ntp] - rel 2, ac fix
baggins
baggins at pld-linux.org
Wed Dec 31 00:11:45 CET 2025
commit b482b323ac325bef307ec27cb33ee6de82446bc6
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Wed Dec 31 02:11:31 2025 +0100
- rel 2, ac fix
ntp.spec | 4 +++-
pthread-detect.patch | 11 +++++++++++
2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/ntp.spec b/ntp.spec
index eb72b57..e99ebaf 100644
--- a/ntp.spec
+++ b/ntp.spec
@@ -14,7 +14,7 @@ Summary(pl.UTF-8): Narzędzia do synchronizacji czasu (Network Time Protocol)
Summary(pt_BR.UTF-8): Network Time Protocol versão 4
Name: ntp
Version: 4.2.8p18
-Release: 1
+Release: 2
License: distributable
Group: Networking/Daemons
# also https://downloads.nwtime.org/ntp/
@@ -38,6 +38,7 @@ Patch1: %{name}-no_libelf.patch
Patch2: %{name}-ipv6.patch
Patch3: %{name}-nano.patch
Patch4: %{name}-openssl.patch
+Patch5: pthread-detect.patch
# FC patches + 100
Patch102: %{name}-4.2.6p1-droproot.patch
Patch107: %{name}-4.2.6p1-retcode.patch
@@ -241,6 +242,7 @@ Este pacote contém documentação adicional sobre o NTP versão 4.
%patch -P2 -p1
%patch -P3 -p1
%patch -P4 -p1
+%patch -P5 -p1
## FC patches
%patch -P102 -p1
diff --git a/pthread-detect.patch b/pthread-detect.patch
new file mode 100644
index 0000000..823b890
--- /dev/null
+++ b/pthread-detect.patch
@@ -0,0 +1,11 @@
+--- ntp-4.2.8p18/sntp/m4/openldap-thread-check.m4~ 2023-05-31 12:31:39.000000000 +0200
++++ ntp-4.2.8p18/sntp/m4/openldap-thread-check.m4 2025-12-31 02:07:24.533312800 +0100
+@@ -265,7 +265,7 @@
+ #ifndef NULL
+ #define NULL (void*)0
+ #endif
+-]], [[pthread_detach(NULL);]])],[ol_cv_func_pthread_detach=yes],[ol_cv_func_pthread_detach=no])
++]], [[pthread_detach(0);]])],[ol_cv_func_pthread_detach=yes],[ol_cv_func_pthread_detach=no])
+ ])
+
+ if test $ol_cv_func_pthread_detach = no ; then
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ntp.git/commitdiff/b482b323ac325bef307ec27cb33ee6de82446bc6
More information about the pld-cvs-commit
mailing list