diff --git a/lxc-1.1.2-fix-lua-compat.patch b/lxc-1.1.2-fix-lua-compat.patch new file mode 100644 index 0000000..fc4108d --- /dev/null +++ b/lxc-1.1.2-fix-lua-compat.patch @@ -0,0 +1,15 @@ +diff --git a/src/lua-lxc/core.c b/src/lua-lxc/core.c +index 630a3e4..34180a7 100644 +--- a/src/lua-lxc/core.c ++++ b/src/lua-lxc/core.c +@@ -39,8 +39,10 @@ + #endif + + #if LUA_VERSION_NUM >= 503 ++#ifndef luaL_checkunsigned + #define luaL_checkunsigned(L,n) ((lua_Unsigned)luaL_checkinteger(L,n)) + #endif ++#endif + + #ifdef NO_CHECK_UDATA + #define checkudata(L,i,tname) lua_touserdata(L, i) diff --git a/lxc.spec b/lxc.spec index 4dfbec9..b9ef570 100644 --- a/lxc.spec +++ b/lxc.spec @@ -42,6 +42,7 @@ Source0: https://github.com/lxc/lxc/archive/%{commit}/%{name}-%{commit}.t Source0: http://linuxcontainers.org/downloads/%{name}-%{version}.tar.gz %endif Patch0: lxc-1.1.0-fix-init.patch +Patch1: lxc-1.1.2-fix-lua-compat.patch BuildRequires: docbook-utils BuildRequires: docbook2X BuildRequires: doxygen @@ -181,6 +182,7 @@ This package contains documentation for %{name}. %prep %setup -q -n %{name}-%{?!prerel:%{version}}%{?prerel:%{commit}} %patch0 -p1 +%patch1 -p1 %build @@ -383,6 +385,7 @@ fi %changelog * Mon Apr 20 2015 Thomas Moschny - 1.1.2-1 - Update to 1.1.2. +- Add patch to fix building of the lua bindings. * Tue Mar 17 2015 Thomas Moschny - 1.1.1-2 - Use %%license only where possible.