libuci: correct lua path
PATCH 1/1 libuci: correct lua path
LUAPATH is used as the path for installing lua binding. As buildroot specifies the install prefix, STAGING_DIR gets appended to TARGET_DIR which is incorrect path for installation, so use relative path.
--- package/libuci/libuci.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/libuci/libuci.mk +1 -1
@@ -13,7 +13,7 @@ LIBUCI_DEPENDENCIES = libubox ifeq ($(BR2_PACKAGE_LUA_5_1),y) LIBUCI_DEPENDENCIES += lua LIBUCI_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 LIBUCI_CONF_OPTS += -DBUILD_LUA=OFF
Signature · 1 line
2.6.2
PATCH 1/1 libuci: correct lua path
Quoted 8 lines · Neha Bairathi
LUAPATH is used as the path for installing lua binding. As buildroot specifies the install prefix,
STAGING_DIRgets appended toTARGET_DIRwhich is incorrect path for installation, so use relative path.Reviewed-by Abhimanyu Vishwakarma <[email protected]>Reviewed-by Marcin Nowakowski <[email protected]>Signed-off-by Neha Bairathi <[email protected]>
Checked that it is only used to set the INSTALL command's DESTINATION argument,
and that means that DESTDIR will indeed be prefixed to it.
Regards,
Arnout
Quoted 18 lines
--- package/libuci/libuci.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)package/libuci/libuci.mk +1
-1@@ -13,7 +13,7 @@ LIBUCI_DEPENDENCIES = libubox ifeq ($(BR2_PACKAGE_LUA_5_1),y) LIBUCI_DEPENDENCIES += lua LIBUCI_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 LIBUCI_CONF_OPTS += -DBUILD_LUA=OFF
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
Thomas Petazzoni
AppliedPATCH 1/1 libuci: correct lua path
In reply to Neha BairathiDear Neha Bairathi,
Quoted 11 lines · Neha Bairathi
LUAPATH is used as the path for installing lua binding. As buildroot specifies the install prefix,
STAGING_DIRgets appended toTARGET_DIRwhich is incorrect path for installation, so use relative path.Reviewed-by Abhimanyu Vishwakarma <[email protected]>Reviewed-by Marcin Nowakowski <[email protected]>Signed-off-by Neha Bairathi <[email protected]>--- package/libuci/libuci.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to master, thanks. Thanks Arnout for reviewing.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com