Add patch to fix building of the lua bindings.

This commit is contained in:
Thomas Moschny 2015-04-23 21:01:23 +02:00
parent 94ee2a0a3f
commit 015266f642
2 changed files with 18 additions and 0 deletions

View File

@ -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)

View File

@ -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 <thomas.moschny@gmx.de> - 1.1.2-1
- Update to 1.1.2.
- Add patch to fix building of the lua bindings.
* Tue Mar 17 2015 Thomas Moschny <thomas.moschny@gmx.de> - 1.1.1-2
- Use %%license only where possible.