diff options
author | Sam James <sam@gentoo.org> | 2022-12-01 05:12:50 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-12-01 05:12:59 +0000 |
commit | 56ef5ce33891feec34cd0c39a0a774a81a587dc7 (patch) | |
tree | c69587c2023124ab04002338883b29021af227d7 /net-misc | |
parent | net-nds/openldap: another pthread configure fix (diff) | |
download | gentoo-56ef5ce33891feec34cd0c39a0a774a81a587dc7.tar.gz gentoo-56ef5ce33891feec34cd0c39a0a774a81a587dc7.tar.bz2 gentoo-56ef5ce33891feec34cd0c39a0a774a81a587dc7.zip |
net-misc/ntp: another pthread configure fix
Closes: https://bugs.gentoo.org/871372
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/ntp/files/ntp-4.2.8_p15-configure-clang16.patch | 18 | ||||
-rw-r--r-- | net-misc/ntp/ntp-4.2.8_p15-r4.ebuild (renamed from net-misc/ntp/ntp-4.2.8_p15-r3.ebuild) | 0 |
2 files changed, 18 insertions, 0 deletions
diff --git a/net-misc/ntp/files/ntp-4.2.8_p15-configure-clang16.patch b/net-misc/ntp/files/ntp-4.2.8_p15-configure-clang16.patch index d0dc2ad014b4..4b52248bde8f 100644 --- a/net-misc/ntp/files/ntp-4.2.8_p15-configure-clang16.patch +++ b/net-misc/ntp/files/ntp-4.2.8_p15-configure-clang16.patch @@ -1,6 +1,21 @@ Sync with OpenLDAP. Uses Arsen's patch from https://bugs.gentoo.org/871288. https://bugs.gentoo.org/871372 +--- a/sntp/m4/openldap-thread-check.m4 ++++ b/sntp/m4/openldap-thread-check.m4 +@@ -262,10 +262,8 @@ pthread_rwlock_t rwlock; + 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 --- a/sntp/m4/openldap.m4 +++ b/sntp/m4/openldap.m4 @@ -1,16 +1,16 @@ @@ -590,3 +605,6 @@ https://bugs.gentoo.org/871372 -#endif - ], [ol_cv_ssl_crl_compat=yes], [ol_cv_ssl_crl_compat=no])]) -]) +-- +2.38.1 + diff --git a/net-misc/ntp/ntp-4.2.8_p15-r3.ebuild b/net-misc/ntp/ntp-4.2.8_p15-r4.ebuild index 5bfcc0767728..5bfcc0767728 100644 --- a/net-misc/ntp/ntp-4.2.8_p15-r3.ebuild +++ b/net-misc/ntp/ntp-4.2.8_p15-r4.ebuild |