modify LUA_CPATH_DEFAULT for 64-bit architectures
PATCH 1/2 modify LUA_CPATH_DEFAULT for 64-bit architectures
LUA_CPATH_DEFAULT for *.so files should include LUA_ROOT/lib64/lua/LUA_VDIR not LUA_ROOT/lib/lua/LUA_VDIR
Signed-off-by Haseeb Ashraf <[email protected]>
--- meta-oe/recipes-devtools/lua/lua_5.3.4.bb | 1 + 1 file changed, 1 insertion(+)
meta-oe/recipes-devtools/lua/lua_5.3.4.bb +1 -0
@@ -28,6 +28,7 @@ EXTRA_OEMAKE = "'CC=${CC} -fPIC' 'MYCFLAGS=${CFLAGS} -DLUA_USE_LINUX -fPIC' MYLD do_configure_prepend() { sed -i -e s:/usr/local:${prefix}:g src/luaconf.h + sed -i -e s:lib/lua/:${baselib}/lua/:g src/luaconf.h } do_compile () {
Signature · 1 line
2.17.1
PATCH 2/2 luaposix: add 33.4.0 version recipe which is compatible with lua5.3
Signed-off-by Haseeb Ashraf <[email protected]>
--- .../luaposix/luaposix_33.4.0.bb | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 meta-oe/recipes-devtools/luaposix/luaposix_33.4.0.bb
meta-oe/recipes-devtools/luaposix/luaposix_33.4.0.bb new file +21 -0
@@ -0,0 +1,21 @@ +DESCRIPTION = "luaposix is a POSIX binding for Lua." +LICENSE = "MIT" +HOMEPAGE = "https://github.com/luaposix/luaposix" +LIC_FILES_CHKSUM = "file://COPYING;md5=7dd2aad04bb7ca212e69127ba8d58f9f" + +SRC_URI[md5sum] = "b36ff049095f28752caeb0b46144516c" +SRC_URI[sha256sum] = "e66262f5b7fe1c32c65f17a5ef5ffb31c4d1877019b4870a5d373e2ab6526a21" + +DEPENDS += "lua-native lua" + +SRC_URI = "https://github.com/luaposix/luaposix/archive/release-v${PV}.tar.gz" +S = "${WORKDIR}/luaposix-release-v${PV}" +LUA_VDIR = "5.3" + +inherit autotools pkgconfig + +do_install() { + oe_runmake 'DESTDIR=${D}' 'luadir=${datadir}/lua/${LUA_VDIR}' 'luaexecdir=${libdir}/lua/${LUA_VDIR}' install +} + +FILES_${PN} = "${datadir}/lua/${LUA_VDIR} ${libdir}/lua/${LUA_VDIR}"
Signature · 1 line
2.17.1
Re: [oe] [meta-oe][PATCH 2/2] luaposix: add 33.4.0 version recipe which is compatible with lua5.3
this is showing
QA Issue: luaposix: SRC_URI uses unstable GitHub archives [src-uri-bad]
so please use a release artifact or use git fetcher which is pinned to particular release
Quoted 38 lines · Haseeb Ashraf
Signed-off-by Haseeb Ashraf <[email protected]>--- .../luaposix/luaposix_33.4.0.bb | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 meta-oe/recipes-devtools/luaposix/luaposix_33.4.0.bbmeta-oe/recipes-devtools/luaposix/luaposix_33.4.0.bb new file +21
-1@@ -0,0 +1,21 @@ +DESCRIPTION = "luaposix is a POSIX binding for Lua." +LICENSE = "MIT" +HOMEPAGE = "https://github.com/luaposix/luaposix" +LIC_FILES_CHKSUM = "file://COPYING;md5=7dd2aad04bb7ca212e69127ba8d58f9f" + +SRC_URI[md5sum] = "b36ff049095f28752caeb0b46144516c" +SRC_URI[sha256sum] = "e66262f5b7fe1c32c65f17a5ef5ffb31c4d1877019b4870a5d373e2ab6526a21" + +DEPENDS += "lua-native lua" + +SRC_URI = "https://github.com/luaposix/luaposix/archive/release-v${PV}.tar.gz" +S = "${WORKDIR}/luaposix-release-v${PV}" +LUA_VDIR = "5.3" + +inherit autotools pkgconfig + +do_install() { + oe_runmake 'DESTDIR=${D}' 'luadir=${datadir}/lua/${LUA_VDIR}' 'luaexecdir=${libdir}/lua/${LUA_VDIR}' install +} + +FILES_${PN} = "${datadir}/lua/${LUA_VDIR} ${libdir}/lua/${LUA_VDIR}" --2.17.1
Can you rebase this change on top of master or master-next
Quoted 25 lines · Haseeb Ashraf
LUA_CPATH_DEFAULTfor *.so files should include LUA_ROOT/lib64/lua/LUA_VDIR not LUA_ROOT/lib/lua/LUA_VDIRSigned-off-by Haseeb Ashraf <[email protected]>--- meta-oe/recipes-devtools/lua/lua_5.3.4.bb | 1 + 1 file changed, 1 insertion(+)meta-oe/recipes-devtools/lua/lua_5.3.4.bb +1
-1@@ -28,6 +28,7 @@ EXTRA_OEMAKE = "'CC=${CC} -fPIC' 'MYCFLAGS=${CFLAGS} -DLUA_USE_LINUX -fPIC' MYLD do_configure_prepend() { sed -i -e s:/usr/local:${prefix}:g src/luaconf.h + sed -i -e s:lib/lua/:${baselib}/lua/:g src/luaconf.h } do_compile () { --2.17.1