commit: a156afdffa7547a43e7c93c445e3b8cd30cf5d79 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Mon Oct 17 02:35:37 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Oct 17 03:15:32 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a156afdf
www-apache/mod_fastcgi_handler: fix build w/ Clang 16 Closes: https://bugs.gentoo.org/875701 Signed-off-by: Sam James <sam <AT> gentoo.org> ...astcgi_handler-0.6-implicit-function-decl.patch | 30 ++++++++++++++++++++++ ...r2.ebuild => mod_fastcgi_handler-0.6-r3.ebuild} | 6 ++++- 2 files changed, 35 insertions(+), 1 deletion(-) 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 similarity index 84% rename from www-apache/mod_fastcgi_handler/mod_fastcgi_handler-0.6-r2.ebuild rename to 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() {
