From owner-freebsd-ports@FreeBSD.ORG Thu Aug 24 20:09:41 2006 Return-Path: X-Original-To: ports@freebsd.org 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 C609716A4E0 for ; Thu, 24 Aug 2006 20:09:41 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E69343D88 for ; Thu, 24 Aug 2006 20:09:33 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: by py-out-1112.google.com with SMTP id o67so795252pye for ; Thu, 24 Aug 2006 13:09:33 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=UcvKH/bMXt2+Fl/xv93x/7/PgbC/5q++m8+wmDX2qf1yq0FpoCzGdkXc5TnUYXNUKfc9yPBeFPYqjxWyO0kXx09gDEZAHH6daMIOGaAE7LmsqkiRWh3htv05gGC2T0p9rsMYnQARdRZ95ioEJD6oPPxmFnEBTqckEM9xAimV/LE= Received: by 10.35.121.9 with SMTP id y9mr3396516pym; Thu, 24 Aug 2006 13:09:33 -0700 (PDT) Received: by 10.35.105.10 with HTTP; Thu, 24 Aug 2006 13:09:33 -0700 (PDT) Message-ID: Date: Fri, 25 Aug 2006 00:09:33 +0400 From: "Andrew Pantyukhin" Sender: infofarmer@gmail.com To: "Stanislav Sedov" In-Reply-To: <20060824224521.300b2185@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060824224521.300b2185@localhost> X-Google-Sender-Auth: 547defe59a7481dc Cc: FreeBSD Ports , Jeremy Messenger , portmgr@freebsd.org Subject: Re: BSD.local.dist - share/locale 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, 24 Aug 2006 20:09:42 -0000 On 8/24/06, Stanislav Sedov wrote: > On Thu, 24 Aug 2006 18:50:52 +0400 > "Andrew Pantyukhin" mentioned: > > > On 8/24/06, Jeremy Messenger wrote: > > > On Thu, 24 Aug 2006 08:26:53 -0500, Andrew Pantyukhin > > > wrote: > > > > > > > I can't help thinking that the way we're trying to deal with > > > > locale directories is far from optimal. IMHO, there are > > > > several ways to improve the state of things: > > > > > > I think the current how we handle locale is a bit silly, so I personal in > > > favor of create localehier like misc/gnomehier than four suggested below.. > > > Honestly, I would be more rather to put mtree that is for ports in > > > somewhere of /usr/ports/ than /etc/mtree/ that way any version of FreeBSD > > > won't have any of left over directories problem. > > > > It's a good idea, but we're back at the second question - > > what if someone fancies to pkg_delete -xf gnomehier? > > There will be no way to get a clean system after that > > other than by reinstalling gnomehier and deleting it after > > all the ports requiring it. > > That's not the main problem, and hasn't point at all since we > don't support such kind of deinstalls - dependent ports should > be deinstalled before dependencies. Oh, I'm quite sure you don't mean it. You're saying that every time we upgrade a port we should also reinstall all the ports relying on it? Because there's no way we can guarantee a port's directory structure stays intact across upgrades. > The main argument for deinstalling all files/direcotries that > port creates follows from FreeBSD ports goal to support different > PREFIXES. That is, you can install gettext into /usr/local and > smth that depends on gettext into /usr/local/opt. In that case > all these share/locale/xxx dirs will be created under /usr/local/opt > PREFIX and if this dependent port will not make effort to remove > these files/directories on deinstall, they will stay under /usr/local/opt > forever, though not listed in ${MTREE_FILE}. Again, you don't really mean it. Try installing any p5 port into a non-localbase prefix, and you'll see that lib/perl5 and Co. will be left over after deinstall. Even if you suppose that all ports respect PREFIX (which many of them don't), it's not a simple task to deal with non-mtree left-overs. I would very much like to think that your locale effort is a step towards a better world, but it really appears to be a step nowhere at all. I hope I'm too short-sighted and mistaken. > The only possible solution I can imagine is to add these direcories into > mtree file, but since all pacthes are alredy there, there is no reason > doing this now. Just port committers should check PLISTS accurately. This > could be achieved by installing port with non standard PREFIX=xxx, > deinstalling it and looking for directories/files left. > > The other possible solution is to implement some technique to automatically > gather directories dependencies created and add them into plist. We only need to care about the directories we created (or might have created if there were none) out of mtree. It's an enormous task to fix all the ports to do that - and there are quite a few cases when we just can't remove an empty dir if its real owner is still installed. A worthwhile effort would be to ensure PREFIX compliance for all ports.