From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 11313158020 for ; Fri, 25 Nov 2022 07:05:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D296BE09C9; Fri, 25 Nov 2022 07:05:53 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B3D5BE09C8 for ; Fri, 25 Nov 2022 07:05:53 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A270A34117C for ; Fri, 25 Nov 2022 07:05:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id ED50075E for ; Fri, 25 Nov 2022 07:05:50 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1669359907.a87f975e56106632436903be3e94e2f272d9269d.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-nds/openldap/, net-nds/openldap/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-nds/openldap/files/openldap-2.6.3-clang16.patch net-nds/openldap/openldap-2.6.3-r1.ebuild net-nds/openldap/openldap-2.6.3-r2.ebuild X-VCS-Directories: net-nds/openldap/ net-nds/openldap/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: a87f975e56106632436903be3e94e2f272d9269d X-VCS-Branch: master Date: Fri, 25 Nov 2022 07:05:50 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 09cb9d02-0411-4bb9-a752-e5d99b4e9c39 X-Archives-Hash: e7a771d9e9bf4baf138c030125296671 commit: a87f975e56106632436903be3e94e2f272d9269d Author: Sam James gentoo org> AuthorDate: Fri Nov 25 06:59:15 2022 +0000 Commit: Sam James gentoo org> CommitDate: Fri Nov 25 07:05:07 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a87f975e net-nds/openldap: fix configure+build w/ clang 16 deux The previous patch wasn't enough on some systems. This affects the macro which ntp bundles too. Closes: https://bugs.gentoo.org/871288 Bug: https://bugs.gentoo.org/871372 Bug: https://bugs.gentoo.org/882183 Fixes: d4d1d9ed527058cf86b22407cc492944f9b1e6e5 Signed-off-by: Sam James gentoo.org> .../openldap/files/openldap-2.6.3-clang16.patch | 48 ++++++++++++++++++---- ...ap-2.6.3-r1.ebuild => openldap-2.6.3-r2.ebuild} | 0 2 files changed, 39 insertions(+), 9 deletions(-) diff --git a/net-nds/openldap/files/openldap-2.6.3-clang16.patch b/net-nds/openldap/files/openldap-2.6.3-clang16.patch index 4d9210b1f0fe..216d567329c5 100644 --- a/net-nds/openldap/files/openldap-2.6.3-clang16.patch +++ b/net-nds/openldap/files/openldap-2.6.3-clang16.patch @@ -1,6 +1,3 @@ -https://bugs.gentoo.org/871288 -https://bugs.gentoo.org/871372 - From ee4983302d6f052e77ab0332d2a128d169c2eacb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= Date: Tue, 15 Nov 2022 21:45:27 +0100 @@ -16,9 +13,18 @@ This covers all the instances I could find by grepping around the codebase, and gets OpenLDAP building on my system. Bug: https://bugs.gentoo.org/871288 +Bug: https://bugs.gentoo.org/871372 --- a/build/openldap.m4 +++ b/build/openldap.m4 -@@ -360,9 +360,7 @@ AC_DEFUN([OL_PTHREAD_TEST_FUNCTION],[[ +@@ -154,6 +154,7 @@ fi + if test $ol_cv_header_stdc = yes; then + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. + AC_RUN_IFELSE([AC_LANG_SOURCE([[#include ++#include + #ifndef HAVE_EBCDIC + # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') + # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) +@@ -394,9 +395,7 @@ AC_DEFUN([OL_PTHREAD_TEST_FUNCTION],[[ AC_DEFUN([OL_PTHREAD_TEST_PROGRAM], [AC_LANG_SOURCE([OL_PTHREAD_TEST_INCLUDES @@ -29,7 +35,7 @@ Bug: https://bugs.gentoo.org/871288 { OL_PTHREAD_TEST_FUNCTION } -@@ -484,7 +482,7 @@ AC_CACHE_CHECK([for compatible POSIX regex],ol_cv_c_posix_regex,[ +@@ -518,7 +517,7 @@ AC_CACHE_CHECK([for compatible POSIX regex],ol_cv_c_posix_regex,[ #include #include static char *pattern, *string; @@ -38,16 +44,17 @@ Bug: https://bugs.gentoo.org/871288 { int rc; regex_t re; -@@ -511,7 +509,7 @@ AC_DEFUN([OL_C_UPPER_LOWER], +@@ -545,7 +544,8 @@ AC_DEFUN([OL_C_UPPER_LOWER], [AC_CACHE_CHECK([if toupper() requires islower()],ol_cv_c_upper_lower,[ AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include -main() ++#include +int main(void) { if ('C' == toupper('C')) exit(0); -@@ -569,7 +567,7 @@ AC_DEFUN([OL_NONPOSIX_STRERROR_R], +@@ -603,7 +603,7 @@ AC_DEFUN([OL_NONPOSIX_STRERROR_R], ]])],[ol_cv_nonposix_strerror_r=yes],[ol_cv_nonposix_strerror_r=no]) else AC_RUN_IFELSE([AC_LANG_SOURCE([[ @@ -58,7 +65,30 @@ Bug: https://bugs.gentoo.org/871288 strerror_r( 1, buf, sizeof buf ); --- a/configure.ac +++ b/configure.ac -@@ -1547,8 +1547,7 @@ dnl esac +@@ -1031,7 +1031,11 @@ dnl ---------------------------------------------------------------- + AC_CHECK_HEADERS( sys/epoll.h ) + if test "${ac_cv_header_sys_epoll_h}" = yes; then + AC_MSG_CHECKING(for epoll system call) +- AC_RUN_IFELSE([AC_LANG_SOURCE([[int main(int argc, char **argv) ++ AC_RUN_IFELSE([AC_LANG_SOURCE([[#include ++#ifdef HAVE_SYS_POLL_H ++#include ++#endif ++int main(int argc, char **argv) + { + int epfd = epoll_create(256); + exit (epfd == -1 ? 1 : 0); +@@ -1551,6 +1555,9 @@ dnl esac + AC_CACHE_CHECK([if select yields when using pthreads], + ol_cv_pthread_select_yields,[ + AC_RUN_IFELSE([AC_LANG_SOURCE([[ ++#define _XOPEN_SOURCE 500 /* For pthread_setconcurrency() on glibc */ ++#include ++#include + #include + #include + #include +@@ -1561,8 +1568,7 @@ dnl esac static int fildes[2]; @@ -68,7 +98,7 @@ Bug: https://bugs.gentoo.org/871288 { int i; struct timeval tv; -@@ -1572,9 +1571,7 @@ static void *task(p) +@@ -1586,9 +1592,7 @@ static void *task(p) exit(0); /* if we exit here, the select blocked the whole process */ } diff --git a/net-nds/openldap/openldap-2.6.3-r1.ebuild b/net-nds/openldap/openldap-2.6.3-r2.ebuild similarity index 100% rename from net-nds/openldap/openldap-2.6.3-r1.ebuild rename to net-nds/openldap/openldap-2.6.3-r2.ebuild