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.60) (envelope-from ) id 1OfDJe-0000Aq-OY for garchives@archives.gentoo.org; Sat, 31 Jul 2010 14:45:34 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 732F9E0799; Sat, 31 Jul 2010 14:45:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 945B6E078C for ; Sat, 31 Jul 2010 14:45:14 +0000 (UTC) Received: from afta-gentoo.localnet (ip-85-198-235-97.broker.com.pl [85.198.235.97]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPSA id ED3661B40D3 for ; Sat, 31 Jul 2010 14:45:13 +0000 (UTC) From: Arfrever Frehtes Taifersar Arahesis To: Gentoo Development Subject: Re: [gentoo-dev] Locale check in python_pkg_setup() Date: Sat, 31 Jul 2010 16:44:12 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.34-tuxonice-r1-AFTA; KDE/4.4.5; x86_64; ; ) References: <201007300116.43653.Arfrever@gentoo.org> <20100730023622.GB15031@hrair> In-Reply-To: <20100730023622.GB15031@hrair> 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: multipart/signed; boundary="nextPart10764453.tQG1zTC6FG"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201007311645.49028.Arfrever@gentoo.org> X-Archives-Salt: 389f74a7-b2bf-4818-adb5-b330c33d0f87 X-Archives-Hash: 38174d3866fa18bf9c1bf9269bbff71f --nextPart10764453.tQG1zTC6FG Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 2010-07-30 04:36:22 Brian Harring napisa=C5=82(a): > On Fri, Jul 30, 2010 at 01:16:42AM +0200, Arfrever Frehtes Taifersar Arah= esis wrote: > > --- python.eclass > > +++ python.eclass > > @@ -355,6 +355,8 @@ > > # Check if phase is pkg_setup(). > > [[ "${EBUILD_PHASE}" !=3D "setup" ]] && die "${FUNCNAME}() can be use= d only in pkg_setup() phase" > > =20 > > + local locale > > + > > if [[ "$#" -ne 0 ]]; then > > die "${FUNCNAME}() does not accept arguments" > > fi > > @@ -407,6 +409,16 @@ > > unset -f python_pkg_setup_check_USE_flags > > fi > > =20 > > + locale=3D"$(python -c 'import os; print(os.environ.get("LC_ALL", os.e= nviron.get("LC_CTYPE", os.environ.get("LANG", "POSIX"))))')" >=20 > You're using python to get the exported env. Don't. Use bash (you're=20 > invoking python from freaking bash after all)... Given variable can be set, but not exported. > bug 328047 is induced by a patch we add (it's not in upstream python). =20 This patch comes from upstream. =2D-=20 Arfrever Frehtes Taifersar Arahesis --nextPart10764453.tQG1zTC6FG Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iQIcBAABAgAGBQJMVDccAAoJEFU3/w1zlLfgn7gP/RPvPmPFVsVpXQATyf4HcM6/ kam7MyGnlC1e09Qh0nBVVMYSI3p47psMdVl89oB5IhqzPHtf+G6e1PK0IoevT97l c+wkFLYPlKCThWJa1SQ/BTwIrLkmxIucHQ8ukPnBHxQrsRQuKqZE6uCX9KbTj87S gknL8KDURIN7PaDnPFDb3QZAYnb6+P5XH3x2EsUgwiYymmV+BtcgCwTys5Kz5wdI XaYHoFd6pH3t4EM0UFuftss8fknyp9ncvcCtPLKULOIrYB7J0/OmsvMvdrE4IW8K Lq1GS2Hf5vkrsCHVy/TmDEvR40QFl0uFd/OyaqYs+GZAX0W6c+jPgAmkEbPM2A6d bV1N4jWQ6BrJO5Wd30p7g/VDUxp4TAmoirRNfwXo4Db7GXtuad577vyMV0vieEbR 2j6q3ZJmeTCKh3PMx1iIFI3s8Q1WUvOBt/OFtSnb6jpE8dxylQeWDhHPSTO4GMaI 1lfCZxi/FpqEMmK5aBJLNZGFpsoPlufhSoH+WNezNwzbC3m6L6fq6cedB1qqnd9S I0TrOW4RW0tO60s8dzlYIghsD+ZACl2NgpnDocI3tJ4Ve92HpApyOEJUAWAWeuPP GCbMo9uL8bWRKK7mZAE3fmogeMI0gSl//XxRfUSwggbHZdfipodQqDasmA9930jl pEOdAzHA95E44oRJFvst =xBKd -----END PGP SIGNATURE----- --nextPart10764453.tQG1zTC6FG--