Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/libubox: fix lua module install path
@ 2017-05-06 20:26 Yann E. MORIN
  2017-05-07  8:24 ` Thomas Petazzoni
  2017-05-15  9:45 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Yann E. MORIN @ 2017-05-06 20:26 UTC (permalink / raw)
  To: buildroot

The LUAPATH variable is only used when installing the lua module, and
cmake knows very well how to do out-of-tree isntalls, so there is no
reason to include the staging path in LUAPATH, which will cause our
post-install sanity checks to kick in and whine:

    libubox: installs files in /home/lhk/workspace/orangepi/host/usr/a
    rm-buildroot-linux-gnueabihf/sysroot//home/lhk/workspace/orangepi

As for libuci, just pass the runtime LUAPATH.

Fixes #9856

Reported-by: linhuikui at gmail.com
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Yegor Yefremov <yegorslists@googlemail.com>
---
 package/libubox/libubox.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/libubox/libubox.mk b/package/libubox/libubox.mk
index 5e2efad0e8..d3e3b709dc 100644
--- a/package/libubox/libubox.mk
+++ b/package/libubox/libubox.mk
@@ -13,7 +13,7 @@ LIBUBOX_DEPENDENCIES = $(if $(BR2_PACKAGE_JSON_C),json-c)
 ifeq ($(BR2_USE_MMU)$(BR2_PACKAGE_LUA_5_1),yy)
 LIBUBOX_DEPENDENCIES += lua
 LIBUBOX_CONF_OPTS += -DBUILD_LUA=ON \
-	-DLUAPATH=$(STAGING_DIR)/usr/lib/lua/5.1 \
+	-DLUAPATH=/usr/lib/lua/5.1 \
 	-DLUA_CFLAGS=-I$(STAGING_DIR)/usr/include
 else
 LIBUBOX_CONF_OPTS += -DBUILD_LUA=OFF
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] package/libubox: fix lua module install path
  2017-05-06 20:26 [Buildroot] [PATCH] package/libubox: fix lua module install path Yann E. MORIN
@ 2017-05-07  8:24 ` Thomas Petazzoni
  2017-05-15  9:45 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2017-05-07  8:24 UTC (permalink / raw)
  To: buildroot

Hello,

On Sat,  6 May 2017 22:26:10 +0200, Yann E. MORIN wrote:
> The LUAPATH variable is only used when installing the lua module, and
> cmake knows very well how to do out-of-tree isntalls, so there is no
> reason to include the staging path in LUAPATH, which will cause our
> post-install sanity checks to kick in and whine:
> 
>     libubox: installs files in /home/lhk/workspace/orangepi/host/usr/a
>     rm-buildroot-linux-gnueabihf/sysroot//home/lhk/workspace/orangepi
> 
> As for libuci, just pass the runtime LUAPATH.
> 
> Fixes #9856
> 
> Reported-by: linhuikui at gmail.com
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> Cc: Yegor Yefremov <yegorslists@googlemail.com>
> ---
>  package/libubox/libubox.mk | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH] package/libubox: fix lua module install path
  2017-05-06 20:26 [Buildroot] [PATCH] package/libubox: fix lua module install path Yann E. MORIN
  2017-05-07  8:24 ` Thomas Petazzoni
@ 2017-05-15  9:45 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2017-05-15  9:45 UTC (permalink / raw)
  To: buildroot

>>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:

 > The LUAPATH variable is only used when installing the lua module, and
 > cmake knows very well how to do out-of-tree isntalls, so there is no
 > reason to include the staging path in LUAPATH, which will cause our
 > post-install sanity checks to kick in and whine:

 >     libubox: installs files in /home/lhk/workspace/orangepi/host/usr/a
 >     rm-buildroot-linux-gnueabihf/sysroot//home/lhk/workspace/orangepi

 > As for libuci, just pass the runtime LUAPATH.

 > Fixes #9856

 > Reported-by: linhuikui at gmail.com
 > Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
 > Cc: Yegor Yefremov <yegorslists@googlemail.com>

Committed to 2017.02.x, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-05-15  9:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-06 20:26 [Buildroot] [PATCH] package/libubox: fix lua module install path Yann E. MORIN
2017-05-07  8:24 ` Thomas Petazzoni
2017-05-15  9:45 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox