Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 746542 - =app-portage/flaggie-0.2.1-r1: issue with duplicate USE flag, e.g. for curl and curl_ssl
Summary: =app-portage/flaggie-0.2.1-r1: issue with duplicate USE flag, e.g. for curl a...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2020-10-04 13:27 UTC by m1027
Modified: 2023-09-10 05:30 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 m1027 2020-10-04 13:27:06 UTC
When I have this line in package.use

> 
> net-misc/curl libressl -gnutls curl_ssl: libressl -openssl
> 

and enable gnutls with flaggie like so

> 
> flaggie net-misc/curl +gnutls
> 

then I receive this

> 
> net-misc/curl libressl gnutls curl_ssl: libressl -openssl
> 

which is what I intended to do: -gnutls (disabled) is converted into gnutls
(enabled).

However, when I have no -gnutls initally, then the same flaggie command adds
gnutls *after curl_ssl:*

> 
> net-misc/curl libressl curl_ssl: libressl -openssl gnutls
> 

This is not intended since there is curl_ssl[_gnutls], too, and flaggie
changes the curl_ssl flags in that case.
Comment 1 m1027 2023-09-10 05:30:04 UTC
Fixed with current flaggie (tested against 0.99.5).

In the mentioned use case flaggie now simply inserts another line in package.use instead of editing the existing one, and thus avoids the confusion with possible "curl_ssl: ..." in it.

Thanks