commit: 3a717f84615e7bac2566e174e7bcdd2c94099d2d Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> AuthorDate: Sat Sep 24 01:11:34 2016 +0000 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> CommitDate: Sat Sep 24 01:11:45 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a717f84
dev-lang/python: set LC_ALL=C in src_compile Package-Manager: portage-2.3.0_p43 dev-lang/python/python-2.7.10-r1.ebuild | 4 ---- dev-lang/python/python-2.7.12.ebuild | 4 ---- dev-lang/python/python-3.4.3-r1.ebuild | 8 ++++---- dev-lang/python/python-3.4.5.ebuild | 8 ++++---- dev-lang/python/python-3.5.2.ebuild | 8 ++++---- 5 files changed, 12 insertions(+), 20 deletions(-) diff --git a/dev-lang/python/python-2.7.10-r1.ebuild b/dev-lang/python/python-2.7.10-r1.ebuild index 180d7be..de85de7 100644 --- a/dev-lang/python/python-2.7.10-r1.ebuild +++ b/dev-lang/python/python-2.7.10-r1.ebuild @@ -146,10 +146,6 @@ src_configure() { einfo "Disabled modules: ${PYTHON_DISABLE_MODULES}" fi - # Ensure sed works as expected - # https://bugs.gentoo.org/594768 - export LC_COLLATE=C - if [[ "$(gcc-major-version)" -ge 4 ]]; then append-flags -fwrapv fi diff --git a/dev-lang/python/python-2.7.12.ebuild b/dev-lang/python/python-2.7.12.ebuild index 1066b16..0856ef2 100644 --- a/dev-lang/python/python-2.7.12.ebuild +++ b/dev-lang/python/python-2.7.12.ebuild @@ -144,10 +144,6 @@ src_configure() { einfo "Disabled modules: ${PYTHON_DISABLE_MODULES}" fi - # Ensure sed works as expected - # https://bugs.gentoo.org/594768 - export LC_COLLATE=C - if [[ "$(gcc-major-version)" -ge 4 ]]; then append-flags -fwrapv fi diff --git a/dev-lang/python/python-3.4.3-r1.ebuild b/dev-lang/python/python-3.4.3-r1.ebuild index 67492b3..43e1369 100644 --- a/dev-lang/python/python-3.4.3-r1.ebuild +++ b/dev-lang/python/python-3.4.3-r1.ebuild @@ -115,10 +115,6 @@ src_configure() { einfo "Disabled modules: ${PYTHON_DISABLE_MODULES}" fi - # Ensure sed works as expected - # https://bugs.gentoo.org/594768 - export LC_COLLATE=C - if [[ "$(gcc-major-version)" -ge 4 ]]; then append-flags -fwrapv fi @@ -177,6 +173,10 @@ src_configure() { } src_compile() { + # Ensure sed works as expected + # https://bugs.gentoo.org/594768 + local -x LC_ALL=C + # Avoid invoking pgen for cross-compiles. touch Include/graminit.h Python/graminit.c || die diff --git a/dev-lang/python/python-3.4.5.ebuild b/dev-lang/python/python-3.4.5.ebuild index 860da67..f5c7f7d 100644 --- a/dev-lang/python/python-3.4.5.ebuild +++ b/dev-lang/python/python-3.4.5.ebuild @@ -112,10 +112,6 @@ src_configure() { einfo "Disabled modules: ${PYTHON_DISABLE_MODULES}" fi - # Ensure sed works as expected - # https://bugs.gentoo.org/594768 - export LC_COLLATE=C - if [[ "$(gcc-major-version)" -ge 4 ]]; then append-flags -fwrapv fi @@ -173,6 +169,10 @@ src_configure() { } src_compile() { + # Ensure sed works as expected + # https://bugs.gentoo.org/594768 + local -x LC_ALL=C + # Avoid invoking pgen for cross-compiles. touch Include/graminit.h Python/graminit.c || die diff --git a/dev-lang/python/python-3.5.2.ebuild b/dev-lang/python/python-3.5.2.ebuild index 4875c2d..0dfc350 100644 --- a/dev-lang/python/python-3.5.2.ebuild +++ b/dev-lang/python/python-3.5.2.ebuild @@ -111,10 +111,6 @@ src_configure() { einfo "Disabled modules: ${PYTHON_DISABLE_MODULES}" fi - # Ensure sed works as expected - # https://bugs.gentoo.org/594768 - export LC_COLLATE=C - if [[ "$(gcc-major-version)" -ge 4 ]]; then append-flags -fwrapv fi @@ -174,6 +170,10 @@ src_configure() { } src_compile() { + # Ensure sed works as expected + # https://bugs.gentoo.org/594768 + local -x LC_ALL=C + cd "${BUILD_DIR}" || die emake CPPFLAGS= CFLAGS= LDFLAGS=