summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2022-09-07 11:30:29 +0200
committerDavid Seifert <soap@gentoo.org>2022-09-07 11:30:29 +0200
commit7b296d8cb43097f671cd0a39a4100e2916873e27 (patch)
treec76784cb9078126d6f91c5cd57673decb14e986d /dev-lang
parentgames-action/minetest: suppress upstream optimisation flags (diff)
downloadgentoo-7b296d8cb43097f671cd0a39a4100e2916873e27.tar.gz
gentoo-7b296d8cb43097f671cd0a39a4100e2916873e27.tar.bz2
gentoo-7b296d8cb43097f671cd0a39a4100e2916873e27.zip
dev-lang/lua: disable locale tests on musl
Bug: https://bugs.gentoo.org/834153 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/lua/lua-5.3.6-r102.ebuild11
-rw-r--r--dev-lang/lua/lua-5.4.4-r102.ebuild11
2 files changed, 22 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)
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)