Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12184 - More info on USE flags about a specific emerge.
Summary: More info on USE flags about a specific emerge.
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-15 04:51 UTC by Stefano Peluchetti
Modified: 2011-10-30 22:37 UTC (History)
7 users (show)

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


Attachments
use flags in search (emerge.patch,747 bytes, patch)
2002-12-28 09:00 UTC, Martin
Details | Diff
colored use flags in search (emerge_use_search.patch,1.34 KB, patch)
2002-12-28 10:31 UTC, Martin
Details | Diff
just like Stefano wanted (emerge_semi_use_aware.patch,2.40 KB, patch)
2002-12-28 13:45 UTC, Martin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefano Peluchetti 2002-12-15 04:51:41 UTC
when i do for example  
code--> 
emerge -p gaim 
<--code 
i get: 
code--> 
pelux@gentoo pelux $ emerge -p gaim 
 
These are the packages that I would merge, in order. 
 
Calculating dependencies ...done! 
[ebuild    UD] x11-libs/gtk+-2.0.9 [2.1.2-r0] 
[ebuild    U ] net-im/gaim-0.59.6 [0.59.5-r0] 
<--code 
I would like to see something like this: 
code--> 
pelux@gentoo pelux $ emerge -p gaim 
 
These are the packages that I would merge, in order. 
 
Calculating dependencies ...done! 
[ebuild    UD] x11-libs/gtk+-2.0.9 [2.1.2-r0] 
[ebuild    U ] net-im/gaim-0.59.6 [0.59.5-r0] 
 
The following USE flags for this action are: 
[enable] java ..... 
[disable] compose .... 
[unset] noirc nomozmail ..... 
<--code 
 
The use flags printed out are ONLY concerning this emerge action so  
[enable] : use var presents in IUSE in ebuilds and enabled by the user 
[disable] : use var presents in IUSE in ebuilds and disabled by the user 
[unset]: use var presents in IUSE in ebuilds but not set by the user 
This is usefull for various reasons! A user are not supposed to know that flags like 
nomozmail exists! Also if a user find a use var under the unset group he will likely 
search for  description for it. Maybe he forgot to set it. 
That would really be anice improvement!  
Thanks to Gentoo team! 
 
Stefano Peluchetti
Comment 1 Maik Schreiber 2002-12-15 07:48:43 UTC
Nice feature, I'd like to see this added as well.
Comment 2 Stefano Peluchetti 2002-12-15 10:17:56 UTC
obviosly the example is about doing "emerge -p mozila" and not about emergeing
gaim . Just to explain why i used these use var in the example :) , as they
clearly refer to mozilla and not gaim!
Comment 3 Jordan Meek 2002-12-17 16:08:13 UTC
I was just going to file a bug report for this! I think this would be a great
feature. I built Mozilla 1.2.1r2 four times until I figured out I needed to get
rid of 
Comment 4 Jordan Meek 2002-12-17 16:08:13 UTC
I was just going to file a bug report for this! I think this would be a great
feature. I built Mozilla 1.2.1r2 four times until I figured out I needed to get
rid of gtk2 and add xft to get Mozilla to build with xft. I would have just
voted for this bug instead of replying with a me too, but I dont see this
option in the Gentoo bugzilla.
Comment 5 Kirill Vasiliev 2002-12-25 10:39:32 UTC
And what about ChangeLog output?
Comment 6 Martin 2002-12-28 09:00:55 UTC
Created attachment 6805 [details, diff]
use flags in search

I've used this for a while -- just a very quick hack...

Patched against portage-2.0.46-r4.
Comment 7 Martin 2002-12-28 10:31:55 UTC
Created attachment 6812 [details, diff]
colored use flags in search

Enhanced emerge's search to display which use vars a package is using --
color-coded:

red: not specified in USE
purple: specified not to be used (ie -kde)
green: specified and used

It's not a USE aware emerge but a small step in that direction :)
Comment 8 Martin 2002-12-28 13:45:49 UTC
Created attachment 6818 [details, diff]
just like Stefano wanted

$ ./emerge -ep mozilla

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N   ] dev-java/java-config-0.2.7 
[...]
[ebuild  N   ] net-www/mozilla-1.2.1-r4 


The following USE flags for this action are:

[enabled] nls java build berkdb gdbm readline bootstrap static python ssl doc
mmx truetype 3dnow ncurses X libwww png tetex tiff jpeg zlib crypt gtk2 ldap
gnome 
[disabled] ipv6 
[unset] build static bootstrap tcltk pic mysql sse 3dfx ldap ipv6 mozsvg
mozcalendar mozaccess mozinterfaceinfo mozp3p mozxmlterm moznoirc moznomail
moznocompose moznoxft
Comment 9 Klaus Kusche 2003-01-06 03:58:14 UTC
Just another "me, too" vote...

1.) The official "use.desc" file seems to be quite outdated and incomplete. For
example, most of the moz USE flags mentioned below (including "xft"!) are not in
"use.desc"!
2.) I've noticed that "use.desc" has been updated several times without updating
the "Last updated" comment in it.

So this is a clear indication that USE flags should be handled more dynamically!
Comment 10 Stefano Peluchetti 2003-02-09 19:10:40 UTC
I'm the one who proposed this improvement.
I noticed that the proposed patch (last one) worked without problems. Why was'nt it included yet in the official stable portage branch? Hope that it won't follow the destiny that a lot of others very good patches have  followed (see the paralled download patch and some others) : be forgotten.
Thanks a lot to all the developers that contributed with patches for the hard work! :)
Hope it will be included in portage soon! Waiting for some reply.

Stefano Peluchetti
Comment 11 Nicholas Jones (RETIRED) gentoo-dev 2003-02-09 19:55:23 UTC
Please not that I am portage maintainer and that I also wrote the
parallel merging/fetching code. If it doesn't make it in, then it
isn't reasonable, useful, or proper patch. Parallel code conflicts
with globals and thus can't be merged. It'll be added when it fits.

emerge -evp world
-vp == Show use flags
Comment 12 Stefano Peluchetti 2003-02-10 06:08:29 UTC
Thanks. I didn't notice that it was already included in the official release. So should'nt this bug be marked as closed? Anyway i hope you did't take my comment like just as a mere crtitic. I just tried to make a constructive citic as "the feeling" , also noticed in the forums, was that sometimes the proposed patch was just abbandoned. 
Bye

Stefano Peluchetti