Re: [gentoo-user] Re: Is this a bug in equery

2005-11-24 Thread Paul Varner
On Thu, 2005-11-24 at 08:01 +0100, Mariusz Pękala wrote:
 Not precise enough. You need to enclose only those characters, like:
   equery files --type =vim-6.2
 or you may use backslash, like:
   equery files --type \=vim-6.2
 
 Saying that you MUST enclose the entire argument would misguide those
 who do not understand quoting mechanisms yet. You would be responsible
 for their mistakes forever! ;-)

Changed to:

$ ./equery files --type vim-6.4
[ Searching for packages matching vim-6.4... ]
!!! Invalid syntax: missing operator
!!! If you want only specific versions please use one of
!!! the following operators as prefix for the package name:
!!!  =  =  =  
!!! Example to only match gcc versions greater or equal 3.2:
!!!=sys-devel/gcc-3.2
!!!
!!! Note: The symbols  and  are used for redirection in the shell
!!! and must be quoted if either one is used.

Regards,
Paul

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Re: Is this a bug in equery

2005-11-24 Thread Harry Putnam
Paul Varner [EMAIL PROTECTED] writes:

 Changed to:

 $ ./equery files --type vim-6.4
 [ Searching for packages matching vim-6.4... ]
 !!! Invalid syntax: missing operator
 !!! If you want only specific versions please use one of
 !!! the following operators as prefix for the package name:
 !!!  =  =  =  
 !!! Example to only match gcc versions greater or equal 3.2:
 !!!=sys-devel/gcc-3.2
 !!!
 !!! Note: The symbols  and  are used for redirection in the shell
 !!! and must be quoted if either one is used.

 Regards,
 Paul

Don't know about you guys but I don't see where this really works at
all like it should examples follow:

root # ls  /usr/portage/dev-db/mysql
  ChangeLog mysql-3.23.58-r1.ebuild  mysql-4.1.15-r30.ebuild
  Manifest  mysql-4.0.25-r2.ebuild   mysql-4.1.15.ebuild
  files mysql-4.0.26.ebuild  mysql-5.0.15.ebuild
  metadata.xml  mysql-4.1.14.ebuild  mysql-5.0.16-r1.ebuild
  mysql-5.0.16-r30.ebuild

equery uses  mysql-4.0.26
[ Searching for packages matching mysql-4.0.26... ]
!!! Invalid syntax: missing operator
!!! If you want only specific versions please use one of
!!! the following operators as prefix for the package name:
!!!  =  =  =  
!!! Example to only match gcc versions greater or equal 3.2:
!!!=sys-devel/gcc-3.2

Now try following the directions regardless of quoting technique:

Lessthan or equal too:
 equery uses  =mysql-4.0.26
[ Searching for packages matching =mysql-4.0.26... ]
!!! No matching packages found for =mysql-4.0.26

Using  Mariusz method:

 equery uses  =mysql-4.0.26 
[ Searching for packages matching =mysql-4.0.26... ]
!!! No matching packages found for =mysql-4.0.26


Only greater than seems to work and it doesn't really do what you
expect:

There are 7 ebuids that are equal to or greater than mysql-4.0.26

 equery uses  =mysql-4.0.26
 or
 equery uses =mysql-4.0.26
 or
 equery uses =mysql-4.0.26

[ Searching for packages matching =mysql-4.0.26... ]
[ 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 dev-db/mysql-5.0.15 ]
 U I
 + + berkdb  : Adds support for sys-libs/db (Berkeley DB for MySQL)
 - - big-tables  : Make tables contain up to 1.844E+19 rows
 - - cluster : Add support for NDB clustering.
 - - 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
 - - doc : Adds extra documentation (API, Javadoc, etc)
 - - extraengine : Add support for alternative storage engines.
 - - minimal : Install a very minimal build (disables, for example, 
plugins, fonts, most drivers, non-critical features)
 + + perl: Adds support/bindings for the Perl language.
 + + readline: enables support for libreadline, a GNU line-editing library 
that most everyone wants.
 - - selinux : !!internal use only!! Security Enhanced Linux support, this 
must be set by the selinux profile or breakage will occur
 + + ssl : Adds support for Secure Socket Layer connections
 - - static  : !!do not set this during bootstrap!! Causes binaries to be 
statically linked instead of dynamically
 - - utf8: Use UTF8 encoding instead of LATIN1.

Apparently only one is shown.

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Is this a bug in equery

2005-11-24 Thread Willie Wong
On Thu, Nov 24, 2005 at 12:04:03PM -0600, Harry Putnam wrote:
 Don't know about you guys but I don't see where this really works at
 all like it should examples follow:
 
 root # ls  /usr/portage/dev-db/mysql
   ChangeLog mysql-3.23.58-r1.ebuild  mysql-4.1.15-r30.ebuild
   Manifest  mysql-4.0.25-r2.ebuild   mysql-4.1.15.ebuild
   files mysql-4.0.26.ebuild  mysql-5.0.15.ebuild
   metadata.xml  mysql-4.1.14.ebuild  mysql-5.0.16-r1.ebuild
   mysql-5.0.16-r30.ebuild
 

big snip where the OP shows that =mysql-4.0.26 returns nothing while
greater-than-or-equal-to returns 5.0.15 only

That is the intended behaviour. 'equery uses' only greps the use flags
for installed packages. If you want non-installed packages, you need
to use the '-a' flag

i.e.

[02:00 PM]wwong ~ $ equery uses '=mysql-4.0.26'
[ Searching for packages matching =mysql-4.0.26... ]
[ 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 dev-db/mysql-4.1.14 ]
 U I
 - - big-tables  : Make tables contain up to 1.844E+19 rows
 - - berkdb  : Adds support for sys-libs/db (Berkeley DB for MySQL)
 - - 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
 + + doc : Adds extra documentation (API, Javadoc, etc)
 - - minimal : Install a very minimal build (disables, for example, 
plugins, fonts, most drivers, non-critical features)
 + + perl: Adds support/bindings for the Perl language.
 + + readline: enables support for libreadline, a GNU line-editing library 
that most everyone wants.
 - - selinux : !!internal use only!! Security Enhanced Linux support, this 
must be set by the selinux profile or breakage will occur
 + + ssl : Adds support for Secure Socket Layer connections
 - - static  : !!do not set this during bootstrap!! Causes binaries to be 
statically linked instead of dynamically
 + + tcpd: Adds support for TCP wrappers
 - - cluster : Add support for NDB clustering.
 - - utf8: Use UTF8 encoding instead of LATIN1.
 - - geometry: Add support for geometry data.
 - - extraengine : Add support for alternative storage engines.
[02:02 PM]wwong ~ $ equery uses -a '=mysql-4.0.26'
[ Searching for packages matching =mysql-4.0.26... ]
[ 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 dev-db/mysql-3.23.58-r1 ]
 U I
 - - berkdb   : Adds support for sys-libs/db (Berkeley DB for MySQL)
 - - 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
 - - innodb   : Adds innodb support for mySQL (transaction support)
 + + perl : Adds support/bindings for the Perl language.
 + + readline : enables support for libreadline, a GNU line-editing library 
that most everyone wants.
 + + ssl  : Adds support for Secure Socket Layer connections
 - - static   : !!do not set this during bootstrap!! Causes binaries to be 
statically linked instead of dynamically
 + + tcpd : Adds support for TCP wrappers
[ Found these USE variables for dev-db/mysql-4.0.26 ]
 U I
 - - berkdb : Adds support for sys-libs/db (Berkeley DB for MySQL)
 - - 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
 + + doc: Adds extra documentation (API, Javadoc, etc)
 - - minimal: Install a very minimal build (disables, for example, plugins, 
fonts, most drivers, non-critical features)
 + + perl   : Adds support/bindings for the Perl language.
 + + readline   : enables support for libreadline, a GNU line-editing library 
that most everyone wants.
 - - selinux: !!internal use only!! Security Enhanced Linux support, this 
must be set by the selinux profile or breakage will occur
 + + ssl: Adds support for Secure Socket Layer connections
 - - static : !!do not set this during bootstrap!! Causes binaries to be 
statically linked instead of dynamically
 + + tcpd   : Adds support for TCP wrappers
 - - big-tables : Make tables contain up to 1.844E+19 rows
