diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2019-10-10 13:20:25 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-10-10 21:58:10 -0700 |
commit | 54d9fe3e5f2c60c7da4ec7c019af927f1688c23d (patch) | |
tree | 84df268ce350aeb2c42386ddce2b49d10821d1b6 /meta-oe/recipes-devtools/lua/lua_5.3.5.bb | |
parent | 1958ce52829f9efb2e9ba0d29679f6808e2d3631 (diff) | |
download | meta-openembedded-contrib-54d9fe3e5f2c60c7da4ec7c019af927f1688c23d.tar.gz |
lua: change a hard readline dependency into an optional one
This requires patching the source code, as readline is hardcoded
in there.
The rationale is to allow disabling the dependency on a gplv3
component (readline) where that license is blacklisted.
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-devtools/lua/lua_5.3.5.bb')
-rw-r--r-- | meta-oe/recipes-devtools/lua/lua_5.3.5.bb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/meta-oe/recipes-devtools/lua/lua_5.3.5.bb b/meta-oe/recipes-devtools/lua/lua_5.3.5.bb index 265e2519e0..ae41e627f0 100644 --- a/meta-oe/recipes-devtools/lua/lua_5.3.5.bb +++ b/meta-oe/recipes-devtools/lua/lua_5.3.5.bb @@ -4,9 +4,9 @@ LICENSE = "MIT" LIC_FILES_CHKSUM = "file://doc/readme.html;beginline=318;endline=352;md5=60aa5cfdbd40086501778d9b6ebf29ee" HOMEPAGE = "http://www.lua.org/" -DEPENDS = "readline" SRC_URI = "http://www.lua.org/ftp/lua-${PV}.tar.gz;name=tarballsrc \ file://lua.pc.in \ + file://0001-Allow-building-lua-without-readline-on-Linux.patch \ " # if no test suite matches PV release of Lua exactly, download the suite for the closest Lua release. @@ -24,18 +24,21 @@ SRC_URI[tarballtest.sha256sum] = "b80771238271c72565e5a1183292ef31bd7166414cd0d4 inherit pkgconfig binconfig ptest +PACKAGECONFIG ??= "readline" +PACKAGECONFIG[readline] = ",,readline" + UCLIBC_PATCHES += "file://uclibc-pthread.patch" SRC_URI_append_libc-uclibc = "${UCLIBC_PATCHES}" TARGET_CC_ARCH += " -fPIC ${LDFLAGS}" -EXTRA_OEMAKE = "'CC=${CC} -fPIC' 'MYCFLAGS=${CFLAGS} -DLUA_USE_LINUX -fPIC' MYLDFLAGS='${LDFLAGS}'" +EXTRA_OEMAKE = "'CC=${CC} -fPIC' 'MYCFLAGS=${CFLAGS} -fPIC' MYLDFLAGS='${LDFLAGS}'" do_configure_prepend() { sed -i -e s:/usr/local:${prefix}:g src/luaconf.h } do_compile () { - oe_runmake linux + oe_runmake ${@bb.utils.contains('PACKAGECONFIG', 'readline', 'linux', 'linux-no-readline', d)} } do_install () { |