Skip to contentSkip to conversation

package/lua-debug: new package

PATCH Superseded james.hilliard1 at gmail.com 3 participants 8 messages Dec 28, 2018

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 package/lua-debug: new package

From: James Hilliard <[email protected]>

---
 package/Config.in                |  1 +
 package/lua-debug/Config.in      |  7 +++++++
 package/lua-debug/lua-debug.hash |  2 ++
 package/lua-debug/lua-debug.mk   | 16 ++++++++++++++++
 4 files changed, 26 insertions(+)
 create mode 100644 package/lua-debug/Config.in
 create mode 100644 package/lua-debug/lua-debug.hash
 create mode 100644 package/lua-debug/lua-debug.mk
package/Config.in +1 -0
index c3e0691..324830d 100644
@@ -613,6 +613,7 @@ menu "Lua libraries/modules"
 	source "package/lua-csnappy/Config.in"
 	source "package/lua-curl/Config.in"
 	source "package/lua-datafile/Config.in"
+	source "package/lua-debug/Config.in"
 	source "package/lua-ev/Config.in"
 	source "package/lua-fifo/Config.in"
 	source "package/lua-flu/Config.in"
package/lua-debug/Config.in new file +7 -0
new file mode 100644
index 0000000..4d9f368
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_LUA_DEBUG
+	bool "lua-debug"
+	depends on BR2_PACKAGE_HAS_LUAINTERPRETER
+	help
+	  Manage an overall debug state, and associated hint substates.
+
+	  http://lua-stdlib.github.io/_debug
package/lua-debug/lua-debug.hash new file +2 -0
new file mode 100644
index 0000000..2c48711
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 7f6b84283d4b78dafee17e7765dd5f1f8e75c3314169977f4dda0e7873616ce2  std._debug-1.0.1-1.src.rock
package/lua-debug/lua-debug.mk new file +16 -0
new file mode 100644
index 0000000..e18bef7
@@ -0,0 +1,16 @@
+################################################################################
+#
+# lua-debug
+#
+################################################################################
+
+LUA_DEBUG_VERSION_UPSTREAM = 1.0.1
+LUA_DEBUG_VERSION = $(LUA_DEBUG_VERSION_UPSTREAM)-1
+LUA_DEBUG_NAME_UPSTREAM = std._debug
+LUA_DEBUG_SUBDIR = _debug-$(LUA_DEBUG_VERSION_UPSTREAM)
+LUA_DEBUG_ROCKSPEC = $(LUA_DEBUG_NAME_UPSTREAM)-$(LUA_DEBUG_VERSION).rockspec
+LUA_DEBUG_SOURCE = $(LUA_DEBUG_NAME_UPSTREAM)-$(LUA_DEBUG_VERSION).src.rock
+LUA_DEBUG_LICENSE = MIT
+LUA_DEBUG_LICENSE_FILES = LICENSE.md
+
+$(eval $(luarocks-package))
Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/3 package/lua-normalize: new package

From: James Hilliard <[email protected]>

---
 package/Config.in                        |  1 +
 package/lua-normalize/Config.in          | 13 +++++++++++++
 package/lua-normalize/lua-normalize.hash |  2 ++
 package/lua-normalize/lua-normalize.mk   | 14 ++++++++++++++
 4 files changed, 30 insertions(+)
 create mode 100644 package/lua-normalize/Config.in
 create mode 100644 package/lua-normalize/lua-normalize.hash
 create mode 100644 package/lua-normalize/lua-normalize.mk
package/Config.in +1 -0
index 324830d..8d57086 100644
@@ -623,6 +623,7 @@ menu "Lua libraries/modules"
 	source "package/lua-markdown/Config.in"
 	source "package/lua-messagepack/Config.in"
 	source "package/lua-msgpack-native/Config.in"
+	source "package/lua-normalize/Config.in"
 	source "package/lua-periphery/Config.in"
 	source "package/lua-sdl2/Config.in"
 	source "package/lua-stdlib/Config.in"
