[packages/lighttpd] fix fastcgi.balance config not accepted

glen glen at pld-linux.org
Fri Apr 20 14:03:21 CEST 2018


commit 47f4746562342f0fda1ea029eaeffebf5ede381f
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Fri Apr 20 15:02:51 2018 +0300

    fix fastcgi.balance config not accepted
    
    fixes: https://redmine.lighttpd.net/issues/2882

 bug-2882.patch | 34 ++++++++++++++++++++++++++++++++++
 lighttpd.spec  |  4 +++-
 2 files changed, 37 insertions(+), 1 deletion(-)
---
diff --git a/lighttpd.spec b/lighttpd.spec
index 6cc23af..6460144 100644
--- a/lighttpd.spec
+++ b/lighttpd.spec
@@ -40,7 +40,7 @@ Summary:	Fast and light HTTP server
 Summary(pl.UTF-8):	Szybki i lekki serwer HTTP
 Name:		lighttpd
 Version:	1.4.49
-Release:	2
+Release:	3
 License:	BSD
 Group:		Networking/Daemons/HTTP
 Source0:	https://download.lighttpd.net/lighttpd/releases-1.4.x/%{name}-%{version}.tar.xz
@@ -121,6 +121,7 @@ Patch4:		systemd.patch
 Patch6:		test-port-setup.patch
 Patch7:		env-documentroot.patch
 Patch8:		lighttpd-bug-2876.patch
+Patch9:		bug-2882.patch
 URL:		https://www.lighttpd.net/
 %{?with_geoip:BuildRequires:	GeoIP-devel}
 %{?with_xattr:BuildRequires:	attr-devel}
@@ -956,6 +957,7 @@ Plik monitrc do monitorowania serwera www lighttpd.
 %patch6 -p1
 #%patch7 -p1 probably fixed upstream
 %patch8 -p1
+%patch9 -p1
 
 rm -f src/mod_ssi_exprparser.h # bad patching: should be removed by is emptied instead
 
diff --git a/bug-2882.patch b/bug-2882.patch
new file mode 100644
index 0000000..2f5d7e3
--- /dev/null
+++ b/bug-2882.patch
@@ -0,0 +1,34 @@
+From 24886e58e141ff51b5efc3cdc2e8293e54c31037 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= <glen at pld-linux.org>
+Date: Fri, 20 Apr 2018 15:01:19 +0300
+Subject: [PATCH] fcgi: process fastcgi.balance option
+
+refs: https://redmine.lighttpd.net/issues/2882
+---
+ src/mod_fastcgi.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/src/mod_fastcgi.c b/src/mod_fastcgi.c
+index b442214e..988a2e50 100644
+--- a/src/mod_fastcgi.c
++++ b/src/mod_fastcgi.c
+@@ -463,6 +463,7 @@ static int fcgi_patch_connection(server *srv, connection *con, plugin_data *p) {
+ 	PATCH(exts_auth);
+ 	PATCH(exts_resp);
+ 	PATCH(debug);
++	PATCH(balance);
+ 	PATCH(ext_mapping);
+ 
+ 	/* skip the first, the global context */
+@@ -483,6 +484,8 @@ static int fcgi_patch_connection(server *srv, connection *con, plugin_data *p) {
+ 				PATCH(exts_resp);
+ 			} else if (buffer_is_equal_string(du->key, CONST_STR_LEN("fastcgi.debug"))) {
+ 				PATCH(debug);
++			} else if (buffer_is_equal_string(du->key, CONST_STR_LEN("fastcgi.balance"))) {
++				PATCH(balance);
+ 			} else if (buffer_is_equal_string(du->key, CONST_STR_LEN("fastcgi.map-extensions"))) {
+ 				PATCH(ext_mapping);
+ 			}
+-- 
+2.16.2
+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lighttpd.git/commitdiff/47f4746562342f0fda1ea029eaeffebf5ede381f



More information about the pld-cvs-commit mailing list