Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Mar 2004 04:44:59 +1030
From:      Wayne Sierke <ws+freebsd-current@au.dyndns.ws>
To:        freebsd-current@freebsd.org
Subject:   Re: Can't upgrade or reinstall p5-XML-Parser port after running portupgrade -f
Message-ID:  <1079892898.671.8.camel@ovirt.dyndns.ws>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1079892898.671.8.camel>