Gentoo Archives: gentoo-proxy-maint

From: Joonas Niilola <juippis@g.o>
To: gentoo-proxy-maint@l.g.o
Subject: Re: [gentoo-proxy-maint] [PATCH v4] net-nntp/tin: add 2.6.2
Date: Sat, 14 Jan 2023 09:55:13
Message-Id: 01e16f18-aeca-2170-38a0-3110f95b1de3@gentoo.org
In Reply to: [gentoo-proxy-maint] [PATCH v4] net-nntp/tin: add 2.6.2 by Anna Vyalkova
1 On 14.1.2023 11.48, Anna Vyalkova wrote:
2 > In this update:
3 > * New: NNTPS support with different backends (openssl by default)
4 > * New: PCRE2 support (enabled by default)
5 > * Enable local news support
6 > * Add missing virtual/libiconv dependency
7 > * Add missing sys-devel/gettext bdep
8 > * Drop net-mail/metamail optfeature dep (treecleaned)
9 > * Export BUILD_* variables
10 >
11
12
13 Hey,
14
15 sorry that I failed to see this yesterday, but could we rework the whole
16 ssl logic in this ebuild? I just remembered we shouldn't use
17 REQUIRED_USE to choose an ssl implementation, but instead prioritize it
18 via use flag selection. See https://bugs.gentoo.org/781908. This was
19 better documented when libressl was around, and truthfully hasn't been
20 as much of a problem ever since libressl was removed.
21
22 So I'd suggest something like this:
23 RDEPEND="...
24 ssl? (
25 gnutls? ( net-libs/gnutls:= )
26 !gnutls (
27 libtls? ( dev-libs/libretls:= )
28 !libtls? ( dev-libs/openssl:= )
29 )
30 )
31 ..."
32
33 src_configure() {
34 ...
35
36 if use ssl; then
37 if use gnutls; then
38 myeconfargs+=( --with-nntps=gnutls )
39 elif ! use gnutls && use libtls; then
40 myeconfargs+=( --with-nntps=libtls )
41 else
42 myeconfargs+=( --with-nntps=openssl )
43 fi
44 fi
45 ...
46 }

Attachments

File name MIME type
OpenPGP_signature.asc application/pgp-signature