From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 3/5] lua : don't install shared library in staging
Date: Mon, 16 Jul 2012 17:44:46 +0200 [thread overview]
Message-ID: <20120716174446.5e112599@skate> (raw)
In-Reply-To: <1342446352-31231-3-git-send-email-francois.perrad@gadz.org>
Le Mon, 16 Jul 2012 15:45:50 +0200,
Francois Perrad <fperrad@gmail.com> a ?crit :
> dead code, LUA_INSTALL_STAGING_SHARED_LIB not used
> ---
> package/lua/lua.mk | 8 --------
> 1 file changed, 8 deletions(-)
>
> diff --git a/package/lua/lua.mk b/package/lua/lua.mk
> index ab9a1a2..5b8022a 100644
> --- a/package/lua/lua.mk
> +++ b/package/lua/lua.mk
> @@ -42,14 +42,6 @@ define HOST_LUA_BUILD_CMDS
> PKG_VERSION=$(LUA_VERSION) -C $(@D)/src all
> endef
>
> -ifeq ($(BR2_PACKAGE_LUA_SHARED_LIBRARY),y)
> -define LUA_INSTALL_STAGING_SHARED_LIB
> - $(INSTALL) -D $(@D)/src/liblua.so.$(LUA_VERSION) \
> - $(STAGING_DIR)/usr/lib/liblua.so.$(LUA_VERSION)
> - ln -sf liblua.so.$(LUA_VERSION)
> $(STAGING_DIR)/usr/lib/liblua.so -endef
> -endif
> -
> define LUA_INSTALL_STAGING_CMDS
> $(INSTALL) -m 0644 -D $(@D)/etc/lua.pc \
> $(STAGING_DIR)/usr/lib/pkgconfig/lua.pc
Doh? The code is probably dead, but the right thing here is not to
remove, but to make it work: the liblua.so.* files *SHOULD* definitely
be installed in the staging directory, just like all other shared
libraries. They are needed so that other packages (that rely on the
Lua shared library) can be linked against this library.
The installation code in this package tries to be smart, but is in fact
very complicated. It should just:
* Install the shared library + .pc file + .h files + .a file to both
the staging directory and target directory, unconditionally
* Install the Lua compiler in the target directory if the compiler is
enabled in the config
* Install the Lua interpreter in the target directory if the
interpreter is enabled in the config.
Best regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
next prev parent reply other threads:[~2012-07-16 15:44 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-16 13:45 [Buildroot] [PATCH 1/5] lua : fix autobuild.buildroot Francois Perrad
2012-07-16 13:45 ` [Buildroot] [PATCH 2/5] lua : don't install static library in target Francois Perrad
2012-07-16 15:41 ` Thomas Petazzoni
2012-07-16 13:45 ` [Buildroot] [PATCH 3/5] lua : don't install shared library in staging Francois Perrad
2012-07-16 15:44 ` Thomas Petazzoni [this message]
2012-07-16 13:45 ` [Buildroot] [PATCH 4/5] lua : refactor with POST_PATH_HOOKS Francois Perrad
2012-07-16 15:46 ` Thomas Petazzoni
2012-07-16 13:45 ` [Buildroot] [PATCH 5/5] lua: split and rename patches Francois Perrad
2012-07-16 15:47 ` Thomas Petazzoni
2012-07-16 15:39 ` [Buildroot] [PATCH 1/5] lua : fix autobuild.buildroot Thomas Petazzoni
2012-07-17 8:35 ` François Perrad
2012-07-17 8:40 ` Thomas Petazzoni
2012-07-17 14:46 ` [Buildroot] [UNSURE]Re: " François Perrad
2012-07-17 14:57 ` Thomas Petazzoni
2012-07-17 15:20 ` [Buildroot] [UNSURE]Re: " François Perrad
2012-07-17 21:35 ` 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=20120716174446.5e112599@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