package/lua-normalize/Config.in new file +13 -0
new file mode 100644
index 0000000..d894d71
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_LUA_NORMALIZE
+	bool "lua-normalize"
+	depends on BR2_PACKAGE_HAS_LUAINTERPRETER
+	select BR2_PACKAGE_LUA_DEBUG # runtime
+	help
+	  This module can inject deterministic versions of core Lua
+	  functions that do not behave identically across all supported Lua
+	  implementations into your module's lexical environment.   Each
+	  function is as thin and fast a version as is possible in each Lua
+	  implementation, evaluating to the Lua C implementation with no
+	  overhead when semantics allow.
+
+	  https://lua-stdlib.github.io/normalize
package/lua-normalize/lua-normalize.hash new file +2 -0
new file mode 100644
index 0000000..831528d
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 50baac6fbcbc6bbe72b63ce0871ec36176d75c04dccc6e368590ba6ef107c67a  std.normalize-2.0.2-1.src.rock
package/lua-normalize/lua-normalize.mk new file +14 -0
new file mode 100644
index 0000000..7ef9aa6
@@ -0,0 +1,14 @@
+################################################################################
+#
+# lua-normalize
+#
+################################################################################
+
+LUA_NORMALIZE_VERSION_UPSTREAM = 2.0.2
+LUA_NORMALIZE_VERSION = $(LUA_NORMALIZE_VERSION_UPSTREAM)-1
+LUA_NORMALIZE_NAME_UPSTREAM = std.normalize
+LUA_NORMALIZE_SUBDIR = normalize-$(LUA_NORMALIZE_VERSION_UPSTREAM)
+LUA_NORMALIZE_LICENSE = MIT
+LUA_NORMALIZE_LICENSE_FILES = LICENSE.md
+
+$(eval $(luarocks-package))
Signature · 1 line
2.7.4
#2 lore raw

PATCH 2/3 package/lua-normalize: new package

Le ven. 28 d?c. 2018 ? 01:37, <[email protected]> a ?crit :

Quoted 63 lines

From: James Hilliard <[email protected]>

---
 package/Config.in                        |  1 +
 package/lua-normalize/Config.in          | 13 +++++++++++++
 package/lua-normalize/lua-normalize.hash |  2 ++
 package/lua-normalize/lua-normalize.mk   | 14 ++++++++++++++
 4 files changed, 30 insertions(+)
 create mode 100644 package/lua-normalize/Config.in
 create mode 100644 package/lua-normalize/lua-normalize.hash
 create mode 100644 package/lua-normalize/lua-normalize.mk
package/Config.in +1 -0
index 324830d..8d57086 100644
@@ -623,6 +623,7 @@ menu "Lua libraries/modules"
        source "package/lua-markdown/Config.in"
        source "package/lua-messagepack/Config.in"
        source "package/lua-msgpack-native/Config.in"
+       source "package/lua-normalize/Config.in"
        source "package/lua-periphery/Config.in"
        source "package/lua-sdl2/Config.in"
        source "package/lua-stdlib/Config.in"
package/lua-normalize/Config.in new file +13 -0
new file mode 100644
index 0000000..d894d71
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_LUA_NORMALIZE
+       bool "lua-normalize"
+       depends on BR2_PACKAGE_HAS_LUAINTERPRETER
+       select BR2_PACKAGE_LUA_DEBUG # runtime
+       help
+         This module can inject deterministic versions of core Lua
+         functions that do not behave identically across all supported Lua
+         implementations into your module's lexical environment.   Each
+         function is as thin and fast a version as is possible in each Lua
+         implementation, evaluating to the Lua C implementation with no
+         overhead when semantics allow.
+
+         https://lua-stdlib.github.io/normalize
package/lua-normalize/lua-normalize.hash new file +2 -0
new file mode 100644
index 0000000..831528d
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 50baac6fbcbc6bbe72b63ce0871ec36176d75c04dccc6e368590ba6ef107c67a

std.normalize-2.0.2-1.src.rock

package/lua-normalize/lua-normalize.mk new file +0 -0
new file mode 100644
index 0000000..7ef9aa6

package/lua-normalize/lua-normalize.mk line 3

Quoted 4 lines
package/lua-normalize/lua-normalize.mk new file +3 -0
@@ -0,0 +1,14 @@
 
+################################################################################
+#
+# lua-normalize

This rock uses the namespace std.
So, in order to avoid future name collision, it must be named lua-std-normalize.

Fran?ois

Quoted 13 lines
package/lua-normalize/lua-normalize.mk new file +11 -1
+#
 
+################################################################################
+
+LUA_NORMALIZE_VERSION_UPSTREAM = 2.0.2
+LUA_NORMALIZE_VERSION = $(LUA_NORMALIZE_VERSION_UPSTREAM)-1
+LUA_NORMALIZE_NAME_UPSTREAM = std.normalize
+LUA_NORMALIZE_SUBDIR = normalize-$(LUA_NORMALIZE_VERSION_UPSTREAM)
+LUA_NORMALIZE_LICENSE = MIT
+LUA_NORMALIZE_LICENSE_FILES = LICENSE.md
+
+$(eval $(luarocks-package))
--
Quoted 3 lines

2.7.4

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

#3 lore raw

PATCH 3/3 package/luaposix: bump version to 34.0.4

In reply to james.hilliard1 at gmail.com

From: James Hilliard <[email protected]>

This version has a new dependency on lua-normalize.

---
 package/luaposix/Config.in     |  1 +
 package/luaposix/luaposix.hash |  2 +-
 package/luaposix/luaposix.mk   | 26 +++++---------------------
 3 files changed, 7 insertions(+), 22 deletions(-)
package/luaposix/Config.in +1 -0
index 91abcb9..f1e5cbd 100644
@@ -1,6 +1,7 @@
 config BR2_PACKAGE_LUAPOSIX
 	bool "luaposix"
 	depends on BR2_PACKAGE_HAS_LUAINTERPRETER
+	select BR2_PACKAGE_LUA_NORMALIZE # runtime
 	# "bit32" is included in Lua 5.2+. luajit has an equivalent
 	# "bit" module, but since it has a different name, luaposix
 	# doesn't find it.
package/luaposix/luaposix.hash +1 -1
index b3984c1..e219407 100644
@@ -1,2 +1,2 @@
 # Locally calculated
-sha256 ba0bc343783fc33958cd02a68cdbfd65430152d9f297f7ed92678b1a305bd5d7  luaposix-34.0.1.tar.gz
+sha256 e262c91bc9f89bacb816a77499e5037ec39bf511d2474a9afca0f9282c2b357b  luaposix-34.0.4-1.src.rock
package/luaposix/luaposix.mk +5 -21
index 779e707..db0a4e7 100644
@@ -4,27 +4,11 @@
 #
 ################################################################################
 
-LUAPOSIX_VERSION = 34.0.1
-LUAPOSIX_SITE = $(call github,luaposix,luaposix,release-v$(LUAPOSIX_VERSION))
+LUAPOSIX_VERSION_UPSTREAM = 34.0.4
+LUAPOSIX_VERSION = $(LUAPOSIX_VERSION_UPSTREAM)-1
+LUAPOSIX_NAME_UPSTREAM = luaposix
+LUAPOSIX_SUBDIR = luaposix-$(LUAPOSIX_VERSION_UPSTREAM)
 LUAPOSIX_LICENSE = MIT
 LUAPOSIX_LICENSE_FILES = LICENSE
-LUAPOSIX_DEPENDENCIES = luainterpreter host-lua
 
-define LUAPOSIX_BUILD_CMDS
-	(cd $(@D); \
-		$(LUA_RUN) build-aux/luke \
-		CC="$(TARGET_CC)" \
-		CFLAGS="$(TARGET_CFLAGS)" \
-		LUA_INCDIR=$(STAGING_DIR)/usr/include \
-	)
-endef
-
-define LUAPOSIX_INSTALL_TARGET_CMDS
-	(cd $(@D); \
-		$(LUA_RUN) build-aux/luke install \
-		INST_LIBDIR="$(TARGET_DIR)/usr/lib/lua/$(LUAINTERPRETER_ABIVER)" \
-		INST_LUADIR="$(TARGET_DIR)/usr/share/lua/$(LUAINTERPRETER_ABIVER)" \
-	)
-endef
-
-$(eval $(generic-package))
+$(eval $(luarocks-package))
Signature · 1 line
2.7.4
#4 lore raw

PATCH 3/3 package/luaposix: bump version to 34.0.4

Le ven. 28 d?c. 2018 ? 01:38, <[email protected]> a ?crit :

Quoted 66 lines

From: James Hilliard <[email protected]>

This version has a new dependency on lua-normalize.

---
 package/luaposix/Config.in     |  1 +
 package/luaposix/luaposix.hash |  2 +-
 package/luaposix/luaposix.mk   | 26 +++++---------------------
 3 files changed, 7 insertions(+), 22 deletions(-)
package/luaposix/Config.in +1 -0
index 91abcb9..f1e5cbd 100644
@@ -1,6 +1,7 @@
 config BR2_PACKAGE_LUAPOSIX
        bool "luaposix"
        depends on BR2_PACKAGE_HAS_LUAINTERPRETER
+       select BR2_PACKAGE_LUA_NORMALIZE # runtime
        # "bit32" is included in Lua 5.2+. luajit has an equivalent
        # "bit" module, but since it has a different name, luaposix
        # doesn't find it.
package/luaposix/luaposix.hash +0 -1
index b3984c1..e219407 100644
@@ -1,2 +1,2 @@
 # Locally calculated
-sha256 ba0bc343783fc33958cd02a68cdbfd65430152d9f297f7ed92678b1a305bd5d7

luaposix-34.0.1.tar.gz
+sha256 e262c91bc9f89bacb816a77499e5037ec39bf511d2474a9afca0f9282c2b357b luaposix-34.0.4-1.src.rock

package/luaposix/luaposix.mk +4 -14
index 779e707..db0a4e7 100644
@@ -4,27 +4,11 @@
 #
 
 ################################################################################
 
-LUAPOSIX_VERSION = 34.0.1
-LUAPOSIX_SITE = $(call
 github,luaposix,luaposix,release-v$(LUAPOSIX_VERSION))
+LUAPOSIX_VERSION_UPSTREAM = 34.0.4
+LUAPOSIX_VERSION = $(LUAPOSIX_VERSION_UPSTREAM)-1
+LUAPOSIX_NAME_UPSTREAM = luaposix
+LUAPOSIX_SUBDIR = luaposix-$(LUAPOSIX_VERSION_UPSTREAM)
 LUAPOSIX_LICENSE = MIT
 LUAPOSIX_LICENSE_FILES = LICENSE
-LUAPOSIX_DEPENDENCIES = luainterpreter host-lua
 
-define LUAPOSIX_BUILD_CMDS
-       (cd $(@D); \
-               $(LUA_RUN) build-aux/luke \
-               CC="$(TARGET_CC)" \
-               CFLAGS="$(TARGET_CFLAGS)" \
-               LUA_INCDIR=$(STAGING_DIR)/usr/include \
-       )
-endef
-
-define LUAPOSIX_INSTALL_TARGET_CMDS
-       (cd $(@D); \

package/luaposix/luaposix.mk line 14

Quoted 10 lines
package/luaposix/luaposix.mk +1 -7
-               $(LUA_RUN) build-aux/luke install \
-
 INST_LIBDIR="$(TARGET_DIR)/usr/lib/lua/$(LUAINTERPRETER_ABIVER)" \
-
 INST_LUADIR="$(TARGET_DIR)/usr/share/lua/$(LUAINTERPRETER_ABIVER)" \
-       )
-endef
-
-$(eval $(generic-package))
+$(eval $(luarocks-package))

The luarocks infrastructure is given for the build.type=builtin. luaposix uses the build.type=command which allows everything (and the weird one).
So, I prefer that this package still use the generic infrastructure.

Fran?ois

Quoted 4 lines

--
2.7.4

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

#5 lore raw

PATCH 1/3 package/lua-debug: new package

In reply to james.hilliard1 at gmail.com

Le ven. 28 d?c. 2018 ? 01:37, <[email protected]> a ?crit :

Quoted 56 lines

From: James Hilliard <[email protected]>

---
 package/Config.in                |  1 +
 package/lua-debug/Config.in      |  7 +++++++
 package/lua-debug/lua-debug.hash |  2 ++
 package/lua-debug/lua-debug.mk   | 16 ++++++++++++++++
 4 files changed, 26 insertions(+)
 create mode 100644 package/lua-debug/Config.in
 create mode 100644 package/lua-debug/lua-debug.hash
 create mode 100644 package/lua-debug/lua-debug.mk
package/Config.in +1 -0
index c3e0691..324830d 100644
@@ -613,6 +613,7 @@ menu "Lua libraries/modules"
        source "package/lua-csnappy/Config.in"
        source "package/lua-curl/Config.in"
        source "package/lua-datafile/Config.in"
+       source "package/lua-debug/Config.in"
        source "package/lua-ev/Config.in"
        source "package/lua-fifo/Config.in"
        source "package/lua-flu/Config.in"
