Misc Lua package fixes
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
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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 theBR2_PACKAGE_HAS_LUAINTERPRETERcondition in each of their Config.in file is redundant and unnecessary. This commit drops such redundant "depends on" statements.Signed-off-by Thomas Petazzoni <[email protected]>
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@@ -1,6 +1,5 @@ config BR2_PACKAGE_LBASE64 bool "lbase64" - depends on BR2_PACKAGE_HAS_LUAINTERPRETER help A base64 library for Luapackage/lua-ev/Config.in +0
-1@@ -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@@ -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 msgpackpackage/luaposix/Config.in +0
-1@@ -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, luaposixpackage/lutok/Config.in +0
-2@@ -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>
PATCH v2 1/2 package/lua*: drop redundant dependencies on BR2_PACKAGE_HAS_LUAINTERPRETER
In reply to Thomas PetazzoniQuoted 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 theBR2_PACKAGE_HAS_LUAINTERPRETERcondition in each of their Config.in file is redundant and unnecessary. This commit drops such redundant "depends on" statements.Signed-off-by Thomas Petazzoni <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH v2 2/2 package/lua-msgpack-native: adjust Config.in comment
In reply to Thomas PetazzoniThe 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
@@ -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
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.
Signed-off-by Thomas Petazzoni <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard