Re: [gentoo-user] what's the use of etcat use?

2005-04-06 Thread Renat Golubchyk
On Wed, 06 Apr 2005 07:40:05 +0100 Russ Brown [EMAIL PROTECTED]
wrote:
 Ash Varma wrote:
  
  So try:
  
  $ equery uses package_name
  
  eg.
  
 
 I keep saying this but nobody seems to listen. 'equery uses' only
 works for packages that you already have installed, which makes it far
 less useful than 'etcat uses' was, which worked with packages you
 haven't installed yet.

You are wrong here. Example:

$ equery uses
Display USE flags for a given package

Syntax:
  uses local-opts pkgspec
local-opts is either of: 
  -a, --all - include non-installed packages

$ equery uses a2ps
[ Searching for packages matching a2ps... ]
[ Colour Code : set unset ]
[ Legend: Left column  (U) - USE flags from make.conf  ]
[   : Right column (I) - USE flags packages was installed with ]
!!! No installed packages found for a2ps

$ equery uses -a a2ps
[ Searching for packages matching a2ps... ]
[ Colour Code : set unset ]
[ Legend: Left column  (U) - USE flags from make.conf  ]
[   : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for app-text/a2ps-4.13c-r2 ]
 U I
 + + nls : unknown
 + + tetex   : Adds support for teTeX
 - - cjk : Adds support for Multi-byte character languages (Chinese,
Japanese, Korean)
- - vanilla : Do not add extra patches which change default behaviour


Cheers,
Renat


pgpVQLhckk3fo.pgp
Description: PGP signature


Re: [gentoo-user] what's the use of etcat use?

2005-04-06 Thread Russ Brown
Renat Golubchyk wrote:
 On Wed, 06 Apr 2005 07:40:05 +0100 Russ Brown [EMAIL PROTECTED]
 wrote:
 
Ash Varma wrote:

So try:

$ equery uses package_name

eg.


I keep saying this but nobody seems to listen. 'equery uses' only
works for packages that you already have installed, which makes it far
less useful than 'etcat uses' was, which worked with packages you
haven't installed yet.
 
 
 You are wrong here. Example:
 
 $ equery uses
 Display USE flags for a given package
 
 Syntax:
   uses local-opts pkgspec
 local-opts is either of: 
   -a, --all - include non-installed packages
 

Excellent, good spot: especially considering that the option isn't
mentioned anywhere in the man page... I also tried 'equery --help' but
nothing there either. It hadn't occurred to me to just try running the
command with no package argument.

Thanks for that.

On a related issue, etcat has the very useful 'versions' command which
lists all versions of the package in portage along with their
masked/installed status. I can't find an equivalent in equery, but I'm
now starting to wonder if it is there but undocumented. Any ideas? If I
can find something to do that I can stop using etcat completely. :-)

Thanks.

-- 

Russ.
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] what's the use of etcat use?

2005-04-06 Thread Christoph Gysin
Russ Brown wrote:
Excellent, good spot: especially considering that the option isn't
mentioned anywhere in the man page... I also tried 'equery --help' but
nothing there either. It hadn't occurred to me to just try running the
command with no package argument.
$ equery uses --help
Display USE flags for a given package
Syntax:
  uses local-opts pkgspec
local-opts is either of:
  -a, --all - include non-installed packages
On a related issue, etcat has the very useful 'versions' command which
lists all versions of the package in portage along with their
masked/installed status. I can't find an equivalent in equery, but I'm
now starting to wonder if it is there but undocumented. Any ideas? If I
can find something to do that I can stop using etcat completely. :-)
$ equery --help
...
 list(l) local-opts pkgspec - list all packages matching pkgspec
...
$ equery list --help
List all packages matching a query pattern
Syntax:
  list local-opts pkgspec
local-opts is either of:
  -i, --installed - search installed packages (default)
  -I, --exclude-installed - do not search installed packages
  -p, --portage-tree  - also search in portage tree (/usr/portage)
  -o, --overlay-tree  - also search in overlay tree (/usr/local/portage)
$ equery list -p -o mplayer
[ Searching for package 'mplayer' in all categories among: ]
 * installed packages
 * Portage tree (/usr/portage)
[-P-] [  ] media-video/mplayer-1.0_pre4-r7 (0)
[-P-] [M~] media-video/mplayer-1.0_pre5-r4 (0)
[-P-] [  ] media-video/mplayer-1.0_pre5-r5 (0)
[-P-] [M~] media-video/mplayer-1.0_pre5-r2 (0)
[-P-] [M~] media-video/mplayer-1.0_pre5-r3 (0)
[-P-] [M~] media-video/mplayer-1.0_pre6-r1 (0)
[-P-] [M~] media-video/mplayer-1.0_pre6-r2 (0)
[-P-] [  ] x11-themes/mplayer-skins-0.2-r3 (0)
[-P-] [M~] x11-themes/mplayer-skins-0.2-r4 (0)
 * overlay tree (/usr/local/portage)
Christoph
--
echo mailto: NOSPAM !#$.'*'|sed 's. ..'|tr * !#:2 [EMAIL PROTECTED]
--
gentoo-user@gentoo.org mailing list


Re: [gentoo-user] what's the use of etcat use?

