Skip to contentSkip to conversation

lua: bump to version 5.3.4

PATCH New Francois Perrad 2 participants 2 messages Jan 30, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lua: bump to version 5.3.4

---
 package/lua/5.3.3/0012-fix-loop-parser.patch       | 31 ----------------------
 package/lua/{5.3.3 => 5.3.4}/0001-root-path.patch  |  2 +-
 .../0002-shared-libs-for-lua.patch                 |  0
 package/lua/{5.3.3 => 5.3.4}/0004-lua-pc.patch     |  2 +-
 package/lua/{5.3.3 => 5.3.4}/0011-linenoise.patch  |  2 +-
 package/lua/lua.hash                               |  4 +--
 package/lua/lua.mk                                 |  3 ++-
 7 files changed, 7 insertions(+), 37 deletions(-)
 delete mode 100644 package/lua/5.3.3/0012-fix-loop-parser.patch
 rename package/lua/{5.3.3 => 5.3.4}/0001-root-path.patch (95%)
 rename package/lua/{5.3.3 => 5.3.4}/0002-shared-libs-for-lua.patch (100%)
 rename package/lua/{5.3.3 => 5.3.4}/0004-lua-pc.patch (98%)
 rename package/lua/{5.3.3 => 5.3.4}/0011-linenoise.patch (97%)
