Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/lua/
Date: Fri, 09 Jul 2021 12:00:21
Message-Id: 1625832007.082ff82e321869873bebbbe13435258235481a96.marecki@gentoo
1 commit: 082ff82e321869873bebbbe13435258235481a96
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 9 10:47:24 2021 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 9 12:00:07 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=082ff82e
7
8 dev-lang/lua: keyword 5.1.5-r106 for ~riscv
9
10 Certain string.format operations produce clearly wrong results, for
11 instance "string.format("%d", 2^63)" gives -9223372036854775808 on
12 amd64 yet 9223372036854775807 on riscv; This is the same as with 5.2 but
13 unlike the latter, it doesn't trigger a test failure here due to
14 much smaller test coverage of 5.1. However:
15 - an upstream mailing-list discussion from 2011 [1] suggests
16 string.format("%d") is known to be borked in Lua 5.1 for very large
17 integers;
18 - this is unlikely to have an effect on arithmetics because Lua numbers
19 are floating-point (string formatting this is one of the few places
20 in the interpreter where they get internally converted to integers)
21
22 Not to mention that this doesn't work correctly on several other arches
23 for which lua:5.1 has already not only been keyworded but actually
24 stabilised.
25
26 [1] http://lua-users.org/lists/lua-l/2011-07/msg00876.html
27
28 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
29
30 dev-lang/lua/lua-5.1.5-r106.ebuild | 2 +-
31 1 file changed, 1 insertion(+), 1 deletion(-)
32
33 diff --git a/dev-lang/lua/lua-5.1.5-r106.ebuild b/dev-lang/lua/lua-5.1.5-r106.ebuild
34 index 234289c293b..a8957998816 100644
35 --- a/dev-lang/lua/lua-5.1.5-r106.ebuild
36 +++ b/dev-lang/lua/lua-5.1.5-r106.ebuild
37 @@ -10,7 +10,7 @@ SRC_URI="https://www.lua.org/ftp/${P}.tar.gz"
38
39 LICENSE="MIT"
40 SLOT="5.1"
41 -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 -riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
42 +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
43 IUSE="+deprecated readline"
44
45 COMMON_DEPEND="