From owner-freebsd-pkg@freebsd.org Sun Jan 24 11:16:03 2016 Return-Path: Delivered-To: freebsd-pkg@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0618D7479 for ; Sun, 24 Jan 2016 11:16:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id E66B2219 for ; Sun, 24 Jan 2016 11:16:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id E37687478; Sun, 24 Jan 2016 11:16:02 +0000 (UTC) Delivered-To: pkg@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E30B07477 for ; Sun, 24 Jan 2016 11:16:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D48EA218 for ; Sun, 24 Jan 2016 11:16:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u0OBG2ZW087375 for ; Sun, 24 Jan 2016 11:16:02 GMT (envelope-from bugzilla-noreply@freebsd.org) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: maintainer-feedback requested: [Bug 206563] ports-mgmt/pkg Incorrectly reads the index of installed packages. Date: Sun, 24 Jan 2016 11:16:02 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jan 2016 11:16:03 -0000 Grzegorz Junka has reassigned Bugzilla Automation 's request for maintainer-feedback to pkg@FreeBSD.org: Bug 206563: ports-mgmt/pkg Incorrectly reads the index of installed package= s. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206563 --- Description --- Created attachment 166050 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D166050&action= =3Dedit Output of pkg -vv According to pkg help: info Displays information about installed packages version Displays the versions of installed packages So they both produce information about installed packages. Please note that info outputs more information than version, so should be more prone to corr= upt data. However, pkg info does work correctly: root@crayon2:~ # pkg info=20 CharisSIL-4.114_1 Charis SIL TrueType font collection CoinMP-1.8.3 Optimization library with support for COIN-OR CLP, CBC, and CGL DoulosSIL-4.112_1 Doulos SIL TrueType font collection GentiumBasic-110_3 Gentium Basic and Gentium Book Basic TrueType fonts GeoIP-1.6.9 Find the country that any IP address or hostname originates from GraphicsMagick-1.3.23_2,1 Fast image processing tools based on ImageMa= gick (...) where pkg version fails: root@crayon2:~ # pkg version pkg: No valid entries found in '/usr/ports/INDEX-10' It looks like they are reading the information about installed packages from different places and pkg version fails when the port index is corrupted.