From owner-freebsd-ports@FreeBSD.ORG Thu Aug 24 13:26:57 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 60F9D16A4E5 for ; Thu, 24 Aug 2006 13:26:55 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4414043D46 for ; Thu, 24 Aug 2006 13:26:54 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: by py-out-1112.google.com with SMTP id o67so668595pye for ; Thu, 24 Aug 2006 06:26:53 -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:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=lAa/XZJ6hGezzVlDAn1OKq5XEvzEXfJiF/n7sMRwbbxGWVN3Q5ENnlt4p93p+0pEKAf9kCcir9kXtPjAg0fq4swFcgwsycLXmygDDLcuN30vWVLcmpHvYQGcrRx5ukitZE4HCpvUVke68fjPZ106vSh0f+piTdyRlIJ/4C5dzlw= Received: by 10.35.60.16 with SMTP id n16mr2777968pyk; Thu, 24 Aug 2006 06:26:53 -0700 (PDT) Received: by 10.35.105.10 with HTTP; Thu, 24 Aug 2006 06:26:53 -0700 (PDT) Message-ID: Date: Thu, 24 Aug 2006 17:26:53 +0400 From: "Andrew Pantyukhin" Sender: infofarmer@gmail.com To: "FreeBSD Ports" , portmgr@freebsd.org, "Stanislav Sedov" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: 725055f689d6a8de Cc: Subject: 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:26:57 -0000 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: 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.