Hello community, here is the log from the commit of package pdns-recursor for openSUSE:Factory checked in at 2012-10-11 11:13:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/pdns-recursor (Old) and /work/SRC/openSUSE:Factory/.pdns-recursor.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "pdns-recursor", Maintainer is "[email protected]" Changes: -------- --- /work/SRC/openSUSE:Factory/pdns-recursor/pdns-recursor.changes 2012-06-16 07:31:13.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.pdns-recursor.new/pdns-recursor.changes 2012-10-11 11:16:36.000000000 +0200 @@ -1,0 +2,5 @@ +Tue Oct 9 14:17:26 UTC 2012 - [email protected] + +- Use LUA 5.2 + +------------------------------------------------------------------- New: ---- pdns-rec-lua52.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ pdns-recursor.spec ++++++ --- /var/tmp/diff_new_pack.OcB0ec/_old 2012-10-11 11:16:37.000000000 +0200 +++ /var/tmp/diff_new_pack.OcB0ec/_new 2012-10-11 11:16:37.000000000 +0200 @@ -29,17 +29,8 @@ %define home %{_var}/lib/pdns %define _localstatedir %{_var}/run/pdns BuildRequires: boost-devel gcc-c++ -%if 0%{?suse_version} < 1030 || 0%{?suse_version} > 1210 -BuildRequires: lua51-devel -%if 0%{?suse_version} > 1210 -%define lua_lib lua -%else -%define lua_lib lua5.1 -%endif -%else BuildRequires: lua-devel %define lua_lib lua -%endif BuildRoot: %{_tmppath}/%{name}-%{version}-build PreReq: %insserv_prereq %fillup_prereq pwdutils # @@ -49,6 +40,7 @@ Source2: recursor.conf Patch: pdns-recursor-%{version}_config.patch Patch1: pdns-recursor-3.2rc1-strip.patch +Patch2: pdns-rec-lua52.patch # Summary: Modern, advanced and high performance recursing/non authoritative nameserver %description @@ -65,6 +57,7 @@ %setup -n %{name}-%{pkg_version} %patch %patch1 +%patch2 %build %{__make} OPTFLAGS="%{optflags} -fpic -DPIC" \ ++++++ pdns-rec-lua52.patch ++++++ --- lua-pdns-recursor.cc.orig +++ lua-pdns-recursor.cc @@ -28,6 +28,7 @@ PowerDNSLua::~PowerDNSLua() extern "C" { #undef L +#define LUA_COMPAT_ALL /* Include the Lua API header files. */ #include <lua.h> #include <lauxlib.h> @@ -114,7 +115,11 @@ int logLua(lua_State *lua) PowerDNSLua::PowerDNSLua(const std::string& fname) { - d_lua = lua_open(); +#if LUA_VERSION_NUM > 501 + d_lua = luaL_newstate(); +#else + d_lua = lua_open(); +#endif #ifndef LUA_VERSION_NUM luaopen_base(d_lua); -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