2005-04-06 Thread Russ Brown
Christoph Gysin wrote:
 Russ Brown wrote:
 
 Excellent, good spot: especially considering that the option isn't
 mentioned anywhere in the man page... I also tried 'equery --help' but
 nothing there either. It hadn't occurred to me to just try running the
 command with no package argument.
 
 
 $ equery uses --help
 Display USE flags for a given package
 
 Syntax:
   uses local-opts pkgspec
 local-opts is either of:
   -a, --all - include non-installed packages
 
 On a related issue, etcat has the very useful 'versions' command which
 lists all versions of the package in portage along with their
 masked/installed status. I can't find an equivalent in equery, but I'm
 now starting to wonder if it is there but undocumented. Any ideas? If I
 can find something to do that I can stop using etcat completely. :-)
 
 
 $ equery --help
 ...
  list(l) local-opts pkgspec - list all packages matching pkgspec
 ...
 
 $ equery list --help
 List all packages matching a query pattern
 Syntax:
   list local-opts pkgspec
 local-opts is either of:
   -i, --installed - search installed packages (default)
   -I, --exclude-installed - do not search installed packages
   -p, --portage-tree  - also search in portage tree (/usr/portage)
   -o, --overlay-tree  - also search in overlay tree
 (/usr/local/portage)
 
 $ equery list -p -o mplayer
 [ Searching for package 'mplayer' in all categories among: ]
  * installed packages
  * Portage tree (/usr/portage)
 [-P-] [  ] media-video/mplayer-1.0_pre4-r7 (0)
 [-P-] [M~] media-video/mplayer-1.0_pre5-r4 (0)
 [-P-] [  ] media-video/mplayer-1.0_pre5-r5 (0)
 [-P-] [M~] media-video/mplayer-1.0_pre5-r2 (0)
 [-P-] [M~] media-video/mplayer-1.0_pre5-r3 (0)
 [-P-] [M~] media-video/mplayer-1.0_pre6-r1 (0)
 [-P-] [M~] media-video/mplayer-1.0_pre6-r2 (0)
 [-P-] [  ] x11-themes/mplayer-skins-0.2-r3 (0)
 [-P-] [M~] x11-themes/mplayer-skins-0.2-r4 (0)
  * overlay tree (/usr/local/portage)
 
 Christoph

Nice one.

$ etcat versions mplayer
[ Results for search key   : mplayer ]
[ Candidate applications found : 7 ]

 Only printing found installed programs.

*  media-video/mplayer :
[   ] 1.0_pre4-r7 (0)
[M~ ] 1.0_pre5-r2 (0)
[M~ ] 1.0_pre5-r3 (0)
[M~ ] 1.0_pre5-r4 (0)
[  I] 1.0_pre5-r5 (0)
[M~ ] 1.0_pre6-r1 (0)
[M~ ] 1.0_pre6-r2 (0)


$ equery list -p -o mplayer
[ Searching for package 'mplayer' in all categories among: ]
 * installed packages
[I--] [  ] media-video/mplayer-1.0_pre5-r5 (0)
 * Portage tree (/usr/portage)
[-P-] [  ] media-video/mplayer-1.0_pre4-r7 (0)
[-P-] [M~] media-video/mplayer-1.0_pre5-r4 (0)
[-P-] [M~] media-video/mplayer-1.0_pre5-r2 (0)
[-P-] [M~] media-video/mplayer-1.0_pre5-r3 (0)
[-P-] [M~] media-video/mplayer-1.0_pre6-r1 (0)
[-P-] [M~] media-video/mplayer-1.0_pre6-r2 (0)
[-P-] [  ] x11-themes/mplayer-skins-0.2-r3 (0)
[-P-] [M~] x11-themes/mplayer-skins-0.2-r4 (0)



More keypresses than the etcat form, and I prefer etcat's output format,
but at least it's possible with equery. Man page still needs fixing
though. ;-)

Thanks for the help everyone!

-- 

Russ.

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] what's the use of etcat use?

2005-04-05 Thread Ash Varma
On Tue, 2005-04-05 at 20:39 +0800,   wrote:
 I learned I can use 'etcat use' if I don't know the meaning of the useflags.
 
 
 But the fact is I used gentoo for one year, everytime I get confused I will
 do 'etcat use' and I never got explanation of the use flags. 
 
 Even the extremely complicated packages like mplayer and vlc both have no
 explanation on use flags. As well as big packages like xorg-x11. Is there
 anything wrong with my box?
 
 Can you give an example package that *has* explanation of the USE flags? So
 I can at least know 'etcat uses' *works* on some packages. 


$ etcat
etcat (0.3.1) - Portage Information Extractor - By: Alastair Tse
NOTICE: This tool will be phased out at some point in
the future, please use equery instead.
Bugs are still fixed, but new features won't be added.

SNIP

So try:

$ equery uses package_name

eg.

$ equery uses mozilla-firefox
[ Searching for packages matching mozilla-firefox... ]
[ Colour Code : set unset ]
[ Legend: Left column  (U) - USE flags from make.conf  ]
[   : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for www-client/mozilla-firefox-1.0.2-r1 ]
 U I
 + + java   : Adds support for Java
 - - mozsvg : Enable SVG support in mozilla and firefox
 - - 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
 + + java   : Adds support for Java
 + + gnome  : Adds GNOME support
 + + ldap   : Adds LDAP support (Lightweight Directory Access
Protocol)
 - - 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
 - - xinerama   : Add support for the xinerama X11 extension, which
allows you to stretch your display across multiple monitors
 - - xprint : Support for xprint,
http://www.mozilla.org/projects/xprint/
 - - moznoxft   : Disable XFT support in mozilla (also firefox,
thunderbird)
 - - mozdevelop : Enable features for web developers (e.g. Venkman)
 - - mozxmlterm : Enable mozilla's XML-based command-line terminal


signature.asc
Description: This is a digitally signed message part