Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 112996 - USE flags description
Summary: USE flags description
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-19 07:11 UTC by Jonas MG
Modified: 2005-11-22 15:47 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 Jonas MG 2005-11-19 07:11:05 UTC
emerge' should have an option (--description) for to showing all USE flags
description

# emerge -pv amsn

[ebuild   R   ] net-im/amsn-0.94  -gnome +imlib -kde +xmms 2,240 kB

# ----------------------------

meanwhile I'm using this small script:

#
cat << 'EOF' > use-description.sh
#!/bin/sh

flags=$(emerge $1 -pv |grep '^\[' |sed 's_^.*/[^ -+]*__; s_^ *__')
echo -e "$flags\n"

for i in $flags;do
    FirstChar=${i:0:1}
    if [[ $FirstChar == '-' || $FirstChar == '+' ]]; then
        grep -wh "^${i:1}" /usr/portage/profiles/use.desc
    fi
done
 
grep $1 /usr/portage/profiles/use.local.desc | sed 's/^.[^:]*://; s/-/- Local
Flag -/'
EOF

# --------------------------------------------------
 
# chmod +x use-description.sh

# ./use-description.sh nano
-build -debug +justify +ncurses +nls +nomac -slang +spell +unicode 985 kB 

build - !!internal use only!! DO NOT SET THIS FLAG YOURSELF!, used for creating
build images and the first half of bootstrapping.
debug - Tells configure and the makefiles to build for debugging. Effects vary
across packages, but generally it will at least add -g to CFLAGS. Remember to
set FEATURES=nostrip too
ncurses - Adds ncurses support (console display library)
nls - Adds Native Language Support (using gettext - GNU locale utilities)
slang - Adds support for the slang text display library (it's like ncurses, but
different)
spell - Adds dictionary support
unicode - Adds support for Unicode
justify - Local Flag - Toggle the justify option ...
nomac - Local Flag - Turn off mac formatting output

Reproducible: Always
Steps to Reproduce:
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2005-11-22 15:47:27 UTC
Use `equery uses`.