diff options
Diffstat (limited to 'dev-lang/lua/lua-5.3.6-r102.ebuild')
-rw-r--r-- | dev-lang/lua/lua-5.3.6-r102.ebuild | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/dev-lang/lua/lua-5.3.6-r102.ebuild b/dev-lang/lua/lua-5.3.6-r102.ebuild index a31377bb535a..bbca587b56da 100644 --- a/dev-lang/lua/lua-5.3.6-r102.ebuild +++ b/dev-lang/lua/lua-5.3.6-r102.ebuild @@ -22,6 +22,17 @@ DEPEND=" RDEPEND="${DEPEND}" BDEPEND="virtual/pkgconfig" +src_prepare() { + default + + if use elibc_musl; then + # locales on musl are non-functional (#834153) + # https://wiki.musl-libc.org/open-issues.html#Locale-limitations + sed -e 's|os.setlocale("pt_BR") or os.setlocale("ptb")|false|g' \ + -i tests/literals.lua || die + fi +} + src_configure() { use deprecated && append-cppflags -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 econf $(use_with readline) |