summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-10-17 03:35:37 +0100
committerSam James <sam@gentoo.org>2022-10-17 04:15:32 +0100
commita156afdffa7547a43e7c93c445e3b8cd30cf5d79 (patch)
treeeab17663b07999e29ee155f51819c50469cb8799 /www-apache/mod_fastcgi_handler
parentwww-apache/mod_musicindex: fix linking with LLD (diff)
downloadgentoo-a156afdffa7547a43e7c93c445e3b8cd30cf5d79.tar.gz
gentoo-a156afdffa7547a43e7c93c445e3b8cd30cf5d79.tar.bz2
gentoo-a156afdffa7547a43e7c93c445e3b8cd30cf5d79.zip
www-apache/mod_fastcgi_handler: fix build w/ Clang 16
Closes: https://bugs.gentoo.org/875701 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'www-apache/mod_fastcgi_handler')
-rw-r--r--www-apache/mod_fastcgi_handler/files/mod_fastcgi_handler-0.6-implicit-function-decl.patch30
-rw-r--r--www-apache/mod_fastcgi_handler/mod_fastcgi_handler-0.6-r3.ebuild (renamed from www-apache/mod_fastcgi_handler/mod_fastcgi_handler-0.6-r2.ebuild)6
2 files changed, 35 insertions, 1 deletions
diff --git a/www-apache/mod_fastcgi_handler/files/mod_fastcgi_handler-0.6-implicit-function-decl.patch b/www-apache/mod_fastcgi_handler/files/mod_fastcgi_handler-0.6-implicit-function-decl.patch
new file mode 100644
index 000000000000..602590fb3ed5
--- /dev/null
+++ b/www-apache/mod_fastcgi_handler/files/mod_fastcgi_handler-0.6-implicit-function-decl.patch
@@ -0,0 +1,30 @@
+https://bugs.gentoo.org/875701
+--- a/fcgi_request.c
++++ b/fcgi_request.c
+@@ -10,6 +10,7 @@
+
+ #include "fcgi_header.h"
+ #include "fcgi_request.h"
++#include "fcgi_server.h"
+
+ #include "mod_fastcgi_handler.h"
+
+--- a/fcgi_server.c
++++ b/fcgi_server.c
+@@ -7,6 +7,7 @@
+ #include <httpd.h>
+ #include <http_config.h>
+ #include <http_log.h>
++#include <http_request.h>
+ #include <util_filter.h>
+ #include <util_script.h>
+
+@@ -424,6 +425,8 @@ int fcgi_server_parse_headers(fcgi_request_t *fr, uint16_t request_id,
+ */
+ return HTTP_MOVED_TEMPORARILY;
+ }
++
++ return ret;
+ }
+
+ int fcgi_server_recv_stdout_stderr_record(fcgi_request_t *fr,
diff --git a/www-apache/mod_fastcgi_handler/mod_fastcgi_handler-0.6-r2.ebuild b/www-apache/mod_fastcgi_handler/mod_fastcgi_handler-0.6-r3.ebuild
index fb9676278d0d..2f1bc9162ce7 100644
--- a/www-apache/mod_fastcgi_handler/mod_fastcgi_handler-0.6-r2.ebuild
+++ b/www-apache/mod_fastcgi_handler/mod_fastcgi_handler-0.6-r3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -18,6 +18,10 @@ APACHE2_MOD_DEFINE="FASTCGI_HANDLER"
APXS2_ARGS="-o ${PN}.so -c *.c"
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.6-implicit-function-decl.patch
+)
+
need_apache2
pkg_setup() {