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>
Fri, 23 Nov 2018 10:10:56 +0000 (11:10 +0100)
commita9293fd786eb19e3bcb10bef2d2249c4832d3e91
tree7699e4e6bcd9fa83e1db4c0a97faa36f7df31d35
parent6239dee485aceacdbb9937da126bf71bf1293495
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]