package/lua/5.3.3/0012-fix-loop-parser.patch deleted +0 -31
deleted file mode 100644
index 7b321e5..0000000
@@ -1,31 +0,0 @@
-Expression list with four or more expressions in a 'for' loop can crash the interpreter.
-
-Fetch from: https://www.lua.org/bugs.html#5.3.3-1
-
-Signed-off-by: Francois Perrad <[email protected]>
-
---- a/src/lparser.c
-+++ b/src/lparser.c
-@@ -323,6 +323,8 @@
-       luaK_nil(fs, reg, extra);
-     }
-   }
-+  if (nexps > nvars)
-+    ls->fs->freereg -= nexps - nvars;  /* remove extra values */
- }
- 
- 
-@@ -1160,11 +1162,8 @@
-     int nexps;
-     checknext(ls, '=');
-     nexps = explist(ls, &e);
--    if (nexps != nvars) {
-+    if (nexps != nvars)
-       adjust_assign(ls, nvars, nexps, &e);
--      if (nexps > nvars)
--        ls->fs->freereg -= nexps - nvars;  /* remove extra values */
--    }
-     else {
-       luaK_setoneret(ls->fs, &e);  /* close last expression */
-       luaK_storevar(ls->fs, &lh->v, &e);
--- 
package/lua/5.3.4/0001-root-path.patch renamed from package/lua/5.3.3/0001-root-path.patch +1 -1
similarity index 95%
rename from package/lua/5.3.3/0001-root-path.patch
rename to package/lua/5.3.4/0001-root-path.patch
index d8ef8d0..a44c55c 100644
@@ -6,7 +6,7 @@ Index: b/src/luaconf.h
 ===================================================================
 --- a/src/luaconf.h
 +++ b/src/luaconf.h
-@@ -188,7 +188,7 @@
+@@ -200,7 +200,7 @@
 
  #else			/* }{ */
 
package/lua/5.3.4/0002-shared-libs-for-lua.patch renamed from package/lua/5.3.3/0002-shared-libs-for-lua.patch +0 -0
similarity index 100%
rename from package/lua/5.3.3/0002-shared-libs-for-lua.patch
rename to package/lua/5.3.4/0002-shared-libs-for-lua.patch
package/lua/5.3.4/0004-lua-pc.patch renamed from package/lua/5.3.3/0004-lua-pc.patch +1 -1
similarity index 98%
rename from package/lua/5.3.3/0004-lua-pc.patch
rename to package/lua/5.3.4/0004-lua-pc.patch
index edf7ec3..615a7db 100644
@@ -14,7 +14,7 @@ Index: b/etc/lua.pc
 +# grep '^V=' ../Makefile
 +V= 5.3
 +# grep '^R=' ../Makefile
-+R= 5.3.3
++R= 5.3.4
 +
 +# grep '^INSTALL_.*=' ../Makefile | sed 's/INSTALL_TOP/prefix/'
 +prefix= /usr
package/lua/5.3.4/0011-linenoise.patch renamed from package/lua/5.3.3/0011-linenoise.patch +1 -1
similarity index 97%
rename from package/lua/5.3.3/0011-linenoise.patch
rename to package/lua/5.3.4/0011-linenoise.patch
index f3ced2b..574e6c8 100644
@@ -8,7 +8,7 @@ Index: b/src/lua.c
 ===================================================================
 --- a/src/lua.c
 +++ b/src/lua.c
-@@ -83,6 +83,13 @@
+@@ -85,6 +85,13 @@
  #define lua_saveline(L,line)	((void)L, add_history(line))
  #define lua_freeline(L,b)	((void)L, free(b))
  
package/lua/lua.hash +2 -2
index 04459e9..32e7472 100644
@@ -1,6 +1,6 @@
 # Hashes from: http://www.lua.org/ftp/
-md5 703f75caa4fdf4a911c1a72e67a27498           lua-5.3.3.tar.gz
-sha1 a0341bc3d1415b814cc738b2ec01ae56045d64ef  lua-5.3.3.tar.gz
+md5 53a9c68bcc0eda58bdc2095ad5cdfc63           lua-5.3.4.tar.gz
+sha1 79790cfd40e09ba796b01a571d4d63b52b1cd950  lua-5.3.4.tar.gz
 
 md5 913fdb32207046b273fdb17aad70be13           lua-5.2.4.tar.gz
 sha1 ef15259421197e3d85b7d6e4871b8c26fd82c1cf  lua-5.2.4.tar.gz
package/lua/lua.mk +2 -1
index 131b88d..7c8c93e 100644
@@ -5,7 +5,7 @@
 ################################################################################
 
 ifeq ($(BR2_PACKAGE_LUA_5_3),y)
-LUA_VERSION = 5.3.3
+LUA_VERSION = 5.3.4
 else
 ifeq ($(BR2_PACKAGE_LUA_5_2),y)
 LUA_VERSION = 5.2.4
@@ -56,6 +56,7 @@ endif
 
 ifeq ($(BR2_PACKAGE_LUA_32BITS),y)
 define LUA_32BITS_LUACONF
+	@$(call MESSAGE,"Patching src/luaconf.h")
 	$(SED) 's/\/\* #define LUA_32BITS \*\//#define LUA_32BITS/' $(@D)/src/luaconf.h
 endef
 
Signature · 1 line
2.9.3
#1 lore raw

PATCH 1/1 lua: bump to version 5.3.4

Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Francois" == Francois Perrad <[email protected]> writes:

ifeq ($(BR2_PACKAGE_LUA_5_3),y)

package/lua/lua.mk +1 -1
-LUA_VERSION = 5.3.3
+LUA_VERSION = 5.3.4
 else
 ifeq ($(BR2_PACKAGE_LUA_5_2),y)
 LUA_VERSION = 5.2.4

package/lua/lua.mk endif · line 61

Quoted 6 lines
package/lua/lua.mk +1 -0
@@ -56,6 +56,7 @@ endif
 
 ifeq ($(BR2_PACKAGE_LUA_32BITS),y)
 define LUA_32BITS_LUACONF
+	@$(call MESSAGE,"Patching src/luaconf.h")
 	$(SED) 's/\/\* #define LUA_32BITS \*\//#define LUA_32BITS/' $(@D)/src/luaconf.h
 endef

So far no other packages add custom MESSAGE calls, so unless there's a strong reason to display this I would prefer not to.

Committed with the MESSAGE line dropped, thanks.

Signature · 1 line
Bye, Peter Korsgaard