From owner-freebsd-ports@FreeBSD.ORG Fri Jun 1 20:59:07 2007 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DEFA816A421; Fri, 1 Jun 2007 20:59:07 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 81B1C13C44B; Fri, 1 Jun 2007 20:59:07 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l51KuXMh087309; Fri, 1 Jun 2007 14:56:33 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Fri, 01 Jun 2007 14:56:51 -0600 (MDT) Message-Id: <20070601.145651.-1370667188.imp@bsdimp.com> To: dougb@freebsd.org From: "M. Warner Losh" In-Reply-To: <4660857A.2030701@FreeBSD.org> References: <20070601170514.GA54912@rot13.obsecurity.org> <20070601.131415.74663752.imp@bsdimp.com> <4660857A.2030701@FreeBSD.org> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Fri, 01 Jun 2007 14:56:34 -0600 (MDT) Cc: ports@freebsd.org, ade@freebsd.org, kris@obsecurity.org Subject: Re: Uggg! X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jun 2007 20:59:08 -0000 In message: <4660857A.2030701@FreeBSD.org> Doug Barton writes: : Warner Losh wrote: : >> Best solution is to back up /var/db/pkg if it is in danger of deletion : >> by a wanton admin :) : > : > The ONLY data corruption that I saw when my laptop died was *ALL* of : > the +CONTENTS files going away. It seems to have died during the : > updating of the meta-data for the dvdauthor port. Why all the files : > of unreleated packages would disapper is a mystery to me, unless : > mergemaster, or one of the pkg tools, deleted them all, and then : > wanted to rewrite them and I got screwed between these two steps. : : I think you're thinking of portmaster, mergemaster doesn't touch ports : stuff. What portmaster does when it updates +CONTENTS files is to : update a temp copy first, then move the updated file into place after : it's done. Not sure what portupgrade does. Yea, forget I said mergemaster. It was portupgrade. : In terms of easily recreating them, I can't think of a way to do that : reliably other than to build the ports again. portmaster relies : heavily on the data in +CONTENTS, and it couldn't even rebuild your : ports in place without them since it wouldn't be able to find the ORIGIN. rm -rf /var/db/pkg/* /usr/local/* /usr/X11R6/* is somewhat liberating... That's what I opted for... However, I've not yet tried to rebuild openoffice. Firefox and X11 worked. [[ as an aside, the updating instructions for xorg should say you may need to regenerate your config file, since when I used my old one I got pcidata not found ]] : What you could do with portmaster is to pick a high level leaf port : with a lot of dependencies (something like firefox) and do 'portmaster : -aft /usr/ports/www/firefox' (make sure you specify the directory in : /usr/ports, not the pkg directory). I don't see the 't' option listed in the portupgrade -help output. What does it do? Warner