From owner-freebsd-ports@FreeBSD.ORG Thu Jul 19 07:30:27 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 2720F16A400; Thu, 19 Jul 2007 07:30:27 +0000 (UTC) (envelope-from helge.oldach@atosorigin.com) Received: from smtp1.mail.atosorigin.com (smtp1.mail.atosorigin.com [160.92.103.80]) by mx1.freebsd.org (Postfix) with ESMTP id ACC3A13C4B6; Thu, 19 Jul 2007 07:30:26 +0000 (UTC) (envelope-from helge.oldach@atosorigin.com) Received: from filter.atosorigin.com (localhost [127.0.0.1]) by mxfed001 (Postfix) with ESMTP id 630EB26396CB; Thu, 19 Jul 2007 09:02:40 +0200 (CEST) Received: from miram.origin-it.net (mail.de.atosorigin.com [194.8.96.226]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by mxfed001 (Postfix) with ESMTP id 37AC726396C6; Thu, 19 Jul 2007 09:02:40 +0200 (CEST) Received: from markab.hbg.de.int.atosorigin.com (avior.origin-it.net [213.70.176.177]) by miram.origin-it.net (8.14.1/8.14.1/hmo020206) with ESMTP id l6J72dOa068427 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 19 Jul 2007 09:02:39 +0200 (CEST) (envelope-from helge.oldach@atosorigin.com) Received: from DEHHX001.deuser.de.intra (dehhx001.hbg.de.int.atosorigin.com [161.90.164.121]) by markab.hbg.de.int.atosorigin.com (8.14.1/8.14.1/hmo020206) with ESMTP id l6J72cFk015081; Thu, 19 Jul 2007 09:02:38 +0200 (CEST) (envelope-from helge.oldach@atosorigin.com) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Thu, 19 Jul 2007 09:02:33 +0200 Message-ID: <39AFDF50473FED469B15B6DFF2262F7A03070D27@DEHHX001.deuser.de.intra> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Problems with +CONTENTS being messed up by pkg_delete -f Thread-Index: AcfJfkoBUDvvCXMdRYGBoenPARk+yAAUvekg References: <20070718154452.B3091@math.missouri.edu> From: To: , , X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (miram.origin-it.net [194.8.96.226]); Thu, 19 Jul 2007 09:02:39 +0200 (CEST) X-Bogolevel: not-spam X-fed-spamrating: 0.055155 Cc: Subject: RE: Problems with +CONTENTS being messed up by pkg_delete -f 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: Thu, 19 Jul 2007 07:30:27 -0000 Stephen Montgomery-Smith: > If you "pkg_delete -f" a package and then install the port again (but > after it has been bumped up a version), then the +CONTENTS of ports = that > require the original port will be incorrect. This apparently messes = up > programs like portmanager. There is a sense in which one should never = do > "pkg_delete -f" and expect /var/db/pkg to keep its integrety - on the > other hand this is exactly what "make deinstall" does. >=20 > My feeling is that the integrety of /var/db/pkg should be maintained > across a "make deinstall" and subsequent "make install" of a bumped > version of the port.=20 The tricky point is when the dependencies change with a version bump. It = will also be difficult if the user changes "make config" options (which = commonly affect dependencies - consider my favorite WITHOUT_NLS knob) and = reinstalls. My feeling is that tackling this with a general solution would be nice = to have - but the details and corner cases are pretty difficult. > A further benefit of this approach is that one could also accurately > reconstruct the +REQUIRED_BY of the port just reinstalled - right now = this > is left empty and thus inaccurate. Well. This is true, but on the other hand +REQUIRED_BY basically just = duplicates information that we already have in the ports tree. Most ports = management packages that we have (including my homegrown perl script) don't rely on information contained in +REQUIRED_BY, but just start with what is = already in the ports tree. Which leads to the question whether +REQUIRED_BY is still of much value = at all... Helge Atos Origin GmbH, Theodor-Althoff-Str. 47, D-45133 Essen, Postfach 100 123, D-45001 Essen Telefon: +49 201 4305 0, Fax: +49 201 4305 689095, www.atosorigin.de Dresdner Bank AG, Hamburg: Kto. 0954411200, BLZ 200 800 00, Swift Code DRESDEFF200, IBAN DE69200800000954411200 Geschäftsführer: Dominique Illien, Handelsregister Essen HRB 19354, Ust.-ID.-Nr.: DE147861238