From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Feb 12 03:40:00 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8D7A6BAD for ; Wed, 12 Feb 2014 03:40:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 605AD1DA4 for ; Wed, 12 Feb 2014 03:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s1C3e0JV018924 for ; Wed, 12 Feb 2014 03:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s1C3e0ip018923; Wed, 12 Feb 2014 03:40:00 GMT (envelope-from gnats) Resent-Date: Wed, 12 Feb 2014 03:40:00 GMT Resent-Message-Id: <201402120340.s1C3e0ip018923@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, John Marshall Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9CF82A97 for ; Wed, 12 Feb 2014 03:37:16 +0000 (UTC) Received: from mail1.riverwillow.net.au (mail1.riverwillow.net.au [IPv6:2001:8000:1000:1801::36]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 12F1A1D7E for ; Wed, 12 Feb 2014 03:37:15 +0000 (UTC) Received: from rwpc13.gfn.riverwillow.net.au (rwpc13.gfn.riverwillow.net.au [IPv6:2001:8000:1000:18e1:20c:76ff:fe05:fa0b]) (authenticated bits=0) by mail1.riverwillow.net.au (8.14.8/8.14.8) with ESMTP id s1C3LXKN016778 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 12 Feb 2014 14:21:34 +1100 (AEDT) Received: from rwpc13.gfn.riverwillow.net.au (john@localhost [127.0.0.1]) by rwpc13.gfn.riverwillow.net.au (8.14.7/8.14.7) with ESMTP id s1C3LXtZ066320 for ; Wed, 12 Feb 2014 14:21:33 +1100 (AEDT) (envelope-from john.marshall@riverwillow.com.au) Received: (from john@localhost) by rwpc13.gfn.riverwillow.net.au (8.14.7/8.14.7/Submit) id s1C3LX0Q066319; Wed, 12 Feb 2014 14:21:33 +1100 (AEDT) (envelope-from john) Message-Id: <201402120321.s1C3LX0Q066319@rwpc13.gfn.riverwillow.net.au> Date: Wed, 12 Feb 2014 14:21:33 +1100 (AEDT) From: John Marshall To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: ports/186671: ports-mgmt/pkg 1.2.6 pkg version ignores index argument X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: John Marshall List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Feb 2014 03:40:00 -0000 >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@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: