From owner-freebsd-current@FreeBSD.ORG Sun Mar 21 10:15:03 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE89016A4CE for ; Sun, 21 Mar 2004 10:15:03 -0800 (PST) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id 257BF43D2F for ; Sun, 21 Mar 2004 10:15:03 -0800 (PST) (envelope-from ws+freebsd-current@au.dyndns.ws) Received: from lillith-iv.ovirt.dyndns.ws (ppp34-232.lns1.adl1.internode.on.net [150.101.34.232])i2LIF0wn028313 for ; Mon, 22 Mar 2004 04:45:01 +1030 (CST) X-Envelope-From: ws+freebsd-current@au.dyndns.ws X-Envelope-To: Received: from [192.168.100.132] ([192.168.100.132])i2LIEx6i000505 for ; Mon, 22 Mar 2004 04:44:59 +1030 (CST) (envelope-from ws+freebsd-current@au.dyndns.ws) From: Wayne Sierke To: freebsd-current@freebsd.org In-Reply-To: <1079811439.673.19.camel@ovirt.dyndns.ws> References: <1079805666.673.9.camel@ovirt.dyndns.ws> <1079811439.673.19.camel@ovirt.dyndns.ws> Content-Type: text/plain Message-Id: <1079892898.671.8.camel@ovirt.dyndns.ws> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Mon, 22 Mar 2004 04:44:59 +1030 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.39 X-Scanned-By: SpamAssassin 2.63 (2004-01-11) X-Scanned-By: F-Prot X-Scanned-By: ClamAV X-Spam-Score: 0 () Subject: Re: Can't upgrade or reinstall p5-XML-Parser port after running portupgrade -f X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Mar 2004 18:15:04 -0000 This is 'New Stuff'. The 'Good Stuff' is below where it should be. ;-) On Sun, 2004-03-21 at 06:07, Wayne Sierke wrote: > On Sun, 2004-03-21 at 04:31, Wayne Sierke wrote: > > I've been running portupgrade -f on my ports after updating my system > > from 5.2-RELEASE to 5.2-CURRENT. Most of them are done but > > I was doing a portupgrade -f p5-XML-Parser but it ended badly: > > > > ... > > ===> Registering installation for p5-XML-Parser-2.34_1 > > ===> Cleaning for libtool-1.3.5_2 > > ===> Cleaning for perl-5.8.2_5 > > ===> Cleaning for expat-1.95.7 > > ===> Cleaning for p5-XML-Parser-2.34_1 > > ---> Cleaning out obsolete shared libraries > > Cannot allocate memory > > > > > > Hmm, so I went to try it again: > > > > # portupgrade -f p5-XML-Parser > > ** No such package 'p5-XML-Parser' is installed. > > > > > > Hmm, ok let's install it: > > > > # portinstall p5-XML-Parser > > ** The following packages were not installed or upgraded (*:skipped / !:failed) > > ! textproc/p5-XML-Parser (negative string size (or size too big)) > > > > > > Hmm, maybe we can start with the package and upgrade it from there: > > > > # pkg_add -r p5-XML-Parser > > Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-5-current/Latest/p5-XML-Parser.tbz... Done. > > pkg_add: package 'p5-XML-Parser-2.34' or its older version already installed > > > > > > Hmm, ok, let's force the port install: > > > > # portinstall -f p5-XML-Parser > > ** The following packages were not installed or upgraded (*:skipped / !:failed) > > ! textproc/p5-XML-Parser (negative string size (or size too big)) > > > > > > Hmm, ok, let's get some help: > > > > (feel free to fill in this space!) > > > Additionally: > > # portversion -v > Stale dependency: acme-2.4.2_1 --> p5-XML-Parser-2.34_1 -- manually run > 'pkgdb -F' to fix, or specify -O to force. > > # pkgdb -F > ---> Checking the package registry database > Duplicated origin: www/mozilla - mozilla-1.6_3,2 mozilla-gtk2-1.5_1 > Unregister any of them? [no] > Stale dependency: acme-2.4.2_1 -> p5-XML-Parser-2.34_1 > (textproc/p5-XML-Parser):negative string size (or size too big) > # > > (Takes a long time and uses a massive amount of memory - this machine > with 512M RAM almost never touches swap and even then by the barest > amount, running this resulted in around 350M of swap to be used) > > # portversion -vO > /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:334:in `each_key': failed to > allocate memory (NoMemoryError) > from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:334:in > `deorigin_glob' > from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:183:in > `config_include?' > from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:178:in `each' > from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:178:in > `config_include?' > from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:168:in > `config_held?' from /usr/local/sbin/portversion:310:in > `check_pkgs' > from /usr/local/sbin/portversion:300:in `each' > from /usr/local/sbin/portversion:300:in `check_pkgs' > from /usr/local/sbin/portversion:260:in `main' > from /usr/local/sbin/portversion:77:in `initialize' > from /usr/local/sbin/portversion:77:in `new' > from /usr/local/sbin/portversion:77:in `main' > from /usr/local/sbin/portversion:347 > Talking to myself again: (Why won't they be friends with me?) Recovered by deleting /var/db/pkg/pkgdb.db (need to get a few more 'pkg's and 'db's into that path/filename) and rebuilding it with 'pkgdb -F'. Following the suggestion to a similar report that I managed to Google up.