From owner-freebsd-questions@FreeBSD.ORG Fri Aug 12 19:44:28 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 2FECB106566B for ; Fri, 12 Aug 2011 19:44:28 +0000 (UTC) (envelope-from amvandemore@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 B842C8FC08 for ; Fri, 12 Aug 2011 19:44:27 +0000 (UTC) Received: by fxe4 with SMTP id 4so3318474fxe.13 for ; Fri, 12 Aug 2011 12:44:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=jPCGTC5RWyByYCuh9RyBEw2GIAmRQNYnHeJtYzr9lCM=; b=Hb+mjlPYzeKN2acFhsz3zAipIp0dbLUXYX0FEVNmdTZNTS4Ep5KFE8kZvLKbRNCU1K j6/fHDB9Za7oJARERvgrIGBUe3BydhUyPMP0UOdz25gmseNj0dSDbwbJAvvI7nkx8IbY g8Bzy+oH3W4v1KoBxqG8pOsVJkG3BPgJHSa48= MIME-Version: 1.0 Received: by 10.223.51.204 with SMTP id e12mr1751191fag.50.1313178266511; Fri, 12 Aug 2011 12:44:26 -0700 (PDT) Received: by 10.223.120.72 with HTTP; Fri, 12 Aug 2011 12:44:26 -0700 (PDT) In-Reply-To: References: Date: Fri, 12 Aug 2011 14:44:26 -0500 Message-ID: From: Adam Vande More To: Warren Block Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Kurt Buff , freebsd-questions@freebsd.org Subject: Re: pkdgb and corrupted record(s) 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: Fri, 12 Aug 2011 19:44:28 -0000 On Fri, Aug 12, 2011 at 1:15 PM, Warren Block wrote: > > I'd never seen it with portupgrade, either. Don't know the cause, but it > can be a problem. portmaster --check-depends might fix it. A more > brute-force way is to figure out which are the problems with > find /var/db/pkg -name "+CONTENTS" -exec egrep -B1 -H 'pkgdep $' {} \; > Then rebuild all of them by feeding the list to portmaster, which will sort > them and rebuild in the right order to fix it. If I remember correctly, this can be caused by Ctrl-C out of a portmaster run early, or perhaps some other abnormal termination. IIRC, some improvements have been done for this problem as it's been quite awhile since I've seen it personally, but your mileage may vary. -- Adam Vande More