1
0

Accepting request 505247 from home:dimstar:Factory

Fix build in TW

OBS-URL: https://build.opensuse.org/request/show/505247
OBS-URL: https://build.opensuse.org/package/show/Apache:Modules/apache2-mod_security2?expand=0&rev=73
This commit is contained in:
Petr Gajdos 2017-06-23 06:38:29 +00:00 committed by Git OBS Bridge
parent 70673e6619
commit 57568dbaa7
2 changed files with 19 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jun 21 10:16:28 UTC 2017 - dimstar@opensuse.org
- Update modsecurity-fixes.patch: additionally include netdb.h in
order to have gethostbyname defined.
-------------------------------------------------------------------
Thu Mar 23 15:14:11 UTC 2017 - kstreitova@suse.com
@ -13,7 +19,7 @@ Wed Jul 29 06:42:19 UTC 2015 - pgajdos@suse.com
Thu Jul 16 07:22:02 UTC 2015 - pgajdos@suse.com
- Requries: %{apache_suse_maintenance_mmn}
This will pull this module to the update (in released distribution)
This will pull this module to the update (in released distribution)
when apache maintainer thinks it is good (due api/abi changes).
-------------------------------------------------------------------

View File

@ -1,3 +1,5 @@
Index: modsecurity-2.9.0/apache2/mod_security2.c
===================================================================
--- modsecurity-2.9.0.orig/apache2/mod_security2.c
+++ modsecurity-2.9.0/apache2/mod_security2.c
@@ -457,17 +457,13 @@ static void store_tx_context(modsec_rec
@ -19,6 +21,8 @@
msr->modsecurity = modsecurity;
msr->r = r;
Index: modsecurity-2.9.0/apache2/msc_reqbody.c
===================================================================
--- modsecurity-2.9.0.orig/apache2/msc_reqbody.c
+++ modsecurity-2.9.0/apache2/msc_reqbody.c
@@ -88,7 +88,7 @@ apr_status_t modsecurity_request_body_st
@ -30,16 +34,21 @@
/* Initialise request body processors, if any. */
Index: modsecurity-2.9.0/apache2/msc_status_engine.c
===================================================================
--- modsecurity-2.9.0.orig/apache2/msc_status_engine.c
+++ modsecurity-2.9.0/apache2/msc_status_engine.c
@@ -37,6 +37,7 @@
@@ -37,6 +37,8 @@
#if (defined(__linux__) || defined(__gnu_linux__))
#include <linux/if.h>
#include <linux/sockios.h>
+#include <sys/ioctl.h>
+#include <netdb.h>
#endif
#ifdef HAVE_SYS_UTSNAME_H
#include <sys/utsname.h>
Index: modsecurity-2.9.0/apache2/msc_remote_rules.c
===================================================================
--- modsecurity-2.9.0.orig/apache2/msc_remote_rules.c
+++ modsecurity-2.9.0/apache2/msc_remote_rules.c
@@ -792,6 +792,7 @@ next:
@ -50,6 +59,8 @@
}
Index: modsecurity-2.9.0/apache2/msc_util.c
===================================================================
--- modsecurity-2.9.0.orig/apache2/msc_util.c
+++ modsecurity-2.9.0/apache2/msc_util.c
@@ -18,6 +18,7 @@