[packages/php/PHP_5_2] - fix building with libevent 2.1 - rel 23

baggins baggins at pld-linux.org
Wed Apr 5 09:36:58 CEST 2017


commit b08857aa5f2f94ce7db255e60eb6b4a195b6fcd3
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Wed Apr 5 09:36:38 2017 +0200

    - fix building with libevent 2.1
    - rel 23

 libevent-2.1.patch | 10 ++++++++++
 php.spec           |  4 +++-
 2 files changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/php.spec b/php.spec
index 4ae69ed..3e38f8e 100644
--- a/php.spec
+++ b/php.spec
@@ -112,7 +112,7 @@ ERROR: You need to select at least one Apache SAPI to build shared modules.
 %define		magic_mime	/usr/share/misc/magic.mime
 %endif
 
-%define		rel	22
+%define		rel	23
 %define		orgname	php
 %define		ver_suffix 52
 %define		php_suffix %{!?with_default_php:%{ver_suffix}}
@@ -225,6 +225,7 @@ Patch75:	php-secbug-67498.patch
 Patch76:	CVE-2015-0232.patch
 Patch77:	x32.patch
 Patch78:	php-bug-68486.patch
+Patch79:	libevent-2.1.patch
 # CENTALT patches
 # Backport from 5.3.6
 Patch311:	php-5.3.6-bug-47435.patch
@@ -1953,6 +1954,7 @@ done
 %patch76 -p1
 %patch77 -p1
 %patch78 -p1
+%patch79 -p1
 
 # Bugfix backport from 5.3.6
 %patch311 -p1 -b .bug-47435
diff --git a/libevent-2.1.patch b/libevent-2.1.patch
new file mode 100644
index 0000000..3248659
--- /dev/null
+++ b/libevent-2.1.patch
@@ -0,0 +1,10 @@
+--- php-5.2.17/sapi/cgi/fpm/fpm_events.c~	2017-04-03 20:18:01.000000000 +0200
++++ php-5.2.17/sapi/cgi/fpm/fpm_events.c	2017-04-05 09:28:49.495634577 +0200
+@@ -130,6 +130,6 @@
+ 
+ void fpm_event_fire(struct event *ev)
+ {
+-	(*ev->ev_callback)( (int) ev->ev_fd, (short) ev->ev_res, ev->ev_arg);	
++	(*ev->ev_evcallback.evcb_cb_union.evcb_callback)( (int) ev->ev_fd, (short) ev->ev_res, ev->ev_evcallback.evcb_arg);
+ }
+ 
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list