Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Mar 2011 07:50:17 +0200
From:      Roland van Laar <roland@micite.net>
To:        freebsd-questions@freebsd.org
Subject:   ruby cpu 100% hang during pkgdb -F
Message-ID:  <4D917319.20309@micite.net>

next in thread | raw e-mail | index | archive | help
Hello,

I updated FreeBSD 8.0 to 8.2 with freebsd-update.
Everything went fine till I got to the ports:
I used the commands:

# portupgrade -f ruby
# rm /var/db/pkg/pkgdb.db
# portupgrade -f ruby18-bdb

portupgrade -f ruby gave problems because of a security issue.
So I updated the ports with portsnap extract and update.
I upgraded ruby removed pkgdb.db
Here is where things went wrong.
portupgrade hangs while ruby eats 100% cpu.

# pkgdb -F

gives me this:

--->  Checking the package registry database
[Rebuilding the pkgdb <format:bdb_btree> in /var/db/pkg ... - 185 
packages found (-0 +185) 
....................................................................................................100..................................................................................... 
done]
Stale origin: 'devel/automake19': perhaps moved or obsoleted.
-> The port 'devel/automake19' was removed on 2010-10-07 because:
         "No longer required by any port"
-> Hint: automake-1.9.6_3 is not required by any other package
-> Hint: checking for overwritten files...
  -> No files installed by automake-1.9.6_3 have been overwritten by 
other packages.
Deinstall automake-1.9.6_3 ? [no] yes

And it hangs at 100% cpu.

What do I need to do to update my ports?

tldr: updated ports, rm /var/db/pkg/pkgdb.db and pkgdf -F hangs at 100% cpu.

Roland van Laar






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