Date: Fri, 5 May 2006 16:33:31 GMT From: Richard Brooksby <rb@ravenbrook.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/96832: "pkgdb -s" fails with very unhelpful error message Message-ID: <200605051633.k45GXVWI052024@www.freebsd.org> Resent-Message-ID: <200605051640.k45GeHkl088644@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605051633.k45GXVWI052024>