From owner-freebsd-ports@FreeBSD.ORG Fri Jun 1 19:15:00 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 883C916A46B for ; Fri, 1 Jun 2007 19:15:00 +0000 (UTC) (envelope-from michel@lpthe.jussieu.fr) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by mx1.freebsd.org (Postfix) with ESMTP id 168B913C44C for ; Fri, 1 Jun 2007 19:14:59 +0000 (UTC) (envelope-from michel@lpthe.jussieu.fr) Received: from parthe.lpthe.jussieu.fr (parthe.lpthe.jussieu.fr [134.157.10.1]) by shiva.jussieu.fr (8.13.8/jtpda-5.4) with ESMTP id l51JEwPr072051 for ; Fri, 1 Jun 2007 21:14:58 +0200 (CEST) X-Ids: 166 Received: by parthe.lpthe.jussieu.fr (Postfix, from userid 10096) id 7CE5DBF6AC; Fri, 1 Jun 2007 21:14:57 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on parthe.lpthe.jussieu.fr X-Spam-Level: X-Spam-Status: No, score=-3.2 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.8 Received: from niobe.lpthe.jussieu.fr (niobe.lpthe.jussieu.fr [134.157.10.41]) by parthe.lpthe.jussieu.fr (Postfix) with ESMTP id DD87BBF4F6 for ; Fri, 1 Jun 2007 21:14:56 +0200 (CEST) Received: by niobe.lpthe.jussieu.fr (Postfix, from userid 2005) id D41D688; Fri, 1 Jun 2007 21:14:56 +0200 (CEST) Date: Fri, 1 Jun 2007 21:14:56 +0200 From: Michel Talon To: ports@freebsd.org Message-ID: <20070601191456.GA27033@lpthe.jussieu.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (shiva.jussieu.fr [134.157.0.166]); Fri, 01 Jun 2007 21:14:58 +0200 (CEST) X-Virus-Scanned: ClamAV 0.88.7/3336/Fri Jun 1 13:28:33 2007 on shiva.jussieu.fr X-Virus-Status: Clean X-Miltered: at shiva.jussieu.fr with ID 46607032.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! Cc: 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 19:15:00 -0000 Thomas Hummel wrote: > Sure. But that doesn't explain why so many +CONTENT files were screwed > up and why there isn't a easy or easier way to re-generate them. Portupgrade (at least pkgdb) has functionality to edit the +CONTENTS file with the aim of fixing the dependencies. So one may understand that if it is killed in the middle it may leave the +CONTENTS file screwed. It would be wise to move the file to +CONTENTS.BAK and then edit the +CONTENTS file, or edit a copy and then apply rename. You cannot regenerate the +CONTENTS file in a reliable way, because its content is depending on the way in which you installed software on the machine, from package or port, and then what was the building option for the port. Note that all files have an md5sum which willbe different for any variation! It is even dependent on the history of the pkgdb you have done, since this edits the file. Moral of the story, as other people are saying, keeping a backup of the pkgdb should be necessary before taking unreliable action. -- Michel TALON