Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 379541 - net-misc/curl-7.21.7-r2 should REQUIRED_USE="gnutls? ( !nss )"
Summary: net-misc/curl-7.21.7-r2 should REQUIRED_USE="gnutls? ( !nss )"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Christoph Mende (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-17 09:01 UTC by Martin von Gagern
Modified: 2011-08-21 15:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2011-08-17 09:01:25 UTC
Currently the curl ebuild will completely ignore the nss USE flag if the gnutls USE flag is given as well. This is very confusing. As the ebuild already uses EAPI=4 and contains a REQUIRED_USE variable, I would suggest adding a line to it which requires "gnutls? ( !nss )", i.e. when gnutls is selected, don't allow selecting nss as well.

There are ebuilds out there (mail-client/thunderbird-bin-5.0 at least) that explicitely depend on net-misc/curl[nss]. In the case of USE="gnutls nss" portage will currently consider the dependency fulfilled, even if curl doesn't use nss at all.

You might also want to revisit bug #207653 comment #3 and consider adding an openssl USE flag to make the three implementations symmetric to one another. In that case, only one of these three USE flags should be allowed, all three should require the ssl USE flag, and the ssl USE flag should require at least one ssl library being selected.
Comment 1 Matt Turner gentoo-dev 2011-08-19 04:24:04 UTC
And, of course you'd also need an accompanying

nss? ( !gnutls )
Comment 2 Martin von Gagern 2011-08-19 07:31:00 UTC
(In reply to comment #1)
> And, of course you'd also need an accompanying
> 
> nss? ( !gnutls )

Not necessarily. Either of these lines states that nss and gnutls cannot be selected simultaneously. If you add both versions, then I guess the error messages would tell you that you have to disable gnutls for nss support, and that you have to disable nss for gnutls support. Which is more symmetric, but might also confuse some people into feeling that they have to disable both.
Comment 3 Christoph Mende (RETIRED) gentoo-dev 2011-08-21 15:40:32 UTC
fixed, thanks