From owner-freebsd-bugs@FreeBSD.ORG Sun Aug 21 23:30: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 D5E30106566B for ; Sun, 21 Aug 2011 23:30: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 9A6CA8FC12 for ; Sun, 21 Aug 2011 23:30:09 +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 p7LNU9Uw012584 for ; Sun, 21 Aug 2011 23:30:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p7LNU9Cv012580; Sun, 21 Aug 2011 23:30:09 GMT (envelope-from gnats) Resent-Date: Sun, 21 Aug 2011 23:30:09 GMT Resent-Message-Id: <201108212330.p7LNU9Cv012580@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, Andrew Lankford Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C5FFB1065673 for ; Sun, 21 Aug 2011 23:28:40 +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 B69A58FC0A for ; Sun, 21 Aug 2011 23:28:40 +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 p7LNSeVH044839 for ; Sun, 21 Aug 2011 23:28:40 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p7LNSefx044838; Sun, 21 Aug 2011 23:28:40 GMT (envelope-from nobody) Message-Id: <201108212328.p7LNSefx044838@red.freebsd.org> Date: Sun, 21 Aug 2011 23:28:40 GMT From: Andrew Lankford To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: bin/159979: pkg_info -O doesn't appear to be anything 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: Sun, 21 Aug 2011 23:30:09 -0000 >Number: 159979 >Category: bin >Synopsis: pkg_info -O doesn't appear to be anything >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Aug 21 23:30:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Andrew Lankford >Release: 8.2-STABLE >Organization: >Environment: FreeBSD bogushost3 8.2-STABLE FreeBSD 8.2-STABLE #61: Wed Aug 3 03:56:18 EDT 2011 root@bogushost3:/usr/obj/usr/src/sys/ARL8VOSTRO i386 >Description: I have quite a few X11 and graphics ports installed. #pkg_info -O x11 The following installed package(s) has x11 origin: #pkg_info -O graphics The following installed package(s) has graphics origin: # No error is returned by pkg_info in either case. Either I read the man page wrong, my /var/db/pkg/* is corrupted, or there's a bug in matchallbyorigin() in /usr/src/usr.sbin/pkg_install/lib/match.c . Also, the declaration char ***matchallbyorigin(const char **, int *); looks suspicious to me. I've heard of pointers to pointers, but... >How-To-Repeat: pkg_info -O anyportoriginyoucanthinkof >Fix: >Release-Note: >Audit-Trail: >Unformatted: