Add patch to fix building of the lua bindings.
This commit is contained in:
parent
94ee2a0a3f
commit
015266f642
15
lxc-1.1.2-fix-lua-compat.patch
Normal file
15
lxc-1.1.2-fix-lua-compat.patch
Normal 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)
|
3
lxc.spec
3
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 <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.
|
||||
|
Loading…
Reference in New Issue
Block a user