summaryrefslogtreecommitdiffstats
path: root/meta-webserver/recipes-httpd/apache2/apache2-2.4.2/httpd-2.4.2-r1326980+.patch
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2012-10-05 11:24:13 +0200
committerKoen Kooi <koen@dominion.thruhere.net>2012-10-05 11:24:13 +0200
commit3326002180ae109e9ff72fb35bccbbc87310d5fb (patch)
tree854e877f846d8d9db1c8e352f654f63a66ebff5f /meta-webserver/recipes-httpd/apache2/apache2-2.4.2/httpd-2.4.2-r1326980+.patch
parent7fb3b06bacc90a5429fab810258e03607a4add83 (diff)
parent6190260bea64aa19834ce468a67d5251ded08259 (diff)
downloadmeta-openembedded-3326002180ae109e9ff72fb35bccbbc87310d5fb.tar.gz
Merge remote-tracking branch 'meta-oe-contrib/paule/meta-webserver-add'
Diffstat (limited to 'meta-webserver/recipes-httpd/apache2/apache2-2.4.2/httpd-2.4.2-r1326980+.patch')
-rw-r--r--meta-webserver/recipes-httpd/apache2/apache2-2.4.2/httpd-2.4.2-r1326980+.patch74
1 files changed, 74 insertions, 0 deletions
diff --git a/meta-webserver/recipes-httpd/apache2/apache2-2.4.2/httpd-2.4.2-r1326980+.patch b/meta-webserver/recipes-httpd/apache2/apache2-2.4.2/httpd-2.4.2-r1326980+.patch
new file mode 100644
index 0000000000..98b226bf90
--- /dev/null
+++ b/meta-webserver/recipes-httpd/apache2/apache2-2.4.2/httpd-2.4.2-r1326980+.patch
@@ -0,0 +1,74 @@
1
2* modules/loggers/mod_log_debug.c: Mark private globals as static.
3http://svn.apache.org/viewvc?view=revision&revision=1326980
4
5* modules/filters/sed1.c: Mark private globals as static const.
6 (command): Change p3 pointer to const.
7http://svn.apache.org/viewvc?view=revision&revision=1326984
8
9* modules/filters/config.m4: Prevent libsed internals from polluting
10 the global symbol namespace.
11http://svn.apache.org/viewvc?view=revision&revision=1326991
12
13Upstream-Status: Backport
14
15--- httpd-2.4.2/modules/loggers/mod_log_debug.c
16+++ httpd-2.4.2/modules/loggers/mod_log_debug.c
17@@ -35,8 +35,8 @@
18 apr_array_header_t *entries;
19 } log_debug_dirconf;
20
21-const char *allhooks = "all";
22-const char * const hooks[] = {
23+static const char *allhooks = "all";
24+static const char * const hooks[] = {
25 "log_transaction", /* 0 */
26 "quick_handler", /* 1 */
27 "handler", /* 2 */
28--- httpd-2.4.2/modules/filters/sed1.c
29+++ httpd-2.4.2/modules/filters/sed1.c
30@@ -25,7 +25,7 @@
31 #include "apr_strings.h"
32 #include "regexp.h"
33
34-char *trans[040] = {
35+static const char *const trans[040] = {
36 "\\01",
37 "\\02",
38 "\\03",
39@@ -58,7 +58,7 @@
40 "\\36",
41 "\\37"
42 };
43-char rub[] = {"\\177"};
44+static const char rub[] = {"\\177"};
45
46 extern int sed_step(char *p1, char *p2, int circf, step_vars_storage *vars);
47 static int substitute(sed_eval_t *eval, sed_reptr_t *ipc,
48@@ -692,7 +692,8 @@
49 step_vars_storage *step_vars)
50 {
51 int i;
52- char *p1, *p2, *p3;
53+ char *p1, *p2;
54+ const char *p3;
55 int length;
56 char sz[32]; /* 32 bytes enough to store 64 bit integer in decimal */
57 apr_status_t rv = APR_SUCCESS;
58--- httpd-2.4.2/modules/filters/config.m4
59+++ httpd-2.4.2/modules/filters/config.m4
60@@ -16,7 +16,13 @@
61 APACHE_MODULE(substitute, response content rewrite-like filtering, , , most)
62
63 sed_obj="mod_sed.lo sed0.lo sed1.lo regexp.lo"
64-APACHE_MODULE(sed, filter request and/or response bodies through sed, $sed_obj, , most)
65+APACHE_MODULE(sed, filter request and/or response bodies through sed, $sed_obj, , most, [
66+ if test "x$enable_sed" = "xshared"; then
67+ # The only symbol which needs to be exported is the module
68+ # structure, so ask libtool to hide libsed internals:
69+ APR_ADDTO(MOD_SED_LDADD, [-export-symbols-regex sed_module])
70+ fi
71+])
72
73 if test "$ac_cv_ebcdic" = "yes"; then
74 # mod_charset_lite can be very useful on an ebcdic system,