From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [RFC] lua: always use host-lua for host-luainterpreter
Date: Mon, 8 Jan 2018 23:43:07 +0100 [thread overview]
Message-ID: <20180108234307.612cdd97@windsurf> (raw)
In-Reply-To: <20171021205457.18687-1-peter@korsgaard.com>
Fran?ois,
Could you comment on this patch that touches Lua packaging in Buildroot?
It's been there for a bit more than 2 months, so unless you reply to
say that you disagree, I'll apply this patch in the next days.
Thanks!
Thomas
On Sat, 21 Oct 2017 22:54:57 +0200, Peter Korsgaard wrote:
> Similar to how we do for openssl.
>
> host-luainterpreter is only used by the luarocks infrastructure, and there
> is afaik no specific reason why the host lua variant must match the target one.
>
> Luajit only supports a limited number of architectures, so building it for
> the host limits the architectures Buildroot can be used on (E.G. powerpc64
> autobuilders).
>
> To fix this, always use host-lua. Slightly rework lua.mk to ensure
> host-lua-5.1 is used when luajit is selected, and drop the logic for using
> host-luajit.
>
> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
> ---
> package/lua/lua.mk | 6 +++---
> package/luainterpreter/Config.in | 4 ++++
> package/luainterpreter/luainterpreter.mk | 2 +-
> package/luarocks/luarocks.mk | 4 ----
> 4 files changed, 8 insertions(+), 8 deletions(-)
>
> diff --git a/package/lua/lua.mk b/package/lua/lua.mk
> index 0ac2e0e25d..851dc8f734 100644
> --- a/package/lua/lua.mk
> +++ b/package/lua/lua.mk
> @@ -16,10 +16,10 @@ endif
> LUA_SITE = http://www.lua.org/ftp
> LUA_INSTALL_STAGING = YES
> LUA_LICENSE = MIT
> -ifeq ($(BR2_PACKAGE_LUA_5_1),y)
> -LUA_LICENSE_FILES = COPYRIGHT
> -else
> +ifeq ($(BR2_PACKAGE_LUA_5_2)$(BR2_PACKAGE_LUA_5_3),y)
> LUA_LICENSE_FILES = doc/readme.html
> +else
> +LUA_LICENSE_FILES = COPYRIGHT
> endif
>
> LUA_PROVIDES = luainterpreter
> diff --git a/package/luainterpreter/Config.in b/package/luainterpreter/Config.in
> index e89a9b84d2..7bc54d862f 100644
> --- a/package/luainterpreter/Config.in
> +++ b/package/luainterpreter/Config.in
> @@ -7,3 +7,7 @@ config BR2_PACKAGE_PROVIDES_LUAINTERPRETER
>
> config BR2_PACKAGE_LUAINTERPRETER_ABI_VERSION
> string
> +
> +config BR2_PACKAGE_PROVIDES_HOST_LUAINTERPRETER
> + string
> + default "host-lua"
> diff --git a/package/luainterpreter/luainterpreter.mk b/package/luainterpreter/luainterpreter.mk
> index cb1d5dde18..58d421b183 100644
> --- a/package/luainterpreter/luainterpreter.mk
> +++ b/package/luainterpreter/luainterpreter.mk
> @@ -20,4 +20,4 @@ endif
> $(eval $(virtual-package))
> $(eval $(host-virtual-package))
>
> -LUA_RUN = $(HOST_DIR)/bin/$(call qstrip,$(BR2_PACKAGE_PROVIDES_LUAINTERPRETER))
> +LUA_RUN = $(HOST_DIR)/bin/lua
> diff --git a/package/luarocks/luarocks.mk b/package/luarocks/luarocks.mk
> index e050cb553c..ea57530633 100644
> --- a/package/luarocks/luarocks.mk
> +++ b/package/luarocks/luarocks.mk
> @@ -23,10 +23,6 @@ HOST_LUAROCKS_CONF_OPTS = \
> --sysconfdir=$(LUAROCKS_CONFIG_DIR) \
> --with-lua=$(HOST_DIR)
>
> -ifeq ($(BR2_PACKAGE_LUAJIT),y)
> -HOST_LUAROCKS_CONF_OPTS += --lua-suffix=jit
> -endif
> -
> define HOST_LUAROCKS_CONFIGURE_CMDS
> cd $(@D) && ./configure $(HOST_LUAROCKS_CONF_OPTS)
> endef
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
next prev parent reply other threads:[~2018-01-08 22:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-21 20:54 [Buildroot] [RFC] lua: always use host-lua for host-luainterpreter Peter Korsgaard
2018-01-08 22:43 ` Thomas Petazzoni [this message]
2018-03-31 19:02 ` Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180108234307.612cdd97@windsurf \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.