* [Buildroot] [PATCH] luarocks: bump to version 3.0.1
@ 2018-08-15 14:31 Francois Perrad
2018-08-15 19:13 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Francois Perrad @ 2018-08-15 14:31 UTC (permalink / raw)
To: buildroot
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
.../0001-allow-libluajit-detection.patch | 32 -------------------
package/luarocks/luarocks.hash | 2 +-
package/luarocks/luarocks.mk | 8 ++---
3 files changed, 4 insertions(+), 38 deletions(-)
delete mode 100644 package/luarocks/0001-allow-libluajit-detection.patch
diff --git a/package/luarocks/0001-allow-libluajit-detection.patch b/package/luarocks/0001-allow-libluajit-detection.patch
deleted file mode 100644
index c5e52f428..000000000
--- a/package/luarocks/0001-allow-libluajit-detection.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-From 961269271134e711bcfffebb0f179ffddcbf3d5a Mon Sep 17 00:00:00 2001
-From: Francois Perrad <francois.perrad@gadz.org>
-Date: Sun, 29 Jul 2018 11:17:34 +0200
-Subject: [PATCH] allow libluajit detection
-
-This detection was done only if luarocks is runned by luajit.
-But on Buildroot, luarocks is always runned by lua.
-
-Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
----
- src/luarocks/deps.lua | 4 +---
- 1 file changed, 1 insertion(+), 3 deletions(-)
-
-diff --git a/src/luarocks/deps.lua b/src/luarocks/deps.lua
-index 8403f12..c1c0220 100644
---- a/src/luarocks/deps.lua
-+++ b/src/luarocks/deps.lua
-@@ -511,10 +511,8 @@ function deps.check_lua(vars)
- "lua-" .. cfg.lua_version,
- "lua-" .. shortv,
- "lua",
-+ "luajit-" .. cfg.lua_version,
- }
-- if cfg.luajit_version then
-- table.insert(libnames, 1, "luajit-" .. cfg.lua_version)
-- end
- for _, libname in ipairs(libnames) do
- local ok = check_external_dependency("LUA", { library = libname }, vars, "build")
- if ok then
---
-2.17.1
-
diff --git a/package/luarocks/luarocks.hash b/package/luarocks/luarocks.hash
index 87ef6827c..4aa791cb4 100644
--- a/package/luarocks/luarocks.hash
+++ b/package/luarocks/luarocks.hash
@@ -1,2 +1,2 @@
# Locally calculated
-sha256 a43fffb997100f11cccb529a3db5456ce8dab18171a5cb3645f948147b6f64a1 luarocks-3.0.0.tar.gz
+sha256 b989c4b60d6c9edcd65169e5e42fcffbd39cdbebe6b138fa5aea45102f8d9ec0 luarocks-3.0.1.tar.gz
diff --git a/package/luarocks/luarocks.mk b/package/luarocks/luarocks.mk
index af64f72a6..55fbd7b5d 100644
--- a/package/luarocks/luarocks.mk
+++ b/package/luarocks/luarocks.mk
@@ -4,15 +4,15 @@
#
################################################################################
-LUAROCKS_VERSION = 3.0.0
+LUAROCKS_VERSION = 3.0.1
LUAROCKS_SITE = http://luarocks.org/releases
LUAROCKS_LICENSE = MIT
LUAROCKS_LICENSE_FILES = COPYING
HOST_LUAROCKS_DEPENDENCIES = host-luainterpreter
-LUAROCKS_CONFIG_DIR = $(HOST_DIR)/etc/luarocks
-LUAROCKS_CONFIG_FILE = $(LUAROCKS_CONFIG_DIR)/config-$(LUAINTERPRETER_ABIVER).lua
+LUAROCKS_CONFIG_DIR = $(HOST_DIR)/etc
+LUAROCKS_CONFIG_FILE = $(LUAROCKS_CONFIG_DIR)/luarocks/config-$(LUAINTERPRETER_ABIVER).lua
LUAROCKS_CFLAGS = $(TARGET_CFLAGS) -fPIC
HOST_LUAROCKS_CONF_OPTS = \
@@ -28,8 +28,6 @@ define HOST_LUAROCKS_INSTALL_CMDS
rm -f $(LUAROCKS_CONFIG_FILE)
$(MAKE1) -C $(@D) install
echo "-- BR cross-compilation" >> $(LUAROCKS_CONFIG_FILE)
- echo "variables.LUA_DIR = [[$(STAGING_DIR)/usr]]" >> $(LUAROCKS_CONFIG_FILE)
- echo "variables.LUA_BINDIR = [[$(STAGING_DIR)/usr/bin]]" >> $(LUAROCKS_CONFIG_FILE)
echo "variables.LUA_INCDIR = [[$(STAGING_DIR)/usr/include]]" >> $(LUAROCKS_CONFIG_FILE)
echo "variables.LUA_LIBDIR = [[$(STAGING_DIR)/usr/lib]]" >> $(LUAROCKS_CONFIG_FILE)
echo "variables.CC = [[$(TARGET_CC)]]" >> $(LUAROCKS_CONFIG_FILE)
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] luarocks: bump to version 3.0.1
2018-08-15 14:31 [Buildroot] [PATCH] luarocks: bump to version 3.0.1 Francois Perrad
@ 2018-08-15 19:13 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2018-08-15 19:13 UTC (permalink / raw)
To: buildroot
Hello Fran?ois,
On Wed, 15 Aug 2018 16:31:04 +0200, Francois Perrad wrote:
> Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
> ---
> .../0001-allow-libluajit-detection.patch | 32 -------------------
> package/luarocks/luarocks.hash | 2 +-
> package/luarocks/luarocks.mk | 8 ++---
> 3 files changed, 4 insertions(+), 38 deletions(-)
> delete mode 100644 package/luarocks/0001-allow-libluajit-detection.patch
I was about to apply, but it doesn't apply to next. I could fix the
conflicts myself, but I also found that the commit log was a bit too
short. Could you add some details as to why the patch can be dropped ?
Why is sysconfdir changed to /etc instead of /etc/luarocks ?
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-08-15 19:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-15 14:31 [Buildroot] [PATCH] luarocks: bump to version 3.0.1 Francois Perrad
2018-08-15 19:13 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox