Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions recipes/net/ntp.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
inherit: [autotools]
inherit: [autoconf, autotools, patch]

metaEnvironment:
PKG_VERSION: "4.2.8p18"
Expand All @@ -19,8 +19,18 @@ checkoutSCM:
digestSHA1: 9b5247a8576c6082900682c6de98c8d3c17fc15f
stripComponents: 1

checkoutDeterministic: True
checkoutScript: |
patchApplySeries $<@ntp/*.patch@>

buildScript: |
autotoolsBuild $1 \
SRC=$(pwd)/src
autoconfSync $1 $SRC
pushd $SRC
autoconfReconfigure -u
popd

autotoolsBuild $SRC \
--with-shared \
--program-transform-name=s,,, \
--disable-tickadj \
Expand Down
16 changes: 16 additions & 0 deletions recipes/net/ntp/0003-fix-pthread-detach-check.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
diff -ru a/sntp/m4/openldap-thread-check.m4 b/sntp/m4/openldap-thread-check.m4
--- a/sntp/m4/openldap-thread-check.m4 2023-05-31 12:31:39.000000000 +0200
+++ b/sntp/m4/openldap-thread-check.m4 2026-02-25 23:18:38.319727258 +0100
@@ -262,10 +262,8 @@
dnl save the flags
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
#include <pthread.h>
-#ifndef NULL
-#define NULL (void*)0
-#endif
-]], [[pthread_detach(NULL);]])],[ol_cv_func_pthread_detach=yes],[ol_cv_func_pthread_detach=no])
+pthread_t thread;
+]], [[pthread_detach(thread);]])],[ol_cv_func_pthread_detach=yes],[ol_cv_func_pthread_detach=no])
])

if test $ol_cv_func_pthread_detach = no ; then