From owner-freebsd-ports@FreeBSD.ORG Fri Apr 18 02:21:24 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 741D237B401 for ; Fri, 18 Apr 2003 02:21:24 -0700 (PDT) Received: from mailout04.sul.t-online.com (mailout04.sul.t-online.com [194.25.134.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A6D143FE1 for ; Fri, 18 Apr 2003 02:21:22 -0700 (PDT) (envelope-from Alexander@Leidinger.net) Received: from fwd05.sul.t-online.de by mailout04.sul.t-online.com with smtp id 196S3U-00039Y-04; Fri, 18 Apr 2003 11:21:12 +0200 Received: from Andro-Beta.Leidinger.net (520065502893-0001@[80.131.119.139]) by fmrl05.sul.t-online.com with esmtp id 196S3F-1hb3R2C; Fri, 18 Apr 2003 11:20:57 +0200 Received: from Magelan.Leidinger.net (Magelan [192.168.1.1]) h3I9KuBR044881; Fri, 18 Apr 2003 11:20:56 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from Magelan.Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.12.9/8.12.9) with SMTP id h3I9KuG6001918; Fri, 18 Apr 2003 11:20:56 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Date: Fri, 18 Apr 2003 11:20:56 +0200 From: Alexander Leidinger To: Joe Marcus Clarke Message-Id: <20030418112056.69d4832c.Alexander@Leidinger.net> In-Reply-To: <1050646484.58286.108.camel@shumai.marcuscom.com> References: <1050640352.58286.22.camel@shumai.marcuscom.com> <20030418045754.GA94741@rot13.obsecurity.org> <1050646484.58286.108.camel@shumai.marcuscom.com> X-Mailer: Sylpheed version 0.8.9claws (GTK+ 1.2.10; i386-portbld-freebsd5.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Sender: 520065502893-0001@t-dialin.net cc: ports@freebsd.org cc: kris@obsecurity.org Subject: Re: Recent bsd.port.mk changes X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Apr 2003 09:21:24 -0000 On 18 Apr 2003 02:14:44 -0400 Joe Marcus Clarke wrote: > > The major benefit of this change is that it prevents people from > > installing one copy of the port over an older version, thereby > > screwing up their /var/db/pkg and possibly leaving orphan files lying > > around. I think that is important enough that it should stay in, in > > some form. > > Yes, I can see the advantage, but it now adds extra work (for me, maybe > others). The reason I Cc'd ports was to get an idea if others thought > the same way I did. I do the same (it makes sure the port is PREFIX safe and it makes it easy to check if the plist is correct). > > In your case since the PREFIX is different they don't actually > > conflict so one might argue that it should be allowed. I suppose > > that's something that could be checked in bsd.port.mk by extracting > > the prefix for the existing package from the contents file and > > comparing to PREFIX. > > This would be acceptable. However, the make deinstall would still > remove both versions. What about keeping make deinstall the same as it > was with one exception: if you type make deinstall in a port directory, > and the version specified by that port's Makefile is not installed (but > another version with the same origin is), then the other version would > be deinstalled. However, if a package is found that matches the version > specified in the port's Makefile, then only that version is removed. We > could then add a make deinstall-all target to handle deinstalling all > packages with the same origin. Something like what's attached. I like this idea. Bye, Alexander. -- Weird enough for government work. http://www.Leidinger.net Alexander @ Leidinger.net GPG fingerprint = C518 BC70 E67F 143F BE91 3365 79E2 9C60 B006 3FE7