From owner-freebsd-questions@FreeBSD.ORG Tue Mar 29 06:08:21 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D7A27106564A for ; Tue, 29 Mar 2011 06:08:21 +0000 (UTC) (envelope-from roland@micite.net) Received: from smtp03.online.nl (smtp03.online.nl [194.134.41.33]) by mx1.freebsd.org (Postfix) with ESMTP id 9AD5F8FC15 for ; Tue, 29 Mar 2011 06:08:21 +0000 (UTC) Received: from smtp03.online.nl (localhost [127.0.0.1]) by smtp03.online.nl (Postfix) with ESMTP id 9C4F0681E0 for ; Tue, 29 Mar 2011 07:50:19 +0200 (CEST) Received: from lutetium.micite.net (s529d340f.adsl.wanadoo.nl [82.157.52.15]) by smtp03.online.nl (Postfix) with ESMTP for ; Tue, 29 Mar 2011 07:50:18 +0200 (CEST) Received: (qmail 7558 invoked from network); 29 Mar 2011 05:50:16 -0000 Received: from unknown (HELO ?192.168.1.70?) (192.168.1.70) by lutetium.lan with SMTP; 29 Mar 2011 05:50:16 -0000 Message-ID: <4D917319.20309@micite.net> Date: Tue, 29 Mar 2011 07:50:17 +0200 From: Roland van Laar User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Lightning/1.0b2 Thunderbird/3.1.8 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Online-Scanned: by Cloudmark authority (on smtp03.online.nl) Subject: ruby cpu 100% hang during pkgdb -F X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Mar 2011 06:08:21 -0000 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 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