pkg version -Xs foo shows all ports, not just foo

Wayne Sierke ws at au.dyndns.ws
Wed Apr 11 06:16:17 UTC 2012


On Tue, 2012-04-10 at 13:47 -0700, Greg Byshenk wrote:
> On Tue, Apr 10, 2012 at 08:55:41PM +0100, Anton Shterenlikht wrote:
> > BUZI> pkg version -Xs Image
> > CalculiX-2.4                       =
> > GraphicsMagick-1.1.15_3,1          =
> > ImageMagick-6.7.5.10               =
> > ORBit2-2.14.19                     =
> > OpenEXR-1.6.1_3                    =
> > R-2.14.2                           =
> > ^C
> > BUZI> 
> > 
> > The man page seems to indicate that the
> > above options should only show ImageMagick.
> > 
> > What am I doing wrong?

Is it a transcription error or are you really using a command named
"pkg" rather than pkg_version(1)?

> I'm not sure if it's a bug or a feature, but pkg_version seems to 
> want the arguments separately.
> 
> 	$ pkg_version -X -s Image
> 	ImageMagick                         =
> 	$ 

Works ok here:

$ uname -v ; pkg_version -Xs "lib[Xx]c"
FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 18:45:57 UTC 2011     root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC 
libXcomposite                       =
libXcursor                          =
libxcb                              =
$ 
%uname -v ; pkg_version -Xs "lib[Xx]c"
FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 18:07:27 UTC 2011     root at i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC 
libXcomposite                       =
libXcursor                          =
libxcb                              =
%pkg_version -Xs Image
ImageMagick                         =
%





More information about the freebsd-ports mailing list