From owner-freebsd-questions@FreeBSD.ORG Thu Mar 31 21:00:24 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 6EB64106566C for ; Thu, 31 Mar 2011 21:00:24 +0000 (UTC) (envelope-from illoai@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 236988FC13 for ; Thu, 31 Mar 2011 21:00:11 +0000 (UTC) Received: by fxm11 with SMTP id 11so2820855fxm.13 for ; Thu, 31 Mar 2011 14:00:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=C8vdW42QTXoF1ZcI/xRRYnX9BntJHVQ4F5/IvehGibQ=; b=gr78QgX3C7xVl1OU8gP7JmQ0tR2BAV0hXf2Xla6p63443zhQXZR245ev2jMQo3bzj5 xpIYUEvq7R8co12//pksrABbXx2VmzXtIJkFUFb8V3IAeZRz7LFCD5QEuGYMvbQ0+1yc BTGyNz2r9fQWE/IYKDUOwNTqjyc9CWQYQLlIw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=ki4cYvQSIpsLjbeWY/UEi3cu/WoIwDn1i9enXtxKbWze+vzgXmM6NDr2WoRQ0FJKAL i5liWqQCnTr4LhExwikKnjj5Aq39z/EiCZz90dSVxG3GCOA6/JoDtVjhQFnV3kmk1lTd 6hWMH35mlXPgNsnEHOfhwVyD9cEw9FoxmjIgY= MIME-Version: 1.0 Received: by 10.223.75.1 with SMTP id w1mr299356faj.17.1301605210876; Thu, 31 Mar 2011 14:00:10 -0700 (PDT) Received: by 10.223.93.137 with HTTP; Thu, 31 Mar 2011 14:00:10 -0700 (PDT) In-Reply-To: <4D94E843.8060502@micite.net> References: <4D917319.20309@micite.net> <4D94E843.8060502@micite.net> Date: Thu, 31 Mar 2011 17:00:10 -0400 Message-ID: From: "illoai@gmail.com" To: Roland van Laar Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: 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: Thu, 31 Mar 2011 21:00:24 -0000 On 31 March 2011 16:46, Roland van Laar wrote: > Hello, > > I'm asking again about pkgdb -F because it's still running. > > On 03/29/2011 07:50 AM, Roland van Laar wrote: >> >> 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: > > >> >> # pkgdb -F >> >> gives me this: >> >> ---> =A0Checking the package registry database >> [Rebuilding the pkgdb in /var/db/pkg ... - 185 packag= es >> found (-0 +185) >> ........................................................................= ............................100............................................= ......................................... >> done] >> Stale origin: 'devel/automake19': perhaps moved or obsoleted. >> -> The port 'devel/automake19' was removed on 2010-10-07 because: >> =A0 =A0 =A0 =A0"No longer required by any port" >> -> Hint: automake-1.9.6_3 is not required by any other package >> -> Hint: checking for overwritten files... >> =A0-> No files installed by automake-1.9.6_3 have been overwritten by ot= her >> packages. >> Deinstall automake-1.9.6_3 ? [no] yes >> > > Checking zh_tw-freebsd-doc-20100625 > Regenerating +REQUIRED_BY files > Checking for cyclic dependencies > > > After more than 55 hours of runtine pkgdb -F still hasn't finished and is > 'Checking for cyclic dependencies'. > Is it normal that pkgdb -F takes such a long time? > And is there something I can do to fix this? > > Roland >> >> 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. > Not entirely sure, but it's probably a lot simpler & faster to: a) backup /var/db/pkg (I usually just tar --options xz:compression-level=3D1 -Jcf /home/tmp/hostname.var.db.pkg.tar.xz ) b) rm /var/db/pkg/pkgdb.db c) pkg_delete -f auto\[mc\]\* d) pkgdb -Ff Another option is ports-mgmt/portmaster, which quite nice now, downright polished, & doesn't depend upon ruby (NTTAWWT) nor rely upon weirdly redundantly-named database files for dependency checking, etc*. *I could have said "functionality" but that's such a vile, 20th century neologism, almost as bad as using "impact" for effect and affect. --=20 --