From nobody@FreeBSD.org  Fri Jan 14 18:49:52 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 5F7861065672
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 14 Jan 2011 18:49:52 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (unknown [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 4E7CC8FC1F
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 14 Jan 2011 18:49:52 +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 p0EInqgf011614
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 14 Jan 2011 18:49:52 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p0EInqFx011613;
	Fri, 14 Jan 2011 18:49:52 GMT
	(envelope-from nobody)
Message-Id: <201101141849.p0EInqFx011613@red.freebsd.org>
Date: Fri, 14 Jan 2011 18:49:52 GMT
From: Eitan Adler <lists@eitanadler.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] have libpkg report which package is casuing pkgdep warnings
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         153993
>Category:       bin
>Synopsis:       [patch] pkg_create(1): have libpkg report which package is casuing pkgdep warnings
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    portmgr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 14 18:50:10 UTC 2011
>Closed-Date:    Fri May 11 13:40:52 UTC 2012
>Last-Modified:  Fri May 11 13:40:52 UTC 2012
>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:
Responsible-Changed-From-To: freebsd-bugs->portmgr 
Responsible-Changed-By: eadler 
Responsible-Changed-When: Thu May 5 18:22:45 UTC 2011 
Responsible-Changed-Why:  
This is portmgr territory 

http://www.freebsd.org/cgi/query-pr.cgi?pr=153993 
State-Changed-From-To: open->closed 
State-Changed-By: beat 
State-Changed-When: Fri May 11 13:40:39 UTC 2012 
State-Changed-Why:  
Duplicate of bin/164378. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=153993 
>Unformatted:
