From owner-freebsd-ports Tue Oct 9 9:50:27 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1978737B409 for ; Tue, 9 Oct 2001 09:50:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f99Go0u23075; Tue, 9 Oct 2001 09:50:00 -0700 (PDT) (envelope-from gnats) Received: from robin.mail.pas.earthlink.net (robin.mail.pas.earthlink.net [207.217.120.65]) by hub.freebsd.org (Postfix) with ESMTP id 22B2137B401 for ; Tue, 9 Oct 2001 09:40:59 -0700 (PDT) Received: from moo.holy.cow (sdn-ar-003dcwashP114.dialsprint.net [206.133.21.74]) by robin.mail.pas.earthlink.net (8.11.5/8.9.3) with ESMTP id f99Geuc00249 for ; Tue, 9 Oct 2001 09:40:56 -0700 (PDT) Received: by moo.holy.cow (Postfix, from userid 1001) id C49BE50BC5; Tue, 9 Oct 2001 12:41:54 -0400 (EDT) Message-Id: <20011009164154.C49BE50BC5@moo.holy.cow> Date: Tue, 9 Oct 2001 12:41:54 -0400 (EDT) From: parv_@yahoo.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/31168: portupgrade problem: 'update_db': instance of IO needed: Cannot update the packages database! Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 31168 >Category: ports >Synopsis: portupgrade problem: 'update_db': instance of IO needed: Cannot update the packages database! >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 09 09:50:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: parv >Release: FreeBSD 4.4-STABLE i386 >Organization: >Environment: System: FreeBSD moo.holy.cow 4.4-STABLE FreeBSD 4.4-STABLE #0: Wed Oct 3 19:33:26 EDT 2001 >Description: in /source/ports/distfiles, when i issued following command... # portupgrade bladeenc-0.92 ...portupgrade started upgrading everything in /var/db/pkg (247 of them), so i interrupted it via Ctrl-C. after that, when i tried the following command, got error... # portupgrade bladee* [Updating the packages database in /var/db/pkg ... /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:343:in `update_db': instance of IO needed: Cannot update the packages database!] (PkgDB::DBError) from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:349:in `open_db' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:481:in `installed_pkgs_' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:409:in `installed_pkg?' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:115:in `pkg' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:520:in `glob' from /usr/local/sbin/portupgrade:416:in `main' from /usr/local/sbin/portupgrade:415:in `catch' from /usr/local/sbin/portupgrade:415:in `main' ... 6 levels... from /usr/local/sbin/portupgrade:175:in `initialize' from /usr/local/sbin/portupgrade:175:in `new' from /usr/local/sbin/portupgrade:175:in `main' from /usr/local/sbin/portupgrade:1408 ...seems like package db was messed up or something is wrong w/ the newest version of portupgrade. when i tried fixing db, it produced the following message... # pkgdb -F [Updating the packages database in /var/db/pkg ... instance of IO needed: Cannot update the packages database!] portupgrade version is 20011006.1, and am using 4.4-stable. i had cvsup'd ports a few minutes ago and deleted everything ruby before installing it again... # pkg_delete -d -f ruby* ...after all that, portupgrade still gives the above message. what am i missing? i had already looked at pr 29956 w/ similar problem where above (deinstall & reinstall again) worked, but not for me. http://www.FreeBSD.org/cgi/query-pr.cgi?pr=29956 here is the listing of /var/db/pkg... drwxr-xr-x 2 root wheel 512 Oct 6 20:13 /var/db/pkg/portupgrade-20011006.1/ drwxr-xr-x 2 root wheel 512 Oct 6 20:12 /var/db/pkg/ruby-1.6.5/ drwxr-xr-x 2 root wheel 512 Oct 6 20:13 /var/db/pkg/ruby-fnmatch-1.1b_1/ drwxr-xr-x 2 root wheel 512 Oct 6 20:13 /var/db/pkg/ruby-optparse-0.8.4/ drwxr-xr-x 2 root wheel 512 Oct 6 20:13 /var/db/pkg/ruby-uri-0.9,1/ >How-To-Repeat: may be start portupgrade like... # portupgrade '*' ...then interrupt it; afterwords try to upgrade one particular port to produce the error. i cannot be sure if the above will work as i didn't have a chance to try it myself due to the reasons described above. >Fix: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message