Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 562424 - net-misc/iputils-20150815-r1: unable to set USE flag "libressl" instead of "openssl"
Summary: net-misc/iputils-20150815-r1: unable to set USE flag "libressl" instead of "o...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Julian Ospald
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-06 18:50 UTC by Enrico Bonato
Modified: 2018-08-15 15:45 UTC (History)
3 users (show)

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 Enrico Bonato 2015-10-06 18:50:30 UTC
I've set system wide USE enabling "libressl" and disabling "-openssl"
world update stops for net-misc/iputils
with the following error:

!!! The ebuild selected to satisfy "net-misc/iputils" has unmet requirements.
- net-misc/iputils-20150815-r1::gentoo USE="ipv6 libressl (policykit) ssl -SECURITY_HAZARD -arping -caps -clockdiff -doc -filecaps -gcrypt -idn -nettle -openssl -rarpd -rdisc -static -tftpd -tracepath -traceroute" ABI_X86="64"

  The following REQUIRED_USE flag constraints are unsatisfied:
    ipv6? ( ssl? ( exactly-one-of ( gcrypt nettle openssl ) ) )


Reproducible: Always

Steps to Reproduce:
1. set USE="-openssl libressl" 
2. emerge -1pv net-misc/iputils
3.
Actual Results:  
build with "libressl" fails before even beginning

Expected Results:  
correctly use libressl USE flag
Comment 1 Mike Gilbert gentoo-dev 2015-10-06 19:00:56 UTC
Given the way the DEPEND is currently written, you need to enable both the openssl and libressl USE flags to build iputils against libressl.

I assume this is intentional, but I will let Julian confirm.
Comment 2 Julian Ospald 2015-10-06 19:06:34 UTC
yes, openssl and libressl are NOT conflicting USE flags

I've expected this to hit us. openssl is a terribly named flag.
Comment 3 Erik 2018-08-14 22:41:26 UTC
so, a few years have gone by and:

 - the depends containing openssl have reference to the ssl flags of other packages in the same line as the openssl flag reference in the 20160308 & 20171016

 - both 20160308 & 20171016 are masked packages, at least under stable funtoo kits

 - the 2012 stable ebuild is one of 3 packages hard referencing openssl specifically during an @world after uninstalling openssl & setting libressl. This is triggering a big sookie wah wah about "cannot co-exist on the same system"

In the longer term, using USE flags named after packages that cannot coexist for any purpose other than to express which you want can be as 'correct' as it pleases. It will still be a profound wrongness. Within my 'world' this is the only package that appears to be interpreting the openssl flag in this way.

In the short term, amending the stable LIB_DEPEND to:

LIB_DEPEND="caps? ( sys-libs/libcap[static-libs(+)] )
>---idn? ( net-dns/libidn[static-libs(+)] )
>---ipv6? ( ssl? (
>--->---gnutls? ( net-libs/gnutls[static-libs(+)] )
>--->---!gnutls? ( || ( dev-libs/openssl:0 dev-libs/libressl:0 ) )
>---) )"

seems to have cleared my immediate blockage problem.
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2018-08-15 15:45:34 UTC
(In reply to Erik from comment #3)
> [...]
> 
> In the short term, amending the stable LIB_DEPEND to:
> 
> LIB_DEPEND="caps? ( sys-libs/libcap[static-libs(+)] )
> >---idn? ( net-dns/libidn[static-libs(+)] )
> >---ipv6? ( ssl? (
> >--->---gnutls? ( net-libs/gnutls[static-libs(+)] )
> >--->---!gnutls? ( || ( dev-libs/openssl:0 dev-libs/libressl:0 ) )
> >---) )"
> 
> seems to have cleared my immediate blockage problem.

...which is completely wrong from Gentoo P.O.V.