commit: c02869eecf10098e7a8622a95448f0cc9d973ac0
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 14 03:24:14 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Nov 14 03:48:10 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c02869ee
net-misc/chrony: drop obsolete readline dep
chrony no longer supports GNU readline and only supports libedit
for 'readline-like functionality'.
The USE flag 'readline' is now used to control the libedit dependency
and the functionality it provides, because 'readline' is the feature
and it's the most common name for that type of functionality.
Signed-off-by: Sam James <sam <AT> gentoo.org>
net-misc/chrony/chrony-9999.ebuild | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/net-misc/chrony/chrony-9999.ebuild
b/net-misc/chrony/chrony-9999.ebuild
index f8e842d67fb0..dc5eee61c6d2 100644
--- a/net-misc/chrony/chrony-9999.ebuild
+++ b/net-misc/chrony/chrony-9999.ebuild
@@ -27,7 +27,7 @@ S="${WORKDIR}/${P/_/-}"
LICENSE="GPL-2"
SLOT="0"
-IUSE="+caps +cmdmon debug html ipv6 libedit libtomcrypt +nettle nss +ntp +nts
+phc pps +refclock +rtc samba +seccomp +sechash selinux"
+IUSE="+caps +cmdmon debug html ipv6 libtomcrypt +nettle nss +ntp +nts +phc pps
+readline +refclock +rtc samba +seccomp +sechash selinux"
# nettle > nss > libtomcrypt in configure
REQUIRED_USE="
sechash? ( || ( nettle nss libtomcrypt ) )
@@ -44,12 +44,11 @@ DEPEND="
acct-user/ntp
sys-libs/libcap
)
- libedit? ( dev-libs/libedit )
- !libedit? ( sys-libs/readline:= )
nettle? ( dev-libs/nettle:= )
nss? ( dev-libs/nss:= )
nts? ( net-libs/gnutls:= )
pps? ( net-misc/pps-tools )
+ readline? ( dev-libs/libedit )
seccomp? ( sys-libs/libseccomp )
"
RDEPEND="
@@ -68,7 +67,10 @@ BDEPEND="
if [[ ${PV} == 9999 ]] ; then
# Needed for doc generation in 9999
REQUIRED_USE+=" html"
- BDEPEND+=" virtual/w3m"
+ BDEPEND+="
+ sys-devel/bison
+ virtual/w3m
+ "
else
BDEPEND+=" verify-sig? ( >=sec-keys/openpgp-keys-mlichvar-20210513 )"
fi
@@ -115,7 +117,12 @@ src_configure() {
$(usex cmdmon '' '--disable-cmdmon')
$(usex debug '--enable-debug' '')
$(usex ipv6 '' '--disable-ipv6')
- $(usex libedit '' '--without-editline')
+
+ # USE=readline here means "readline-like functionality"
+ # chrony only supports libedit in terms of the library providing
+ # it.
+ $(usex readline '' '--without-editline --disable-readline')
+
$(usex libtomcrypt '' '--without-tomcrypt')
$(usex nettle '' '--without-nettle')
$(usex nss '' '--without-nss')