[ Found these USE variables for dev-db/mysql-4.0.25-r2 ]
 U I
 - - berkdb : Adds support for sys-libs/db (Berkeley DB for MySQL)
 - - 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
 + + doc: Adds extra documentation (API, Javadoc, etc)
 - - minimal: Install a very 

[gentoo-user] Re: Is this a bug in equery

2005-11-24 Thread Harry Putnam
Willie Wong [EMAIL PROTECTED] writes:

 That is the intended behaviour. 'equery uses' only greps the use flags
 for installed packages. If you want non-installed packages, you need
 to use the '-a' flag

egad!  silently sneaks away

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Re: Is this a bug in equery

2005-11-23 Thread Harry Putnam
Nick Rout [EMAIL PROTECTED] writes:

 yes its not a biug as such, but a result of the shell you are using,
 which interprets  as a redirection tool. Perhaps the equery docos
 should/examples should say so. If you want it fixed, files bug,
 mentioning it here will NOT get it fixed.

Point taken...

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Re: Is this a bug in equery

2005-11-23 Thread Harry Putnam
Harry Putnam [EMAIL PROTECTED] writes:

 !!! Invalid syntax: missing operator
 !!! If you want only specific versions please use one of
 !!! the following operators as prefix for the package name:
 !!!  =  =  =  
 !!! Example to only match gcc versions greater or equal 3.2:

Also seems you might want to demonstate in the example

 !!!=sys-devel/gcc-3.2

  =sys-devel/gcc-3.2   (quotes included)

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Is this a bug in equery

2005-11-23 Thread Paul Varner
On Wed, 2005-11-23 at 23:34 -0600, Harry Putnam wrote:
 Paul Varner [EMAIL PROTECTED] writes:
 It appears here that the symbols themselves must be quoted as well as
 the package like this:
 
   equery files --type =vim-6.2
 

Which is what I meant to convey with the error message. What about this
one?

$ ./equery files --type vim-6.4
[ Searching for packages matching vim-6.4... ]
!!! Invalid syntax: missing operator
!!! If you want only specific versions please use one of
!!! the following operators as prefix for the package name:
!!!  =  =  =  
!!! Example to only match gcc versions greater or equal 3.2:
!!!=sys-devel/gcc-3.2
!!!
!!! Note: The symbols  and  are used for redirection in the shell
!!! You must enclose the entire argument in quotation marks, if either
!!! of these characters are used

Regards,
Paul
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Is this a bug in equery

2005-11-23 Thread Mariusz Pękala
On 2005-11-23 23:07:49 -0600 (Wed, Nov), Paul Varner wrote:
 On Wed, 2005-11-23 at 23:34 -0600, Harry Putnam wrote:
  Paul Varner [EMAIL PROTECTED] writes:
  It appears here that the symbols themselves must be quoted as well as
  the package like this:
  
equery files --type =vim-6.2
  
 
 Which is what I meant to convey with the error message. What about this
 one?
 
 $ ./equery files --type vim-6.4
 [ Searching for packages matching vim-6.4... ]
 !!! Invalid syntax: missing operator
 !!! If you want only specific versions please use one of
 !!! the following operators as prefix for the package name:
 !!!  =  =  =  
 !!! Example to only match gcc versions greater or equal 3.2:
 !!!=sys-devel/gcc-3.2
 !!!
 !!! Note: The symbols  and  are used for redirection in the shell
 !!! You must enclose the entire argument in quotation marks, if either
 !!! of these characters are used
 

Not precise enough. You need to enclose only those characters, like:
  equery files --type =vim-6.2
or you may use backslash, like:
  equery files --type \=vim-6.2

Saying that you MUST enclose the entire argument would misguide those
who do not understand quoting mechanisms yet. You would be responsible
for their mistakes forever! ;-)

Some man pages (eq. man tcpdump) use a sentence like 'these characters
are usually special to the shell and must be quoted'. Here you need to
write only '...are used for redirection in the shell and should be
quoted.'
It's like a gentle, polite reminder that assumes that the reader is good
being and usually knows everything about quoting.

-- 
No virus found in this outgoing message.
Checked by 'grep -i virus $MESSAGE'
Trust me.


pgpgGjzOevKCm.pgp
Description: PGP signature