package/lua-debug/Config.in new file +7 -0
new file mode 100644
index 0000000..4d9f368
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_LUA_DEBUG
+       bool "lua-debug"
+       depends on BR2_PACKAGE_HAS_LUAINTERPRETER
+       help
+         Manage an overall debug state, and associated hint substates.
+
+         http://lua-stdlib.github.io/_debug
package/lua-debug/lua-debug.hash new file +2 -0
new file mode 100644
index 0000000..2c48711
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 7f6b84283d4b78dafee17e7765dd5f1f8e75c3314169977f4dda0e7873616ce2

std._debug-1.0.1-1.src.rock

package/lua-debug/ renamed from package/lua-debug/lua-debug.mk +0 -0

lua-debug.mk
new file mode 100644
index 0000000..e18bef7

package/lua-debug/lua-debug.mk line 3

Quoted 4 lines
package/lua-debug/lua-debug.mk new file +3 -0
@@ -0,0 +1,16 @@
 
+################################################################################
+#
+# lua-debug

This rock uses the namespace std.
So, in order to avoid future name collision, it must be named lua-std-debug

Fran?ois

Quoted 17 lines
package/lua-debug/lua-debug.mk new file +8 -0
+#
 
+################################################################################
+
+LUA_DEBUG_VERSION_UPSTREAM = 1.0.1
+LUA_DEBUG_VERSION = $(LUA_DEBUG_VERSION_UPSTREAM)-1
+LUA_DEBUG_NAME_UPSTREAM = std._debug
+LUA_DEBUG_SUBDIR = _debug-$(LUA_DEBUG_VERSION_UPSTREAM)
+LUA_DEBUG_ROCKSPEC =

$(LUA_DEBUG_NAME_UPSTREAM)-$(LUA_DEBUG_VERSION).rockspec +LUA_DEBUG_SOURCE = $(LUA_DEBUG_NAME_UPSTREAM)-$(LUA_DEBUG_VERSION).src.rock

package/lua-debug/lua-debug.mk new file +4 -1
+LUA_DEBUG_LICENSE = MIT
+LUA_DEBUG_LICENSE_FILES = LICENSE.md
+
+$(eval $(luarocks-package))
--
Quoted 3 lines

2.7.4

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

#6 lore raw

PATCH 1/3 package/lua-debug: new package

Hello Fran?ois,

Thanks a lot for your feedback on this series.

Quoted 4 lines · Fran?ois Perrad
Quoted 1 line

+# lua-debug

This rock uses the namespace std.
So, in order to avoid future name collision, it must be named lua-std-debug

Just for my own understanding, could you give a few more details about this? We don't have any package today named lua-std-<something>, so I'm interested in understanding this "namespace std" thing and the namespace pollution issue.

Also, is your automated luarocks package generation logic
(http://patchwork.ozlabs.org/patch/1015895/) going to name such a package lua-std-debug and not lua-debug ?

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#7 lore raw

PATCH 1/3 package/lua-debug: new package

Le ven. 28 d?c. 2018 ? 16:16, Thomas Petazzoni <[email protected]> a ?crit :

Quoted 8 lines

Hello Fran?ois,

Thanks a lot for your feedback on this series.

Quoted 2 lines · Fran?ois Perrad
Quoted 1 line

+# lua-debug

Quoted 10 lines
Quoted 2 lines

This rock uses the namespace std.
So, in order to avoid future name collision, it must be named

lua-std-debug

Just for my own understanding, could you give a few more details about this? We don't have any package today named lua-std-<something>, so I'm interested in understanding this "namespace std" thing and the namespace pollution issue.

The risk of collision is with debug and normalize which are very common word, not with std.

On luarocks, their name are std._debug & std.normalize. See https://luarocks.org/modules/gvvaughan/std._debug and
https://luarocks.org/modules/gvvaughan/std.normalize

Also, is your automated luarocks package generation logic

Quoted 3 lines

(http://patchwork.ozlabs.org/patch/1015895/) going to name such a package lua-std-debug and not lua-debug ?

You could run :

    $ luarocks buildroot std._debug lua-std-debug

std._debug allows to find it on luarocks
lua-std-debug is our name on BR

Fran?ois

Quoted 8 lines

Thanks!

Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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