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 94573158010 for ; Wed, 4 Jan 2023 04:32:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8FAE0E0825; Wed, 4 Jan 2023 04:32:44 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7AA04E0825 for ; Wed, 4 Jan 2023 04:32:44 +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 669AA340E6D for ; Wed, 4 Jan 2023 04:32:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9D8E67FB for ; Wed, 4 Jan 2023 04:32:41 +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: <1672806716.24835e8c32ec077db8f49f972e6d83ce593eeed1.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-nntp/tin/, net-nntp/tin/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-nntp/tin/files/tin-2.6.1-configure-clang16.patch net-nntp/tin/tin-2.6.1-r1.ebuild net-nntp/tin/tin-2.6.1.ebuild X-VCS-Directories: net-nntp/tin/ net-nntp/tin/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 24835e8c32ec077db8f49f972e6d83ce593eeed1 X-VCS-Branch: master Date: Wed, 4 Jan 2023 04:32:41 +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: 1e631368-9cc6-4113-8de7-215516a3673f X-Archives-Hash: dba8dd62583ed3553c7cfaa754fedeae commit: 24835e8c32ec077db8f49f972e6d83ce593eeed1 Author: Sam James gentoo org> AuthorDate: Wed Jan 4 03:42:58 2023 +0000 Commit: Sam James gentoo org> CommitDate: Wed Jan 4 04:31:56 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24835e8c net-nntp/tin: fix configure w/ clang 16 Signed-off-by: Sam James gentoo.org> .../tin/files/tin-2.6.1-configure-clang16.patch | 108 +++++++++++++++++++++ .../tin/{tin-2.6.1.ebuild => tin-2.6.1-r1.ebuild} | 14 +-- 2 files changed, 116 insertions(+), 6 deletions(-) diff --git a/net-nntp/tin/files/tin-2.6.1-configure-clang16.patch b/net-nntp/tin/files/tin-2.6.1-configure-clang16.patch new file mode 100644 index 000000000000..30fb937a6247 --- /dev/null +++ b/net-nntp/tin/files/tin-2.6.1-configure-clang16.patch @@ -0,0 +1,108 @@ +https://src.fedoraproject.org/rpms/tin/blob/bbfb5a569a97cde8d4ca95f44979070ad2f57bd0/f/tin-configure-c99.patch + +Add missing #include directives to pick up additional prototypes. +Improves C99 compatibility. + +--- a/aclocal.m4 ++++ b/aclocal.m4 +@@ -2165,8 +2165,17 @@ AC_MSG_CHECKING([if application can dump core]) + AC_CACHE_VAL(cf_cv_corefile,[ + AC_TRY_RUN([ + #include ++#ifdef HAVE_STDLIB_H ++#include ++#endif + #include + #include ++#ifdef HAVE_SYS_WAIT_H ++#include ++#endif ++#ifdef HAVE_UNISTD_H ++#include ++#endif + int found() + { + struct stat sb; +@@ -3319,6 +3328,9 @@ AC_DEFUN([CF_FUNC_FORK], + [AC_MSG_CHECKING([for fork]) + AC_CACHE_VAL(cf_cv_func_fork,[ + AC_TRY_RUN([ ++#ifdef HAVE_UNISTD_H ++#include ++#endif + int main() + { + if (fork() < 0) +@@ -3465,6 +3477,9 @@ AC_MSG_CHECKING(if the system function returns usable child-status) + AC_CACHE_VAL(cf_cv_system_status,[ + AC_TRY_RUN([ + #include ++#ifdef HAVE_STDLIB_H ++#include ++#endif + #include + #if HAVE_SYS_WAIT_H + #include +@@ -3495,7 +3510,11 @@ int main() + ], + [cf_cv_system_status=no], + [AC_TRY_RUN( +- [int main() { ${cf_cv_main_return:-return}(system("exit 23") != (23 << 8)); }], ++ [ ++#ifdef HAVE_STDLIB_H ++#include ++#endif ++int main() { ${cf_cv_main_return:-return}(system("exit 23") != (23 << 8)); }], + [cf_cv_system_status=yes], + [cf_cv_system_status=unknown], + [cf_cv_system_status=unknown])], +--- a/configure ++++ b/configure +@@ -26361,6 +26361,9 @@ else + #line 26361 "configure" + #include "confdefs.h" + ++#ifdef HAVE_UNISTD_H ++#include ++#endif + int main() + { + if (fork() < 0) +@@ -27366,6 +27369,9 @@ else + #include "confdefs.h" + + #include ++#ifdef HAVE_STDLIB_H ++#include ++#endif + #include + #if HAVE_SYS_WAIT_H + #include +@@ -27417,6 +27423,9 @@ else + cat >"conftest.$ac_ext" <<_ACEOF + #line 27418 "configure" + #include "confdefs.h" ++#ifdef HAVE_STDLIB_H ++#include ++#endif + int main() { ${cf_cv_main_return:-return}(system("exit 23") != (23 << 8)); } + _ACEOF + rm -f "conftest$ac_exeext" +@@ -27764,8 +27773,17 @@ else + #include "confdefs.h" + + #include ++#ifdef HAVE_STDLIB_H ++#include ++#endif + #include + #include ++#ifdef HAVE_SYS_WAIT_H ++#include ++#endif ++#ifdef HAVE_UNISTD_H ++#include ++#endif + int found() + { + struct stat sb; diff --git a/net-nntp/tin/tin-2.6.1.ebuild b/net-nntp/tin/tin-2.6.1-r1.ebuild similarity index 90% rename from net-nntp/tin/tin-2.6.1.ebuild rename to net-nntp/tin/tin-2.6.1-r1.ebuild index 9a5e6df36f8c..cc1eac16cc3e 100644 --- a/net-nntp/tin/tin-2.6.1.ebuild +++ b/net-nntp/tin/tin-2.6.1-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -36,10 +36,14 @@ DOCS=( doc/{CHANGES{,.old},CREDITS,TODO,WHATSNEW,filtering} ) +PATCHES=( + "${FILESDIR}"/${PN}-2.6.1-configure-clang16.patch +) + src_configure() { tc-export AR CC RANLIB - econf_args=( + local myeconfargs=( $(use_enable cancel-locks) $(use_with cancel-locks canlock) $(use_enable debug) $(use_enable gpg pgp-gpg) @@ -52,10 +56,8 @@ src_configure() { --with-nntp-default-server="${TIN_DEFAULT_SERVER:-${NNTPSERVER:-news.gmane.io}}" --with-pcre=/usr --with-screen=ncursesw - ) - # set default paths for utilities - econf_args+=( + # set default paths for utilities --with-editor="${EPREFIX}"/usr/libexec/editor --with-gpg="${EPREFIX}"/usr/bin/gpg --with-ispell="${EPREFIX}"/usr/bin/aspell @@ -64,7 +66,7 @@ src_configure() { --with-sum="${EPREFIX}"/usr/bin/sum ) - econf "${econf_args[@]}" + econf "${myeconfargs[@]}" } src_compile() {