Subject: pkg/37296: pkg_info -X doesn't work on Linux
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <cheusov@tut.by>
List: pkgsrc-bugs
Date: 11/07/2007 04:35:00
>Number:         37296
>Category:       pkg
>Synopsis:       pkg_info -X doesn't work on Linux
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 07 04:35:00 +0000 2007
>Originator:     cheusov@tut.by
>Release:        NetBSD 4.0_RC3
>Organization:
>Environment:
System: NetBSD chen.chizhovka.net 4.0_RC3 NetBSD 4.0_RC3 (GENERIC) #2: Sat Oct 20 21:41:02 EEST 2007 cheusov@chen.chizhovka.net:/srv/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:

     pkg_info -X file1 file2

doesn't work on Linux, that is, it shows information about FIRST
package only and then exits with non-zero exit status.
At the same time
both 

     pkg_info -X file1

and

     pkg_info -X file2

works properly.

pkg_info version - 20070911.  Tested on freshly installed pkgsrc with
UNPRIVILEGED=yes (but this doesn't matter).

type script (number before prompt - exit status):

       ==================================================================
       0 ~>ls -la ~pkgsrc/pkgsrc_bin/Debian/All/a2ps-*
       -rw-r--r-- 1 pkgsrc pkgsrc  813790 Oct 29 19:22 /home/pkgsrc/pkgsrc_bin/Debian/All/a2ps-4.13.0.2nb11.tgz
       -rw-r--r-- 1 pkgsrc pkgsrc 1176502 Oct 29 21:19 /home/pkgsrc/pkgsrc_bin/Debian/All/a2ps-sharatype-2.0.5.tgz

       ==================================================================
       0 ~>pkg_info ~pkgsrc/pkgsrc_bin/Debian/All/a2ps-4.13.0.2nb11.tgz 
       Information for /home/pkgsrc/pkgsrc_bin/Debian/All/a2ps-4.13.0.2nb11.tgz:

       Comment:
       Formats an ascii file for printing on a postscript printer

       Requires:
       psutils>=1.17
       mktemp>=1.5
       perl>=5.0

       Description:
       A2ps formats each named file for printing in a postscript printer; if
       no file is given, a2ps reads from the standard input. The format used
       is nice and compact: normally two pages on each physical page, borders
       surrounding pages, headers with useful information (page number,
       printing date, file name or supplied header), line numbering, etc.
       This is very useful for making archive listings of programs.

       Homepage:
       http://www-inf.enst.fr/~demaille/a2ps/



       ==================================================================
       0 ~>pkg_info ~pkgsrc/pkgsrc_bin/Debian/All/a2ps-sharatype-2.0.5.tgz 
       Information for /home/pkgsrc/pkgsrc_bin/Debian/All/a2ps-sharatype-2.0.5.tgz:

       Comment:
       Cyrillic fonts for a2ps (a part of sharatype project)

       Requires:
       a2ps-[0-9]*
       a2ps-[0-9]*

       Description:
       Cyrillic fonts for a2ps made by Sergey Sharashkin

       Homepage:
       http://ftp.45.free.net/pub/fonts/type1/



       ==================================================================
       0 ~>pkg_info ~pkgsrc/pkgsrc_bin/Debian/All/a2ps-*                   
       Information for /home/pkgsrc/pkgsrc_bin/Debian/All/a2ps-4.13.0.2nb11.tgz:

       Comment:
       Formats an ascii file for printing on a postscript printer

       Requires:
       psutils>=1.17
       mktemp>=1.5
       perl>=5.0

       Description:
       A2ps formats each named file for printing in a postscript printer; if
       no file is given, a2ps reads from the standard input. The format used
       is nice and compact: normally two pages on each physical page, borders
       surrounding pages, headers with useful information (page number,
       printing date, file name or supplied header), line numbering, etc.
       This is very useful for making archive listings of programs.

       Homepage:
       http://www-inf.enst.fr/~demaille/a2ps/



       ==================================================================
       1 ~>

>Fix:

Unknown