1 |
commit: 01e7465f24f3820f6ee89269dddd70c646ae49e6 |
2 |
Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at> |
3 |
AuthorDate: Sun Mar 19 10:42:54 2023 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 20 05:32:11 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01e7465f |
7 |
|
8 |
dev-libs/apr: remove unused patches |
9 |
|
10 |
Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at> |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
dev-libs/apr/files/apr-1.5.0-cross-types.patch | 63 -------- |
14 |
dev-libs/apr/files/apr-1.5.0-libtool.patch | 17 --- |
15 |
dev-libs/apr/files/apr-1.5.0-sysroot.patch | 37 ----- |
16 |
dev-libs/apr/files/apr-1.7.0-CVE-2021-35940.patch | 53 ------- |
17 |
dev-libs/apr/files/apr-1.7.0-autoconf-2.70.patch | 64 -------- |
18 |
dev-libs/apr/files/apr-1.7.0-clang-16.patch | 174 ---------------------- |
19 |
dev-libs/apr/files/apr-1.7.0-dev-zero.patch | 34 ----- |
20 |
7 files changed, 442 deletions(-) |
21 |
|
22 |
diff --git a/dev-libs/apr/files/apr-1.5.0-cross-types.patch b/dev-libs/apr/files/apr-1.5.0-cross-types.patch |
23 |
deleted file mode 100644 |
24 |
index 266e5676817f..000000000000 |
25 |
--- a/dev-libs/apr/files/apr-1.5.0-cross-types.patch |
26 |
+++ /dev/null |
27 |
@@ -1,63 +0,0 @@ |
28 |
-use standard AC_CHECK_SIZEOF as it supports non-builtin types and |
29 |
-supports cross-compiling sanely |
30 |
- |
31 |
-https://issues.apache.org/bugzilla/show_bug.cgi?id=56053 |
32 |
- |
33 |
---- a/configure.in |
34 |
-+++ b/configure.in |
35 |
-@@ -1684,7 +1684,7 @@ else |
36 |
- socklen_t_value="int" |
37 |
- fi |
38 |
- |
39 |
--APR_CHECK_SIZEOF_EXTENDED([#include <sys/types.h>], pid_t, 8) |
40 |
-+AC_CHECK_SIZEOF(pid_t) |
41 |
- |
42 |
- if test "$ac_cv_sizeof_pid_t" = "$ac_cv_sizeof_short"; then |
43 |
- pid_t_fmt='#define APR_PID_T_FMT "hd"' |
44 |
-@@ -1753,7 +1753,7 @@ APR_CHECK_TYPES_COMPATIBLE(ssize_t, long, [ssize_t_fmt="ld"]) |
45 |
- APR_CHECK_TYPES_COMPATIBLE(size_t, unsigned int, [size_t_fmt="u"]) |
46 |
- APR_CHECK_TYPES_COMPATIBLE(size_t, unsigned long, [size_t_fmt="lu"]) |
47 |
- |
48 |
--APR_CHECK_SIZEOF_EXTENDED([#include <sys/types.h>], ssize_t, 8) |
49 |
-+AC_CHECK_SIZEOF(ssize_t) |
50 |
- |
51 |
- AC_MSG_CHECKING([which format to use for apr_ssize_t]) |
52 |
- if test -n "$ssize_t_fmt"; then |
53 |
-@@ -1770,7 +1770,7 @@ fi |
54 |
- |
55 |
- ssize_t_fmt="#define APR_SSIZE_T_FMT \"$ssize_t_fmt\"" |
56 |
- |
57 |
--APR_CHECK_SIZEOF_EXTENDED([#include <stddef.h>], size_t, 8) |
58 |
-+AC_CHECK_SIZEOF(size_t) |
59 |
- |
60 |
- AC_MSG_CHECKING([which format to use for apr_size_t]) |
61 |
- if test -n "$size_t_fmt"; then |
62 |
-@@ -1787,7 +1787,7 @@ fi |
63 |
- |
64 |
- size_t_fmt="#define APR_SIZE_T_FMT \"$size_t_fmt\"" |
65 |
- |
66 |
--APR_CHECK_SIZEOF_EXTENDED([#include <sys/types.h>], off_t, 8) |
67 |
-+AC_CHECK_SIZEOF(off_t) |
68 |
- |
69 |
- if test "${ac_cv_sizeof_off_t}${apr_cv_use_lfs64}" = "4yes"; then |
70 |
- # Enable LFS |
71 |
-@@ -1866,7 +1866,7 @@ case $host in |
72 |
- ;; |
73 |
- *) |
74 |
- ino_t_value=ino_t |
75 |
-- APR_CHECK_SIZEOF_EXTENDED(AC_INCLUDES_DEFAULT, ino_t, $ac_cv_sizeof_long) |
76 |
-+ AC_CHECK_SIZEOF(ino_t) |
77 |
- if test $ac_cv_sizeof_ino_t = 4; then |
78 |
- if test $ac_cv_sizeof_long = 4; then |
79 |
- ino_t_value="unsigned long" |
80 |
-@@ -1886,8 +1886,8 @@ else |
81 |
- bigendian=0 |
82 |
- fi |
83 |
- |
84 |
--APR_CHECK_SIZEOF_EXTENDED([#include <sys/types.h> |
85 |
--#include <sys/uio.h>],struct iovec,0) |
86 |
-+AC_CHECK_SIZEOF(struct iovec,,[AC_INCLUDES_DEFAULT |
87 |
-+#include <sys/uio.h>]) |
88 |
- if test "$ac_cv_sizeof_struct_iovec" = "0"; then |
89 |
- have_iovec=0 |
90 |
- else |
91 |
|
92 |
diff --git a/dev-libs/apr/files/apr-1.5.0-libtool.patch b/dev-libs/apr/files/apr-1.5.0-libtool.patch |
93 |
deleted file mode 100644 |
94 |
index 5368a2689bdf..000000000000 |
95 |
--- a/dev-libs/apr/files/apr-1.5.0-libtool.patch |
96 |
+++ /dev/null |
97 |
@@ -1,17 +0,0 @@ |
98 |
-generate a local copy of libtool for use in compiling |
99 |
- |
100 |
-https://bugs.gentoo.org/374355 |
101 |
- |
102 |
---- a/configure.in |
103 |
-+++ b/configure.in |
104 |
-@@ -260,9 +260,7 @@ case $host in |
105 |
- fi |
106 |
- else |
107 |
- dnl libtoolize requires that the following not be indented |
108 |
-- dnl should become LT_INIT(win32-dll) |
109 |
--AC_LIBTOOL_WIN32_DLL |
110 |
--AC_PROG_LIBTOOL |
111 |
-+LT_INIT(win32-dll) |
112 |
- # get libtool's setting of shlibpath_var |
113 |
- eval `grep "^shlibpath_var=[[A-Z_]]*$" $apr_builddir/libtool` |
114 |
- if test "x$shlibpath_var" = "x"; then |
115 |
|
116 |
diff --git a/dev-libs/apr/files/apr-1.5.0-sysroot.patch b/dev-libs/apr/files/apr-1.5.0-sysroot.patch |
117 |
deleted file mode 100644 |
118 |
index 54c9d649ef07..000000000000 |
119 |
--- a/dev-libs/apr/files/apr-1.5.0-sysroot.patch |
120 |
+++ /dev/null |
121 |
@@ -1,37 +0,0 @@ |
122 |
-https://bugs.gentoo.org/385775 |
123 |
- |
124 |
-utilize $SYSROOT to find the right includedir tree |
125 |
- |
126 |
-drop the -L/-R paths since we know our libdir is the standard path which |
127 |
-the compiler already knows how to locate |
128 |
- |
129 |
---- a/apr-config.in |
130 |
-+++ b/apr-config.in |
131 |
-@@ -28,7 +28,7 @@ libdir="@libdir@" |
132 |
- datarootdir="@datadir@" |
133 |
- datadir="@datadir@" |
134 |
--installbuilddir="@installbuilddir@" |
135 |
--includedir="@includedir@" |
136 |
-+installbuilddir="${SYSROOT}@installbuilddir@" |
137 |
-+includedir="${SYSROOT}@includedir@" |
138 |
- |
139 |
- CC="@CC@" |
140 |
- CPP="@CPP@" |
141 |
-@@ -183,7 +183,7 @@ while test $# -gt 0; do |
142 |
- --link-ld) |
143 |
- if test "$location" = "installed"; then |
144 |
- ### avoid using -L if libdir is a "standard" location like /usr/lib |
145 |
-- flags="$flags -L$libdir -l${APR_LIBNAME}" |
146 |
-+ flags="$flags -l${APR_LIBNAME}" |
147 |
- else |
148 |
- ### this surely can't work since the library is in .libs? |
149 |
- flags="$flags -L$APR_BUILD_DIR -l${APR_LIBNAME}" |
150 |
-@@ -200,7 +200,7 @@ while test $# -gt 0; do |
151 |
- ### avoid using -L if libdir is a "standard" location like /usr/lib |
152 |
- # Since the user is specifying they are linking with libtool, we |
153 |
- # *know* that -R will be recognized by libtool. |
154 |
-- flags="$flags -L$libdir -R$libdir -l${APR_LIBNAME}" |
155 |
-+ flags="$flags -l${APR_LIBNAME}" |
156 |
- else |
157 |
- flags="$flags $LA_FILE" |
158 |
- fi |
159 |
|
160 |
diff --git a/dev-libs/apr/files/apr-1.7.0-CVE-2021-35940.patch b/dev-libs/apr/files/apr-1.7.0-CVE-2021-35940.patch |
161 |
deleted file mode 100644 |
162 |
index f23d729f523e..000000000000 |
163 |
--- a/dev-libs/apr/files/apr-1.7.0-CVE-2021-35940.patch |
164 |
+++ /dev/null |
165 |
@@ -1,53 +0,0 @@ |
166 |
- |
167 |
-SECURITY: CVE-2021-35940 (cve.mitre.org) |
168 |
- |
169 |
-Restore fix for CVE-2017-12613 which was missing in 1.7.x branch, though |
170 |
-was addressed in 1.6.x in 1.6.3 and later via r1807976. |
171 |
- |
172 |
-The fix was merged back to 1.7.x in r1891198. |
173 |
- |
174 |
-Since this was a regression in 1.7.0, a new CVE name has been assigned |
175 |
-to track this, CVE-2021-35940. |
176 |
- |
177 |
-Thanks to Iveta Cesalova <icesalov redhat.com> for reporting this issue. |
178 |
- |
179 |
-https://svn.apache.org/viewvc?view=revision&revision=1891198 |
180 |
- |
181 |
-Index: time/unix/time.c |
182 |
-=================================================================== |
183 |
---- a/time/unix/time.c (revision 1891197) |
184 |
-+++ b/time/unix/time.c (revision 1891198) |
185 |
-@@ -142,6 +142,9 @@ |
186 |
- static const int dayoffset[12] = |
187 |
- {306, 337, 0, 31, 61, 92, 122, 153, 184, 214, 245, 275}; |
188 |
- |
189 |
-+ if (xt->tm_mon < 0 || xt->tm_mon >= 12) |
190 |
-+ return APR_EBADDATE; |
191 |
-+ |
192 |
- /* shift new year to 1st March in order to make leap year calc easy */ |
193 |
- |
194 |
- if (xt->tm_mon < 2) |
195 |
-Index: time/win32/time.c |
196 |
-=================================================================== |
197 |
---- a/time/win32/time.c (revision 1891197) |
198 |
-+++ b/time/win32/time.c (revision 1891198) |
199 |
-@@ -54,6 +54,9 @@ |
200 |
- static const int dayoffset[12] = |
201 |
- {0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334}; |
202 |
- |
203 |
-+ if (tm->wMonth < 1 || tm->wMonth > 12) |
204 |
-+ return APR_EBADDATE; |
205 |
-+ |
206 |
- /* Note; the caller is responsible for filling in detailed tm_usec, |
207 |
- * tm_gmtoff and tm_isdst data when applicable. |
208 |
- */ |
209 |
-@@ -228,6 +231,9 @@ |
210 |
- static const int dayoffset[12] = |
211 |
- {306, 337, 0, 31, 61, 92, 122, 153, 184, 214, 245, 275}; |
212 |
- |
213 |
-+ if (xt->tm_mon < 0 || xt->tm_mon >= 12) |
214 |
-+ return APR_EBADDATE; |
215 |
-+ |
216 |
- /* shift new year to 1st March in order to make leap year calc easy */ |
217 |
- |
218 |
- if (xt->tm_mon < 2) |
219 |
|
220 |
diff --git a/dev-libs/apr/files/apr-1.7.0-autoconf-2.70.patch b/dev-libs/apr/files/apr-1.7.0-autoconf-2.70.patch |
221 |
deleted file mode 100644 |
222 |
index 488c3c59321d..000000000000 |
223 |
--- a/dev-libs/apr/files/apr-1.7.0-autoconf-2.70.patch |
224 |
+++ /dev/null |
225 |
@@ -1,64 +0,0 @@ |
226 |
-From 5593f23e8e062da108ed585535e7281b87346ee1 Mon Sep 17 00:00:00 2001 |
227 |
-From: Sergei Trofimovich <slyfox@g.o> |
228 |
-Date: Wed, 25 Nov 2020 09:36:25 +0000 |
229 |
-Subject: [PATCH] build/apr_common.m4: avoid explicit inclusion of |
230 |
- '"confdefs.h"' |
231 |
- |
232 |
-The failure is observed on `autoconf-2.69d` (soon to be released |
233 |
-as `autoconf-2.70`). There `int64_t` detection fails as: |
234 |
- |
235 |
-``` |
236 |
-$ autoreconf && ./configure |
237 |
-... |
238 |
-checking whether int64_t and int use fmt %d... no |
239 |
-checking whether int64_t and long use fmt %ld... no |
240 |
-checking whether int64_t and long long use fmt %lld... no |
241 |
-configure: error: could not determine the string function for int64_t |
242 |
-``` |
243 |
- |
244 |
-This happens because `./configure` always stumbles on warning: |
245 |
- |
246 |
-``` |
247 |
-configure:3350: gcc -c -g -O2 -Werror conftest.c >&5 |
248 |
-In file included from conftest.c:31: |
249 |
-confdefs.h:22: error: "__STDC_WANT_IEC_60559_ATTRIBS_EXT__" redefined [-Werror] |
250 |
- 22 | #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1 |
251 |
- | |
252 |
-``` |
253 |
- |
254 |
-It's triggered by double inclusion of `"confdefs.h"` contents: |
255 |
-explicitly in `APR_TRY_COMPILE_NO_WARNING` macro and implicitly |
256 |
-via `AC_LANG_SOURCE` use. |
257 |
- |
258 |
-To fix it and avoid having to define `main()` declaration the change |
259 |
-uses `AC_LANG_PROGRAM` instead. |
260 |
- |
261 |
-Tested on both `autoconf-2.69` and `autoconf-2.69d`. |
262 |
- |
263 |
-Bug: https://bugs.gentoo.org/738156 |
264 |
-Bug: https://bugs.gentoo.org/750353 |
265 |
-Signed-off-by: Sergei Trofimovich <slyfox@g.o> |
266 |
---- |
267 |
- build/apr_common.m4 | 8 ++------ |
268 |
- 1 file changed, 2 insertions(+), 6 deletions(-) |
269 |
- |
270 |
-diff --git a/build/apr_common.m4 b/build/apr_common.m4 |
271 |
-index f4e2dfd0a7..6f5782e674 100644 |
272 |
---- a/build/apr_common.m4 |
273 |
-+++ b/build/apr_common.m4 |
274 |
-@@ -504,13 +504,9 @@ AC_DEFUN([APR_TRY_COMPILE_NO_WARNING], |
275 |
- CFLAGS="$CFLAGS -Werror" |
276 |
- fi |
277 |
- AC_COMPILE_IFELSE( |
278 |
-- [AC_LANG_SOURCE( |
279 |
-- [#include "confdefs.h" |
280 |
-- ] |
281 |
-- [[$1]] |
282 |
-- [int main(int argc, const char *const *argv) {] |
283 |
-+ [AC_LANG_PROGRAM( |
284 |
-+ [[$1]], |
285 |
- [[$2]] |
286 |
-- [ return 0; }] |
287 |
- )], [CFLAGS=$apr_save_CFLAGS |
288 |
- $3], [CFLAGS=$apr_save_CFLAGS |
289 |
- $4]) |
290 |
|
291 |
diff --git a/dev-libs/apr/files/apr-1.7.0-clang-16.patch b/dev-libs/apr/files/apr-1.7.0-clang-16.patch |
292 |
deleted file mode 100644 |
293 |
index 2244b07a14ff..000000000000 |
294 |
--- a/dev-libs/apr/files/apr-1.7.0-clang-16.patch |
295 |
+++ /dev/null |
296 |
@@ -1,174 +0,0 @@ |
297 |
-https://bugs.gentoo.org/870004 |
298 |
- |
299 |
-Fixed upstream, hopefully (it's hard to keep track of 1.7.x branch churn): |
300 |
-- https://bz.apache.org/bugzilla/show_bug.cgi?id=64753 |
301 |
-- https://bz.apache.org/bugzilla/show_bug.cgi?id=65087 |
302 |
---- a/build/apr_common.m4 |
303 |
-+++ b/build/apr_common.m4 |
304 |
-@@ -467,6 +467,7 @@ changequote([, ])dnl |
305 |
- AC_MSG_CHECKING(size of $2) |
306 |
- AC_CACHE_VAL(AC_CV_NAME, |
307 |
- [AC_TRY_RUN([#include <stdio.h> |
308 |
-+#include <stdlib.h> |
309 |
- $1 |
310 |
- #ifdef WIN32 |
311 |
- #define binmode "b" |
312 |
-@@ -531,7 +532,8 @@ AC_TRY_RUN([ |
313 |
- #include <errno.h> |
314 |
- #include <string.h> |
315 |
- #include <stdio.h> |
316 |
--main() |
317 |
-+#include <stdlib.h> |
318 |
-+int main() |
319 |
- { |
320 |
- char buf[1024]; |
321 |
- if (strerror_r(ERANGE, buf, sizeof buf) < 1) { |
322 |
---- a/build/apr_network.m4 |
323 |
-+++ b/build/apr_network.m4 |
324 |
-@@ -63,6 +63,10 @@ AC_DEFUN([APR_CHECK_WORKING_GETADDRINFO], [ |
325 |
- #ifdef HAVE_SYS_SOCKET_H |
326 |
- #include <sys/socket.h> |
327 |
- #endif |
328 |
-+#include <stdlib.h> |
329 |
-+ |
330 |
-+#include <netinet/in.h> |
331 |
-+#include <arpa/inet.h> |
332 |
- |
333 |
- int main(void) { |
334 |
- struct addrinfo hints, *ai; |
335 |
-@@ -136,6 +140,11 @@ dnl |
336 |
- AC_DEFUN([APR_CHECK_WORKING_GETNAMEINFO], [ |
337 |
- AC_CACHE_CHECK(for working getnameinfo, ac_cv_working_getnameinfo,[ |
338 |
- AC_TRY_RUN( [ |
339 |
-+#include <sys/socket.h> |
340 |
-+#include <netinet/in.h> |
341 |
-+#include <arpa/inet.h> |
342 |
-+#include <stdlib.h> |
343 |
-+ |
344 |
- #ifdef HAVE_NETDB_H |
345 |
- #include <netdb.h> |
346 |
- #endif |
347 |
-@@ -195,6 +204,8 @@ AC_DEFUN([APR_CHECK_NEGATIVE_EAI], [ |
348 |
- #include <netdb.h> |
349 |
- #endif |
350 |
- |
351 |
-+#include <stdlib.h> |
352 |
-+ |
353 |
- int main(void) { |
354 |
- if (EAI_ADDRFAMILY < 0) { |
355 |
- exit(0); |
356 |
-@@ -388,9 +399,14 @@ AC_DEFUN([APR_CHECK_TCP_NODELAY_INHERITED], [ |
357 |
- AC_CACHE_CHECK(if TCP_NODELAY setting is inherited from listening sockets, ac_cv_tcp_nodelay_inherited,[ |
358 |
- AC_TRY_RUN( [ |
359 |
- #include <stdio.h> |
360 |
-+#include <stdlib.h> |
361 |
-+ |
362 |
- #ifdef HAVE_SYS_TYPES_H |
363 |
- #include <sys/types.h> |
364 |
--#endif |
365 |
-+#end |
366 |
-+#ifdef HAVE_STRING_H |
367 |
-+#include <string.h> |
368 |
-+#endifif |
369 |
- #ifdef HAVE_SYS_SOCKET_H |
370 |
- #include <sys/socket.h> |
371 |
- #endif |
372 |
-@@ -734,6 +750,9 @@ AC_TRY_COMPILE([ |
373 |
- #ifdef HAVE_ARPA_INET_H |
374 |
- #include <arpa/inet.h> |
375 |
- #endif |
376 |
-+ |
377 |
-+#include <sys/socket.h> |
378 |
-+#include <netinet/in.h> |
379 |
- ],[ |
380 |
- inet_addr("127.0.0.1"); |
381 |
- ],[ |
382 |
-@@ -754,6 +773,9 @@ fi |
383 |
- AC_DEFUN([APR_CHECK_INET_NETWORK], [ |
384 |
- AC_CACHE_CHECK(for inet_network, ac_cv_func_inet_network,[ |
385 |
- AC_TRY_COMPILE([ |
386 |
-+#include <sys/socket.h> |
387 |
-+#include <netinet/in.h> |
388 |
-+ |
389 |
- #ifdef HAVE_SYS_TYPES_H |
390 |
- #include <sys/types.h> |
391 |
- #endif |
392 |
---- a/configure.in |
393 |
-+++ b/configure.in |
394 |
-@@ -1440,8 +1440,6 @@ AC_CHECK_FUNCS(sigaction, [ have_sigaction="1" ], [ have_sigaction="0" ]) |
395 |
- AC_DECL_SYS_SIGLIST |
396 |
- |
397 |
- AC_CHECK_FUNCS(fork, [ fork="1" ], [ fork="0" ]) |
398 |
--APR_CHECK_INET_ADDR |
399 |
--APR_CHECK_INET_NETWORK |
400 |
- AC_SUBST(apr_inaddr_none) |
401 |
- AC_CHECK_FUNC(_getch) |
402 |
- AC_CHECK_FUNCS(strerror_r, [ strerror_r="1" ], [ strerror_r="0" ]) |
403 |
-@@ -1547,6 +1545,9 @@ APR_FLAG_HEADERS( |
404 |
- sys/un.h \ |
405 |
- sys/wait.h) |
406 |
- |
407 |
-+APR_CHECK_INET_ADDR |
408 |
-+APR_CHECK_INET_NETWORK |
409 |
-+ |
410 |
- # IRIX 6.5 has a problem in <netinet/tcp.h> which prevents it from |
411 |
- # being included by itself. Check for <netinet/tcp.h> manually, |
412 |
- # including another header file first. |
413 |
-@@ -2208,7 +2209,8 @@ AC_TRY_RUN([ |
414 |
- #include <sys/types.h> |
415 |
- #include <sys/time.h> |
416 |
- #include <sys/resource.h> |
417 |
--main() |
418 |
-+#include <stdlib.h> |
419 |
-+int main() |
420 |
- { |
421 |
- struct rlimit limit; |
422 |
- limit.rlim_cur = 0; |
423 |
-@@ -2247,7 +2249,7 @@ AC_TRY_RUN([ |
424 |
- #ifndef SEM_FAILED |
425 |
- #define SEM_FAILED (-1) |
426 |
- #endif |
427 |
--main() |
428 |
-+int main() |
429 |
- { |
430 |
- sem_t *psem; |
431 |
- const char *sem_name = "/apr_autoconf"; |
432 |
-@@ -2307,6 +2309,7 @@ if test "$threads" = "1"; then |
433 |
- AC_TRY_RUN([ |
434 |
- #include <sys/types.h> |
435 |
- #include <pthread.h> |
436 |
-+#include <stdlib.h> |
437 |
- int main() |
438 |
- { |
439 |
- pthread_mutex_t mutex; |
440 |
-@@ -2435,6 +2438,8 @@ int fd; |
441 |
- struct flock proc_mutex_lock_it = {0}; |
442 |
- const char *fname = "conftest.fcntl"; |
443 |
- |
444 |
-+int lockit(); |
445 |
-+ |
446 |
- int main() |
447 |
- { |
448 |
- int rc, status;; |
449 |
---- a/poll/os2/pollset.c |
450 |
-+++ b/poll/os2/pollset.c |
451 |
-@@ -308,7 +308,7 @@ APR_DECLARE(apr_status_t) apr_pollset_wakeup(apr_pollset_t *pollset) |
452 |
- |
453 |
- |
454 |
- |
455 |
--APR_DECLARE(const char *) apr_poll_method_defname() |
456 |
-+APR_DECLARE(const char *) apr_poll_method_defname(void) |
457 |
- { |
458 |
- return "select"; |
459 |
- } |
460 |
---- a/poll/unix/pollset.c |
461 |
-+++ b/poll/unix/pollset.c |
462 |
-@@ -188,7 +188,7 @@ APR_DECLARE(const char *) apr_pollset_method_name(apr_pollset_t *pollset) |
463 |
- return pollset->provider->name; |
464 |
- } |
465 |
- |
466 |
--APR_DECLARE(const char *) apr_poll_method_defname() |
467 |
-+APR_DECLARE(const char *) apr_poll_method_defname(void) |
468 |
- { |
469 |
- const apr_pollset_provider_t *provider = NULL; |
470 |
- |
471 |
|
472 |
diff --git a/dev-libs/apr/files/apr-1.7.0-dev-zero.patch b/dev-libs/apr/files/apr-1.7.0-dev-zero.patch |
473 |
deleted file mode 100644 |
474 |
index be6433dd46bc..000000000000 |
475 |
--- a/dev-libs/apr/files/apr-1.7.0-dev-zero.patch |
476 |
+++ /dev/null |
477 |
@@ -1,34 +0,0 @@ |
478 |
-APR (ab)uses AC_TRY_RUN to determine if: |
479 |
- |
480 |
-* We have /dev/zero |
481 |
-* We can mmap /dev/zero |
482 |
- |
483 |
-The APR ebuild sets ac_cv_file__dev_zero=yes when cross compiling |
484 |
-to fill in an answer for the first question, but the configure script |
485 |
-immediately defeats that when answering the second. |
486 |
- |
487 |
-AC_TRY_FUN takes four arguments: the test, and what happens on success, |
488 |
-failure, and cross-compiling. The APR script uses this as a "gate" to |
489 |
-clear ac_cv_file__dev_zero when /dev/zero exists but it turns out not |
490 |
-to be useable. They take a pessimistic approach: if you can't "prove" |
491 |
-it is mmap-able, clear the flag. |
492 |
- |
493 |
-This patch changes that to leave the flag alone while cross compiling; |
494 |
-just assume /dev/zero is mmap-able. It relies on ac_cv_file__dev_zero |
495 |
-to be correctly set for the target. The fourth parameter is changed to |
496 |
-[:] and not [] because [] engages autoconf's default cross-compiling |
497 |
-behavior, which raises an error. |
498 |
- |
499 |
-Signed-off-by: Alexandra Parker <alex.iris.parker@×××××.com> |
500 |
- |
501 |
---- a/configure.in 2022-01-09 00:31:05.552582255 -0800 |
502 |
-+++ b/configure.in 2022-01-09 00:31:19.824582533 -0800 |
503 |
-@@ -1203,7 +1203,7 @@ |
504 |
- return 3; |
505 |
- } |
506 |
- return 0; |
507 |
-- }], [], [ac_cv_file__dev_zero=no], [ac_cv_file__dev_zero=no]) |
508 |
-+ }], [], [ac_cv_file__dev_zero=no], [:]) |
509 |
- |
510 |
- AC_MSG_RESULT($ac_cv_file__dev_zero) |
511 |
- fi |