Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 407965

Summary: net-misc/vpnc - use REQUIRED_USE="bindist? ( !openssl )"
Product: Gentoo Linux Reporter: Dmitri Bogomolov <4glitch>
Component: Current packagesAssignee: Lori <lori>
Status: RESOLVED FIXED    
Severity: enhancement CC: fauli, mmokrejs
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: vpnc-0.5.3_p514.ebuild.diff
vpnc-0.5.3_p514.ebuild.patch
vpnc-0.5.3_p514.ebuild.patch

Description Dmitri Bogomolov 2012-03-12 21:03:20 UTC
Created attachment 305035 [details]
vpnc-0.5.3_p514.ebuild.diff

As I see, today a new ebuilds with EAPI=4 tends to specify conflict of USE-flags instead of ignoring the obvious meaning (such as link with libcrypto.so if USE="+openssl"). Please check out included ebuild patch with that logic.
Comment 1 Dmitri Bogomolov 2012-03-12 21:09:04 UTC
Created attachment 305037 [details, diff]
vpnc-0.5.3_p514.ebuild.patch

Sorry, this one.
Comment 2 Dmitri Bogomolov 2012-03-12 21:14:56 UTC
Created attachment 305041 [details, diff]
vpnc-0.5.3_p514.ebuild.patch

); this
Comment 3 Martin Mokrejš 2012-03-14 17:14:50 UTC
Dmitrij, thank you for your input. I tested it with:

[ebuild     U  ] net-misc/vpnc-0.5.3_p514 [0.5.3] USE="-bindist -openssl% -resolvconf (-hybrid-auth%)" 0 kB

[ebuild   R    ] net-misc/vpnc-0.5.3_p514  USE="openssl* -bindist -resolvconf" 0 kB




# USE="bindist openssl" emerge =net-misc/vpnc-0.5.3_p514 -pv

These are the packages that would be merged, in order:

Calculating dependencies \

!!! Problem resolving dependencies for =net-misc/vpnc-0.5.3_p514
... done!

!!! The ebuild selected to satisfy "=net-misc/vpnc-0.5.3_p514" has unmet requirements.
- net-misc/vpnc-0.5.3_p514::gentoo USE="bindist (multilib) openssl -resolvconf"

  The following REQUIRED_USE flag constraints are unsatisfied:
    bindist? ( !openssl )



# USE="bindist -openssl" emerge =net-misc/vpnc-0.5.3_p514 -pv

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] net-misc/vpnc-0.5.3_p514  USE="bindist* -openssl -resolvconf" 0 kB
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2013-02-06 15:24:48 UTC
+  06 Feb 2013; Justin Lecher <jlec@gentoo.org> vpnc-0.5.3_p514.ebuild,
+  metadata.xml:
+  Use REQUIRED_USE to sanitize *DEPENDS, thanks Dmitri Bogomolov for the
+  initial patch, #407965
+