From owner-freebsd-bugs@FreeBSD.ORG Sat Feb 19 07:50:09 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 059A41065670 for ; Sat, 19 Feb 2011 07:50:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id BBCBC8FC1E for ; Sat, 19 Feb 2011 07:50:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p1J7o8dn094334 for ; Sat, 19 Feb 2011 07:50:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p1J7o851094333; Sat, 19 Feb 2011 07:50:08 GMT (envelope-from gnats) Resent-Date: Sat, 19 Feb 2011 07:50:08 GMT Resent-Message-Id: <201102190750.p1J7o851094333@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Gary Palmer Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68AAE106566B for ; Sat, 19 Feb 2011 07:47:11 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 575CD8FC0C for ; Sat, 19 Feb 2011 07:47:11 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p1J7lAoK019920 for ; Sat, 19 Feb 2011 07:47:10 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p1J7lAqV019919; Sat, 19 Feb 2011 07:47:10 GMT (envelope-from nobody) Message-Id: <201102190747.p1J7lAqV019919@red.freebsd.org> Date: Sat, 19 Feb 2011 07:47:10 GMT From: Gary Palmer To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: bin/154877: pkg_info error message should contain information about which file the error is in X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Feb 2011 07:50:09 -0000 >Number: 154877 >Category: bin >Synopsis: pkg_info error message should contain information about which file the error is in >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Feb 19 07:50:08 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Gary Palmer >Release: FreeBSD 7.4-RC1 >Organization: >Environment: >Description: One of my package +CONTENTS files somehow ended up with a @pkgdep line with no argument on it. This prompted pkg_info (and other tools) to issue a warning like: % pkg_info -W /usr/local/bin/vncviewer pkg_info: corrupted record (pkgdep line without argument), ignoring /usr/local/bin/vncviewer was installed by package tightvnc-1.3.10_3 % However it didn't mention which package file the problem was in, leading me to resort to ktrace to figure it out. I shouldn't need to use ktrace to figure it out - the error message should be more explicit about where the problem is. >How-To-Repeat: Edit a +CONTENTS file to add an empty @pkgdep line and then run % pkg_info -W /usr/local/bin/vncviewer >Fix: >Release-Note: >Audit-Trail: >Unformatted: