From 1d166ab1f94a779caf1cca5c4db556185a541dde Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Fri, 20 Mar 2015 11:51:47 +0100 Subject: [PATCH] Define LUA_COMPAT_5_2 in addition to LUA_COMPAT_5_1 https://bugzilla.redhat.com/show_bug.cgi?id=1204129 --- lua-5.3.0-configure-compat-module.patch | 5 +++-- lua.spec | 5 ++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lua-5.3.0-configure-compat-module.patch b/lua-5.3.0-configure-compat-module.patch index 567a5fc..bd5d41d 100644 --- a/lua-5.3.0-configure-compat-module.patch +++ b/lua-5.3.0-configure-compat-module.patch @@ -1,7 +1,7 @@ diff -up lua-5.2.2/configure.ac.compat-module lua-5.2.2/configure.ac --- lua-5.2.2/configure.ac.compat-module 2013-05-10 10:16:05.344137597 -0400 +++ lua-5.2.2/configure.ac 2013-05-10 10:16:05.357137596 -0400 -@@ -11,6 +11,19 @@ AC_PROG_CC +@@ -11,6 +11,20 @@ AC_PROG_CC AC_PROG_LIBTOOL AC_ARG_WITH( @@ -13,7 +13,8 @@ diff -up lua-5.2.2/configure.ac.compat-module lua-5.2.2/configure.ac + +COMPAT_DEFS="#undef LUA_COMPAT_ALL" +if test "x$use_compat_module" == "xyes"; then -+ COMPAT_DEFS="#define LUA_COMPAT_5_1" ++ COMPAT_DEFS="#define LUA_COMPAT_5_1 ++#define LUA_COMPAT_5_2" +fi +AC_SUBST(COMPAT_DEFS) + diff --git a/lua.spec b/lua.spec index a48b167..1a47095 100644 --- a/lua.spec +++ b/lua.spec @@ -9,7 +9,7 @@ Name: lua Version: %{major_version}.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Powerful light-weight programming language Group: Development/Languages License: MIT @@ -159,6 +159,9 @@ popd %changelog +* Fri Mar 20 2015 Kalev Lember - 5.3.0-3 +- Define LUA_COMPAT_5_2 in addition to LUA_COMPAT_5_1 (#1204129) + * Sat Feb 21 2015 Till Maas - 5.3.0-2 - Rebuilt for Fedora 23 Change https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code