commit: 7b296d8cb43097f671cd0a39a4100e2916873e27 Author: David Seifert <soap <AT> gentoo <DOT> org> AuthorDate: Wed Sep 7 09:30:29 2022 +0000 Commit: David Seifert <soap <AT> gentoo <DOT> org> CommitDate: Wed Sep 7 09:30:29 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b296d8c
dev-lang/lua: disable locale tests on musl Bug: https://bugs.gentoo.org/834153 Signed-off-by: David Seifert <soap <AT> gentoo.org> dev-lang/lua/lua-5.3.6-r102.ebuild | 11 +++++++++++ dev-lang/lua/lua-5.4.4-r102.ebuild | 11 +++++++++++ 2 files changed, 22 insertions(+) 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) diff --git a/dev-lang/lua/lua-5.4.4-r102.ebuild b/dev-lang/lua/lua-5.4.4-r102.ebuild index bf4b915abf75..1667e6078222 100644 --- a/dev-lang/lua/lua-5.4.4-r102.ebuild +++ b/dev-lang/lua/lua-5.4.4-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_3 econf $(use_with readline)