From nobody@FreeBSD.org Sun Aug 21 23:28:40 2011 Return-Path: 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 Subject: pkg_info -O doesn't appear to be anything X-Send-Pr-Version: www-3.1 X-GNATS-Notify: >Number: 159979 >Category: bin >Synopsis: pkg_info(1): pkg_info -O doesn't appear to be anything >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Aug 21 23:30:09 UTC 2011 >Closed-Date: Mon Aug 22 04:48:48 UTC 2011 >Last-Modified: Mon Aug 22 04:48:48 UTC 2011 >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: From: Andrew Lankford To: bug-followup@FreeBSD.org, andrew.lankford@gmail.net Cc: Subject: Re: bin/159979: pkg_info(1): pkg_info -O doesn't appear to be anything Date: Sun, 21 Aug 2011 22:44:03 -0400 This is a multi-part message in MIME format. --------------050100080604050104080109 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Bah, I got your portcategory mixed up your origin ("portcategory/portname"), nevermind. Nothing to see here, move along. Mind you, it would be nice if by default "pkg_info obscureport" would print a synopsis in the form of "Information for portcategory/oscureport-version ...". --------------050100080604050104080109 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit Bah, I got your portcategory mixed up your origin ("portcategory/portname"), nevermind.  Nothing to see here, move along.

Mind you, it would be nice if by default "pkg_info obscureport"  would print a synopsis in the form of "Information for portcategory/oscureport-version ...". 
--------------050100080604050104080109-- State-Changed-From-To: open->closed State-Changed-By: linimon State-Changed-When: Mon Aug 22 04:48:37 UTC 2011 State-Changed-Why: Closed at submitter's request. http://www.freebsd.org/cgi/query-pr.cgi?pr=159979 >Unformatted: