package/luvi: add patch to fix build issue
authorJörg Krause <joerg.krause@embedded.rocks>
Thu, 15 Nov 2018 19:28:46 +0000 (20:28 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 19 Nov 2018 21:23:37 +0000 (22:23 +0100)
commit9803d84873417e1efadc05961b65bedb93d83f65
tree2bbb1bc4abef60f8934cd43a998a6261a75195ce
parent6f9887a9d38e2cbd29e1518e90f833f05ab7017f
package/luvi: add patch to fix build issue

Since bumping luv from version 1.9.1 to 1.22.0, building luvi fails, as
"luv.h" now includes "compat-5.3.h", which is locally shipped as a
dependency to lua-compat-5.3.

Fixing the issue reveals, that luvi is using `luaL_newlib` which is not
available in the Lua 5.1 API. Building luvi with luv 1.9.1 was not an
issue before, because luv 1.9.1 defined `luaL_newlib` in luv.h, which
was removed in 1.22.0 in favour of using lua-compat-5.3.

Therefore, add a patch which defines `luaL_newlib` in luvi.h.

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/luvi/0001-Add-missing-define-for-luaL_newlib-for-Lua-5.1.patch [new file with mode: 0644]