Skip to contentSkip to conversation

Misc Lua package fixes

PATCH New Thomas Petazzoni 3 participants 6 messages Dec 31, 2018 – Jan 2, 2019

lore
Share & tools
lore
#0 lore raw

v2 cover Misc Lua package fixes

Hello,

This is a new iteration of my Lua package fixes. They have been rebased on master, following the merge of the Luarocks addon and the changes to many existing Lua packages to match the output of the addon. As part of this, lots of BR2_PACKAGE_HAS_LUAINTERPRETER have been dropped, and only a few remain to be removed in this series.

Thanks,

Thomas

Thomas Petazzoni (2):
package/lua*: drop redundant dependencies on
BR2_PACKAGE_HAS_LUAINTERPRETER
package/lua-msgpack-native: adjust Config.in comment

 package/lbase64/Config.in            | 1 -
 package/lua-ev/Config.in             | 1 -
 package/lua-msgpack-native/Config.in | 3 +--
 package/luaposix/Config.in           | 1 -
 package/lutok/Config.in              | 1 -
 5 files changed, 1 insertion(+), 6 deletions(-)
Signature · 1 line
2.20.1
#1 lore raw

PATCH v2 1/2 package/lua*: drop redundant dependencies on BR2_PACKAGE_HAS_LUAINTERPRETER

All the packages modified by this commit have their Config.in included by package/Config.in inside a BR2_PACKAGE_HAS_LUAINTERPRETER && !BR2_STATIC_LIBS condition. Therefore, duplicating the BR2_PACKAGE_HAS_LUAINTERPRETER condition in each of their Config.in file is redundant and unnecessary. This commit drops such redundant "depends on" statements.

---
 package/lbase64/Config.in            | 1 -
 package/lua-ev/Config.in             | 1 -
 package/lua-msgpack-native/Config.in | 1 -
 package/luaposix/Config.in           | 1 -
 package/lutok/Config.in              | 1 -
 5 files changed, 5 deletions(-)
package/lbase64/Config.in +0 -1
index 34ef943aac..c836ffb5e2 100644
@@ -1,6 +1,5 @@
 config BR2_PACKAGE_LBASE64
 	bool "lbase64"
-	depends on BR2_PACKAGE_HAS_LUAINTERPRETER
 	help
 	  A base64 library for Lua
 
package/lua-ev/Config.in +0 -1
index 52f82e1128..1e89c270a0 100644
@@ -1,6 +1,5 @@
 config BR2_PACKAGE_LUA_EV
 	bool "lua-ev"
-	depends on BR2_PACKAGE_HAS_LUAINTERPRETER
 	select BR2_PACKAGE_LIBEV
 	help
 	  Get access to the libev library from Lua.
package/lua-msgpack-native/Config.in +0 -1
index 3837228fa0..8b6283cc95 100644
@@ -1,6 +1,5 @@
 config BR2_PACKAGE_LUA_MSGPACK_NATIVE
 	bool "lua-msgpack-native"
-	depends on BR2_PACKAGE_HAS_LUAINTERPRETER
 	depends on BR2_PACKAGE_LUA_5_1 || BR2_PACKAGE_LUAJIT
 	help
 	  This is a native, C language implementation of msgpack
package/luaposix/Config.in +0 -1
index d8c30e4fb2..bdc9926b1e 100644
@@ -1,6 +1,5 @@
 config BR2_PACKAGE_LUAPOSIX
 	bool "luaposix"
-	depends on BR2_PACKAGE_HAS_LUAINTERPRETER
 	select BR2_PACKAGE_LUA_STD_NORMALIZE # runtime
 	# "bit32" is included in Lua 5.2+. luajit has an equivalent
 	# "bit" module, but since it has a different name, luaposix
package/lutok/Config.in +0 -1
index ab9c32b6d5..abeaa4011d 100644
@@ -9,4 +9,3 @@ config BR2_PACKAGE_LUTOK
 
 comment "lutok needs a toolchain w/ C++ and full Lua"
 	depends on !BR2_INSTALL_LIBSTDCPP || BR2_PACKAGE_LUAJIT
-	depends on BR2_PACKAGE_HAS_LUAINTERPRETER
Signature · 1 line
2.20.1
#2 lore raw

PATCH v2 1/2 package/lua*: drop redundant dependencies on BR2_PACKAGE_HAS_LUAINTERPRETER

Le lun. 31 d?c. 2018 ? 17:50, Thomas Petazzoni <[email protected]> a ?crit :

Quoted 9 lines

