[packages/php/PHP_5_3] rediff fpm patches; appli config split first

glen glen at pld-linux.org
Mon Oct 27 07:04:13 CET 2014


commit bbdccbb0df1c9796469bf1c9c77d6580d295318f
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Oct 27 08:00:55 2014 +0200

    rediff fpm patches; appli config split first

 fpm-conf-split.patch | 51 +++++++++++++++++++++++++--------------------------
 php-fpm-config.patch | 46 +++++++++++++++++-----------------------------
 php.spec             |  2 +-
 3 files changed, 43 insertions(+), 56 deletions(-)
---
diff --git a/php.spec b/php.spec
index 6ec0aee..53039f9 100644
--- a/php.spec
+++ b/php.spec
@@ -2027,6 +2027,7 @@ cp -p php.ini-production php.ini
 %patch38 -p1
 %patch39 -p1
 %if %{with fpm}
+%patch69 -p1
 %patch41 -p1
 %patch42 -p1
 %endif
@@ -2055,7 +2056,6 @@ cp -p php.ini-production php.ini
 gzip -dc %{SOURCE15} | tar xf - -C sapi/
 %patch67 -p1
 %patch68 -p1
-%patch69 -p1
 
 sed -i -e '/PHP_ADD_LIBRARY_WITH_PATH/s#xmlrpc,#xmlrpc-epi,#' ext/xmlrpc/config.m4
 
diff --git a/fpm-conf-split.patch b/fpm-conf-split.patch
index cfd3b8b..7238ab4 100644
--- a/fpm-conf-split.patch
+++ b/fpm-conf-split.patch
@@ -1,6 +1,6 @@
---- php-5.3.27/sapi/fpm/php-fpm.conf.in~	2013-12-05 17:20:34.000000000 +0200
-+++ php-5.3.27/sapi/fpm/php-fpm.conf.in	2013-12-05 20:51:02.914438767 +0200
-@@ -7,14 +7,6 @@
+--- php-5.3.29/sapi/fpm/php-fpm.conf.in~	2014-08-13 22:22:50.000000000 +0300
++++ php-5.3.29/sapi/fpm/php-fpm.conf.in	2014-10-27 07:43:44.223007095 +0200
+@@ -6,14 +6,6 @@
  ; prefix (@prefix@). This prefix can be dynamicaly changed by using the
  ; '-p' argument from the command line.
  
@@ -10,16 +10,15 @@
 -; Relative path can also be used. They will be prefixed by:
 -;  - the global prefix if it's been set (-p arguement)
 -;  - @prefix@ otherwise
