Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/apache:master commit in: 2.2/patches/
Date: Sat, 09 Nov 2013 15:33:02
Message-Id: 1224945481.26973886b3fa505f9497a2804165408fc2c3c7b6.polynomial-c@gentoo
1 commit: 26973886b3fa505f9497a2804165408fc2c3c7b6
2 Author: Benedikt Boehm <hollow <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 25 14:38:01 2008 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 25 14:38:01 2008 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/apache.git;a=commit;h=26973886
7
8 update itk patch
9
10 ---
11 2.2/patches/21_all_itk_20080105.patch | 234 +++++++++++++++++-----------------
12 1 file changed, 114 insertions(+), 120 deletions(-)
13
14 diff --git a/2.2/patches/21_all_itk_20080105.patch b/2.2/patches/21_all_itk_20080105.patch
15 index bf498d7..a9580eb 100644
16 --- a/2.2/patches/21_all_itk_20080105.patch
17 +++ b/2.2/patches/21_all_itk_20080105.patch
18 @@ -1,49 +1,22 @@
19 -Index: httpd-2.2.8/server/mpm/config.m4
20 -===================================================================
21 ---- httpd-2.2.8.orig/server/mpm/config.m4
22 -+++ httpd-2.2.8/server/mpm/config.m4
23 -@@ -1,7 +1,7 @@
24 - AC_MSG_CHECKING(which MPM to use)
25 - AC_ARG_WITH(mpm,
26 - APACHE_HELP_STRING(--with-mpm=MPM,Choose the process model for Apache to use.
27 -- MPM={beos|event|worker|prefork|mpmt_os2|peruser}),[
28 -+ MPM={beos|event|worker|prefork|mpmt_os2|peruser|itk}),[
29 - APACHE_MPM=$withval
30 - ],[
31 - if test "x$APACHE_MPM" = "x"; then
32 -@@ -23,7 +23,7 @@ ap_mpm_is_threaded ()
33 -
34 - ap_mpm_is_experimental ()
35 - {
36 -- if test "$apache_cv_mpm" = "event" -o "$apache_cv_mpm" = "peruser" ; then
37 -+ if test "$apache_cv_mpm" = "event" -o "$apache_cv_mpm" = "peruser" -o "$apache_cv_mpm" = "itk" ; then
38 - return 0
39 - else
40 - return 1
41 -@@ -66,6 +66,11 @@ if ap_mpm_is_experimental; then
42 - else
43 - MPM_SUBDIR_NAME=$MPM_NAME
44 - fi
45 +unchanged:
46 +--- apache2.2/server/mpm/experimental/itk/Makefile.in
47 ++++ apache2.2/server/mpm/experimental/itk/Makefile.in
48 +@@ -0,0 +1,5 @@
49 +
50 -+if "$apache_cv_mpm" = "itk" ; then
51 -+ AC_CHECK_LIB(cap, cap_init)
52 -+fi
53 ++LTLIBRARY_NAME = libitk.la
54 ++LTLIBRARY_SOURCES = itk.c
55 +
56 - MPM_DIR=server/mpm/$MPM_SUBDIR_NAME
57 - MPM_LIB=$MPM_DIR/lib${MPM_NAME}.la
58 -
59 -Index: httpd-2.2.8/server/mpm/experimental/itk/config.m4
60 -===================================================================
61 ---- /dev/null
62 -+++ httpd-2.2.8/server/mpm/experimental/itk/config.m4
63 ++include $(top_srcdir)/build/ltlib.mk
64 +unchanged:
65 +--- apache2.2/server/mpm/experimental/itk/config.m4
66 ++++ apache2.2/server/mpm/experimental/itk/config.m4 2007-01-29 21:03:57.000000000 +0100
67 @@ -0,0 +1,3 @@
68 +if test "$MPM_NAME" = "itk" ; then
69 + APACHE_FAST_OUTPUT(server/mpm/$MPM_SUBDIR_NAME/Makefile)
70 +fi
71 -Index: httpd-2.2.8/server/mpm/experimental/itk/itk.c
72 -===================================================================
73 ---- /dev/null
74 -+++ httpd-2.2.8/server/mpm/experimental/itk/itk.c
75 +diff -u apache2.2/server/mpm/experimental/itk/itk.c apache2.2/server/mpm/experimental/itk/itk.c
76 +--- apache2.2/server/mpm/experimental/itk/itk.c
77 ++++ apache2.2/server/mpm/experimental/itk/itk.c
78 @@ -0,0 +1,1704 @@
79 +/* Licensed to the Apache Software Foundation (ASF) under one or more
80 + * contributor license agreements. See the NOTICE file distributed with
81 @@ -1749,20 +1722,78 @@ Index: httpd-2.2.8/server/mpm/experimental/itk/itk.c
82 + itk_cmds, /* command apr_table_t */
83 + itk_hooks, /* register hooks */
84 +};
85 -Index: httpd-2.2.8/server/mpm/experimental/itk/Makefile.in
86 -===================================================================
87 ---- /dev/null
88 -+++ httpd-2.2.8/server/mpm/experimental/itk/Makefile.in
89 -@@ -0,0 +1,5 @@
90 +unchanged:
91 +--- apache2.2/server/mpm/experimental/itk/mpm.h
92 ++++ apache2.2/server/mpm/experimental/itk/mpm.h 2007-01-29 21:22:33.000000000 +0100
93 +@@ -0,0 +1,65 @@
94 ++/* Licensed to the Apache Software Foundation (ASF) under one or more
95 ++ * contributor license agreements. See the NOTICE file distributed with
96 ++ * this work for additional information regarding copyright ownership.
97 ++ * The ASF licenses this file to You under the Apache License, Version 2.0
98 ++ * (the "License"); you may not use this file except in compliance with
99 ++ * the License. You may obtain a copy of the License at
100 ++ *
101 ++ * http://www.apache.org/licenses/LICENSE-2.0
102 ++ *
103 ++ * Unless required by applicable law or agreed to in writing, software
104 ++ * distributed under the License is distributed on an "AS IS" BASIS,
105 ++ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
106 ++ * See the License for the specific language governing permissions and
107 ++ * limitations under the License.
108 ++ *
109 ++ * Portions copyright 2005-2007 Steinar H. Gunderson <sgunderson@×××××××.com>.
110 ++ * Licensed under the same terms as the rest of Apache.
111 ++ */
112 +
113 -+LTLIBRARY_NAME = libitk.la
114 -+LTLIBRARY_SOURCES = itk.c
115 ++/**
116 ++ * @file itk/mpm.h
117 ++ * @brief ITK MPM (setuid per-vhost, no threads)
118 ++ *
119 ++ * @defgroup APACHE_MPM_ITK Apache ITK
120 ++ * @ingroup APACHE_MPM APACHE_OS_UNIX
121 ++ * @{
122 ++ */
123 +
124 -+include $(top_srcdir)/build/ltlib.mk
125 -Index: httpd-2.2.8/server/mpm/experimental/itk/mpm_default.h
126 -===================================================================
127 ---- /dev/null
128 -+++ httpd-2.2.8/server/mpm/experimental/itk/mpm_default.h
129 ++#include "httpd.h"
130 ++#include "mpm_default.h"
131 ++#include "scoreboard.h"
132 ++#include "unixd.h"
133 ++
134 ++#ifndef APACHE_MPM_ITK_H
135 ++#define APACHE_MPM_ITK_H
136 ++
137 ++#define ITK_MPM
138 ++
139 ++#define MPM_NAME "ITK"
140 ++
141 ++#define AP_MPM_WANT_RECLAIM_CHILD_PROCESSES
142 ++#define AP_MPM_WANT_WAIT_OR_TIMEOUT
143 ++#define AP_MPM_WANT_PROCESS_CHILD_STATUS
144 ++#define AP_MPM_WANT_SET_PIDFILE
145 ++#define AP_MPM_WANT_SET_SCOREBOARD
146 ++#define AP_MPM_WANT_SET_LOCKFILE
147 ++#define AP_MPM_WANT_SET_MAX_REQUESTS
148 ++#define AP_MPM_WANT_SET_COREDUMPDIR
149 ++#define AP_MPM_WANT_SET_ACCEPT_LOCK_MECH
150 ++#define AP_MPM_WANT_SIGNAL_SERVER
151 ++#define AP_MPM_WANT_SET_MAX_MEM_FREE
152 ++#define AP_MPM_WANT_FATAL_SIGNAL_HANDLER
153 ++#define AP_MPM_WANT_SET_GRACEFUL_SHUTDOWN
154 ++#define AP_MPM_DISABLE_NAGLE_ACCEPTED_SOCK
155 ++
156 ++#define AP_MPM_USES_POD 1
157 ++#define MPM_CHILD_PID(i) (ap_scoreboard_image->parent[i].pid)
158 ++#define MPM_NOTE_CHILD_KILLED(i) (MPM_CHILD_PID(i) = 0)
159 ++#define MPM_ACCEPT_FUNC unixd_accept
160 ++
161 ++extern int ap_threads_per_child;
162 ++extern int ap_max_daemons_limit;
163 ++extern server_rec *ap_server_conf;
164 ++#endif /* APACHE_MPM_ITK_H */
165 ++/** @} */
166 +unchanged:
167 +--- apache2.2/server/mpm/experimental/itk/mpm_default.h
168 ++++ apache2.2/server/mpm/experimental/itk/mpm_default.h 2007-01-29 21:22:09.000000000 +0100
169 @@ -0,0 +1,77 @@
170 +/* Licensed to the Apache Software Foundation (ASF) under one or more
171 + * contributor license agreements. See the NOTICE file distributed with
172 @@ -1841,73 +1872,36 @@ Index: httpd-2.2.8/server/mpm/experimental/itk/mpm_default.h
173 +
174 +#endif /* AP_MPM_DEFAULT_H */
175 +/** @} */
176 -Index: httpd-2.2.8/server/mpm/experimental/itk/mpm.h
177 -===================================================================
178 ---- /dev/null
179 -+++ httpd-2.2.8/server/mpm/experimental/itk/mpm.h
180 -@@ -0,0 +1,65 @@
181 -+/* Licensed to the Apache Software Foundation (ASF) under one or more
182 -+ * contributor license agreements. See the NOTICE file distributed with
183 -+ * this work for additional information regarding copyright ownership.
184 -+ * The ASF licenses this file to You under the Apache License, Version 2.0
185 -+ * (the "License"); you may not use this file except in compliance with
186 -+ * the License. You may obtain a copy of the License at
187 -+ *
188 -+ * http://www.apache.org/licenses/LICENSE-2.0
189 -+ *
190 -+ * Unless required by applicable law or agreed to in writing, software
191 -+ * distributed under the License is distributed on an "AS IS" BASIS,
192 -+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
193 -+ * See the License for the specific language governing permissions and
194 -+ * limitations under the License.
195 -+ *
196 -+ * Portions copyright 2005-2007 Steinar H. Gunderson <sgunderson@×××××××.com>.
197 -+ * Licensed under the same terms as the rest of Apache.
198 -+ */
199 -+
200 -+/**
201 -+ * @file itk/mpm.h
202 -+ * @brief ITK MPM (setuid per-vhost, no threads)
203 -+ *
204 -+ * @defgroup APACHE_MPM_ITK Apache ITK
205 -+ * @ingroup APACHE_MPM APACHE_OS_UNIX
206 -+ * @{
207 -+ */
208 -+
209 -+#include "httpd.h"
210 -+#include "mpm_default.h"
211 -+#include "scoreboard.h"
212 -+#include "unixd.h"
213 -+
214 -+#ifndef APACHE_MPM_ITK_H
215 -+#define APACHE_MPM_ITK_H
216 -+
217 -+#define ITK_MPM
218 -+
219 -+#define MPM_NAME "ITK"
220 -+
221 -+#define AP_MPM_WANT_RECLAIM_CHILD_PROCESSES
222 -+#define AP_MPM_WANT_WAIT_OR_TIMEOUT
223 -+#define AP_MPM_WANT_PROCESS_CHILD_STATUS
224 -+#define AP_MPM_WANT_SET_PIDFILE
225 -+#define AP_MPM_WANT_SET_SCOREBOARD
226 -+#define AP_MPM_WANT_SET_LOCKFILE
227 -+#define AP_MPM_WANT_SET_MAX_REQUESTS
228 -+#define AP_MPM_WANT_SET_COREDUMPDIR
229 -+#define AP_MPM_WANT_SET_ACCEPT_LOCK_MECH
230 -+#define AP_MPM_WANT_SIGNAL_SERVER
231 -+#define AP_MPM_WANT_SET_MAX_MEM_FREE
232 -+#define AP_MPM_WANT_FATAL_SIGNAL_HANDLER
233 -+#define AP_MPM_WANT_SET_GRACEFUL_SHUTDOWN
234 -+#define AP_MPM_DISABLE_NAGLE_ACCEPTED_SOCK
235 +unchanged:
236 +--- apache2.2/server/mpm/config.m4 2007-01-29 21:30:35.000000000 +0100
237 ++++ apache2.2/server/mpm/config.m4
238 +@@ -1,7 +1,7 @@
239 + AC_MSG_CHECKING(which MPM to use)
240 + AC_ARG_WITH(mpm,
241 + APACHE_HELP_STRING(--with-mpm=MPM,Choose the process model for Apache to use.
242 +- MPM={beos|event|worker|prefork|mpmt_os2|peruser}),[
243 ++ MPM={beos|event|worker|prefork|mpmt_os2|peruser|itk}),[
244 + APACHE_MPM=$withval
245 + ],[
246 + if test "x$APACHE_MPM" = "x"; then
247 +@@ -23,7 +23,7 @@
248 +
249 + ap_mpm_is_experimental ()
250 + {
251 +- if test "$apache_cv_mpm" = "event" -o "$apache_cv_mpm" = "peruser" ; then
252 ++ if test "$apache_cv_mpm" = "event" -o "$apache_cv_mpm" = "peruser" -o "$apache_cv_mpm" = "itk" ; then
253 + return 0
254 + else
255 + return 1
256 +@@ -66,6 +66,11 @@
257 + else
258 + MPM_SUBDIR_NAME=$MPM_NAME
259 + fi
260 +
261 -+#define AP_MPM_USES_POD 1
262 -+#define MPM_CHILD_PID(i) (ap_scoreboard_image->parent[i].pid)
263 -+#define MPM_NOTE_CHILD_KILLED(i) (MPM_CHILD_PID(i) = 0)
264 -+#define MPM_ACCEPT_FUNC unixd_accept
265 ++if test "$apache_cv_mpm" = "itk" ; then
266 ++ AC_CHECK_LIB(cap, cap_init)
267 ++fi
268 +
269 -+extern int ap_threads_per_child;
270 -+extern int ap_max_daemons_limit;
271 -+extern server_rec *ap_server_conf;
272 -+#endif /* APACHE_MPM_ITK_H */
273 -+/** @} */
274 + MPM_DIR=server/mpm/$MPM_SUBDIR_NAME
275 + MPM_LIB=$MPM_DIR/lib${MPM_NAME}.la
276 +