From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.77) (envelope-from ) id 1SsHFm-0001bN-6M for garchives@archives.gentoo.org; Fri, 20 Jul 2012 17:44:38 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6FB2BE0205; Fri, 20 Jul 2012 17:44:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 91F3FE0752 for ; Fri, 20 Jul 2012 17:43:18 +0000 (UTC) Received: from [192.168.1.43] (unknown [96.231.195.182]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: tetromino) by smtp.gentoo.org (Postfix) with ESMTPSA id D87F81B408F for ; Fri, 20 Jul 2012 17:43:17 +0000 (UTC) Message-ID: <1342806195.9434.24.camel@rook> Subject: Re: [gentoo-dev] RFC: l10n.eclass From: Alexandre Rostovtsev To: gentoo-dev@lists.gentoo.org Date: Fri, 20 Jul 2012 13:43:15 -0400 In-Reply-To: <20120720180910.748470a0@googlemail.com> References: <20120719151422.1fb9883b@sera-17.lan> <50087884.90006@gentoo.org> <20120720075457.4cccea26@googlemail.com> <20120720180910.748470a0@googlemail.com> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-g//obDMW7BdAnoFW9Sbo" X-Mailer: Evolution 3.4.3 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 X-Archives-Salt: 251da628-ad65-473e-b970-2fde25b6a43c X-Archives-Hash: ad919d94344981bf1a2c2e90fd488d5e --=-g//obDMW7BdAnoFW9Sbo Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 2012-07-20 at 18:09 +0100, Ciaran McCreesh wrote: > On Fri, 20 Jul 2012 12:39:21 -0400 > Mike Gilbert wrote: > > On Fri, Jul 20, 2012 at 2:54 AM, Ciaran McCreesh > > wrote: > > > On Thu, 19 Jul 2012 18:34:41 -0400 > > > Mike Gilbert wrote: > > >> On Thu, Jul 19, 2012 at 5:13 PM, Zac Medico > > >> wrote: > > >> > On 07/19/2012 06:14 AM, Ralph Sennhauser wrote: > > >> >> Could be that Portage re-exports a sanitized > > >> >> LINGUAS tough, but I doubt it. > > >> > > > >> > Portage does sanitize it if there are any linguas_* flags in > > >> > IUSE, otherwise it lets the variable pass through without > > >> > sanitizing it. > > >> > > >> That's good; we definitely don't want to "sanitize" it if there > > >> are no linuguas_* flags in IUSE. This would break LINUGUAS support > > >> for many autotools/gettext based packages, where the autotools > > >> code parses LINGUAS directly and the ebuild does nothing with it. > > > > > > If there aren't any linguas_* flags in IUSE, LINGUAS should be > > > empty, and will be in future EAPIs. Without that, USE dependencies > > > on USE_EXPAND variables don't work. > >=20 > > How do you figure that? >=20 > If you dep upon foo[linguas_en(+)] and linguas_en isn't in IUSE, what > happens? Fatal error. If a package installs its translations implicitly via gettext's rules depending on the value of LINGUAS at configure time, then obviously other packages must rely on that package having installed any particular translation. > > The current portage behavior works well enough; if linugas_* is in > > IUSE, LINGUAS is treated as a USE_EXPAND, and use-deps should work > > fine. > >=20 > > Otherwise, it is treated just like a normal environment variable, and > > portage doesn't touch it. >=20 > It's not a normal environment variable, and it never has been. LINGUAS has been an environment variable with a special meaning for gettext-based build systems, which are rather popular in the free software world, since, oh, at least the year 2002 or so, when gettext-0.11 was released. Maybe even earlier. > > For most gettext packages, there is absolutely no reason that the > > ebuild maintainer should have to keep track of every translation > > available in a given package across version bumps. If you change this > > behavior in a future EAPI, you will break this. >=20 > Don't use a USE_EXPAND variable if you don't want USE_EXPAND behaviour. Thousands of packages rely on a particular interpretation of LINGUAS that has been standard across all distros for a decade. If that behavior changed in EAPI5, then EAPI5 is not suitable for adoption in Gentoo. -Alexandre. --=-g//obDMW7BdAnoFW9Sbo Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQEcBAABAgAGBQJQCZizAAoJEJ0WA1zPCt1hHeoH/iQv/xI5zrGbEUs9GkSYfRSu itm6tD/NWXgHAURxUOpbDoRWal9h9EZHfL6v2Jxtu0p2DLtCIJ4sbLSd/VlJBiGP nFbpKhNhqf0amodDKFjM55wFUkLey3/cxBcaVCFtZ3aWekjjrrLGVryAgVnPV/fL +WYLRy3U+MtWpxnK0Vm4YlrlipvzHcsY+C6kaIVjmatnMMUYJZabv/YOpuyysJru ElaDj+whjUNnAg+NwsFBZCtPeu3X4ZVjmryjJ3sBBWYdWeXMf4j2kYh8PuT0astF G3A4rafHhgJ099T1VTKwesOe5PIKyncjbZjNk+9MYDr8zLR7kP71HEheeXpEZMM= =vK2B -----END PGP SIGNATURE----- --=-g//obDMW7BdAnoFW9Sbo--