From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [lua V4 4/4] lua-iconv: new package
Date: Sun, 12 Jul 2015 18:51:20 +0200 [thread overview]
Message-ID: <20150712185120.42e3fea5@free-electrons.com> (raw)
In-Reply-To: <1405780738-31323-5-git-send-email-francois.perrad@gadz.org>
Dear Francois Perrad,
On Sat, 19 Jul 2014 16:38:58 +0200, Francois Perrad wrote:
> diff --git a/package/lua-iconv/Config.in b/package/lua-iconv/Config.in
> new file mode 100644
> index 0000000..cad7c7c
> --- /dev/null
> +++ b/package/lua-iconv/Config.in
> @@ -0,0 +1,8 @@
> +config BR2_PACKAGE_LUA_ICONV
> + bool "lua-iconv"
> + select BR2_PACKAGE_LIBICONV
> + depends on !BR2_ENABLE_LOCALE
As Arnout told you in February 2014, this needs to be:
select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
Back then, you replied:
""
I don't think,
lua-iconv is binding of iconv, so iconv is not an optional dependency
""
But what you're missing is that when the toolchain has locale support,
the iconv() function is provided by the C library itself. libiconv is
only needed to provide iconv() for toolchains that don't have locale
support.
So basically, if BR2_ENABLE_LOCALE=y, the C library provides iconv()
and lua-iconv doesn't need any dependency on libiconv. However, when
BR2_ENABLE_LOCALE is not set, the C library does *not* provide iconv(),
and lua-iconv needs to depend on libiconv.
> diff --git a/package/lua-iconv/lua-iconv.mk b/package/lua-iconv/lua-iconv.mk
> new file mode 100644
> index 0000000..22f66de
> --- /dev/null
> +++ b/package/lua-iconv/lua-iconv.mk
> @@ -0,0 +1,14 @@
> +################################################################################
> +#
> +# lua-iconv
> +#
> +################################################################################
> +
> +LUA_ICONV_VERSION_UPSTREAM = 7
> +LUA_ICONV_VERSION = $(LUA_ICONV_VERSION_UPSTREAM)-1
> +LUA_ICONV_SUBDIR = lua-iconv-$(LUA_ICONV_VERSION_UPSTREAM)
Remove redundant space before =. However, isn't this SUBDIR thing
already handled by the luarocks-package infrastructure?
> +LUA_ICONV_DEPENDENCIES = luainterpreter libiconv
The dependency on libiconv should be:
$(if $(BR2_PACKAGE_LIBICONV),libiconv)
as already suggested by Arnout. And the luainterpreter dependency is
also already handled by the luarocks-package infra.
Could you fix those issues and resend? In the mean time, we'll mark
your patch as Changes Requested.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2015-07-12 16:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-19 14:38 [Buildroot] [lua V4 0/4] lua Francois Perrad
2014-07-19 14:38 ` [Buildroot] [lua V4 1/4] luajit: add host variant Francois Perrad
2014-07-19 14:38 ` [Buildroot] [lua V4 2/4] luainterpreter: " Francois Perrad
2014-07-19 14:38 ` [Buildroot] [lua V4 3/4] luarocks: allow to work with host-luainterpreter Francois Perrad
2014-07-19 14:38 ` [Buildroot] [lua V4 4/4] lua-iconv: new package Francois Perrad
2015-07-12 16:51 ` Thomas Petazzoni [this message]
2014-07-27 12:31 ` [Buildroot] [lua V4 0/4] lua 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=20150712185120.42e3fea5@free-electrons.com \
--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