Skip to contentSkip to conversation

modify LUA_CPATH_DEFAULT for 64-bit architectures

PATCH Superseded [email protected] 2 participants 4 messages Apr 16, 2020

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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

---
 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
index 8f4e8fe68..1f077e501 100644
@@ -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
#1 lore raw

PATCH 2/2 luaposix: add 33.4.0 version recipe which is compatible with lua5.3

---
 .../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
new file mode 100644
index 000000000..869181848
@@ -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
#2 lore raw

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
---
 .../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 -1
new file mode 100644
index 000000000..869181848
@@ -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

#3 lore raw
In reply to [email protected]

Can you rebase this change on top of master or master-next

Quoted 25 lines · Haseeb Ashraf

LUA_CPATH_DEFAULT for *.so files should include LUA_ROOT/lib64/lua/LUA_VDIR not LUA_ROOT/lib/lua/LUA_VDIR

---
 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
index 8f4e8fe68..1f077e501 100644
@@ -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