From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D9672138262 for ; Sat, 21 May 2016 19:19:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C96E114145; Sat, 21 May 2016 19:19:09 +0000 (UTC) Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.181]) by pigeon.gentoo.org (Postfix) with ESMTP id CA57C21C012 for ; Sat, 21 May 2016 19:19:08 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0C3EgA731xV/wPbbkFcJ4JpgTLLMAQCAoE8PBEBAQEBAQEBgQpBBYNdAQEDATIBIygLCyETEg8FJTcbiAkIzyMBAQEHAgEfizqFDBaDAYEWAQSdb4EohlAZiyuDWSNhgzMiMYJHAQEB X-IPAS-Result: A0C3EgA731xV/wPbbkFcJ4JpgTLLMAQCAoE8PBEBAQEBAQEBgQpBBYNdAQEDATIBIygLCyETEg8FJTcbiAkIzyMBAQEHAgEfizqFDBaDAYEWAQSdb4EohlAZiyuDWSNhgzMiMYJHAQEB X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="239054533" Received: from 65-110-219-3.cpe.pppoe.ca (HELO waltdnes.org) ([65.110.219.3]) by ironport2-out.teksavvy.com with SMTP; 21 May 2016 15:19:06 -0400 Received: by waltdnes.org (sSMTP sendmail emulation); Sat, 21 May 2016 11:19:07 -0400 From: waltdnes@waltdnes.org Date: Sat, 21 May 2016 11:19:07 -0400 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] [RFC] How to deal with LINGUAS mess? Message-ID: <20160521151907.GA6619@waltdnes.org> References: <20160521094128.0a7c7766.mgorny@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160521094128.0a7c7766.mgorny@gentoo.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-Archives-Salt: 1af88056-bf22-4e35-a75d-b8584acddf9a X-Archives-Hash: e71b9e7f3e67494389bc8751898eace3 On Sat, May 21, 2016 at 09:41:28AM +0200, Micha?? Górny wrote > I see the following possibilities: > > 1. We start explicitly listing linguas_* in all ebuilds, no matter how > tiny they are. Maintainers are required to keep IUSE up-to-date > and users are forced to rebuild a lot. This is also a QA violation > in terms of invalid use of USE flags. > > 2. We hack-unset LINGUAS in ebuilds. This is a lot of effort, easy to > miss and probably would need to repeated for every single phase anyway > due to how global variables are handled in PMS. Additionally, it may > break at some point since those variables are likely expected to be > read-only anyway. > > 3. We remove LINGUAS from USE_EXPAND and stop using it. If ebuilds have > a good reason to use flags for localization, we introduce a new, > non-colliding USE_EXPAND for that. We also ask users to replace LINGUAS > with the new flag in their make.conf files. LINGUAS gets the original > upstream behavior back, and we eventually discourage it in favor of new > INSTALL_MASK features (WiP) [2]. > > 4. We fix build systems not to do magic depending on whether LINGUAS > is unset or set-to-empty. Instead, we could some special special value > like '-' to signify not installing localizations at all. But that's > upstream thing to do, and breaks backwards compatibility with existing > systems disabling localizations. > > > Your thoughts? 5. An reversed variant of INSTALL_MASK in make.conf, e.g. LOCALE_ALLOW="foo bar fubar" which would block installing files in /usr/share/locale/* and /usr/share/man/* EXCEPT for... /usr/share/locale/foo /usr/share/locale/bar /usr/share/locale/fubar /usr/share/man/foo /usr/share/man/bar /usr/share/man/fubar 6. Integrate localepurge into Portage, and run it post install There are some lazy programmers out there who *DO NOT* respect the LINGUAS setting, and splatter files throughout /usr/share/locale/* and /usr/share/man/* regardless. That's the reason "localepurge" was written in the first place. Any proposed solution should take that problem into consideration, and handle it too. -- Walter Dnes I don't run "desktop environments"; I run useful applications