From owner-freebsd-ports@FreeBSD.ORG Fri Jun 1 17:05:15 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 0C8F716A468; Fri, 1 Jun 2007 17:05:15 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id ECBDE13C45A; Fri, 1 Jun 2007 17:05:14 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 4D4B01A3C1A; Fri, 1 Jun 2007 10:06:27 -0700 (PDT) Received: from rot13.obsecurity.org (rot13.obsecurity.org [192.168.1.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 42041511D0; Fri, 1 Jun 2007 13:05:14 -0400 (EDT) Received: by rot13.obsecurity.org (Postfix, from userid 1001) id 1CDB6C1D6; Fri, 1 Jun 2007 13:05:14 -0400 (EDT) Date: Fri, 1 Jun 2007 13:05:14 -0400 From: Kris Kennaway To: Ade Lovett Message-ID: <20070601170514.GA54912@rot13.obsecurity.org> References: <200706010521.l515LE4N074880@harmony.bsdimp.com> <20070601085750.ang0g5aqp0kg8c8k@webmail.leidinger.net> <20070601083345.GA48323@rot13.obsecurity.org> <10723ADA-FD53-45F8-BDFA-DBD98CBC212E@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <10723ADA-FD53-45F8-BDFA-DBD98CBC212E@FreeBSD.org> User-Agent: Mutt/1.4.2.2i Cc: ports@freebsd.org, Warner Losh , Kris Kennaway 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 17:05:15 -0000 On Fri, Jun 01, 2007 at 02:15:48AM -0700, Ade Lovett wrote: > > On Jun 01, 2007, at 01:33 , Kris Kennaway wrote: > >Download the packages from the FTP site and either reinstall them or > >extract the +CONTENTS. This will work best if you don't have local > >make.conf customizations, otherwise you will see variance. > > Actually, this does bring up a meta-issue that ports, pkgsrc, > portage, all suffer from. > > What happens when the metadata gets blown away (by accident, hardware > crash, flaming meteor from Mars, etc.) > > Is there anything we can do to mitigate this? > > Yes. It's an open-ended question. I also have no obvious solution. > But I do see the need for such. I am not really sure there is a solution: unless the user has used a precompiled "standard" package is not just representing data that is cached from somewhere else and can be reconstructed, it is usually unique to a particular build. Even if they use a standard package it may have changed in the meantime. Best solution is to back up /var/db/pkg if it is in danger of deletion by a wanton admin :) Kris