All the packages modified by this commit have their Config.in included by package/Config.in inside a BR2_PACKAGE_HAS_LUAINTERPRETER && !BR2_STATIC_LIBS condition. Therefore, duplicating the BR2_PACKAGE_HAS_LUAINTERPRETER condition in each of their Config.in file is redundant and unnecessary. This commit drops such redundant "depends on" statements.

Quoted 63 lines
---
 package/lbase64/Config.in            | 1 -
 package/lua-ev/Config.in             | 1 -
 package/lua-msgpack-native/Config.in | 1 -
 package/luaposix/Config.in           | 1 -
 package/lutok/Config.in              | 1 -
 5 files changed, 5 deletions(-)
package/lbase64/Config.in +0 -1
index 34ef943aac..c836ffb5e2 100644
@@ -1,6 +1,5 @@
 config BR2_PACKAGE_LBASE64
        bool "lbase64"
-       depends on BR2_PACKAGE_HAS_LUAINTERPRETER
        help
          A base64 library for Lua
 
package/lua-ev/Config.in +0 -1
index 52f82e1128..1e89c270a0 100644
@@ -1,6 +1,5 @@
 config BR2_PACKAGE_LUA_EV
        bool "lua-ev"
-       depends on BR2_PACKAGE_HAS_LUAINTERPRETER
        select BR2_PACKAGE_LIBEV
        help
          Get access to the libev library from Lua.
package/lua-msgpack-native/Config.in +0 -1
index 3837228fa0..8b6283cc95 100644
@@ -1,6 +1,5 @@
 config BR2_PACKAGE_LUA_MSGPACK_NATIVE
        bool "lua-msgpack-native"
-       depends on BR2_PACKAGE_HAS_LUAINTERPRETER
        depends on BR2_PACKAGE_LUA_5_1 || BR2_PACKAGE_LUAJIT
        help
          This is a native, C language implementation of msgpack
package/luaposix/Config.in +0 -1
index d8c30e4fb2..bdc9926b1e 100644
@@ -1,6 +1,5 @@
 config BR2_PACKAGE_LUAPOSIX
        bool "luaposix"
-       depends on BR2_PACKAGE_HAS_LUAINTERPRETER
        select BR2_PACKAGE_LUA_STD_NORMALIZE # runtime
        # "bit32" is included in Lua 5.2+. luajit has an equivalent
        # "bit" module, but since it has a different name, luaposix
package/lutok/Config.in +0 -2
index ab9c32b6d5..abeaa4011d 100644
@@ -9,4 +9,3 @@ config BR2_PACKAGE_LUTOK
 
 comment "lutok needs a toolchain w/ C++ and full Lua"
        depends on !BR2_INSTALL_LIBSTDCPP || BR2_PACKAGE_LUAJIT
-       depends on BR2_PACKAGE_HAS_LUAINTERPRETER
--
Quoted 3 lines

2.20.1

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20190101/6098605d/attachment.html>

#3 lore raw

PATCH v2 1/2 package/lua*: drop redundant dependencies on BR2_PACKAGE_HAS_LUAINTERPRETER

In reply to Thomas Petazzoni
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

All the packages modified by this commit have their Config.in included by package/Config.in inside a BR2_PACKAGE_HAS_LUAINTERPRETER && !BR2_STATIC_LIBS condition. Therefore, duplicating the BR2_PACKAGE_HAS_LUAINTERPRETER condition in each of their Config.in file is redundant and unnecessary. This commit drops such redundant "depends on" statements.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#4 lore raw

PATCH v2 2/2 package/lua-msgpack-native: adjust Config.in comment

In reply to Thomas Petazzoni

The Config.in comment of lua-msgpack-native only indicates that it needs Lua 5.1, while the package can actually build with LuaJIT. This commit adjusts the comment to match the reality.

---
 package/lua-msgpack-native/Config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/lua-msgpack-native/Config.in +1 -1
index 8b6283cc95..8af508dd95 100644
@@ -7,6 +7,6 @@ config BR2_PACKAGE_LUA_MSGPACK_NATIVE
 
 	  https://github.com/kengonakajima/lua-msgpack-native
 
-comment "lua-msgpack-native needs a Lua 5.1 interpreter"
+comment "lua-msgpack-native needs Lua 5.1 or LuaJIT"
 	depends on !BR2_PACKAGE_LUA_5_1
 	depends on !BR2_PACKAGE_LUAJIT
Signature · 1 line
2.20.1
#5 lore raw

PATCH v2 2/2 package/lua-msgpack-native: adjust Config.in comment

Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

The Config.in comment of lua-msgpack-native only indicates that it needs Lua 5.1, while the package can actually build with LuaJIT. This commit adjusts the comment to match the reality.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard