* [gentoo-commits] repo/gentoo:master commit in: net-nntp/tin/, net-nntp/tin/files/
@ 2023-01-04 4:32 Sam James
0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2023-01-04 4:32 UTC (permalink / raw
To: gentoo-commits
commit: 24835e8c32ec077db8f49f972e6d83ce593eeed1
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 4 03:42:58 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> 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 <sam <AT> 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 <signal.h>
++#ifdef HAVE_STDLIB_H
++#include <stdlib.h>
++#endif
+ #include <sys/types.h>
+ #include <sys/stat.h>
++#ifdef HAVE_SYS_WAIT_H
++#include <sys/wait.h>
++#endif
++#ifdef HAVE_UNISTD_H
++#include <unistd.h>
++#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 <unistd.h>
++#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 <stdio.h>
++#ifdef HAVE_STDLIB_H
++#include <stdlib.h>
++#endif
+ #include <signal.h>
+ #if HAVE_SYS_WAIT_H
+ #include <sys/wait.h>
+@@ -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 <stdlib.h>
++#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 <unistd.h>
++#endif
+ int main()
+ {
+ if (fork() < 0)
+@@ -27366,6 +27369,9 @@ else
+ #include "confdefs.h"
+
+ #include <stdio.h>
++#ifdef HAVE_STDLIB_H
++#include <stdlib.h>
++#endif
+ #include <signal.h>
+ #if HAVE_SYS_WAIT_H
+ #include <sys/wait.h>
+@@ -27417,6 +27423,9 @@ else
+ cat >"conftest.$ac_ext" <<_ACEOF
+ #line 27418 "configure"
+ #include "confdefs.h"
++#ifdef HAVE_STDLIB_H
++#include <stdlib.h>
++#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 <signal.h>
++#ifdef HAVE_STDLIB_H
++#include <stdlib.h>
++#endif
+ #include <sys/types.h>
+ #include <sys/stat.h>
++#ifdef HAVE_SYS_WAIT_H
++#include <sys/wait.h>
++#endif
++#ifdef HAVE_UNISTD_H
++#include <unistd.h>
++#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() {
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: net-nntp/tin/, net-nntp/tin/files/
@ 2023-12-16 9:31 Sam James
0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2023-12-16 9:31 UTC (permalink / raw
To: gentoo-commits
commit: 337fb51a0fa6a491ef4f808887f1ffab82c17612
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 16 09:28:27 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Dec 16 09:30:54 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=337fb51a
net-nntp/tin: fix modern C issue(s)
Closes: https://bugs.gentoo.org/900278
Signed-off-by: Sam James <sam <AT> gentoo.org>
net-nntp/tin/files/tin-2.6.2-c99.patch | 93 ++++++++++++++++++++++++
net-nntp/tin/tin-2.6.2-r2.ebuild | 127 +++++++++++++++++++++++++++++++++
2 files changed, 220 insertions(+)
diff --git a/net-nntp/tin/files/tin-2.6.2-c99.patch b/net-nntp/tin/files/tin-2.6.2-c99.patch
new file mode 100644
index 000000000000..f9c9cff697f1
--- /dev/null
+++ b/net-nntp/tin/files/tin-2.6.2-c99.patch
@@ -0,0 +1,93 @@
+https://src.fedoraproject.org/rpms/tin/c/1f724cd60f641c3599f65e819dd2a878efa6b1a2?branch=rawhide
+
+diff --git a/aclocal.m4 b/aclocal.m4
+index 2891764c68c773c4..5620aad356b67762 100644
+--- a/aclocal.m4
++++ b/aclocal.m4
+@@ -3517,7 +3517,7 @@ RETSIGTYPE signal_handler (int sig)
+ int system_status;
+ wait (&wait_status);
+ system_status = WEXITSTATUS(wait_status); /* should be nonzero */
+- ${cf_cv_main_return:-return}(system_status != 23);
++ exit(system_status != 23);
+ }
+
+ int main(void)
+@@ -5173,7 +5173,7 @@ AC_CACHE_CHECK([for passwd.pw_gecos], cf_cv_pw_gecos,[
+ #include <pwd.h>
+ ],[
+ struct passwd foo;
+- char bar = foo.pw_gecos],
++ char *bar = foo.pw_gecos],
+ [cf_cv_pw_gecos=yes],
+ [cf_cv_pw_gecos=no])])
+ test $cf_cv_pw_gecos = no && AC_DEFINE(DONT_HAVE_PW_GECOS,1,[Define this to 1 if passwd struct has .pw_gecos])
+diff --git a/configure b/configure
+index 9e2d9ab4b6c46581..a85eaf929db2c820 100755
+--- a/configure
++++ b/configure
+@@ -24209,7 +24209,8 @@ int
+ main (void)
+ {
+
+- int32_t needed, ustr = NULL;
++ int32_t needed;
++ const UChar *ustr = NULL;
+ UErrorCode status;
+ needed = unorm_normalize(ustr, -1, UNORM_DEFAULT, 0, NULL, 0, &status);
+ ;
+@@ -26820,8 +26821,8 @@ cat >"conftest.$ac_ext" <<_ACEOF
+ int
+ main (void)
+ {
+-struct timeval *tv;
+-struct timezone *tz;
++struct timeval tv;
++struct timezone tz;
+ gettimeofday(&tv, &tz);
+ ;
+ return 0;
+@@ -27669,7 +27670,7 @@ main (void)
+ {
+
+ struct passwd foo;
+- char bar = foo.pw_gecos
++ char *bar = foo.pw_gecos
+ ;
+ return 0;
+ }
+@@ -28106,7 +28107,7 @@ RETSIGTYPE signal_handler (int sig)
+ int system_status;
+ wait (&wait_status);
+ system_status = WEXITSTATUS(wait_status); /* should be nonzero */
+- ${cf_cv_main_return:-return}(system_status != 23);
++ exit(system_status != 23);
+ }
+
+ int main(void)
+diff --git a/configure.in b/configure.in
+index 7d24b24176f7c3a6..810eaf6158dc9b48 100644
+--- a/configure.in
++++ b/configure.in
+@@ -1013,7 +1013,8 @@ AC_CHECK_HEADER(unicode/unorm.h,[
+ cf_try_icuuc="no"
+ LIBS="$LIBS -licuuc"
+ AC_TRY_LINK([#include <unicode/unorm.h>], [
+- int32_t needed, ustr = NULL;
++ int32_t needed;
++ const UChar *ustr = NULL;
+ UErrorCode status;
+ needed = unorm_normalize(ustr, -1, UNORM_DEFAULT, 0, NULL, 0, &status);], [
+ AC_DEFINE(HAVE_LIBICUUC,1,[Define this to 1 if we have libicuuc])
+@@ -1280,8 +1281,8 @@ AC_TRY_COMPILE([
+ #if HAVE_SYS_TIME_H
+ #include <sys/time.h>
+ #endif],
+-[struct timeval *tv;
+-struct timezone *tz;
++[struct timeval tv;
++struct timezone tz;
+ gettimeofday(&tv, &tz);],
+ ac_cv_func_gettimeofday_2args=yes, ac_cv_func_gettimeofday_2args=no)
+ AC_MSG_RESULT($ac_cv_func_gettimeofday_2args)
+
diff --git a/net-nntp/tin/tin-2.6.2-r2.ebuild b/net-nntp/tin/tin-2.6.2-r2.ebuild
new file mode 100644
index 000000000000..9eb463615776
--- /dev/null
+++ b/net-nntp/tin/tin-2.6.2-r2.ebuild
@@ -0,0 +1,127 @@
+# 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 gnutls gpg libtls nls sasl socks5 ssl"
+
+RDEPEND="
+ dev-libs/icu:=
+ dev-libs/libpcre2:=
+ dev-libs/uulib
+ sys-libs/ncurses:=
+ virtual/libiconv
+ cancel-locks? ( >=net-libs/canlock-3.0:= )
+ gpg? ( app-crypt/gnupg )
+ nls? ( virtual/libintl )
+ sasl? ( net-misc/gsasl[client] )
+ socks5? ( net-proxy/dante )
+ ssl? (
+ gnutls? ( net-libs/gnutls:= )
+ !gnutls? (
+ libtls? ( dev-libs/libretls:= )
+ !libtls? ( dev-libs/openssl:= )
+ )
+ )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ app-alternatives/yacc
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )
+"
+
+QA_CONFIG_IMPL_DECL_SKIP=(
+ # Windows only (bug #900278)
+ memset_s
+)
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gnutls.patch
+ "${FILESDIR}"/${PN}-2.6.2-c99.patch
+)
+
+DOCS=(
+ README{,.MAC,.WIN}
+ doc/{CHANGES{,.old},CREDITS,TODO,WHATSNEW,filtering}
+)
+
+src_configure() {
+ tc-export AR CC RANLIB
+ tc-export_build_env
+
+ # The build incorrectly discards its local -I if $CPPFLAGS is set.
+ if [[ -n ${BUILD_CPPFLAGS} ]]; then
+ BUILD_CPPFLAGS+=' -I$(INCDIR)'
+ fi
+
+ 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)
+ --disable-mime-strict-charset
+ --enable-nntp
+ --enable-prototypes
+ --without-pcre
+ --with-pcre2-config
+ --with-coffee # easter egg :)
+ --with-nntp-default-server="${TIN_DEFAULT_SERVER:-${NNTPSERVER:-news.gmane.io}}"
+ --with-screen=ncursesw
+ )
+
+ if use ssl; then
+ if use gnutls; then
+ myeconfargs+=( --with-nntps=gnutls )
+ elif use libtls; then
+ myeconfargs+=( --with-nntps=libtls )
+ else
+ myeconfargs+=( --with-nntps=openssl )
+ fi
+ fi
+
+ myeconfargs+=(
+ # 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-sum="${EPREFIX}"/usr/bin/sum
+
+ # set default paths for directories
+ --with-libdir="${EPREFIX}"/var/lib/news
+ --with-spooldir="${EPREFIX}"/var/spool/news
+ )
+
+ 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
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: net-nntp/tin/, net-nntp/tin/files/
@ 2025-03-02 13:28 Petr Vaněk
0 siblings, 0 replies; 3+ messages in thread
From: Petr Vaněk @ 2025-03-02 13:28 UTC (permalink / raw
To: gentoo-commits
commit: 90210cb8c34f0a77e271d76c9378b9a9595e784a
Author: Petr Vaněk <arkamar <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 2 13:26:35 2025 +0000
Commit: Petr Vaněk <arkamar <AT> gentoo <DOT> org>
CommitDate: Sun Mar 2 13:27:41 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90210cb8
net-nntp/tin: drop 2.6.2-r1, 2.6.2-r2
Bug: https://bugs.gentoo.org/931613
Signed-off-by: Petr Vaněk <arkamar <AT> gentoo.org>
net-nntp/tin/Manifest | 1 -
net-nntp/tin/files/tin-2.6.2-c99.patch | 93 ----------------------
net-nntp/tin/files/tin-2.6.2-gnutls.patch | 36 ---------
net-nntp/tin/tin-2.6.2-r1.ebuild | 120 ----------------------------
net-nntp/tin/tin-2.6.2-r2.ebuild | 127 ------------------------------
5 files changed, 377 deletions(-)
diff --git a/net-nntp/tin/Manifest b/net-nntp/tin/Manifest
index f5634f1174e9..32f4f5be264f 100644
--- a/net-nntp/tin/Manifest
+++ b/net-nntp/tin/Manifest
@@ -1,3 +1,2 @@
-DIST tin-2.6.2.tar.xz 1598732 BLAKE2B 0e5bac9a711fb69e64d64b4f0c070d456f38f727e7b7aa794ad5ada8695c2174023964b8f07d2e7d6add51cf0c7c3102965bef653a7e873275747145cb70dbe2 SHA512 4c9e0edb3268d57fb89d9d53a90e8a5ba73da7c1da63c834224bed0f763502a7c3dd325351d3e57b1ddcb57494a84228cc38f227c49300b759fad8d112b1cac1
DIST tin-2.6.3.tar.xz 1639192 BLAKE2B dba26c5e5fe0e331e069a22ce3241c00e7e01f582d00a38e55e2fe33c93f98d99c47e9d04e0660b40535a8b11e63789bc91df1b22dacd62405ee716a003c07dd SHA512 e8b474849e3330475e92b7c578ffe2f29f022303be266d39493e58b7227d9a5ee3915812c1806f52358c07f91d6119810498db906d2da7ffe035feba0e340a42
DIST tin-2.6.4.tar.xz 1640064 BLAKE2B 7a9ec66a55db282b2b3b7c977dfafd47cb72224873369ebbce05865a92719253f59a17d1b79fcee98c1c10a88e323eddcd88d40ea6719be96a407ed361aa4107 SHA512 63d7d8bf9d00644b05f128ab78960a1a1ccbeebbec9721517dc4971d07459d0a547adfd4eb8446a695d7303b43f45168a203c29f318b66fc79e4aba80cf8cc97
diff --git a/net-nntp/tin/files/tin-2.6.2-c99.patch b/net-nntp/tin/files/tin-2.6.2-c99.patch
deleted file mode 100644
index f9c9cff697f1..000000000000
--- a/net-nntp/tin/files/tin-2.6.2-c99.patch
+++ /dev/null
@@ -1,93 +0,0 @@
-https://src.fedoraproject.org/rpms/tin/c/1f724cd60f641c3599f65e819dd2a878efa6b1a2?branch=rawhide
-
-diff --git a/aclocal.m4 b/aclocal.m4
-index 2891764c68c773c4..5620aad356b67762 100644
---- a/aclocal.m4
-+++ b/aclocal.m4
-@@ -3517,7 +3517,7 @@ RETSIGTYPE signal_handler (int sig)
- int system_status;
- wait (&wait_status);
- system_status = WEXITSTATUS(wait_status); /* should be nonzero */
-- ${cf_cv_main_return:-return}(system_status != 23);
-+ exit(system_status != 23);
- }
-
- int main(void)
-@@ -5173,7 +5173,7 @@ AC_CACHE_CHECK([for passwd.pw_gecos], cf_cv_pw_gecos,[
- #include <pwd.h>
- ],[
- struct passwd foo;
-- char bar = foo.pw_gecos],
-+ char *bar = foo.pw_gecos],
- [cf_cv_pw_gecos=yes],
- [cf_cv_pw_gecos=no])])
- test $cf_cv_pw_gecos = no && AC_DEFINE(DONT_HAVE_PW_GECOS,1,[Define this to 1 if passwd struct has .pw_gecos])
-diff --git a/configure b/configure
-index 9e2d9ab4b6c46581..a85eaf929db2c820 100755
---- a/configure
-+++ b/configure
-@@ -24209,7 +24209,8 @@ int
- main (void)
- {
-
-- int32_t needed, ustr = NULL;
-+ int32_t needed;
-+ const UChar *ustr = NULL;
- UErrorCode status;
- needed = unorm_normalize(ustr, -1, UNORM_DEFAULT, 0, NULL, 0, &status);
- ;
-@@ -26820,8 +26821,8 @@ cat >"conftest.$ac_ext" <<_ACEOF
- int
- main (void)
- {
--struct timeval *tv;
--struct timezone *tz;
-+struct timeval tv;
-+struct timezone tz;
- gettimeofday(&tv, &tz);
- ;
- return 0;
-@@ -27669,7 +27670,7 @@ main (void)
- {
-
- struct passwd foo;
-- char bar = foo.pw_gecos
-+ char *bar = foo.pw_gecos
- ;
- return 0;
- }
-@@ -28106,7 +28107,7 @@ RETSIGTYPE signal_handler (int sig)
- int system_status;
- wait (&wait_status);
- system_status = WEXITSTATUS(wait_status); /* should be nonzero */
-- ${cf_cv_main_return:-return}(system_status != 23);
-+ exit(system_status != 23);
- }
-
- int main(void)
-diff --git a/configure.in b/configure.in
-index 7d24b24176f7c3a6..810eaf6158dc9b48 100644
---- a/configure.in
-+++ b/configure.in
-@@ -1013,7 +1013,8 @@ AC_CHECK_HEADER(unicode/unorm.h,[
- cf_try_icuuc="no"
- LIBS="$LIBS -licuuc"
- AC_TRY_LINK([#include <unicode/unorm.h>], [
-- int32_t needed, ustr = NULL;
-+ int32_t needed;
-+ const UChar *ustr = NULL;
- UErrorCode status;
- needed = unorm_normalize(ustr, -1, UNORM_DEFAULT, 0, NULL, 0, &status);], [
- AC_DEFINE(HAVE_LIBICUUC,1,[Define this to 1 if we have libicuuc])
-@@ -1280,8 +1281,8 @@ AC_TRY_COMPILE([
- #if HAVE_SYS_TIME_H
- #include <sys/time.h>
- #endif],
--[struct timeval *tv;
--struct timezone *tz;
-+[struct timeval tv;
-+struct timezone tz;
- gettimeofday(&tv, &tz);],
- ac_cv_func_gettimeofday_2args=yes, ac_cv_func_gettimeofday_2args=no)
- AC_MSG_RESULT($ac_cv_func_gettimeofday_2args)
-
diff --git a/net-nntp/tin/files/tin-2.6.2-gnutls.patch b/net-nntp/tin/files/tin-2.6.2-gnutls.patch
deleted file mode 100644
index b7f7de0956a2..000000000000
--- a/net-nntp/tin/files/tin-2.6.2-gnutls.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-Upstream patch to allow GnuTLS support without debug definitions.
-
---- a/src/nntps.c
-+++ b/src/nntps.c
-@@ -41,8 +41,8 @@
- #endif /* USE_LIBTLS */
-
- #ifdef USE_GNUTLS
--# ifdef DEBUG
- static int verification_func(gnutls_session_t session);
-+# ifdef DEBUG
- static void log_func(int level, const char *msg);
- # endif /* DEBUG */
- #else
-@@ -933,8 +933,7 @@
- #endif /* USE_OPENSSL */
-
-
--#ifdef DEBUG
--# ifdef USE_GNUTLS
-+#ifdef USE_GNUTLS
- static int
- verification_func(
- gnutls_session_t session)
-@@ -953,8 +952,11 @@
-
- return gnutls_verification_status;
- }
-+#endif /* USE_GNUTLS */
-
-
-+#ifdef DEBUG
-+# ifdef USE_GNUTLS
- static void
- log_func(
- int level,
diff --git a/net-nntp/tin/tin-2.6.2-r1.ebuild b/net-nntp/tin/tin-2.6.2-r1.ebuild
deleted file mode 100644
index 631a6ec8091d..000000000000
--- a/net-nntp/tin/tin-2.6.2-r1.ebuild
+++ /dev/null
@@ -1,120 +0,0 @@
-# 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 gnutls gpg libtls nls sasl socks5 ssl"
-
-RDEPEND="
- dev-libs/icu:=
- dev-libs/libpcre2:=
- dev-libs/uulib
- sys-libs/ncurses:=
- virtual/libiconv
- cancel-locks? ( >=net-libs/canlock-3.0:= )
- gpg? ( app-crypt/gnupg )
- nls? ( virtual/libintl )
- sasl? ( virtual/gsasl )
- socks5? ( net-proxy/dante )
- ssl? (
- gnutls? ( net-libs/gnutls:= )
- !gnutls? (
- libtls? ( dev-libs/libretls:= )
- !libtls? ( dev-libs/openssl:= )
- )
- )
-"
-DEPEND="${RDEPEND}"
-BDEPEND="
- app-alternatives/yacc
- dev-libs/libpcre2
- virtual/pkgconfig
- nls? ( sys-devel/gettext )
-"
-
-PATCHES=( "${FILESDIR}"/${P}-gnutls.patch )
-
-DOCS=(
- README{,.MAC,.WIN}
- doc/{CHANGES{,.old},CREDITS,TODO,WHATSNEW,filtering}
-)
-
-src_configure() {
- tc-export AR CC RANLIB
- tc-export_build_env
-
- # The build incorrectly discards its local -I if $CPPFLAGS is set.
- if [[ -n ${BUILD_CPPFLAGS} ]]; then
- BUILD_CPPFLAGS+=' -I$(INCDIR)'
- fi
-
- 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)
- --disable-mime-strict-charset
- --enable-nntp
- --enable-prototypes
- --without-pcre
- --with-pcre2-config
- --with-coffee # easter egg :)
- --with-nntp-default-server="${TIN_DEFAULT_SERVER:-${NNTPSERVER:-news.gmane.io}}"
- --with-screen=ncursesw
- )
-
- if use ssl; then
- if use gnutls; then
- myeconfargs+=( --with-nntps=gnutls )
- elif use libtls; then
- myeconfargs+=( --with-nntps=libtls )
- else
- myeconfargs+=( --with-nntps=openssl )
- fi
- fi
-
- myeconfargs+=(
- # 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-sum="${EPREFIX}"/usr/bin/sum
-
- # set default paths for directories
- --with-libdir="${EPREFIX}"/var/lib/news
- --with-spooldir="${EPREFIX}"/var/spool/news
- )
-
- 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.2-r2.ebuild b/net-nntp/tin/tin-2.6.2-r2.ebuild
deleted file mode 100644
index 9eb463615776..000000000000
--- a/net-nntp/tin/tin-2.6.2-r2.ebuild
+++ /dev/null
@@ -1,127 +0,0 @@
-# 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 gnutls gpg libtls nls sasl socks5 ssl"
-
-RDEPEND="
- dev-libs/icu:=
- dev-libs/libpcre2:=
- dev-libs/uulib
- sys-libs/ncurses:=
- virtual/libiconv
- cancel-locks? ( >=net-libs/canlock-3.0:= )
- gpg? ( app-crypt/gnupg )
- nls? ( virtual/libintl )
- sasl? ( net-misc/gsasl[client] )
- socks5? ( net-proxy/dante )
- ssl? (
- gnutls? ( net-libs/gnutls:= )
- !gnutls? (
- libtls? ( dev-libs/libretls:= )
- !libtls? ( dev-libs/openssl:= )
- )
- )
-"
-DEPEND="${RDEPEND}"
-BDEPEND="
- app-alternatives/yacc
- virtual/pkgconfig
- nls? ( sys-devel/gettext )
-"
-
-QA_CONFIG_IMPL_DECL_SKIP=(
- # Windows only (bug #900278)
- memset_s
-)
-
-PATCHES=(
- "${FILESDIR}"/${P}-gnutls.patch
- "${FILESDIR}"/${PN}-2.6.2-c99.patch
-)
-
-DOCS=(
- README{,.MAC,.WIN}
- doc/{CHANGES{,.old},CREDITS,TODO,WHATSNEW,filtering}
-)
-
-src_configure() {
- tc-export AR CC RANLIB
- tc-export_build_env
-
- # The build incorrectly discards its local -I if $CPPFLAGS is set.
- if [[ -n ${BUILD_CPPFLAGS} ]]; then
- BUILD_CPPFLAGS+=' -I$(INCDIR)'
- fi
-
- 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)
- --disable-mime-strict-charset
- --enable-nntp
- --enable-prototypes
- --without-pcre
- --with-pcre2-config
- --with-coffee # easter egg :)
- --with-nntp-default-server="${TIN_DEFAULT_SERVER:-${NNTPSERVER:-news.gmane.io}}"
- --with-screen=ncursesw
- )
-
- if use ssl; then
- if use gnutls; then
- myeconfargs+=( --with-nntps=gnutls )
- elif use libtls; then
- myeconfargs+=( --with-nntps=libtls )
- else
- myeconfargs+=( --with-nntps=openssl )
- fi
- fi
-
- myeconfargs+=(
- # 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-sum="${EPREFIX}"/usr/bin/sum
-
- # set default paths for directories
- --with-libdir="${EPREFIX}"/var/lib/news
- --with-spooldir="${EPREFIX}"/var/spool/news
- )
-
- 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
-}
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-03-02 13:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-02 13:28 [gentoo-commits] repo/gentoo:master commit in: net-nntp/tin/, net-nntp/tin/files/ Petr Vaněk
-- strict thread matches above, loose matches on Subject: below --
2023-12-16 9:31 Sam James
2023-01-04 4:32 Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox