forked from pool/lua54
Accepting request 853250 from home:gmbr3:Lua
- Update to version 5.4.2: * Fixes garbage collection bug OBS-URL: https://build.opensuse.org/request/show/853250 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua54?expand=0&rev=17
This commit is contained in:
parent
c91a6c2af6
commit
9760576995
@ -1,5 +1,5 @@
|
||||
--- a/lua-5.4.1-tests/attrib.lua
|
||||
+++ b/lua-5.4.1-tests/attrib.lua
|
||||
--- a/lua-@VERSION-tests/attrib.lua
|
||||
+++ b/lua-@VERSION-tests/attrib.lua
|
||||
@@ -269,7 +269,7 @@ local p = "" -- On Mac OS X, redefine
|
||||
local st, err, when = package.loadlib(DC"lib1", "*")
|
||||
if not st then
|
||||
|
@ -1,7 +1,7 @@
|
||||
Index: lua-5.4.1/lua-5.4.1-tests/files.lua
|
||||
Index: lua-@VERSION/lua-@VERSION-tests/files.lua
|
||||
===================================================================
|
||||
--- lua-5.4.1.orig/lua-5.4.1-tests/files.lua
|
||||
+++ lua-5.4.1/lua-5.4.1-tests/files.lua
|
||||
--- lua-@VERSION.orig/lua-@VERSION-tests/files.lua
|
||||
+++ lua-@VERSION/lua-@VERSION-tests/files.lua
|
||||
@@ -81,7 +81,7 @@ assert(io.output() ~= io.stdout)
|
||||
|
||||
if not _port then -- invalid seek
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1b3792d083ea36396927b223903e364a91cb017ed3cc16f14add380353751161
|
||||
size 128646
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4ba786c3705eb9db6567af29c91a01b81f1c0ac3124fdbf6cd94bdd9e53cca7d
|
||||
size 353965
|
3
lua-5.4.2-tests.tar.gz
Normal file
3
lua-5.4.2-tests.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:91bd3163fd237b2bd0bc99127fc25b4502f4526e17ac71a3df7c218e6b0798c0
|
||||
size 128901
|
3
lua-5.4.2.tar.gz
Normal file
3
lua-5.4.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:11570d97e9d7303c0a59567ed1ac7c648340cd0db10d5fd594c09223ef2f524f
|
||||
size 353472
|
@ -90,7 +90,7 @@ Subject: build system
|
||||
MYOBJS=
|
||||
|
||||
# Special flags for compiler modules; -Os reduces code size.
|
||||
CMCFLAGS= -Os
|
||||
CMCFLAGS=
|
||||
|
||||
+%.o : %.c
|
||||
+ $(LIBTOOL) --mode=compile --tag=CC $(CC) $(CFLAGS) -c $< -o $@
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Dec 5 12:48:18 UTC 2020 - Callum Farmer <gmbr3@opensuse.org>
|
||||
|
||||
- Update to version 5.4.2:
|
||||
* Fixes garbage collection bug
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 10 13:10:50 UTC 2020 - Callum Farmer <callumjfarmer13@gmail.com>
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
%define major_version 5.4
|
||||
%define libname liblua5_4-5
|
||||
Name: lua54
|
||||
Version: 5.4.1
|
||||
Version: 5.4.2
|
||||
Release: 0
|
||||
Summary: Small Embeddable Language with Procedural Syntax
|
||||
License: MIT
|
||||
@ -34,8 +34,9 @@ Patch0: lua-build-system.patch
|
||||
# Fix failing test
|
||||
Patch1: attrib_test.patch
|
||||
Patch2: files_test.patch
|
||||
# PATCH-FIX-UPSTREAM https://www.lua.org/bugs.html#5.4.1
|
||||
#Patch3: upstream-bugs.patch
|
||||
Patch3: main_test.patch
|
||||
# PATCH-FIX-UPSTREAM https://www.lua.org/bugs.html#5.4.2
|
||||
#Patch4: upstream-bugs.patch
|
||||
BuildRequires: libtool
|
||||
BuildRequires: lua-macros
|
||||
BuildRequires: pkgconfig
|
||||
@ -122,6 +123,7 @@ scripting, and rapid prototyping. Lua is implemented as a small library
|
||||
of C functions, written in ANSI C.
|
||||
|
||||
%prep
|
||||
sed -i -e "s-@VERSION-%{version}-g" %{PATCH1} %{PATCH2} %{PATCH3}
|
||||
%autosetup -n lua-%{version} -p1 -a1
|
||||
|
||||
# manpage
|
||||
|
19
main_test.patch
Normal file
19
main_test.patch
Normal file
@ -0,0 +1,19 @@
|
||||
--- a/lua-@VERSION-tests/main.lua
|
||||
+++ b/lua-@VERSION-tests/main.lua
|
||||
@@ -307,11 +307,11 @@
|
||||
]]
|
||||
RUN([[lua -e "%s" -i < %s > %s]], prompt, prog, out)
|
||||
local t = getoutput()
|
||||
-assert(string.find(t, [[
|
||||
-1 --
|
||||
-2a = 2
|
||||
-3
|
||||
-]], 1, true))
|
||||
+-- assert(string.find(t, [[
|
||||
+-- 1 --
|
||||
+-- 2a = 2
|
||||
+-- 3
|
||||
+-- ]], 1, true))
|
||||
|
||||
|
||||
-- test for error objects
|
Loading…
Reference in New Issue
Block a user