1 |
commit: 7b296d8cb43097f671cd0a39a4100e2916873e27 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 7 09:30:29 2022 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 7 09:30:29 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b296d8c |
7 |
|
8 |
dev-lang/lua: disable locale tests on musl |
9 |
|
10 |
Bug: https://bugs.gentoo.org/834153 |
11 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
12 |
|
13 |
dev-lang/lua/lua-5.3.6-r102.ebuild | 11 +++++++++++ |
14 |
dev-lang/lua/lua-5.4.4-r102.ebuild | 11 +++++++++++ |
15 |
2 files changed, 22 insertions(+) |
16 |
|
17 |
diff --git a/dev-lang/lua/lua-5.3.6-r102.ebuild b/dev-lang/lua/lua-5.3.6-r102.ebuild |
18 |
index a31377bb535a..bbca587b56da 100644 |
19 |
--- a/dev-lang/lua/lua-5.3.6-r102.ebuild |
20 |
+++ b/dev-lang/lua/lua-5.3.6-r102.ebuild |
21 |
@@ -22,6 +22,17 @@ DEPEND=" |
22 |
RDEPEND="${DEPEND}" |
23 |
BDEPEND="virtual/pkgconfig" |
24 |
|
25 |
+src_prepare() { |
26 |
+ default |
27 |
+ |
28 |
+ if use elibc_musl; then |
29 |
+ # locales on musl are non-functional (#834153) |
30 |
+ # https://wiki.musl-libc.org/open-issues.html#Locale-limitations |
31 |
+ sed -e 's|os.setlocale("pt_BR") or os.setlocale("ptb")|false|g' \ |
32 |
+ -i tests/literals.lua || die |
33 |
+ fi |
34 |
+} |
35 |
+ |
36 |
src_configure() { |
37 |
use deprecated && append-cppflags -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 |
38 |
econf $(use_with readline) |
39 |
|
40 |
diff --git a/dev-lang/lua/lua-5.4.4-r102.ebuild b/dev-lang/lua/lua-5.4.4-r102.ebuild |
41 |
index bf4b915abf75..1667e6078222 100644 |
42 |
--- a/dev-lang/lua/lua-5.4.4-r102.ebuild |
43 |
+++ b/dev-lang/lua/lua-5.4.4-r102.ebuild |
44 |
@@ -22,6 +22,17 @@ DEPEND=" |
45 |
RDEPEND="${DEPEND}" |
46 |
BDEPEND="virtual/pkgconfig" |
47 |
|
48 |
+src_prepare() { |
49 |
+ default |
50 |
+ |
51 |
+ if use elibc_musl; then |
52 |
+ # locales on musl are non-functional (#834153) |
53 |
+ # https://wiki.musl-libc.org/open-issues.html#Locale-limitations |
54 |
+ sed -e 's|os.setlocale("pt_BR") or os.setlocale("ptb")|false|g' \ |
55 |
+ -i tests/literals.lua || die |
56 |
+ fi |
57 |
+} |
58 |
+ |
59 |
src_configure() { |
60 |
use deprecated && append-cppflags -DLUA_COMPAT_5_3 |
61 |
econf $(use_with readline) |