Date: Monday, May 18, 2015 @ 05:04:56 Author: anatolik Revision: 133683
FS#44999 Fix incompatibility with lua 5.3 Replace deprecated functions with its 5.3 versions. An upstream commit [1] fixes it but contains a lot of crap (wtf to mix cleanup and bugfixes in the same commit?). Use simple sed to fix issue the same way. [1] https://github.com/diegonehab/luasocket/commit/ddf429282460323e24652e6beec8e750f8e4a958 Modified: luasocket/trunk/PKGBUILD ----------+ PKGBUILD | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2015-05-18 01:25:13 UTC (rev 133682) +++ PKGBUILD 2015-05-18 03:04:56 UTC (rev 133683) @@ -5,7 +5,7 @@ pkgbase=luasocket pkgname=(lua-socket lua51-socket lua52-socket) pkgver=3.0rc1 -pkgrel=6 +pkgrel=7 pkgdesc='Networking support library for the Lua language' arch=('i686' 'x86_64') url='https://github.com/diegonehab/luasocket' @@ -19,6 +19,10 @@ prepare() { cd "${srcdir}/luasocket-${pkgver/rc/-rc}" patch -p1 < ${srcdir}/396e9e5.patch + + # Partially apply https://github.com/diegonehab/luasocket/commit/ddf429282460323e24652e6beec8e750f8e4a958 + # it replaces deprecated Lua functions. + sed 's/\bluaL_checkint\b/(int)luaL_checkinteger/g' -i src/{mime,luasocket}.c } build() {