--;include=/etc/php/fpm.d/*.conf
+-;include=etc/fpm.d/*.conf
 -
  ;;;;;;;;;;;;;;;;;;
  ; Global Options ;
  ;;;;;;;;;;;;;;;;;;
-@@ -116,396 +108,11 @@
- ; ports and different management options.  The name of the pool will be
+@@ -116,395 +108,10 @@
  ; used in logs and stats. There is no limitation on the number of pools which
  ; FPM can handle. Your system will tell you anyway :)
--
+ 
 -; Start a new pool named 'www'.
 -; the variable $pool can we used in any directive and will be replaced by the
 -; pool name ('www' here)
@@ -52,7 +51,7 @@
 -;                            specific port;
 -;   '/path/to/unix/socket' - to listen on a unix socket.
 -; Note: This value is mandatory.
--listen = /var/run/php/@processname at .sock
+-listen = 127.0.0.1:9000
 -
 -; Set listen(2) backlog. A value of '-1' means unlimited.
 -; Default Value: 128 (-1 on FreeBSD and OpenBSD)
@@ -73,7 +72,7 @@
 -; must be separated by a comma. If this value is left blank, connections will be
 -; accepted from any ip address.
 -; Default Value: any
--listen.allowed_clients = 127.0.0.1
+-;listen.allowed_clients = 127.0.0.1
 -
 -; Specify the nice(2) priority to apply to the pool processes (only if set)
 -; The value can vary from -19 (highest priority) to 20 (lower priority)
@@ -128,12 +127,12 @@
 -; The desired minimum number of idle server processes.
 -; Note: Used only when pm is set to 'dynamic'
 -; Note: Mandatory when pm is set to 'dynamic'
--pm.min_spare_servers = 2
+-pm.min_spare_servers = 1
 -
 -; The desired maximum number of idle server processes.
 -; Note: Used only when pm is set to 'dynamic'
 -; Note: Mandatory when pm is set to 'dynamic'
--pm.max_spare_servers = 5
+-pm.max_spare_servers = 3
 -
 -; The number of seconds after which an idle process will be killed.
 -; Note: Used only when pm is set to 'ondemand'
@@ -189,7 +188,7 @@
 -;   http://www.foo.bar/status?json
 -;   http://www.foo.bar/status?html
 -;   http://www.foo.bar/status?xml
- ;
+-;
 -; By default the status page only outputs short status. Passing 'full' in the
 -; query string will also return status for each pool process.
 -; Example: 
@@ -243,7 +242,7 @@
 -;       anything, but it may not be a good idea to use the .php extension or it
 -;       may conflict with a real PHP file.
 -; Default Value: not set 
--;pm.status_path = /fpm-status
+-;pm.status_path = /status
 - 
 -; The ping URI to call the monitoring page of FPM. If this value is not set, no
 -; URI will be recognized as a ping page. This could be used to test from outside
@@ -369,7 +368,7 @@
 -; Note: on highloaded environement, this can cause some delay in the page
 -; process time (several ms).
 -; Default Value: no
--catch_workers_output = yes
+-;catch_workers_output = yes
 -
 -; Limits the extensions of the main script FPM will allow to parse. This can
 -; prevent configuration mistakes on the web server side. You should only limit
@@ -383,7 +382,7 @@
 -; the current environment.
 -; Default Value: clean env
 -;env[HOSTNAME] = $HOSTNAME
--env[PATH] = $PATH
+-;env[PATH] = /usr/local/bin:/usr/bin:/bin
 -;env[TMP] = /tmp
 -;env[TMPDIR] = /tmp
 -;env[TEMP] = /tmp
@@ -420,7 +419,7 @@
 +;  - @prefix@ otherwise
 +include=/etc/php/fpm.d/*.conf
 --- /dev/null	2007-02-13 18:29:53.000000000 +0200
-+++ php-5.3.27/sapi/fpm/php-fpm.conf-d.in	2013-12-05 20:50:54.570727359 +0200
++++ php-5.3.29/sapi/fpm/php-fpm.conf-d.in	2014-10-27 07:42:26.259454585 +0200
 @@ -0,0 +1,392 @@
 +; Start a new pool named 'www'.
 +; the variable $pool can we used in any directive and will be replaced by the
@@ -454,7 +453,7 @@
 +;                            specific port;
 +;   '/path/to/unix/socket' - to listen on a unix socket.
 +; Note: This value is mandatory.
-+listen = /var/run/php/@processname at .sock
++listen = 127.0.0.1:9000
 +
 +; Set listen(2) backlog. A value of '-1' means unlimited.
 +; Default Value: 128 (-1 on FreeBSD and OpenBSD)
@@ -475,7 +474,7 @@
 +; must be separated by a comma. If this value is left blank, connections will be
 +; accepted from any ip address.
 +; Default Value: any
-+listen.allowed_clients = 127.0.0.1
++;listen.allowed_clients = 127.0.0.1
 +
 +; Specify the nice(2) priority to apply to the pool processes (only if set)
 +; The value can vary from -19 (highest priority) to 20 (lower priority)
@@ -530,12 +529,12 @@
 +; The desired minimum number of idle server processes.
 +; Note: Used only when pm is set to 'dynamic'
 +; Note: Mandatory when pm is set to 'dynamic'
-+pm.min_spare_servers = 2
++pm.min_spare_servers = 1
 +
 +; The desired maximum number of idle server processes.
 +; Note: Used only when pm is set to 'dynamic'
 +; Note: Mandatory when pm is set to 'dynamic'
-+pm.max_spare_servers = 5
++pm.max_spare_servers = 3
 +
 +; The number of seconds after which an idle process will be killed.
 +; Note: Used only when pm is set to 'ondemand'
@@ -645,7 +644,7 @@
 +;       anything, but it may not be a good idea to use the .php extension or it
 +;       may conflict with a real PHP file.
 +; Default Value: not set 
-+;pm.status_path = /fpm-status
++;pm.status_path = /status
 + 
 +; The ping URI to call the monitoring page of FPM. If this value is not set, no
 +; URI will be recognized as a ping page. This could be used to test from outside
@@ -771,7 +770,7 @@
 +; Note: on highloaded environement, this can cause some delay in the page
 +; process time (several ms).
 +; Default Value: no
-+catch_workers_output = yes
++;catch_workers_output = yes
 +
 +; Limits the extensions of the main script FPM will allow to parse. This can
 +; prevent configuration mistakes on the web server side. You should only limit
@@ -785,7 +784,7 @@
 +; the current environment.
 +; Default Value: clean env
 +;env[HOSTNAME] = $HOSTNAME
-+env[PATH] = $PATH
++;env[PATH] = /usr/local/bin:/usr/bin:/bin
 +;env[TMP] = /tmp
 +;env[TMPDIR] = /tmp
 +;env[TEMP] = /tmp
@@ -825,8 +824,8 @@
    PHP_ADD_MAKEFILE_FRAGMENT([$abs_srcdir/sapi/fpm/Makefile.frag], [$abs_srcdir/sapi/fpm], [sapi/fpm])
  
    SAPI_FPM_PATH=sapi/fpm/php-fpm
---- php-5.3.27/sapi/fpm/Makefile.frag~	2013-12-05 20:55:36.000000000 +0200
-+++ php-5.3.27/sapi/fpm/Makefile.frag	2013-12-05 20:57:56.416089690 +0200
+--- php-5.3.29/sapi/fpm/Makefile.frag~	2014-08-13 22:22:50.000000000 +0300
++++ php-5.3.29/sapi/fpm/Makefile.frag	2014-10-27 07:39:22.354406805 +0200
 @@ -19,9 +19,10 @@
  	@$(INSTALL) -m 0755 $(SAPI_FPM_PATH) $(INSTALL_ROOT)$(sbindir)/$(program_prefix)php-fpm$(program_suffix)$(EXEEXT)
  
@@ -834,7 +833,7 @@
 -	$(mkinstalldirs) $(INSTALL_ROOT)$(sysconfdir) || :
 +	$(mkinstalldirs) $(INSTALL_ROOT)$(sysconfdir)/fpm.d || :
  
- 	@$(INSTALL_DATA) sapi/fpm/php-fpm.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.conf || :
+ 	@$(INSTALL_DATA) sapi/fpm/php-fpm.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.conf.default || :
 +	@$(INSTALL_DATA) sapi/fpm/php-fpm.conf-d $(INSTALL_ROOT)$(sysconfdir)/fpm.d/www.conf || :
  
  	@echo "Installing PHP FPM man page:      $(INSTALL_ROOT)$(mandir)/man8/"
diff --git a/php-fpm-config.patch b/php-fpm-config.patch
index 19aa0a5..8eaa9c6 100644
--- a/php-fpm-config.patch
+++ b/php-fpm-config.patch
@@ -1,20 +1,6 @@
---- php-5.3.17/sapi/fpm/php-fpm.conf.in	2012-10-12 12:35:47.601602945 +0300
-+++ php-5.3.18/sapi/fpm/php-fpm.conf.in	2012-11-28 15:31:00.486871136 +0200
-@@ -1,3 +1,4 @@
-+; vim:ft=dosini
- ;;;;;;;;;;;;;;;;;;;;;
- ; FPM Configuration ;
- ;;;;;;;;;;;;;;;;;;;;;
-@@ -12,7 +13,7 @@
- ; Relative path can also be used. They will be prefixed by:
- ;  - the global prefix if it's been set (-p arguement)
- ;  - @prefix@ otherwise
--;include=etc/fpm.d/*.conf
-+;include=/etc/php/fpm.d/*.conf
- 
- ;;;;;;;;;;;;;;;;;;
- ; Global Options ;
-@@ -22,14 +23,14 @@
+--- php-5.3.29/sapi/fpm/php-fpm.conf.in	2014-10-27 07:58:34.296908403 +0200
++++ php-5.3.29.old/sapi/fpm/php-fpm.conf.in	2014-10-27 07:46:00.292540344 +0200
+@@ -14,14 +15,14 @@
  ; Pid file
  ; Note: the default prefix is @EXPANDED_LOCALSTATEDIR@
  ; Default Value: none
@@ -31,7 +17,9 @@
  
  ; syslog_facility is used to specify what type of program is logging the
  ; message. This lets syslogd specify that messages from different facilities
-@@ -148,7 +149,7 @@
+--- php-5.3.29/sapi/fpm/php-fpm.conf-d.in	2014-10-27 07:54:50.120026865 +0200
++++ php-5.3.29.old/sapi/fpm/php-fpm.conf-d.in	2014-10-27 07:46:00.639222822 +0200
+@@ -30,7 +30,7 @@
  ;                            specific port;
  ;   '/path/to/unix/socket' - to listen on a unix socket.
  ; Note: This value is mandatory.
@@ -40,16 +28,16 @@
  
  ; Set listen(2) backlog. A value of '-1' means unlimited.
  ; Default Value: 128 (-1 on FreeBSD and OpenBSD)
-@@ -161,7 +162,7 @@
+@@ -51,7 +51,7 @@
  ; must be separated by a comma. If this value is left blank, connections will be
  ; accepted from any ip address.
  ; Default Value: any
 -;listen.allowed_clients = 127.0.0.1
 +listen.allowed_clients = 127.0.0.1
  
- ; Choose how the process manager will control the number of child processes.
- ; Possible Values:
-@@ -208,12 +209,12 @@
+ ; Specify the nice(2) priority to apply to the pool processes (only if set)
+ ; The value can vary from -19 (highest priority) to 20 (lower priority)
+@@ -106,12 +106,12 @@
  ; The desired minimum number of idle server processes.
  ; Note: Used only when pm is set to 'dynamic'
  ; Note: Mandatory when pm is set to 'dynamic'
@@ -64,7 +52,7 @@
  
  ; The number of seconds after which an idle process will be killed.
  ; Note: Used only when pm is set to 'ondemand'
-@@ -323,7 +324,7 @@
+@@ -221,7 +221,7 @@
  ;       anything, but it may not be a good idea to use the .php extension or it
  ;       may conflict with a real PHP file.
  ; Default Value: not set 
@@ -73,7 +61,7 @@
   
  ; The ping URI to call the monitoring page of FPM. If this value is not set, no
  ; URI will be recognized as a ping page. This could be used to test from outside
-@@ -449,7 +450,7 @@
+@@ -347,7 +347,7 @@
  ; Note: on highloaded environement, this can cause some delay in the page
  ; process time (several ms).
  ; Default Value: no
@@ -82,7 +70,7 @@
  
  ; Limits the extensions of the main script FPM will allow to parse. This can
  ; prevent configuration mistakes on the web server side. You should only limit
-@@ -463,7 +464,7 @@
+@@ -361,7 +361,7 @@
  ; the current environment.
  ; Default Value: clean env
  ;env[HOSTNAME] = $HOSTNAME
@@ -102,14 +90,14 @@
  
  			ths = document.getElementsByTagName("th");
  			for (var i=0; i<ths.length; i++) {
---- php-5.3.9/sapi/fpm/Makefile.frag~	2012-01-11 21:49:42.000000000 +0200
-+++ php-5.3.9/sapi/fpm/Makefile.frag	2012-01-12 02:20:25.553355153 +0200
+--- php-5.3.29/sapi/fpm/Makefile.frag~	2014-10-27 07:57:09.000000000 +0200
++++ php-5.3.29/sapi/fpm/Makefile.frag	2014-10-27 07:57:29.523957175 +0200
 @@ -21,7 +21,7 @@
  	@echo "Installing PHP FPM config:        $(INSTALL_ROOT)$(sysconfdir)/" && \
- 	$(mkinstalldirs) $(INSTALL_ROOT)$(sysconfdir) || :
+ 	$(mkinstalldirs) $(INSTALL_ROOT)$(sysconfdir)/fpm.d || :
  
 -	@$(INSTALL_DATA) sapi/fpm/php-fpm.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.conf.default || :
 +	@$(INSTALL_DATA) sapi/fpm/php-fpm.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.conf || :
+ 	@$(INSTALL_DATA) sapi/fpm/php-fpm.conf-d $(INSTALL_ROOT)$(sysconfdir)/fpm.d/www.conf || :
  
  	@echo "Installing PHP FPM man page:      $(INSTALL_ROOT)$(mandir)/man8/"
- 	@$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man8
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/80b97147332057690ef153e0067cbd07d4c9bfe1



More information about the pld-cvs-commit mailing list