Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jan 2011 18:49:52 GMT
From:      Eitan Adler <lists@eitanadler.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/153993: [patch] have libpkg report which package is casuing pkgdep warnings
Message-ID:  <201101141849.p0EInqFx011613@red.freebsd.org>
Resent-Message-ID: <201101141850.p0EIoAim010160@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         153993
>Category:       bin
>Synopsis:       [patch] have libpkg report which package is casuing pkgdep warnings
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 14 18:50:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Eitan Adler
>Release:        
>Organization:
>Environment:
>Description:
change the line emitted from the pkg_* tools from
pkg_version: corrupted record (pkgdep line without argument), ignoring 

to something like

pkg_version: corrupted record: pkgdep line without argument (in xterm-267), ignoring

>How-To-Repeat:

>Fix:
Index: plist.c
===================================================================
--- plist.c	(revision 216884)
+++ plist.c	(working copy)
@@ -286,7 +286,8 @@
 	if (*cp == '\0') {
 	    cp = NULL;
 	    if (cmd == PLIST_PKGDEP) {
-		warnx("corrupted record (pkgdep line without argument), ignoring");
+		warnx("corrupted record: pkgdep line without argument (in %s), ignoring",
+		  (pkg->name == NULL) ? "???" : pkg->name);
 		cmd = FAIL;
 	    }
 	    goto bottom;


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101141849.p0EInqFx011613>