portupgrade -faP after update to FreeBSD 7.0
Martin Schweizer
schweizer.martin at gmail.com
Tue May 13 09:04:03 UTC 2008
Hello Kent
2008/5/12, Kent <kstewart at owt.com>:
> > > > After successfully update to FreeBSD 7.0 (a described in the
> > > > handbook) I startet several times portupgrade -faP after several
> > > > pkgdb -F. But now I get the following error:
> > > >
> > > > portupgrade -faP
> > > >
> > > > /usr/local/lib/ruby/site_ruby/1.8/pkgversion.rb:41:in `initialize':
> > > > ,2: Not in due form: '<version>[_<revision>][,<epoch>]'.
> > > > (ArgumentError)
> > > > from /usr/local/sbin/portupgrade:638:in `new'
> > > > from /usr/local/sbin/portupgrade:638:in `main'
> > > > from /usr/local/sbin/portupgrade:613:in `each'
> > > > from /usr/local/sbin/portupgrade:613:in `main'
> > > > from /usr/local/sbin/portupgrade:588:in `catch'
> > > > from /usr/local/sbin/portupgrade:588:in `main'
> > > > from /usr/local/lib/ruby/1.8/optparse.rb:1303:in `call'
> > > > from /usr/local/lib/ruby/1.8/optparse.rb:1303:in
> > > > `parse_in_order' ... 7 levels...
> > > > from /usr/local/lib/ruby/1.8/optparse.rb:785:in `initialize'
> > > > from /usr/local/sbin/portupgrade:229:in `new'
> > > > from /usr/local/sbin/portupgrade:229:in `main'
> > > > from /usr/local/sbin/portupgrade:2173
> > > >
> > > > I checked the portupgrade version and also ruby but did not find any
> > > > mistakes. What do I wrong?
> > >
> > > I am assuming that 7.0 has changed ruby/portupgrade processing. There
> > > have been problems like this when ruby and the ruby??_bdb? get out of
> > > sequence. I would delete portupgrade and ruby\* and then rebuild
> > > everything including the index.db.
> > >
> > > You may get a different answer tomorrow but if rebuilding everything
> > > works, you could be half way to being done.
> >
> > I deleted all ruby ports (as I got from pkg_info) and I also fetch
> > /usr/ports/INDEX-/ by makeing make index and by make fetchindes (both
> > get the same results). But I still get the same error.
> > What do you mean exactly with "I would delete portupgrade and ruby\*
> > and then rebuild everything including the index.db."? The same as I
> > did?
>
> The index-?.db has gotten messed up several times after some updates. My
> experience was that you have to get portupgrade and ruby in sync and then use
> portsdb -fu to rebuild the database.
I created the INDEX-7.db by portsdb -fu and yes, portupgrade and ruby
are in sync.
> Your error looks like a mismatch between portupgrade and ruby. Did you
> manually rebuild portupgrade?
Yes I did it with make and then make install
Regards,
--
Martin Schweizer
schweizer.martin at gmail.com
Tel.: +41 32 512 48 54 (VoIP)
Fax: +1 619 3300587
More information about the freebsd-ports
mailing list