From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] libuci: Lua binding needs mmu and version 5.1
Date: Sat, 5 Apr 2014 19:08:36 +0200 [thread overview]
Message-ID: <20140405190836.7bcda5b5@skate> (raw)
In-Reply-To: <1396708617-7364-1-git-send-email-yegorslists@googlemail.com>
Dear Yegor Yefremov,
On Sat, 5 Apr 2014 16:36:57 +0200, Yegor Yefremov wrote:
> The Lua binding option of libuci uses fork() so it needs the MMU.
>
> Finally, libuci fails to build with Lua 5.2 because it uses functions
> removed from this version. Fix it by activating the option only with
> Lua 5.1.
>
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
> ---
> package/libuci/libuci.mk | 10 +++++++---
> 1 file changed, 7 insertions(+), 3 deletions(-)
I've applied your patch... but I'm not really happy because you clearly
tested the patch insufficiently:
> diff --git a/package/libuci/libuci.mk b/package/libuci/libuci.mk
> index 736b946..42e61ee 100644
> --- a/package/libuci/libuci.mk
> +++ b/package/libuci/libuci.mk
> @@ -10,10 +10,14 @@ LIBUCI_LICENSE = LGPLv2.1
> LIBUCI_INSTALL_STAGING = YES
> LIBUCI_DEPENDENCIES = libubox
>
> -ifeq ($(BR2_PACKAGE_LUA),y)
> - LIBUCI_DEPENDENCIES += lua
> +ifeq ($(BR2_USE_MMU),y) # fork()
> +ifeq ($(BR2_PACKAGE_LUA_5_1),y)
> +LIBUBOX_DEPENDENCIES += lua
> +LIBUBOX_CONF_OPT += -DLUAPATH=$(STAGING_DIR)/usr/lib/lua/5.1 \
> + -DLUA_CFLAGS=-I$(STAGING_DIR)/usr/include
> else
> - LIBUCI_CONF_OPT += -DBUILD_LUA:BOOL=OFF
> +LIBUBOX_CONF_OPT += -DBUILD_LUA:BOOL=OFF
LIBUBOX_* variables in libuci.mk ? Surely this cannot work.
I've fixed that and applied, but it'd be nice if patches were minimally
tested before being submitted :-)
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2014-04-05 17:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-05 14:36 [Buildroot] [PATCH] libuci: Lua binding needs mmu and version 5.1 Yegor Yefremov
2014-04-05 17:08 ` Thomas Petazzoni [this message]
2014-04-05 17:49 ` Yegor Yefremov
2014-04-06 13:02 ` Hadrien Boutteville
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=20140405190836.7bcda5b5@skate \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox