lua: upgrade from 5.4.8 to 5.5.0
PATCH v2 1/1 lua: upgrade from 5.4.8 to 5.5.0
Changes:
https://www.lua.org/manual/5.5/readme.html#changes
---
.../lua/{lua_5.4.8.bb => lua_5.5.0.bb} | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
rename meta/recipes-devtools/lua/{lua_5.4.8.bb => lua_5.5.0.bb} (78%)meta/recipes-devtools/lua/lua_5.5.0.bb renamed from meta/recipes-devtools/lua/lua_5.4.8.bb +7 -8
@@ -1,7 +1,7 @@ SUMMARY = "Lua is a powerful light-weight programming language designed \ for extending applications." LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://doc/readme.html;beginline=305;endline=326;md5=0e573c143cb6491b41cf02cfbcb8c267" +LIC_FILES_CHKSUM = "file://doc/readme.html;beginline=299;endline=320;md5=0e573c143cb6491b41cf02cfbcb8c267" HOMEPAGE = "http://www.lua.org/" SRC_URI = "http://www.lua.org/ftp/lua-${PV}.tar.gz;name=tarballsrc \
@@ -12,13 +12,12 @@ SRC_URI = "http://www.lua.org/ftp/lua-${PV}.tar.gz;name=tarballsrc \ # if no test suite matches PV release of Lua exactly, download the suite for the closest Lua release. PV_testsuites = "${PV}" -SRC_URI[tarballsrc.sha256sum] = "4f18ddae154e793e46eeab727c59ef1c0c0c2b744e7b94219710d76f530629ae" -SRC_URI[tarballtest.sha256sum] = "9581d5a7c39ffbf29b8ccde2709083c380f7bbddbd968dcb15712d2f2e33f4e5" +SRC_URI[tarballsrc.sha256sum] = "57ccc32bbbd005cab75bcc52444052535af691789dba2b9016d5c50640d68b3d" +SRC_URI[tarballtest.sha256sum] = "5e47bbfad7db2965d69580e918ee64edeb8d8d32de404b8dae9ce5c6d76a1472" inherit pkgconfig binconfig ptest -PACKAGECONFIG ??= "readline" -PACKAGECONFIG[readline] = ",,readline" +DEPENDS = "readline" TARGET_CC_ARCH += " -fPIC ${LDFLAGS}" EXTRA_OEMAKE = "'CC=${CC} -fPIC' 'MYCFLAGS=${CFLAGS} -fPIC' MYLDFLAGS='${LDFLAGS}' 'AR=ar rcD' 'RANLIB=ranlib -D'"
@@ -29,7 +28,7 @@ do_configure:prepend() { } do_compile () { - oe_runmake ${@bb.utils.contains('PACKAGECONFIG', 'readline', 'linux-readline', 'linux', d)} + oe_runmake linux } do_install () {
@@ -40,13 +39,13 @@ do_install () { 'INSTALL_MAN=${D}${mandir}/man1' \ 'INSTALL_SHARE=${D}${datadir}/lua' \ 'INSTALL_LIB=${D}${libdir}' \ - 'INSTALL_CMOD=${D}${libdir}/lua/5.4' \ + 'INSTALL_CMOD=${D}${libdir}/lua/5.5' \ install install -d ${D}${libdir}/pkgconfig sed -e s/@VERSION@/${PV}/ -e s#@LIBDIR@#${libdir}# -e s#@INCLUDEDIR@#${includedir}# ${UNPACKDIR}/lua.pc.in > ${S}/lua.pc install -m 0644 ${S}/lua.pc ${D}${libdir}/pkgconfig/ - rmdir ${D}${datadir}/lua/5.4 + rmdir ${D}${datadir}/lua/5.5 rmdir ${D}${datadir}/lua }
Signature · 1 line
2.34.1
meta/recipes-devtools/lua/lua_5.5.0.bb line 4
Quoted 2 lines · Changqing Li via lists.openembedded.org
meta/recipes-devtools/lua/lua_5.5.0.bb renamed from meta/recipes-devtools/lua/lua_5.4.8.bb +1
-1-LIC_FILES_CHKSUM = "file://doc/readme.html;beginline=305;endline=326;md5=0e573c143cb6491b41cf02cfbcb8c267" +LIC_FILES_CHKSUM = "file://doc/readme.html;beginline=299;endline=320;md5=0e573c143cb6491b41cf02cfbcb8c267"
You need a License-Update: line in the commit message explaining why this changed.
meta/recipes-devtools/lua/lua_5.5.0.bb SRC_URI = "http://www.lua.org/ftp/lua-${PV}.tar.gz;name=tarballsrc \ · line 20
Quoted 3 lines
meta/recipes-devtools/lua/lua_5.5.0.bb renamed from meta/recipes-devtools/lua/lua_5.4.8.bb +1
-2-PACKAGECONFIG ??= "readline" -PACKAGECONFIG[readline] = ",,readline" +DEPENDS = "readline"
Why is this no longer conditional? Readline is GPLv3 so there are people who want to disable this everywhere.
Quoted 6 lines
do_install() {meta/recipes-devtools/lua/lua_5.5.0.bb renamed from meta/recipes-devtools/lua/lua_5.4.8.bb +0
-1@@ -40,13 +39,13 @@ do_install () { 'INSTALL_MAN=${D}${mandir}/man1' \ 'INSTALL_SHARE=${D}${datadir}/lua' \ 'INSTALL_LIB=${D}${libdir}' \ - 'INSTALL_CMOD=${D}${libdir}/lua/5.4' \
meta/recipes-devtools/lua/lua_5.5.0.bb do_install () { · line 50
Quoted 10 lines
meta/recipes-devtools/lua/lua_5.5.0.bb renamed from meta/recipes-devtools/lua/lua_5.4.8.bb +2
-1+ 'INSTALL_CMOD=${D}${libdir}/lua/5.5' \ install install -d ${D}${libdir}/pkgconfig sed -e s/@VERSION@/${PV}/ -e s#@LIBDIR@#${libdir}# -e s#@INCLUDEDIR@#${includedir}# ${UNPACKDIR}/lua.pc.in > ${S}/lua.pc install -m 0644 ${S}/lua.pc ${D}${libdir}/pkgconfig/ - rmdir ${D}${datadir}/lua/5.4 + rmdir ${D}${datadir}/lua/5.5 rmdir ${D}${datadir}/lua }
Maybe use 5.* to avoid having to do this on every upgrade?
Ross
Quoted 4 lines · Ross Burton
CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.On 24 Feb 2026, at 02:46, Changqing Li via lists.openembedded.org <[email protected]> wrote:
Quoted 8 lines
meta/recipes-devtools/lua/lua_5.5.0.bb line 4
Quoted 2 lines
meta/recipes-devtools/lua/lua_5.5.0.bb renamed from meta/recipes-devtools/lua/lua_5.4.8.bb +1
-1-LIC_FILES_CHKSUM = "file://doc/readme.html;beginline=305;endline=326;md5=0e573c143cb6491b41cf02cfbcb8c267" +LIC_FILES_CHKSUM = "file://doc/readme.html;beginline=299;endline=320;md5=0e573c143cb6491b41cf02cfbcb8c267"You need a License-Update: line in the commit message explaining why this changed.
meta/recipes-devtools/lua/lua_5.5.0.bb SRC_URI = "http://www.lua.org/ftp/lua-${PV}.tar.gz;name=tarballsrc \ · line 20
Quoted 3 lines
meta/recipes-devtools/lua/lua_5.5.0.bb renamed from meta/recipes-devtools/lua/lua_5.4.8.bb +1
-2-PACKAGECONFIG ??= "readline" -PACKAGECONFIG[readline] = ",,readline" +DEPENDS = "readline"Why is this no longer conditional? Readline is GPLv3 so there are people who want to disable this everywhere.
Thanks. I will correct this.
Quoted 11 lines
Quoted 11 lines
do_install() {meta/recipes-devtools/lua/lua_5.5.0.bb renamed from meta/recipes-devtools/lua/lua_5.4.8.bb +1
-1@@ -40,13 +39,13 @@ do_install () { 'INSTALL_MAN=${D}${mandir}/man1' \ 'INSTALL_SHARE=${D}${datadir}/lua' \ 'INSTALL_LIB=${D}${libdir}' \ - 'INSTALL_CMOD=${D}${libdir}/lua/5.4' \ + 'INSTALL_CMOD=${D}${libdir}/lua/5.5' \ install install -d ${D}${libdir}/pkgconfig
Quoted 7 lines
meta/recipes-devtools/lua/lua_5.5.0.bb do_install () { · line 50
Quoted 6 lines
meta/recipes-devtools/lua/lua_5.5.0.bb renamed from meta/recipes-devtools/lua/lua_5.4.8.bb +1
-1sed -e s/@VERSION@/${PV}/ -e s#@LIBDIR@#${libdir}# -e s#@INCLUDEDIR@#${includedir}# ${UNPACKDIR}/lua.pc.in > ${S}/lua.pc install -m 0644 ${S}/lua.pc ${D}${libdir}/pkgconfig/ - rmdir ${D}${datadir}/lua/5.4 + rmdir ${D}${datadir}/lua/5.5 rmdir ${D}${datadir}/lua }Maybe use 5.* to avoid having to do this on every upgrade?
Changed to 5.* in V3.
//Changqing
Quoted 2 lines
Ross
PATCH v3 1/1 lua: upgrade from 5.4.8 to 5.5.0
In reply to Ross BurtonChanges:
https://www.lua.org/manual/5.5/readme.html#changes
Refer [1], PLATS linux-readline is moved, and readline is changed to load dynamically, keep readline as PACKAGECONFIG to allow user to remove readline dependency.
[1] https://github.com/lua/lua/commit/366c85564874d560b3608349f752e9e490f9002d
---
.../lua/{lua_5.4.8.bb => lua_5.5.0.bb} | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
rename meta/recipes-devtools/lua/{lua_5.4.8.bb => lua_5.5.0.bb} (81%)meta/recipes-devtools/lua/lua_5.5.0.bb renamed from meta/recipes-devtools/lua/lua_5.4.8.bb +6 -6
@@ -1,7 +1,7 @@ SUMMARY = "Lua is a powerful light-weight programming language designed \ for extending applications." LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://doc/readme.html;beginline=305;endline=326;md5=0e573c143cb6491b41cf02cfbcb8c267" +LIC_FILES_CHKSUM = "file://doc/readme.html;beginline=299;endline=320;md5=0e573c143cb6491b41cf02cfbcb8c267" HOMEPAGE = "http://www.lua.org/" SRC_URI = "http://www.lua.org/ftp/lua-${PV}.tar.gz;name=tarballsrc \
@@ -12,8 +12,8 @@ SRC_URI = "http://www.lua.org/ftp/lua-${PV}.tar.gz;name=tarballsrc \ # if no test suite matches PV release of Lua exactly, download the suite for the closest Lua release. PV_testsuites = "${PV}" -SRC_URI[tarballsrc.sha256sum] = "4f18ddae154e793e46eeab727c59ef1c0c0c2b744e7b94219710d76f530629ae" -SRC_URI[tarballtest.sha256sum] = "9581d5a7c39ffbf29b8ccde2709083c380f7bbddbd968dcb15712d2f2e33f4e5" +SRC_URI[tarballsrc.sha256sum] = "57ccc32bbbd005cab75bcc52444052535af691789dba2b9016d5c50640d68b3d" +SRC_URI[tarballtest.sha256sum] = "5e47bbfad7db2965d69580e918ee64edeb8d8d32de404b8dae9ce5c6d76a1472" inherit pkgconfig binconfig ptest
@@ -29,7 +29,7 @@ do_configure:prepend() { } do_compile () { - oe_runmake ${@bb.utils.contains('PACKAGECONFIG', 'readline', 'linux-readline', 'linux', d)} + oe_runmake linux } do_install () {
@@ -40,13 +40,13 @@ do_install () { 'INSTALL_MAN=${D}${mandir}/man1' \ 'INSTALL_SHARE=${D}${datadir}/lua' \ 'INSTALL_LIB=${D}${libdir}' \ - 'INSTALL_CMOD=${D}${libdir}/lua/5.4' \ + 'INSTALL_CMOD=${D}${libdir}/lua/5.5' \ install install -d ${D}${libdir}/pkgconfig sed -e s/@VERSION@/${PV}/ -e s#@LIBDIR@#${libdir}# -e s#@INCLUDEDIR@#${includedir}# ${UNPACKDIR}/lua.pc.in > ${S}/lua.pc install -m 0644 ${S}/lua.pc ${D}${libdir}/pkgconfig/ - rmdir ${D}${datadir}/lua/5.4 + rmdir ${D}${datadir}/lua/5.* rmdir ${D}${datadir}/lua }
Signature · 1 line
2.34.1
Hi,
Quoted 4 lines · Changqing Li via lists.openembedded.org
Refer [1], PLATS linux-readline is moved, and readline is changed to load dynamically, keep readline as PACKAGECONFIG to allow user to remove readline dependency.
As is traditional with people using dlopen(), this is now broken…
Lua defaults to dlopen() support being enabled (LUA_USE_DLOPEN is defined on linux) and the readline library is set to libreadline.so <http://libreadline.so/>.
So the PACKAGECONFIG is not doing the right thing anymore: having readline in the sysroot doesn’t change the build, and has no impact on the runtime packages.
The obvious answer is to change the PACKAGECONFIG to “,,,readline” so that there’s still an option that has the effect of enabling readline in lua, but that also won’t work as the on-disk file isn’t called libreadline.so <http://libreadline.so/> unless you install the -dev package…. This means we should also set LUA_READLINELIB to "libreadline.so.8”.
Bonus points for adding readline as a build dependency and looking up what the libreadline.so <http://libreadline.so/> symlink resolves to, but I don’t expect the readline soname to change in the near future so this can be considered overkill.
Ross
Quoted 11 lines · Ross Burton
CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.Hi,
Quoted 4 lines · Changqing Li via lists.openembedded.org
Refer [1], PLATS linux-readline is moved, and readline is changed to load dynamically, keep readline as PACKAGECONFIG to allow user to remove readline dependency.
As is traditional with people using
dlopen(), this is now broken…
Quoted 7 lines
Lua defaults to
dlopen()support being enabled (LUA_USE_DLOPENis defined on linux) and the readline library is set to libreadline.so<http://libreadline.so/>.So the PACKAGECONFIG is not doing the right thing anymore: having readline in the sysroot doesn’t change the build, and has no impact on the runtime packages.
The obvious answer is to change the PACKAGECONFIG to “,,,readline” so that there’s still an option that has the effect of enabling readline in lua, but that also won’t work as the on-disk file isn’t called libreadline.so<http://libreadline.so/> unless you install the -dev package…. This means we should also set
LUA_READLINELIBto "libreadline.so.8”.Bonus points for adding readline as a build dependency and looking up what the libreadline.so<http://libreadline.so/> symlink resolves to, but I don’t expect the readline soname to change in the near future so this can be considered overkill.
Hi, Ross
Thanks for pointing out this. How about we just install -dev packages? so that we don't need a local patch to set LUA_READLINELIB to "libreadline.so.8”. And
in this way, we are align with lua upstream expected (if readline-dev installed, readline is used, otherwise, not use readline)
Here is the diff based on V3:
PACKAGECONFIG ??= "readline"
-PACKAGECONFIG[readline] = ",,readline"
+PACKAGECONFIG[readline] = ",,,readline-dev"
TARGET_CC_ARCH += " -fPIC ${LDFLAGS}"
EXTRA_OEMAKE = "'CC=${CC} -fPIC' 'MYCFLAGS=${CFLAGS} -fPIC' MYLDFLAGS='${LDFLAGS}' 'AR=ar rcD' 'RANLIB=ranlib -D'" @@ -64,3 +64,5 @@ BBCLASSEXTEND = "native nativesdk"
inherit multilib_script
MULTILIB_SCRIPTS = "${PN}-dev:${includedir}/luaconf.h" +
+INSANE_SKIP:${PN} += "dev-deps"
With V3 patch:
root@qemux86-64:~# lua -i -W Lua 5.5.0 Copyright (C) 1994-2025 Lua.org, PUC-Rio Lua warning: library 'libreadline.so' not found
Quoted 1 line
With the V4 patch:
root@qemux86-64:/usr/lib# lua -i -W Lua 5.5.0 Copyright (C) 1994-2025 Lua.org, PUC-Rio
Quoted 1 line
if you think this is ok, I will send a V4 like this.
Regards
Changqing
Quoted 2 lines
Ross
Review
Quoted 6 lines · Changqing Li
Thanks for pointing out this. How about we just install -dev packages? so that we don't need a local patch to set
LUA_READLINELIBto "libreadline.so.8”. And in this way, we are align with lua upstream expected (if readline-dev installed, readline is used, otherwise, not use readline) Here is the diff based on V3:
PACKAGECONFIG ??= "readline"(quoted diff) +1
-1-PACKAGECONFIG[readline] = ",,readline" +PACKAGECONFIG[readline] = ",,,readline-dev"
Hard no. This keeps on happening with different people being clever with dlopen() and each time they’re wrong.
Ross
PATCH v4 1/1 lua: upgrade from 5.4.8 to 5.5.0
In reply to Ross BurtonFrom: "Changqing Li via lists.openembedded.org" <[email protected]>
Changes:
https://www.lua.org/manual/5.5/readme.html#changes
PLATS linux-readline is moved, and readline is changed to load dynamically, refer [1], keep readline as PACKAGECONFIG to allow user to remove readline dependency.
Lua use dlopen by default, and LUA_READLINELIB is set to libreadline.so, but libreadline.so is in the dev package, which will make Lua cannot load libreadline even when libreadline is installed. Make readline as build dependency and detect the real libreadline name and set LUA_READLINELIB
[1] https://github.com/lua/lua/commit/366c85564874d560b3608349f752e9e490f9002d
[2] https://github.com/lua/lua/blob/master/lua.c#L520
---
.../lua/{lua_5.4.8.bb => lua_5.5.0.bb} | 20 ++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
rename meta/recipes-devtools/lua/{lua_5.4.8.bb => lua_5.5.0.bb} (72%)meta/recipes-devtools/lua/lua_5.5.0.bb renamed from meta/recipes-devtools/lua/lua_5.4.8.bb +13 -7
@@ -1,7 +1,7 @@ SUMMARY = "Lua is a powerful light-weight programming language designed \ for extending applications." LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://doc/readme.html;beginline=305;endline=326;md5=0e573c143cb6491b41cf02cfbcb8c267" +LIC_FILES_CHKSUM = "file://doc/readme.html;beginline=299;endline=320;md5=0e573c143cb6491b41cf02cfbcb8c267" HOMEPAGE = "http://www.lua.org/" SRC_URI = "http://www.lua.org/ftp/lua-${PV}.tar.gz;name=tarballsrc \
@@ -12,24 +12,30 @@ SRC_URI = "http://www.lua.org/ftp/lua-${PV}.tar.gz;name=tarballsrc \ # if no test suite matches PV release of Lua exactly, download the suite for the closest Lua release. PV_testsuites = "${PV}" -SRC_URI[tarballsrc.sha256sum] = "4f18ddae154e793e46eeab727c59ef1c0c0c2b744e7b94219710d76f530629ae" -SRC_URI[tarballtest.sha256sum] = "9581d5a7c39ffbf29b8ccde2709083c380f7bbddbd968dcb15712d2f2e33f4e5" +SRC_URI[tarballsrc.sha256sum] = "57ccc32bbbd005cab75bcc52444052535af691789dba2b9016d5c50640d68b3d" +SRC_URI[tarballtest.sha256sum] = "5e47bbfad7db2965d69580e918ee64edeb8d8d32de404b8dae9ce5c6d76a1472" inherit pkgconfig binconfig ptest PACKAGECONFIG ??= "readline" -PACKAGECONFIG[readline] = ",,readline" +PACKAGECONFIG[readline] = ",,readline,readline" TARGET_CC_ARCH += " -fPIC ${LDFLAGS}" EXTRA_OEMAKE = "'CC=${CC} -fPIC' 'MYCFLAGS=${CFLAGS} -fPIC' MYLDFLAGS='${LDFLAGS}' 'AR=ar rcD' 'RANLIB=ranlib -D'" +do_configure:prepend:class-target() { + libreadline=$(ld --sysroot=${RECIPE_SYSROOT} -lreadline --verbose 2>&1 | grep succeeded | awk '{print $4}') + real_libreadline=$(readlink $libreadline) + sed -i -e "s/#define LUA_READLINELIB[[:space:]]*\"libreadline.*$/#define LUA_READLINELIB \"$real_libreadline\"/g" src/luaconf.h +} + 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 () { - oe_runmake ${@bb.utils.contains('PACKAGECONFIG', 'readline', 'linux-readline', 'linux', d)} + oe_runmake linux } do_install () {
@@ -40,13 +46,13 @@ do_install () { 'INSTALL_MAN=${D}${mandir}/man1' \ 'INSTALL_SHARE=${D}${datadir}/lua' \ 'INSTALL_LIB=${D}${libdir}' \ - 'INSTALL_CMOD=${D}${libdir}/lua/5.4' \ + 'INSTALL_CMOD=${D}${libdir}/lua/5.5' \ install install -d ${D}${libdir}/pkgconfig sed -e s/@VERSION@/${PV}/ -e s#@LIBDIR@#${libdir}# -e s#@INCLUDEDIR@#${includedir}# ${UNPACKDIR}/lua.pc.in > ${S}/lua.pc install -m 0644 ${S}/lua.pc ${D}${libdir}/pkgconfig/ - rmdir ${D}${datadir}/lua/5.4 + rmdir ${D}${datadir}/lua/5.* rmdir ${D}${datadir}/lua }
Signature · 1 line
2.34.1
Quoted 14 lines · Changqing Li via lists.openembedded.org
From: "Changqing Li via lists.openembedded.org" <[email protected]>
Changes:
https://www.lua.org/manual/5.5/readme.html#changesPLATS linux-readline is moved, and readline is changed to load dynamically, refer [1], keep readline as PACKAGECONFIG to allow user to remove readline dependency.
Lua use dlopen by default, and
LUA_READLINELIBis set to libreadline.so, but libreadline.so is in the dev package, which will make Lua cannot load libreadline even when libreadline is installed. Make readline as build dependency and detect the real libreadline name and setLUA_READLINELIB
Quoted 5 lines
[1] https://github.com/lua/lua/commit/366c85564874d560b3608349f752e9e490f9002d
[2] https://github.com/lua/lua/blob/master/lua.c#L520Signed-off-by Changqing Li <[email protected]>---
Hi Changqing,
Thanks for the new version, but I believe we have some errors with it:
ERROR: lua-5.5.0-r0 do_configure: Execution of '/srv/pokybuild/yocto-worker/qemux86-64-x32/build/build/tmp/work/x86_64_x32-poky-linux-gnux32/lua/5.5.0/temp/run.do_configure.1720879' failed with exit code 1
The do_configure log is not really verbose:
DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are ['/srv/pokybuild/yocto-worker/qemux86-64-x32/build/layers/openembedded-core/meta/recipes-core/glibc/glibc_2.42.bb:do_populate_sysroot', '/srv/pokybuild/yocto-worker/qemux86-64-x32/build/layers/openembedded-core/meta/recipes-core/readline/readline_8.3.bb:do_populate_sysroot', '/srv/pokybuild/yocto-worker/qemux86-64-x32/build/layers/openembedded-core/meta/recipes-devtools/gcc/gcc-cross_15.2.bb:do_populate_sysroot', '/srv/pokybuild/yocto-worker/qemux86-64-x32/build/layers/openembedded-core/meta/recipes-devtools/gcc/gcc-runtime_15.2.bb:do_populate_sysroot', '/srv/pokybuild/yocto-worker/qemux86-64-x32/build/layers/openembedded-core/meta/recipes-devtools/opkg-utils/opkg-utils_0.7.0.bb:do_populate_sysroot', '/srv/pokybuild/yocto-worker/qemux86-64-x32/build/layers/openembedded-core/meta/recipes-devtools/quilt/quilt-native_0.69.bb:do_populate_sysroot', 'virtual:native:/srv/pokybuild/yocto-worker/qemux86-64-x32/build/layers/openembedded-core/meta/recipes-devtools/patch/patch_2.8.bb:do_populate_sysroot', 'virtual:native:/srv/pokybuild/yocto-worker/qemux86-64-x32/build/layers/openembedded-core/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_populate_sysroot', 'virtual:native:/srv/pokybuild/yocto-worker/qemux86-64-x32/build/layers/openembedded-core/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot']
NOTE: Installed into sysroot: []
NOTE: Skipping as already exists in sysroot: ['gettext-minimal-native', 'glibc', 'ncurses', 'readline', 'binutils-cross-x86_64', 'gcc-cross-x86_64', 'gcc-runtime', 'libgcc', 'libtool-native', 'm4-native', 'opkg-utils', 'quilt-native', 'texinfo-dummy-native', 'linux-libc-headers', 'zlib-native', 'flex-native', 'gnu-config-native', 'patch-native', 'pkgconfig-native', 'pseudo-native', 'xz-native', 'zstd-native', 'attr-native', 'gmp-native', 'libmpc-native', 'mpfr-native', 'sqlite3-native']
DEBUG: Python function extend_recipe_sysroot finished
DEBUG: Executing shell function do_configure
WARNING: exit code 1 from a shell command.
https://autobuilder.yoctoproject.org/valkyrie/#/builders/11/builds/3272
https://autobuilder.yoctoproject.org/valkyrie/#/builders/9/builds/3286
https://autobuilder.yoctoproject.org/valkyrie/#/builders/20/builds/3272
https://autobuilder.yoctoproject.org/valkyrie/#/builders/22/builds/3328
https://autobuilder.yoctoproject.org/valkyrie/#/builders/65/builds/3289
Can you have a look at this error?
Thanks,
Mathieu
Signature · 3 lines
Mathieu Dubois-Briand, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH v5 1/1 lua: upgrade from 5.4.8 to 5.5.0
From: "Changqing Li via lists.openembedded.org" <[email protected]>
Changes:
https://www.lua.org/manual/5.5/readme.html#changes
PLATS linux-readline is moved, and readline is changed to load dynamically, refer [1], keep readline as PACKAGECONFIG to allow user to remove readline dependency.
Lua use dlopen by default, and LUA_READLINELIB is set to libreadline.so, but libreadline.so is in the dev package, which will make Lua cannot load libreadline even when libreadline is installed. Make readline as build dependency and detect the real libreadline name and set LUA_READLINELIB
[1] https://github.com/lua/lua/commit/366c85564874d560b3608349f752e9e490f9002d
[2] https://github.com/lua/lua/blob/master/lua.c#L520
---
.../lua/{lua_5.4.8.bb => lua_5.5.0.bb} | 22 +++++++++++++------
1 file changed, 15 insertions(+), 7 deletions(-)
rename meta/recipes-devtools/lua/{lua_5.4.8.bb => lua_5.5.0.bb} (71%)meta/recipes-devtools/lua/lua_5.5.0.bb renamed from meta/recipes-devtools/lua/lua_5.4.8.bb +15 -7
@@ -1,7 +1,7 @@ SUMMARY = "Lua is a powerful light-weight programming language designed \ for extending applications." LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://doc/readme.html;beginline=305;endline=326;md5=0e573c143cb6491b41cf02cfbcb8c267" +LIC_FILES_CHKSUM = "file://doc/readme.html;beginline=299;endline=320;md5=0e573c143cb6491b41cf02cfbcb8c267" HOMEPAGE = "http://www.lua.org/" SRC_URI = "http://www.lua.org/ftp/lua-${PV}.tar.gz;name=tarballsrc \
@@ -12,24 +12,32 @@ SRC_URI = "http://www.lua.org/ftp/lua-${PV}.tar.gz;name=tarballsrc \ # if no test suite matches PV release of Lua exactly, download the suite for the closest Lua release. PV_testsuites = "${PV}" -SRC_URI[tarballsrc.sha256sum] = "4f18ddae154e793e46eeab727c59ef1c0c0c2b744e7b94219710d76f530629ae" -SRC_URI[tarballtest.sha256sum] = "9581d5a7c39ffbf29b8ccde2709083c380f7bbddbd968dcb15712d2f2e33f4e5" +SRC_URI[tarballsrc.sha256sum] = "57ccc32bbbd005cab75bcc52444052535af691789dba2b9016d5c50640d68b3d" +SRC_URI[tarballtest.sha256sum] = "5e47bbfad7db2965d69580e918ee64edeb8d8d32de404b8dae9ce5c6d76a1472" inherit pkgconfig binconfig ptest PACKAGECONFIG ??= "readline" -PACKAGECONFIG[readline] = ",,readline" +PACKAGECONFIG[readline] = ",,readline,readline" TARGET_CC_ARCH += " -fPIC ${LDFLAGS}" EXTRA_OEMAKE = "'CC=${CC} -fPIC' 'MYCFLAGS=${CFLAGS} -fPIC' MYLDFLAGS='${LDFLAGS}' 'AR=ar rcD' 'RANLIB=ranlib -D'" +do_configure:prepend:class-target() { + libreadline=$(find "${RECIPE_SYSROOT}" -name libreadline.so) + if [ -n "$libreadline" ] && [ -L "$libreadline" ]; then + real_libreadline=$(readlink "$libreadline") + sed -i -e "s/#define LUA_READLINELIB[[:space:]]*\"libreadline.*$/#define LUA_READLINELIB \"$real_libreadline\"/g" src/luaconf.h + fi +} + 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 () { - oe_runmake ${@bb.utils.contains('PACKAGECONFIG', 'readline', 'linux-readline', 'linux', d)} + oe_runmake linux } do_install () {
@@ -40,13 +48,13 @@ do_install () { 'INSTALL_MAN=${D}${mandir}/man1' \ 'INSTALL_SHARE=${D}${datadir}/lua' \ 'INSTALL_LIB=${D}${libdir}' \ - 'INSTALL_CMOD=${D}${libdir}/lua/5.4' \ + 'INSTALL_CMOD=${D}${libdir}/lua/5.5' \ install install -d ${D}${libdir}/pkgconfig sed -e s/@VERSION@/${PV}/ -e s#@LIBDIR@#${libdir}# -e s#@INCLUDEDIR@#${includedir}# ${UNPACKDIR}/lua.pc.in > ${S}/lua.pc install -m 0644 ${S}/lua.pc ${D}${libdir}/pkgconfig/ - rmdir ${D}${datadir}/lua/5.4 + rmdir ${D}${datadir}/lua/5.* rmdir ${D}${datadir}/lua }
Signature · 1 line
2.34.1