public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* Re: [gentoo-portage-dev] Additional information to output: emerge -pv
@ 2005-08-25 17:54 Dustin Spicuzza
  2005-08-25 18:22 ` Thomas de Grenier de Latour
  0 siblings, 1 reply; 11+ messages in thread
From: Dustin Spicuzza @ 2005-08-25 17:54 UTC (permalink / raw
  To: gentoo-portage-dev

 > The appropriate way would be to open a bug in bugzilla, assign it to 
the portage team
 > and attach the patch there (normally each file separately, not packed 
in a tarball)

Thanks. Will do.

 > How about making it so you need two -v switchs (eg: -vv) to get the 
long listing? I use
 > `emerge world -puv` all the time and don 't want to have to scroll 
through so much stuff.

Good idea... it shouldn't be a big deal to do that... I was just trying 
to keep the patch nice and simple.

 > Does it repeat the same use flags over and over again for each 
package, or just explain
 > it once? Also, does it distinguish local from global use flags?

It repeats the USE flags for each package, but ONLY the use flags that 
apply to that package. Personally, I think this is a more desirable 
behavior, because of when you do something like 'emerge world', then 
you'll have this really BIG list of stuff, and lots of repeating USE 
flags. However, it puts a empty line between each package, so that each 
list of USE flags is shown nicely for each package.. like this:

[stuff here] package useflag useflag2
* useflag - does something
* useflag2 - does something else

[stuff here] package useflag3 useflag
* useflag3 - does yet another thing
* useflag - does something

And so on... for the entire list. Currently, it searches global flags 
first, then falls back to local flags... but you're right -- its a 
better idea to search locals first, then globals. I don't really think 
its necessary though to note that its a local flag or a global flag... 
its not like it matters too much when you're trying to decide whether 
you want to set it or not. You just want to know what the package wants 
to use it for. I spose it could do something like * [local] useflag - 
description, and * [global] useflag - description...

Dustin
-- 
gentoo-portage-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: Re: [gentoo-portage-dev] Additional information to output: emerge -pv
@ 2005-08-25 17:44 Dustin Spicuzza
  2005-08-25 21:57 ` Brian Harring
  0 siblings, 1 reply; 11+ messages in thread
From: Dustin Spicuzza @ 2005-08-25 17:44 UTC (permalink / raw
  To: gentoo-portage-dev

The one that you mentioned seems to be a little bit more involved than 
my patch. Which, if thats ok with you, then its ok with me :) His is a 
full class that can be used to get various things... while mine just 
goes out there, opens the file, then displays the results... the class 
idea is more efficient it would seem (only opens file once).

Although, instead of using his proposed --use-local-desc, and etc... it 
could be something like --vv (a shorter "long" option), or -vv (but 
wouldn't that mean rewriting some of the code to handle options?), like 
mentioned above.

My guess on the lack of feekback on the bug is that a feature like this 
wouldn't be as useful to someone who isn't new to gentoo, and in fact 
(as mentioned above), could actually be quite annoying. But for someone 
who is still new to gentoo.. it would be useful until they get a grasp 
on what USE flags do what.

Dustin
-- 
gentoo-portage-dev@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 11+ messages in thread
* [gentoo-portage-dev] Additional information to output: emerge -pv
@ 2005-08-25  2:15 Dustin Spicuzza
  2005-08-25  9:58 ` Simon Stelling
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Dustin Spicuzza @ 2005-08-25  2:15 UTC (permalink / raw
  To: gentoo-portage-dev

[-- Attachment #1: Type: text/plain, Size: 1732 bytes --]

Hey,

I've been using Gentoo for a couple of years now... and portage was the 
#1 reason I kept using Gentoo over other Linux distros... and why I'm 
still using it.

Something that's always bugged me a lot is USE flags. Which, while I 
think that they are one of the best things about portage, I think that 
they are also one of the more annoying features as well... it can be 
relatively annoying to configure it all up. Especially researching what 
they are... yes, it just takes a little bit of effort to find them, but 
why not make it slightly easier?

Anyways, I made a patch (against Portage 2.0.51.22-r2, attached as 
verbose_use_patch.tar) that adds the description of each USE flag to the 
'emerge -pv <package>' command. The output for openoffice, for example, 
looks something like this...

[ebuild  N    ] app-office/openoffice-1.1.4-r1  -curl -hardened -java 
+kde -nptl +zlib 215,331 kB
  *  curl - Adds support for client-side URL transfer library
  *  hardened - activate default security enhancements for toolchain 
(gcc, glibc, binutils)
  *  java - Adds support for Java
  *  kde - Adds support for kde-base/kde (K Desktop Enviroment)
  *  nptl - Enable support for Native POSIX Threads Library, the new 
threading module (requires linux-2.6 or better usually)
  *  zlib - Adds support for zlib (de)compression

And, it does this for each package (only for verbose obviously) Its a 
very small, non-invasive patch, and quite small (a routine in 
portage_util.py, and 5 lines of code in emerge). 

I attached the patch here because I wasn't quite sure of the proper 
procedure for patch submission... anyways, thanks for all your work! 
Hopefully in the future I can contribute to this project.

Dustin Spicuzza

[-- Attachment #2: verbose_use_patch.tar --]
[-- Type: application/octet-stream, Size: 10240 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-08-25 22:27 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-25 17:54 [gentoo-portage-dev] Additional information to output: emerge -pv Dustin Spicuzza
2005-08-25 18:22 ` Thomas de Grenier de Latour
  -- strict thread matches above, loose matches on Subject: below --
2005-08-25 17:44 Dustin Spicuzza
2005-08-25 21:57 ` Brian Harring
2005-08-25 18:15   ` Dustin Spicuzza
2005-08-25 22:24     ` Brian Harring
2005-08-25  2:15 Dustin Spicuzza
2005-08-25  9:58 ` Simon Stelling
2005-08-25  9:59 ` Paul de Vrieze
2005-08-25 14:15 ` Sandy McArthur
2005-08-25 16:14   ` Brian Harring
2005-08-25 16:28     ` Brian Harring
2005-08-25 20:42 ` Alec Warner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox