Re: Problem mit ruby/portupgrade

From: Dieter Franzke <lists(at)eyenovation.de>
Date: Sat, 20 Mar 2004 13:10:30 +0000

Hi,

 Florian Unglaub am Samstag, 20. März 2004 12:46:
> Hallo,
>
> nachdem ich (dummerweise) 'portupgrade -a' habe laufen lassen, will
> portupgrade nicht mehr funktionieren.
>
> <-- Schnipp -->
> zaphod# pkg_deinstall -r "kde*"
> [Updating the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 630
> packages found (-633 +630) (...)---> Deinstalling
> 'kdenetwork-3.1.4' [Updating the pkgdb <format:bdb1_btree> in
> /var/db/pkg ... - 630 packages found (-633 +630) (...)--->
> Deinstalling 'kdeartwork-3.1.4_1' [Updating the pkgdb
> <format:bdb1_btree> in /var/db/pkg ... - 630 packages found (-633
> +630)
> (...)/usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:467:in `each':
> negative allocation size (or too big) (NoMemoryError)
> from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:467:in
> `select' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:467:in
> `update_db'
> from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:592:in
> `open_db' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:235:in
> `origin' from /usr/local/sbin/pkg_deinstall:393:in `deinstall_pkg'
> from /usr/local/sbin/pkg_deinstall:274:in `main'
> from /usr/local/sbin/pkg_deinstall:272:in `reverse_each'
> from /usr/local/sbin/pkg_deinstall:272:in `main'
> from /usr/local/sbin/pkg_deinstall:85:in `initialize'
> from /usr/local/sbin/pkg_deinstall:85:in `new'
> from /usr/local/sbin/pkg_deinstall:85:in `main'
> from /usr/local/sbin/pkg_deinstall:428
>
> <-- Schnipp -->
>
> portupgrade wurde hier nur mit ruby16 gebaut, ich habe es aber
> vorher auch schon mit 1.8 getestet. Resultat war das gleiche. Das
> Problem tritt übrigens auch auf, falls ich einen Port updaten
> möchte (slrn z.B.).
>
> Ich habe auch schon alle ruby*- und portupgrade-Pakete per Hand
> mittels 'pkg_delete' entfernt und anschliessend portupgrade
> neugebaut.
>
> Der Portstree ist von heute Vormittag.
>
> Bin für jeden Vorschlag dankbar.

manchmal lohnt ein Blick in die
/usr/ports/UPDATING

---- snip -----

20040226:
  AFFECTS: i386 users of ruby and portupgrade

  Change the default version of ruby to 1.8 for i386.

  If you are a ruby developer and want to keep ruby 1.6 as default,
  please add RUBY_DEFAULT_VER=1.6 to /etc/make.conf.

  Otherwise, please run the following series of commands to migrate to
  ruby 1.8:

  1) Reinstall portupgrade manually (and as a result ruby 1.8 will be
     installed):
        pkg_delete portupgrade-\*
        (cd /usr/ports/sysutils/portupgrade; make install clean)

  2) Reinstall everything that depends on ruby 1.6 to use ruby 1.8
     instead:
        portupgrade -fr lang/ruby16

  3) Reinstall ruby 1.8 (because the previous step kills symlinks):
        portupgrade -f lang/ruby18

  4) Deinstall ruby 1.6 stuff (if you are paranoia):
        pkg_deinstall -ri lang/ruby16

  5) If the above commands do now work somehow and portupgrade starts
     causing LoadError, please reinstall portupgrade manually again.
     Whenever you get confused, you can always deinstall portupgrade
     and all the ruby stuff (run "pkg_delete -r ruby-\*") and
     reinstall portupgrade as a last resort.

----- snap ------

schön nach Anleitung vorgehen sollte hier helfen.....

Ist sowieso ein ab und an ein lesenswertes Dokument.

ciao

dieter

To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Sat 20 Mar 2004 - 14:34:18 CET

search this site