On my LANG=ru_RU.UTF-8 locale configure step fails as:
File "scripts/mk_make.py", line 21, in <module>
...
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
$(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 <module>
+ # 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() {