Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Oct 2003 18:45:05 -0700
From:      Kent Stewart <kstewart@owt.com>
To:        ioang@verizon.net, Jens Rehsack <rehsack@liwing.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: portupgrade problems, please help
Message-ID:  <200310221845.05203.kstewart@owt.com>
In-Reply-To: <200310222002.07118.ioang@verizon.net>
References:  <200310212029.08699.ioang@verizon.net> <3F96BD0C.2090104@liwing.de> <200310222002.07118.ioang@verizon.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 22 October 2003 05:02 pm, ivan georgiev wrote:
> > Kent Stewart wrote:
> > > On Wednesday 22 October 2003 05:37 am, ivan georgiev wrote:
> > >>>What versions of ruby do you have installed? I can remember back
> > >>> a few versions, that uninstalling portupgrade and ruby and then
> > >>> making and installing portupgrade was faster than fighting the
> > >>> problems with ruby.
> > >>>
> > >>>Kent
> > >>
> > >>-su-2.05b# ruby -v
> > >>ruby 1.6.8 (2003-03-26) [i386-freebsd5]
> > >
> > > I don't have any idea. It looks like a source/configuration/make
> > > error of some type. My version is the also the following
> > > ruby 1.6.8 (2003-03-26) [i386-freebsd5]
> >
> > Maybe complete remove of ruby and dependend packages
> > followed by a reinstall of all of them may help.
> > If you only have portupgrade installed, you can
> > simply
> > # pkg_delete -rx ruby
> > # cd /usr/ports/sysutils/portupgrade
> > # make install clean
> >
> > If you have other ruby-dependend ports, please write them down,
> > eg. by
> > $ cd
> > $ ls -l /var/db/pkg/ >installed-packages
> > $ su -
> > # [above procedure]
> > $ ls -l /var/db/pkg/ >after-reinstall-ruby-packages
> > $ diff installed-packages after-reinstall-ruby-packages
> >
> > And then reinstall all packages missing (and you need).
>
> Thanks for all of the suggestions!
> Finaly "portupgrade -arR" works again. Here is what I did
> (chronologically)
> 1) ls -l /var/db/pkg/ > ~/old
> 2) pkg_delete -rx ruby
> 3) cd /usr/ports/sysutils/portupgrade; make install; make clean
> 4) ls -l /var/db/pkg/ > ~/new
> 5) diff ~/old ~/new
> which showed no other difference but for the new installed ruby;
> 6)/usr/local/sbin/pkgdb -fuF
> 7)/usr/local/sbin/portupgrade -arR
> the result was :(
>
> Then I tried the other suggestion:
> 8)cd /usr/ports
> 9) make index
> which produced zillion of outputs like:
> ....
> make_index: xcdplayer-2.2_1: no entry for /usr/ports/x11/
> XFree86-4-libraries
> ....

You must have been lucky because a condensed version of a recent cvsup of 
ports-all on my 5-current machine looks like

 Edit ports/www/epiphany/pkg-plist
  Add delta 1.16 2003.10.22.17.20.29 marcus
Shutting down connection to server
Finished successfully
Generating INDEX-5 - please wait.. Done.
[Updating the portsdb <format:bdb1_btree> in /usr/ports ... - 9533 port 
entries 
found .........1000.........2000.........3000.........4000.........5000.........6000.........7000.........8000.........9000..... ..... 
done]

All of your messages would have appeared between wait.. and done.

I use a script to do all of my cvsups because I use a thing called cvsuplog, 
that was written by Ben Smithurst, to convert my redirected cvsup.log into 
HTML links to cvsweb.cgi. I use make index to update INDEX-5 and portsdb -u 
to update INDEX.db. I have been told that portupgrade will build INDEX.db if 
it is out of date but I want to see it on the monitor. Since all I did is 
type "uports", running an extra process is a not a big deal.

> 10) /usr/local/sbin/pkgdb -fuF
> 11) /usr/local/sbin/portupgrade -arR
> which took much longer than usual to say something the result is :)
>

Great!!

Kent

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html



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