[packages/ossp-uuid] PHP3 compatibility headers were dropped in PHP 5.4

glen glen at pld-linux.org
Thu May 1 20:13:40 CEST 2014


commit ddcb10f4de37b4d857d22b63fb86d08e98d6d8a5
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu May 1 21:13:31 2014 +0300

    PHP3 compatibility headers were dropped in PHP 5.4

 ossp-uuid.spec |  4 +++-
 php3.patch     | 12 ++++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/ossp-uuid.spec b/ossp-uuid.spec
index 4e126d1..092ed95 100644
--- a/ossp-uuid.spec
+++ b/ossp-uuid.spec
@@ -9,12 +9,13 @@ Summary:	Universally Unique Identifier library
 Summary(pl.UTF-8):	Biblioteka unikalnych identyfikatorów UUID
 Name:		ossp-uuid
 Version:	1.6.2
-Release:	15
+Release:	16
 License:	MIT
 Group:		Libraries
 Source0:	ftp://ftp.ossp.org/pkg/lib/uuid/uuid-%{version}.tar.gz
 # Source0-md5:	5db0d43a9022a6ebbbc25337ae28942f
 Patch0:		uuid-ossp-prefix.patch
+Patch1:		php3.patch
 URL:		http://www.ossp.org/pkg/lib/uuid/
 %{?with_php:BuildRequires:	/usr/bin/php}
 BuildRequires:	libstdc++-devel
@@ -193,6 +194,7 @@ Moduł OSSP uuid dla PostgreSQL-a.
 %prep
 %setup -q -n uuid-%{version}
 %patch0 -p1
+%patch1 -p1
 
 %build
 # Build the library.
diff --git a/php3.patch b/php3.patch
new file mode 100644
index 0000000..230fd8f
--- /dev/null
+++ b/php3.patch
@@ -0,0 +1,12 @@
+PHP3 compatibility headers were dropped in PHP 5.4
+--- uuid-1.6.2/php/uuid.c~	2007-01-01 20:35:57.000000000 +0200
++++ uuid-1.6.2/php/uuid.c	2014-05-01 21:12:08.750512116 +0300
+@@ -496,7 +496,7 @@
+ }
+ 
+ /* module function table */
+-static function_entry uuid_functions[] = {
++static zend_function_entry uuid_functions[] = {
+     PHP_FE(uuid_create,  NULL)
+     PHP_FE(uuid_destroy, NULL)
+     PHP_FE(uuid_clone,   NULL)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ossp-uuid.git/commitdiff/ddcb10f4de37b4d857d22b63fb86d08e98d6d8a5



More information about the pld-cvs-commit mailing list