[packages/php] - fix building with db 5.3 - release 5

baggins baggins at pld-linux.org
Thu Sep 6 11:32:30 CEST 2012


commit 54d5587b7c05b0e03577e596627affd12297895f
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu Sep 6 11:32:07 2012 +0200

    - fix building with db 5.3
    - release 5

 php-db.patch | 26 ++++++++++++++++++++++++++
 php.spec     |  4 +++-
 2 files changed, 29 insertions(+), 1 deletion(-)
---
diff --git a/php.spec b/php.spec
index e3d9452..e388224 100644
--- a/php.spec
+++ b/php.spec
@@ -117,7 +117,7 @@ ERROR: You need to select at least one Apache SAPI to build shared modules.
 %define		php_suffix %{nil}
 %endif
 
-%define		rel	4
+%define		rel	5
 Summary:	PHP: Hypertext Preprocessor
 Summary(fr.UTF-8):	Le langage de script embarque-HTML PHP
 Summary(pl.UTF-8):	Język skryptowy PHP
@@ -200,6 +200,7 @@ Patch63:	%{orgname}-mysql-nowarning.patch
 Patch64:	%{orgname}-m4.patch
 # http://spot.fedorapeople.org/php-5.3.6-libzip.patch
 Patch65:	system-libzip.patch
+Patch66:	%{orgname}-db.patch
 URL:		http://www.php.net/
 %{?with_interbase:%{!?with_interbase_inst:BuildRequires:	Firebird-devel >= 1.0.2.908-2}}
 %{?with_pspell:BuildRequires:	aspell-devel >= 2:0.50.0}
@@ -1946,6 +1947,7 @@ cp -p php.ini-production php.ini
 %patch63 -p1
 %patch64 -p1
 %{?with_system_libzip:%patch65 -p1}
+%patch66 -p1
 %{__rm} -r sapi/litespeed
 gzip -dc %{SOURCE15} | tar xf - -C sapi/
 
diff --git a/php-db.patch b/php-db.patch
new file mode 100644
index 0000000..07032ec
--- /dev/null
+++ b/php-db.patch
@@ -0,0 +1,26 @@
+--- php-5.3.16/ext/dba/config.m4.orig	2012-09-06 11:15:09.743002303 +0200
++++ php-5.3.16/ext/dba/config.m4	2012-09-06 11:28:12.192974701 +0200
+@@ -287,6 +287,14 @@
+       THIS_PREFIX=$i
+       THIS_INCLUDE=$i/db4/db.h
+       break
++    elif test -f "$i/include/db5.3/db.h"; then
++      THIS_PREFIX=$i
++      THIS_INCLUDE=$i/include/db5.3/db.h
++      break
++    elif test -f "$i/include/db5.2/db.h"; then
++      THIS_PREFIX=$i
++      THIS_INCLUDE=$i/include/db5.2/db.h
++      break
+     elif test -f "$i/include/db5.1/db.h"; then
+       THIS_PREFIX=$i
+       THIS_INCLUDE=$i/include/db5.1/db.h
+@@ -329,7 +337,7 @@
+       break
+     fi
+   done
+-  PHP_DBA_DB_CHECK(4, db-5.1 db-5.0 db-4.8 db-4.7 db-4.6 db-4.5 db-4.4 db-4.3 db-4.2 db-4.1 db-4.0 db-4 db4 db, [(void)db_create((DB**)0, (DB_ENV*)0, 0)])
++  PHP_DBA_DB_CHECK(4, db-5.3 db-5.2 db-5.1 db-5.0 db-4.8 db-4.7 db-4.6 db-4.5 db-4.4 db-4.3 db-4.2 db-4.1 db-4.0 db-4 db4 db, [(void)db_create((DB**)0, (DB_ENV*)0, 0)])
+ fi
+ PHP_DBA_STD_RESULT(db4,Berkeley DB4)
+ 
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list