Gentoo Archives: gentoo-dev

From: Arfrever Frehtes Taifersar Arahesis <Arfrever@g.o>
To: Gentoo Development <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] Locale check in python_pkg_setup()
Date: Sat, 31 Jul 2010 14:45:34
Message-Id: 201007311645.49028.Arfrever@gentoo.org
In Reply to: Re: [gentoo-dev] Locale check in python_pkg_setup() by Brian Harring
2010-07-30 04:36:22 Brian Harring napisaƂ(a):
> On Fri, Jul 30, 2010 at 01:16:42AM +0200, Arfrever Frehtes Taifersar Arahesis wrote: > > --- python.eclass > > +++ python.eclass > > @@ -355,6 +355,8 @@ > > # Check if phase is pkg_setup(). > > [[ "${EBUILD_PHASE}" != "setup" ]] && die "${FUNCNAME}() can be used only in pkg_setup() phase" > > > > + 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 > > > > + locale="$(python -c 'import os; print(os.environ.get("LC_ALL", os.environ.get("LC_CTYPE", os.environ.get("LANG", "POSIX"))))')" > > You're using python to get the exported env. Don't. Use bash (you're > 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).
This patch comes from upstream. -- Arfrever Frehtes Taifersar Arahesis

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] Locale check in python_pkg_setup() Alec Warner <antarus@g.o>