bin/159979: pkg_info -O doesn't appear to be anything

Andrew Lankford andrew.lankford at gmail.net
Sun Aug 21 23:30:09 UTC 2011


>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 at 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:


More information about the freebsd-bugs mailing list