ports/186671: ports-mgmt/pkg 1.2.6 pkg version ignores index argument
John Marshall
john.marshall at riverwillow.com.au
Wed Feb 12 03:40:00 UTC 2014
>Number: 186671
>Category: ports
>Synopsis: ports-mgmt/pkg 1.2.6 pkg version ignores index argument
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Feb 12 03:40:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: John Marshall
>Release: FreeBSD 9.2-RELEASE i386
>Organization:
Riverwillow Pty Ltd
>Environment:
System: FreeBSD rwpc13 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255918: Sat Sep 28 13:06:58 AEST 2013 root at rwpc13:/usr/obj/build/src/sys/RWPC13 i386
>Description:
pkg-version(8) usage shows [index] as its final and only non-option
argument. It looks to me like pkg/version.c does not process this
argument at all but makes the assumption that use of the -I option
always means use an INDEX file in portsdir.
I'm hoping this is an oversight which might be fixed soon, and that I'll
be able to run reports like the following on systems that don't have a
ports tree - just like I could with pkg_version(1).
pkg version -IvL '=' /path/to/current/INDEX
>How-To-Repeat:
rwpc13# cd /usr/ports
rwpc13# make fetchindex
/usr/ports/INDEX-9.bz2 100% of 1711 kB 11 MBps 00m00s
rwpc13# pkg version -IvL '='
aalib-1.4.r5_6 < needs updating (index has 1.4.r5_8)
chromium-32.0.1700.77 < needs updating (index has 32.0.1700.107)
docbook-xsl-1.76.1_1 < needs updating (index has 1.76.1_2)
fusefs-libs-2.9.3_1 < needs updating (index has 2.9.3_2)
nspluginwrapper-1.4.4_2 < needs updating (index has 1.4.4_3)
p5-IO-Socket-IP-0.27 < needs updating (index has 0.28)
p5-Module-Build-0.4203 < needs updating (index has 0.4205)
qt4-moc-4.8.5 < needs updating (index has 4.8.5_1)
sqlite3-3.8.2_1 < needs updating (index has 3.8.3)
vte-0.26.2_5 < needs updating (index has 0.28.2)
rwpc13# mv INDEX-9 /var/tmp
rwpc13# pkg version -IvL '=' /var/tmp/INDEX-9
pkg: Unable to open /usr/ports/INDEX-9!: No such file or directory
rwpc13# cd ..
rwpc13# mv ports ports.hiding
rwpc13# pkg version -IvL '=' /var/tmp/INDEX-9
pkg: Unable to open ports directory /usr/ports: No such file or directory
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list