From owner-freebsd-ports-bugs@FreeBSD.ORG Fri May 5 16:40:19 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D5A316A47A for ; Fri, 5 May 2006 16:40:19 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD5A143D7C for ; Fri, 5 May 2006 16:40:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k45GeHFI088645 for ; Fri, 5 May 2006 16:40:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k45GeHkl088644; Fri, 5 May 2006 16:40:17 GMT (envelope-from gnats) Resent-Date: Fri, 5 May 2006 16:40:17 GMT Resent-Message-Id: <200605051640.k45GeHkl088644@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Richard Brooksby Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F2E3916A401 for ; Fri, 5 May 2006 16:33:34 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AAC743D70 for ; Fri, 5 May 2006 16:33:32 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k45GXVel052025 for ; Fri, 5 May 2006 16:33:31 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k45GXVWI052024; Fri, 5 May 2006 16:33:31 GMT (envelope-from nobody) Message-Id: <200605051633.k45GXVWI052024@www.freebsd.org> Date: Fri, 5 May 2006 16:33:31 GMT From: Richard Brooksby To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/96832: "pkgdb -s" fails with very unhelpful error message X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 May 2006 16:40:23 -0000 >Number: 96832 >Category: ports >Synopsis: "pkgdb -s" fails with very unhelpful error message >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri May 05 16:40:16 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Richard Brooksby >Release: 6.0-RELEASE-p6 >Organization: Ravenbrook Limited >Environment: FreeBSD raven.ravenbrook.com 6.0-RELEASE-p6 FreeBSD 6.0-RELEASE-p6 #0: Tue Apr 11 13:52:12 BST 2006 root@coot.verity-networks.com:/usr/obj/usr/src/sys/GENERIC i386 >Description: The pkgdb command of the portupgrade port fails when used with the "-s" option: raven# pkgdb --substitute=/p5-HTML-Parser-3.45/p5-HTML-Parser-3.51/ break from proc-closure That's a pretty poor error message. However I dug around and did this: raven# ruby --debug /usr/local/sbin/pkgdb --substitute=/p5-HTML-Parser-3.45/p5-HTML-Parser-3.51/ Exception `LoadError' at /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:7 - no such file to load -- features/ruby18/file Exception `LoadError' at /usr/local/lib/ruby/site_ruby/1.8/pkgmisc.rb:4 - no such file to load -- features/ruby18/dir Exception `LoadError' at /usr/local/lib/ruby/site_ruby/1.8/pkginfo.rb:6 - no such file to load -- features/ruby18/file Exception `LoadError' at /usr/local/lib/ruby/1.8/tmpdir.rb:12 - no such file to load -- Win32API Exception `LoadError' at /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:6 - no such file to load -- features/ruby18/file /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:623: warning: instance variable @db not initialized Exception `LoadError' at /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:159 - no such file to load -- bdb1 /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:623: warning: instance variable @db not initialized Exception `LoadError' at /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:159 - no such file to load -- bdb1 /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:567: warning: instance variable @db not initialized Exception `LoadError' at /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:219 - no such file to load -- bdb1 /usr/local/lib/ruby/site_ruby/1.8/pkgmisc.rb:100: warning: global variable `$tmpdir' not initialized Exception `LocalJumpError' at /usr/local/sbin/pkgdb:161 - break from proc-closure break from proc-closure /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:7 says: require 'features/ruby18/file' So it's my guess that pkgtools are relying on Ruby components that aren't installed by default. I'm not a Ruby expert though. I have ruby-1.8.4_6,1, installed from the ports collection. And the offending file belongs to portupgrade: raven# pkg_info -W /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb was installed by package portupgrade-2.0.1_1,1 >How-To-Repeat: Try using pkgdb -s >Fix: >Release-Note: >Audit-Trail: >Unformatted: