From owner-freebsd-bugs@FreeBSD.ORG Fri Jan 14 18:50:11 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 503A11065679 for ; Fri, 14 Jan 2011 18:50:11 +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 133638FC0C for ; Fri, 14 Jan 2011 18:50:11 +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 p0EIoAFN010161 for ; Fri, 14 Jan 2011 18:50:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p0EIoAim010160; Fri, 14 Jan 2011 18:50:10 GMT (envelope-from gnats) Resent-Date: Fri, 14 Jan 2011 18:50:10 GMT Resent-Message-Id: <201101141850.p0EIoAim010160@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, Eitan Adler Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F7861065672 for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: bin/153993: [patch] have libpkg report which package is casuing pkgdep warnings 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: Fri, 14 Jan 2011 18:50:11 -0000 >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: