SHA256
1
0
forked from pool/lua54

Accepting request 1189368 from devel:languages:lua

OBS-URL: https://build.opensuse.org/request/show/1189368
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lua54?expand=0&rev=28
This commit is contained in:
Dominique Leuenberger 2024-07-26 14:12:24 +00:00 committed by Git OBS Bridge
commit ad02b90852
7 changed files with 20 additions and 37 deletions

BIN
lua-5.4.6-tests.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
lua-5.4.6.tar.gz (Stored with Git LFS)

Binary file not shown.

3
lua-5.4.7-tests.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8a4898ffe4c7613c8009327a0722db7a41ef861d526c77c5b46114e59ebf811e
size 136602

3
lua-5.4.7.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9fbf5e28ef86c69858f6d3d34eccc32e911c1a28b4120ff3e84aaa70cfbf1e30
size 374097

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Wed Jul 24 11:26:59 UTC 2024 - Callum Farmer <gmbr3@opensuse.org>
- Update to version 5.4.7:
* Fixed 11 bugs from 5.4.6
* Tests now run on shared libraries
- Removed skip-tests_big-endian.patch: fixed upstream
-------------------------------------------------------------------
Thu Dec 7 15:03:40 UTC 2023 - Andreas Schwab <schwab@suse.de>

View File

@ -26,7 +26,7 @@
%define major_version 5.4
%define libname liblua5_4-5
Name: lua54%{name_ext}
Version: 5.4.6
Version: 5.4.7
Release: 0
Summary: Small Embeddable Language with Procedural Syntax
License: GPL-3.0-or-later
@ -43,9 +43,6 @@ Patch1: attrib_test.patch
Patch2: files_test.patch
Patch3: main_test.patch
Patch6: shared_link.patch
# PATCH-FIX-UPSTREAM skip-tests_big-endian.patch bsc#1216930 mcepl@suse.com
# patch out little-endian-only test
Patch7: skip-tests_big-endian.patch
# PATCH-FIX-UPSTREAM inspect errno only after failure
Patch8: execresult.patch
Requires(post): update-alternatives
@ -55,6 +52,7 @@ Obsoletes: lua < %{version}
Provides: Lua(API) = %{major_version}
%if "%{flavor}" == "test"
BuildRequires: lua54
BuildRequires: lua54-devel
%else
BuildRequires: libtool
BuildRequires: lua-macros
@ -210,6 +208,10 @@ ln -sf %{_sysconfdir}/alternatives/lua.pc %{buildroot}%{_libdir}/pkgconfig/lua.p
%check
cd testes
pushd libs
make all LUA_DIR=%{_includedir}/lua%{major_version}
cp *.so ..
popd
LD_LIBRARY_PATH=%{_libdir} %{_bindir}/lua%{major_version} all.lua
%endif

View File

@ -1,27 +0,0 @@
---
testes/calls.lua | 14 --------------
1 file changed, 14 deletions(-)
--- a/testes/calls.lua
+++ b/testes/calls.lua
@@ -342,20 +342,6 @@ do -- another bug (in 5.4.0)
end
-do -- another bug (since 5.2)
- -- corrupted binary dump: list of upvalue names is larger than number
- -- of upvalues, overflowing the array of upvalues.
- local code =
- "\x1b\x4c\x75\x61\x54\x00\x19\x93\x0d\x0a\x1a\x0a\x04\x08\x08\x78\x56\z
- \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x28\x77\x40\x00\x86\x40\z
- \x74\x65\x6d\x70\x81\x81\x01\x00\x02\x82\x48\x00\x02\x00\xc7\x00\x01\z
- \x00\x80\x80\x80\x82\x00\x00\x80\x81\x82\x78\x80\x82\x81\x86\x40\x74\z
- \x65\x6d\x70"
-
- assert(load(code)) -- segfaults in previous versions
-end
-
-
x = string.dump(load("x = 1; return x"))
a = assert(load(read1(x), nil, "b"))
assert(a() == 1 and _G.x == 1)