From owner-freebsd-stable@FreeBSD.ORG Tue Jul 28 09:43:33 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7B8561065672 for ; Tue, 28 Jul 2009 09:43:33 +0000 (UTC) (envelope-from andrew@areilly.bpa.nu) Received: from nskntmtas02p.mx.bigpond.com (nskntmtas02p.mx.bigpond.com [61.9.168.140]) by mx1.freebsd.org (Postfix) with ESMTP id 0688B8FC1F for ; Tue, 28 Jul 2009 09:43:32 +0000 (UTC) (envelope-from andrew@areilly.bpa.nu) Received: from nskntotgx02p.mx.bigpond.com ([124.188.162.219]) by nskntmtas02p.mx.bigpond.com with ESMTP id <20090728094330.BNGH1957.nskntmtas02p.mx.bigpond.com@nskntotgx02p.mx.bigpond.com> for ; Tue, 28 Jul 2009 09:43:30 +0000 Received: from areilly.bpa.nu ([124.188.162.219]) by nskntotgx02p.mx.bigpond.com with ESMTP id <20090728094330.VFMH4023.nskntotgx02p.mx.bigpond.com@areilly.bpa.nu> for ; Tue, 28 Jul 2009 09:43:30 +0000 Received: (qmail 6724 invoked by uid 501); 28 Jul 2009 09:43:22 -0000 Date: Tue, 28 Jul 2009 19:43:22 +1000 From: Andrew Reilly To: =?iso-8859-1?Q?V=E1clav?= Haisman Message-ID: <20090728094322.GA3717@duncan.reilly.home> References: <20090726222403.GA19875@duncan.reilly.home> <20090728001238.GA97218@duncan.reilly.home> <4A6EA757.8060600@sh.cvut.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4A6EA757.8060600@sh.cvut.cz> User-Agent: Mutt/1.4.2.3i X-RPD-ScanID: Class unknown; VirusThreatLevel unknown, RefID str=0001.0A150202.4A6EC842.00BD,ss=1,fgs=0 Cc: freebsd-stable@freebsd.org Subject: Re: Weird portmaster behaviour -- everything fails to install X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jul 2009 09:43:33 -0000 On Tue, Jul 28, 2009 at 09:23:03AM +0200, Václav Haisman wrote: > Andrew Reilly wrote: > > Problem solved! > > > > In case anyone is interested, or has encountered a similar > > problem, I believe that my problem was that somehow my > > /var/db/pkg directory had a whole pile of near-duplicate entries > > corresponding to port revisions. Portmaster was checking the > > installed version against the MD5 hashes in the "old" version > > +CONTENTS file, and they weren't matching. I assume that I > > acquired all of these out-of-date pkg entries through a backup > > restore mishap: I've been having gmirror issues lately (not > > gmirror's fault, I think -- just a series of dodgy hard drives.) > > > > All is good again. No duplicate db/pkg entries at last, and > > portmaster runs to completion as intended. > How have you managed to fix the duplicate entries? Can pkgdb -Ffu or > such fix that? I think that pkgdb is a portupgrade mechanism, and portmaster doesn't need it. By "duplicate entries" I mean multiple directories in the /var/db/pkg directory that differ only in version number or port version number. When I realized that this is what was going on, there were only four such duplicates left, and I just deleted the older directory of the pair, as that was the one that didn't match the installed files. All of the previous duplicates seemed to have been tidied up (or removed) by the "make deinstall reinstall" exercise. I did a final portmaster --check-depends, and that did a *lot* of +REQUIRED_BY fixing, so I suspect that some of the previous dependency notation must have been going into the incorrect (older) versions (I guess that they sort first). Cheers, -- Andrew