From alane@geeksrus.net Fri Feb 8 16:05:19 2002 Return-Path: Received: from wwweasel.geeksrus.net (wwweasel.geeksrus.net [64.8.210.226]) by hub.freebsd.org (Postfix) with ESMTP id 60C1637B404 for ; Fri, 8 Feb 2002 16:05:17 -0800 (PST) Received: (from alane@localhost) by wwweasel.geeksrus.net (8.11.6/8.11.6) id g1904mQ45885; Fri, 8 Feb 2002 19:04:48 -0500 (EST) (envelope-from alane) Message-Id: <200202090004.g1904mQ45885@wwweasel.geeksrus.net> Date: Fri, 8 Feb 2002 19:04:48 -0500 (EST) From: Alan Eldridge Reply-To: Alan Eldridge To: FreeBSD-gnats-submit@freebsd.org Cc: Subject: pkg_info -R gives empty output X-Send-Pr-Version: 3.113 X-GNATS-Notify: >Number: 34741 >Category: bin >Synopsis: pkg_info -R gives empty output >Confidential: no >Severity: serious >Priority: medium >Responsible: sobomax >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Feb 08 16:10:01 PST 2002 >Closed-Date: Thu May 02 08:00:01 PDT 2002 >Last-Modified: Thu May 02 08:00:01 PDT 2002 >Originator: Alan Eldridge >Release: FreeBSD 4.5-RELEASE i386 >Organization: Geeksrus.NET >Environment: System: FreeBSD wwweasel.geeksrus.net 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Tue Feb 5 22:58:09 EST 2002 root@wwweasel.geeksrus.net:/usr/obj/usr/src/sys/WWWEASEL i386 >Description: pkg_info -R gives empty output. Dependencies are certainly there, however, as attempting to pkg_delete a package with dependencies on it will produce the list that pkg_info -R should have produced. >How-To-Repeat: E.g., [alane ~]$ pkg_info -R -x fam Information for fam-2.6.4: [alane ~]$ pkg_info -R fam-2.6.4 Information for fam-2.6.4: [alane ~]$ sudo pkg_delete -x fam pkg_delete: package 'fam-2.6.4' is required by these other packages and may not be deinstalled: kdeaddons-2.2.2 kdeartwork-2.2.2 kdebase-2.2.2_2 kdegraphics-2.2.2_2 kdelibs-2.2.2_3 kdemultimedia-2.2.2_2 kdenetwork-2.2.2_1 kdepim-2.2.2 kdeutils-2.2.2 koffice-1.1.1,1 [alane ~]$ >Fix: >Release-Note: >Audit-Trail: From: Alan E To: freebsd-gnats-submit@FreeBSD.org, ports@geeksrus.net Cc: Subject: Re: bin/34741: pkg_info -R gives empty output Date: Thu, 14 Mar 2002 22:28:17 -0500 Who can deal with this? Ignoring it isn't getting it fixed. This makes dealing with ports dependency issues much more difficult. There is no other tool which does this query directly, as near as I can tell. -- Alan Eldridge "Dave's not here, man." From: Maxim Sobolev To: freebsd-gnats-submit@FreeBSD.org, ports@geeksrus.net Cc: Subject: Re: bin/34741: pkg_info -R gives empty output Date: Thu, 02 May 2002 15:53:29 +0300 Strange. It sertainly works on my 4.5-STABLE and 5-CURRENT boxen: max@vega$ pkg_info -R -x glib Information for glib-1.2.10_5: Required by: xdelta-1.1.2 ??? -Maxim From: Alan E To: Maxim Sobolev , freebsd-gnats-submit@FreeBSD.org, ports@geeksrus.net Cc: Subject: Re: bin/34741: pkg_info -R gives empty output Date: Thu, 2 May 2002 09:09:37 -0400 On Thursday 02 May 2002 08:53, Maxim Sobolev wrote: > Strange. It sertainly works on my 4.5-STABLE and 5-CURRENT boxen: > > max@vega$ pkg_info -R -x glib > Information for glib-1.2.10_5: > > Required by: > xdelta-1.1.2 > > ??? > > -Maxim [alane ~]$ pkg_info -R -x gettext Information for gettext-0.10.35_2: Information for gettext-0.11.1_2: --=20 AlanE State-Changed-From-To: open->closed State-Changed-By: sobomax State-Changed-When: Thu May 2 06:12:33 PDT 2002 State-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=34741 State-Changed-From-To: closed->open State-Changed-By: sobomax State-Changed-When: Thu May 2 06:12:52 PDT 2002 State-Changed-Why: OOPS, sorry I wanted to take over this PR, not to close it. Mea culpa. Responsible-Changed-From-To: freebsd-bugs->sobomax Responsible-Changed-By: sobomax Responsible-Changed-When: Thu May 2 06:12:52 PDT 2002 Responsible-Changed-Why: I'll take that. http://www.freebsd.org/cgi/query-pr.cgi?pr=34741 From: Maxim Sobolev To: freebsd-gnats-submit@FreeBSD.org, ports@geeksrus.net Cc: Subject: Re: bin/34741: pkg_info -R gives empty output Date: Thu, 02 May 2002 16:14:45 +0300 Please try to investigate further and submit a follow-up. It is impossible to fix unreproducable problem, you know. -Maxim From: Alan E To: Maxim Sobolev , freebsd-gnats-submit@FreeBSD.org, ports@geeksrus.net Cc: Subject: Re: bin/34741: pkg_info -R gives empty output Date: Thu, 2 May 2002 09:28:10 -0400 On Thursday 02 May 2002 09:14, Maxim Sobolev wrote: > Please try to investigate further and submit a follow-up. It is > impossible to fix unreproducable problem, you know. Yep. I've got one on my hands now. People reporting that kde* can't find = the X=20 libraries during configure.=20 The +REQUIRED_BY files in the pkg db are there and correct. It doesn't fail on all packages. [root /home/bsd/ports/devel/gettext-old]# pkg_info -R -x XFree86 Information for XFree86-Server-4.2.0_2: Information for XFree86-clients-4.2.0_2: Information for XFree86-documents-4.2.0: Information for XFree86-font100dpi-4.2.0: Information for XFree86-font75dpi-4.2.0: Information for XFree86-fontDefaultBitmaps-4.2.0: Information for XFree86-fontEncodings-4.2.0: Required by: XFree86-font100dpi-4.2.0 XFree86-font75dpi-4.2.0 XFree86-fontDefaultBitmaps-4.2.0 XFree86-fontScalable-4.2.0 Information for XFree86-fontScalable-4.2.0: Information for XFree86-libraries-4.2.0_1: What can I look at to help diagnose this? --=20 AlanE From: Maxim Sobolev To: Alan E Cc: freebsd-gnats-submit@FreeBSD.ORG, ports@geeksrus.net Subject: Re: bin/34741: pkg_info -R gives empty output Date: Thu, 02 May 2002 17:29:56 +0300 Alan E wrote: > > On Thursday 02 May 2002 09:14, Maxim Sobolev wrote: > > Please try to investigate further and submit a follow-up. It is > > impossible to fix unreproducable problem, you know. > > Yep. I've got one on my hands now. People reporting that kde* can't find the X > libraries during configure. > > The +REQUIRED_BY files in the pkg db are there and correct. > > It doesn't fail on all packages. > > [root /home/bsd/ports/devel/gettext-old]# pkg_info -R -x XFree86 > Information for XFree86-Server-4.2.0_2: > Information for XFree86-clients-4.2.0_2: > Information for XFree86-documents-4.2.0: > Information for XFree86-font100dpi-4.2.0: > Information for XFree86-font75dpi-4.2.0: > Information for XFree86-fontDefaultBitmaps-4.2.0: > Information for XFree86-fontEncodings-4.2.0: > Required by: > XFree86-font100dpi-4.2.0 > XFree86-font75dpi-4.2.0 > XFree86-fontDefaultBitmaps-4.2.0 > XFree86-fontScalable-4.2.0 > Information for XFree86-fontScalable-4.2.0: > Information for XFree86-libraries-4.2.0_1: > > What can I look at to help diagnose this? Indeed very strange. What `-R' does is simply displaying +REQUIRED_BY file of the said package, nothing more. My suggestion is to compile pkg_info with debugging symbols, run it in gdb, put a breakpoint at show_file() and try to figure out why you are getting no output. -Maxim State-Changed-From-To: open->closed State-Changed-By: sobomax State-Changed-When: Thu May 2 07:59:44 PDT 2002 State-Changed-Why: Not a problem - originator's mistake. http://www.freebsd.org/cgi/query-pr.cgi?pr=34741 >Unformatted: