From 4551b41523452c0d743a71cca34e4dca2ca7538c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 4 Jan 2023 12:06:28 +0000 Subject: gentoo auto-resync : 04:01:2023 - 12:06:28 --- net-nntp/Manifest.gz | Bin 1370 -> 1373 bytes net-nntp/tin/Manifest | 3 +- .../tin/files/tin-2.6.1-configure-clang16.patch | 108 +++++++++++++++++++++ net-nntp/tin/tin-2.6.1-r1.ebuild | 88 +++++++++++++++++ net-nntp/tin/tin-2.6.1.ebuild | 86 ---------------- 5 files changed, 198 insertions(+), 87 deletions(-) create mode 100644 net-nntp/tin/files/tin-2.6.1-configure-clang16.patch create mode 100644 net-nntp/tin/tin-2.6.1-r1.ebuild delete mode 100644 net-nntp/tin/tin-2.6.1.ebuild (limited to 'net-nntp') diff --git a/net-nntp/Manifest.gz b/net-nntp/Manifest.gz index 633872535403..739176862ea7 100644 Binary files a/net-nntp/Manifest.gz and b/net-nntp/Manifest.gz differ diff --git a/net-nntp/tin/Manifest b/net-nntp/tin/Manifest index 1648cbcf859c..87a283f4575e 100644 --- a/net-nntp/tin/Manifest +++ b/net-nntp/tin/Manifest @@ -1,3 +1,4 @@ +AUX tin-2.6.1-configure-clang16.patch 2473 BLAKE2B af55c171def1e2756bdb305069aeb81b79198397afb38738c4298a1268dc813f7a9c11b941da503d11d5b2d4bac48cb5fa987486dc42a833b1d8241e05779542 SHA512 56ff3b3e71f79145feeaa6e6ce20bf2ebdc3f4b02681423dcabf27ccaa69ffeecb85430b2aed6c07bb9c90fffcaba35801dd44f4e8a81d0fd6fd698cea010af1 DIST tin-2.6.1.tar.xz 1570500 BLAKE2B ec9c54b8b89ecd33a42ede37c8db50828de2dce56ddff01900121903a18d73bde8a06733ca2dfb72c676eb373b5ea874cecb9a1ee7890ada4ad6539d9ff1a435 SHA512 dc9ace5e24cac1efcaac25df1747dd435573130cff4e9c846c89e8faaed8e8120d66a2021332c01f350744155bcb7be608657285560a1a2457b4635cc8fa22b3 -EBUILD tin-2.6.1.ebuild 1970 BLAKE2B b1e42d73336f0d390b9cdab824fc7ff57d6c65487b40bed165eed788725751f0462f1002f6d354f1b3958ae5706960782c387bbec35a799a7b57c987b5d67a8f SHA512 a8edc47a1844bd9e8be30b61f872e07c461a4893f220ba7f6f3f90cc97b85bac2fd8f9eba9dc24a97d52e55964c382e1c6dd29830c3962b898d2880d061e0cbb +EBUILD tin-2.6.1-r1.ebuild 2025 BLAKE2B 11841532f22a5b6c56c0e5261d24c501ec46f76edc062155d2385e63cc2052e369bae4c3d697e4c0811a63d84b693a112b5ce038e40520398a741c388421a388 SHA512 5cf5e4b1249df5eed6f124499aa3cb56623a5ec2b00e971fff58f4c44fcf91c737718618c56df5eef5923cf552c3fc8f5330af21792698aa526be9f1a2623fde MISC metadata.xml 408 BLAKE2B a89a2128685a8dc089ba37438352ae8c7171b74c90a8f838a5b7d930b142a90e6d69672ec4ec3f4e97e71c6b38ef9daf988bd5b46d6ccc9f3e4aa0f173075679 SHA512 26855098ca6c2da9fa4edf5620be29402f3c854280e3ca1b26a43af9d630ca34d229a34cc7b513c20c0a03c9e500830fc586f0086668042cff645d08741306b3 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-r1.ebuild b/net-nntp/tin/tin-2.6.1-r1.ebuild new file mode 100644 index 000000000000..cc1eac16cc3e --- /dev/null +++ b/net-nntp/tin/tin-2.6.1-r1.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit optfeature toolchain-funcs + +DESCRIPTION="A threaded NNTP and spool based UseNet newsreader" +HOMEPAGE="http://www.tin.org/" +SRC_URI="ftp://ftp.tin.org/pub/news/clients/tin/stable/${P}.tar.xz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 arm ppc x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="cancel-locks debug gpg nls sasl socks5" + +RDEPEND=" + dev-libs/icu:= + dev-libs/libpcre:3 + dev-libs/uulib + sys-libs/ncurses:=[unicode(+)] + cancel-locks? ( >=net-libs/canlock-3.0:= ) + gpg? ( app-crypt/gnupg ) + nls? ( virtual/libintl ) + sasl? ( virtual/gsasl ) + socks5? ( net-proxy/dante ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + app-alternatives/yacc +" + +DOCS=( + README{,.MAC,.WIN} + doc/{CHANGES{,.old},CREDITS,TODO,WHATSNEW,filtering} +) + +PATCHES=( + "${FILESDIR}"/${PN}-2.6.1-configure-clang16.patch +) + +src_configure() { + tc-export AR CC RANLIB + + local myeconfargs=( + $(use_enable cancel-locks) $(use_with cancel-locks canlock) + $(use_enable debug) + $(use_enable gpg pgp-gpg) + $(use_enable nls) + $(use_with socks5 socks) $(use_with socks5) + --disable-mime-strict-charset + --enable-nntp-only + --enable-prototypes + --with-coffee + --with-nntp-default-server="${TIN_DEFAULT_SERVER:-${NNTPSERVER:-news.gmane.io}}" + --with-pcre=/usr + --with-screen=ncursesw + + # set default paths for utilities + --with-editor="${EPREFIX}"/usr/libexec/editor + --with-gpg="${EPREFIX}"/usr/bin/gpg + --with-ispell="${EPREFIX}"/usr/bin/aspell + --with-mailer="${EPREFIX}"/bin/mail + --with-metamail="${EPREFIX}"/usr/bin/metamail + --with-sum="${EPREFIX}"/usr/bin/sum + ) + + econf "${myeconfargs[@]}" +} + +src_compile() { + # To build from the root dir you have to call `make build`, not just + # `make`. + emake build +} + +src_install() { + default + emake DESTDIR="${D}" install_sysdefs + emake -C src DESTDIR="${D}" install_nls_man + + dodoc doc/{*.sample,*.txt} +} + +pkg_postinst() { + optfeature "spell checker support" app-text/aspell +} diff --git a/net-nntp/tin/tin-2.6.1.ebuild b/net-nntp/tin/tin-2.6.1.ebuild deleted file mode 100644 index 9a5e6df36f8c..000000000000 --- a/net-nntp/tin/tin-2.6.1.ebuild +++ /dev/null @@ -1,86 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit optfeature toolchain-funcs - -DESCRIPTION="A threaded NNTP and spool based UseNet newsreader" -HOMEPAGE="http://www.tin.org/" -SRC_URI="ftp://ftp.tin.org/pub/news/clients/tin/stable/${P}.tar.xz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="amd64 arm ppc x86 ~amd64-linux ~x86-linux ~ppc-macos" -IUSE="cancel-locks debug gpg nls sasl socks5" - -RDEPEND=" - dev-libs/icu:= - dev-libs/libpcre:3 - dev-libs/uulib - sys-libs/ncurses:=[unicode(+)] - cancel-locks? ( >=net-libs/canlock-3.0:= ) - gpg? ( app-crypt/gnupg ) - nls? ( virtual/libintl ) - sasl? ( virtual/gsasl ) - socks5? ( net-proxy/dante ) -" -DEPEND="${RDEPEND}" -BDEPEND=" - virtual/pkgconfig - app-alternatives/yacc -" - -DOCS=( - README{,.MAC,.WIN} - doc/{CHANGES{,.old},CREDITS,TODO,WHATSNEW,filtering} -) - -src_configure() { - tc-export AR CC RANLIB - - econf_args=( - $(use_enable cancel-locks) $(use_with cancel-locks canlock) - $(use_enable debug) - $(use_enable gpg pgp-gpg) - $(use_enable nls) - $(use_with socks5 socks) $(use_with socks5) - --disable-mime-strict-charset - --enable-nntp-only - --enable-prototypes - --with-coffee - --with-nntp-default-server="${TIN_DEFAULT_SERVER:-${NNTPSERVER:-news.gmane.io}}" - --with-pcre=/usr - --with-screen=ncursesw - ) - - # set default paths for utilities - econf_args+=( - --with-editor="${EPREFIX}"/usr/libexec/editor - --with-gpg="${EPREFIX}"/usr/bin/gpg - --with-ispell="${EPREFIX}"/usr/bin/aspell - --with-mailer="${EPREFIX}"/bin/mail - --with-metamail="${EPREFIX}"/usr/bin/metamail - --with-sum="${EPREFIX}"/usr/bin/sum - ) - - econf "${econf_args[@]}" -} - -src_compile() { - # To build from the root dir you have to call `make build`, not just - # `make`. - emake build -} - -src_install() { - default - emake DESTDIR="${D}" install_sysdefs - emake -C src DESTDIR="${D}" install_nls_man - - dodoc doc/{*.sample,*.txt} -} - -pkg_postinst() { - optfeature "spell checker support" app-text/aspell -} -- cgit v1.2.3