Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 12184
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Nicholas Jones (RETIRED) <carpaski@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Stefano Peluchetti <pelux@fastwebnet.it>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
emerge.patch use flags in search patch Martin 2002-12-28 09:00 0000 747 bytes Details | Diff
emerge_use_search.patch colored use flags in search patch Martin 2002-12-28 10:31 0000 1.34 KB Details | Diff
emerge_semi_use_aware.patch just like Stefano wanted patch Martin 2002-12-28 13:45 0000 2.40 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 12184 depends on: Show dependency tree
Bug 12184 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2002-12-15 04:51 0000
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 From Maik Schreiber 2002-12-15 07:48:43 0000 -------
Nice feature, I'd like to see this added as well.

------- Comment #2 From Stefano Peluchetti 2002-12-15 10:17:56 0000 -------
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 From Jordan Meek 2002-12-17 16:08:13 0000 -------
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 From Jordan Meek 2002-12-17 16:08:13 0000 -------
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 don’t see this
option in the Gentoo bugzilla.

------- Comment #5 From Kirill Vasiliev 2002-12-25 10:39:32 0000 -------
And what about ChangeLog output?

------- Comment #6 From Martin 2002-12-28 09:00:55 0000 -------
Created an attachment (id=6805) [details]
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 From Martin 2002-12-28 10:31:55 0000 -------
Created an attachment (id=6812) [details]
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 From Martin 2002-12-28 13:45:49 0000 -------
Created an attachment (id=6818) [details]
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 From Klaus Kusche 2003-01-06 03:58:14 0000 -------
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 From Stefano Peluchetti 2003-02-09 19:10:40 0000 -------
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 From Nicholas Jones (RETIRED) 2003-02-09 19:55:23 0000 -------
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 From Stefano Peluchetti 2003-02-10 06:08:29 0000 -------
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

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug