From 12990c8b415c7bad9d0ded397e8a86c9f74984fd Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Fri, 13 Feb 2015 13:33:30 +0100 Subject: [PATCH] - Update to 2.9.0 - Remove backported patch - Add patch to fix lua 5.3 build issue (PR #837) --- .gitignore | 1 + mod_security.spec | 13 ++++++++++--- modsecurity-2.9.0-fix-lua53-build.patch | 16 ++++++++++++++++ sources | 2 +- 4 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 modsecurity-2.9.0-fix-lua53-build.patch diff --git a/.gitignore b/.gitignore index 0cfad6e..09375e0 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ modsecurity-apache_2.5.12.tar.gz /modsecurity-apache_2.7.7.tar.gz.sha256 /modsecurity-2.8.0.tar.gz /modsecurity-2.8.0.tar.gz.sha256 +/modsecurity-2.9.0.tar.gz diff --git a/mod_security.spec b/mod_security.spec index 3a02b98..de5d56c 100644 --- a/mod_security.spec +++ b/mod_security.spec @@ -9,8 +9,8 @@ Summary: Security module for the Apache HTTP Server Name: mod_security -Version: 2.8.0 -Release: 7%{?dist} +Version: 2.9.0 +Release: 1%{?dist} License: ASL 2.0 URL: http://www.modsecurity.org/ Group: System Environment/Daemons @@ -18,9 +18,11 @@ Source: https://www.modsecurity.org/tarball/%{version}/modsecurity-%{version}.ta Source1: mod_security.conf Source2: 10-mod_security.conf Source3: modsecurity_localrules.conf -Patch0: 0001-mlogc-Changes-the-default-SSL-algo-to-TLS-1.2.patch +# Github PR #837 +Patch0: modsecurity-2.9.0-fix-lua53-build.patch Requires: httpd httpd-mmn = %{_httpd_mmn} BuildRequires: httpd-devel libxml2-devel pcre-devel lua-devel +# Required for force recent TLS version BuildRequires: curl-devel >= 7.38.0 %description @@ -123,6 +125,11 @@ rm -rf %{buildroot} %endif %changelog +* Fri Feb 13 2015 Athmane Madjoudj 2.9.0-1 +- Update to 2.9.0 +- Remove backported patch +- Add patch to fix lua 5.3 build issue (PR #837) + * Tue Nov 04 2014 Athmane Madjoudj 2.8.0-7 - Make sure mod_security is built with correct curl version diff --git a/modsecurity-2.9.0-fix-lua53-build.patch b/modsecurity-2.9.0-fix-lua53-build.patch new file mode 100644 index 0000000..cc8d4ea --- /dev/null +++ b/modsecurity-2.9.0-fix-lua53-build.patch @@ -0,0 +1,16 @@ +diff -ru modsecurity-2.9.0.orig/apache2/msc_lua.c modsecurity-2.9.0/apache2/msc_lua.c +--- modsecurity-2.9.0.orig/apache2/msc_lua.c 2015-02-12 20:08:30.000000000 +0100 ++++ modsecurity-2.9.0/apache2/msc_lua.c 2015-02-13 13:07:42.976716385 +0100 +@@ -111,8 +111,11 @@ + dump.pool = pool; + dump.parts = apr_array_make(pool, 128, sizeof(msc_script_part *)); + ++#if LUA_VERSION_NUM >= 503 ++ lua_dump(L, dump_writer, &dump, 1); ++#else + lua_dump(L, dump_writer, &dump); +- ++#endif + (*script) = apr_pcalloc(pool, sizeof(msc_script)); + (*script)->name = filename; + (*script)->parts = dump.parts; diff --git a/sources b/sources index 7758935..082c801 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -52035dcec07523cb6cc2149b2a180e20 modsecurity-2.8.0.tar.gz +ecf42d21f26338443d7111891851628c modsecurity-2.9.0.tar.gz