bin/154877: pkg_info error message should contain information about
which file the error is in
Gary Palmer
freebsd-gnats at in-addr.com
Sat Feb 19 07:50:09 UTC 2011
>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:
More information about the freebsd-bugs
mailing list