Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98821 - A simple alias to output the meaning of Local USE flags
Summary: A simple alias to output the meaning of Local USE flags
Status: VERIFIED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-12 14:49 UTC by Pedro Algarvio
Modified: 2005-07-12 16:32 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 Pedro Algarvio 2005-07-12 14:49:37 UTC
A simple alias inside /etc/profile to output the meaning of Local USE flags:

alias localuse="cat /usr/portage/profiles/use.local.desc | grep --color $1"


Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
So a simple command like:
# localuse qmail
would output everything that matched qmail(and would color the search string)
from the use.local.desc

mail-filter/qmail-scanner:spamassassin - Build faster spamassassin checks into
qmail-scanner
mail-filter/spamassassin:qmail - Build qmail functionality and docs
mail-mta/qmail:logmail - Enable logging all E-Mails via ~alias/.qmail-log
mail-mta/qmail:noauthcram - If you do NOT want AUTHCRAM to be available
mail-mta/qmail:notlsbeforeauth - If you do NOT want to require STARTTLS before
offering AUTH
net-mail/mailman:qmail - Build with delivery options for qmail


Of course it would be needed to keep use.local.desc updated and it would be
better if the alias only conentrated on the flags and not also the text that
descriminates the flag.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-07-12 14:57:54 UTC
Hmm, and what about emerge app-portage/gentoolkit and use euse?
Comment 2 Pedro Algarvio 2005-07-12 15:10:18 UTC
euse --help
readlink: too many arguments
Try `readlink --help' for more information.
/usr/bin/euse: line 199: /make.defaults: No such file or directory
readlink: too many arguments
Try `readlink --help' for more information.
/usr/bin/euse: line 199: /make.defaults: No such file or directory
readlink: too many arguments
Try `readlink --help' for more information.
readlink: too many arguments
Try `readlink --help' for more information.
ERROR: /make.defaults is not readable
worker snortsam # man euse
No manual entry for euse
worker snortsam # readlink --help
Usage: readlink [OPTION]... FILE
Display value of a symbolic link on standard output.

  -f, --canonicalize      canonicalize by following every symlink in every
                          component of the given path recursively
  -n, --no-newline        do not output the trailing newline
  -q, --quiet,
  -s, --silent            suppress most error messages
  -v, --verbose           report error messages
      --help     display this help and exit
      --version  output version information and exit

Report bugs to <bug-coreutils@gnu.org>.
worker snortsam # euse inline
readlink: too many arguments
Try `readlink --help' for more information.
/usr/bin/euse: line 199: /make.defaults: No such file or directory
readlink: too many arguments
Try `readlink --help' for more information.
/usr/bin/euse: line 199: /make.defaults: No such file or directory
readlink: too many arguments
Try `readlink --help' for more information.
readlink: too many arguments
Try `readlink --help' for more information.
ERROR: /make.defaults is not readable
worker snortsam # euse list inline
readlink: too many arguments
Try `readlink --help' for more information.
/usr/bin/euse: line 199: /make.defaults: No such file or directory
readlink: too many arguments
Try `readlink --help' for more information.
/usr/bin/euse: line 199: /make.defaults: No such file or directory
readlink: too many arguments
Try `readlink --help' for more information.
readlink: too many arguments
Try `readlink --help' for more information.
ERROR: /make.defaults is not readable


HOW???
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-07-12 15:32:25 UTC
(In reply to comment #2)
> euse --help
> readlink: too many arguments

Oh, please search (Bug 75525)... :/ The ~arch version works perfectly fine.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-07-12 16:23:18 UTC
Closing this, we have 'equery uses', 'equery hasuse' and 'euse -i' in
gentoolkit, which offer features superior to the suggested one. Reopen if the
above is not the funtionality that you need.
Comment 5 Pedro Algarvio 2005-07-12 16:32:01 UTC
Thanks!