From owner-freebsd-ports@FreeBSD.ORG Thu Aug 24 13:36:32 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 246AD16A5AA; Thu, 24 Aug 2006 13:36:32 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from centrmmtao06.cox.net (centrmmtao06.cox.net [70.168.83.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1951443D53; Thu, 24 Aug 2006 13:36:30 +0000 (GMT) (envelope-from mezz7@cox.net) Received: from eastrmimpo01.cox.net ([68.1.16.119]) by centrmmtao06.cox.net (InterMail vM.6.01.06.01 201-2131-130-101-20060113) with ESMTP id <20060824133627.RHTF17338.centrmmtao06.cox.net@eastrmimpo01.cox.net>; Thu, 24 Aug 2006 09:36:27 -0400 Received: from mezz.mezzweb.com ([24.255.149.218]) by eastrmimpo01.cox.net with bizsmtp id DpcR1V00H4iy4EG0000000 Thu, 24 Aug 2006 09:36:25 -0400 Date: Thu, 24 Aug 2006 08:36:53 -0500 To: "Andrew Pantyukhin" From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 References: Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: User-Agent: Opera Mail/9.01 (Linux) Cc: FreeBSD Ports , Stanislav Sedov , 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 13:36:32 -0000 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. Cheers, Mezz > 1. Add more locales > We can add all those locales found in the same mtree > file under nls, and all less specific locales. I.e. if > aa_BB.CCC is found under nls, we can add aa_BB.CCC, > aa_BB and aa to share/locale. > > 2. Forget about left-overs > We can just ignore the directories left over in share/locale. > They are not harmful in any way, but it certainly contradicts > our long-standing effort to deinstall every thing we install. > > 3. Automate preening > We can add automatic preening to all ports that define > USE_GETTEXT. Something like > find share/locale/ -d -type d | xargs rmdir... > This way we can throw share/locale out of mtree. Ports > shouldn't (and don't) rely on these directories existence > anyway. > > 4. Define more specific rules as to what goes into mtree > and what doesn't. I know this one is very hard, each > change to mtree preceded by a violent bikeshed, but > someone has to lay down the rules and we have to follow > them. > > > Another question has arisen: should ports try to remove > directories belonging to their dependencies. On one hand > they certainly should, as "pkg_delete -f foo-dep && \ > pkg_delete -f foo" should leave the system clean. OTOH > there are cases when ports need some empty dirs to exist > and become unhappy once they can't find them. > > Anyway quite a few ports (e.g. almost all p5 ports) don't > remove one or more dirs of their dependencies and fixing > this is a matter of some research and careful sweeping > commits. > > Your thoughts are welcome and thanks for reading this. -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team - FreeBSD Multimedia Hat (ports, not src) http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org http://wiki.freebsd.org/multimedia - multimedia@FreeBSD.org