From 8111d0a41b274000576ef2fd1be3e2e9d9afa1d7 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Wed, 15 Feb 2017 23:00:44 +0000 Subject: [PATCH] sci-mathematics/z3: workaround configure failure on non-ASCII On my LANG=ru_RU.UTF-8 locale configure step fails as: File "scripts/mk_make.py", line 21, in ... UnicodeEncodeError: 'ascii' codec can't encode characters in position 80-82: ordinal not in range(128) Workaround configure breakage by stabilising locale. Package-Manager: Portage-2.3.3, Repoman-2.3.1 --- sci-mathematics/z3/z3-4.5.0.ebuild | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sci-mathematics/z3/z3-4.5.0.ebuild b/sci-mathematics/z3/z3-4.5.0.ebuild index 30eea151404e..0cd4becd5485 100644 --- a/sci-mathematics/z3/z3-4.5.0.ebuild +++ b/sci-mathematics/z3/z3-4.5.0.ebuild @@ -79,8 +79,13 @@ src_configure() { $(usex python --python "") \ $(usex java --java "") elog ./configure "$@" - ./configure "$@" || die - ${EPYTHON} scripts/mk_make.py || die + # LANG=C to force external tools to output ascii text only + # otherwise configure crashes as: + # File "scripts/mk_make.py", line 21, in + # UnicodeEncodeError: 'ascii' codec can't encode characters in position 80-82: ordinal not in range(128) + LANG=C ./configure "$@" || die + elog ${EPYTHON} scripts/mk_make.py "$@" + LANG=C ${EPYTHON} scripts/mk_make.py || die } src_compile() { -- 2.26.2