summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatti Bickel <mabi@gentoo.org>2010-09-19 16:40:53 +0000
committerMatti Bickel <mabi@gentoo.org>2010-09-19 16:40:53 +0000
commiteb042254bbb745673b7f1d37d033387a2998be1e (patch)
tree1fa5a894670d70bcd1bf4825662e5d97b57d0a7e /dev-php5
parentRespect USE flag settings, bug #337841. (diff)
downloadgentoo-2-eb042254bbb745673b7f1d37d033387a2998be1e.tar.gz
gentoo-2-eb042254bbb745673b7f1d37d033387a2998be1e.tar.bz2
gentoo-2-eb042254bbb745673b7f1d37d033387a2998be1e.zip
fix compilation with php-5.3 (bug #324833)
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-php5')
-rw-r--r--dev-php5/pecl-sca_sdo/ChangeLog6
-rw-r--r--dev-php5/pecl-sca_sdo/files/pecl-sca_sdo-1.2.4-php53.patch113
-rw-r--r--dev-php5/pecl-sca_sdo/pecl-sca_sdo-1.2.4-r1.ebuild8
3 files changed, 121 insertions, 6 deletions
diff --git a/dev-php5/pecl-sca_sdo/ChangeLog b/dev-php5/pecl-sca_sdo/ChangeLog
index e7b409188c53..ead7d58b3a78 100644
--- a/dev-php5/pecl-sca_sdo/ChangeLog
+++ b/dev-php5/pecl-sca_sdo/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-php5/pecl-sca_sdo
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-php5/pecl-sca_sdo/ChangeLog,v 1.7 2010/05/29 18:48:46 mabi Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-php5/pecl-sca_sdo/ChangeLog,v 1.8 2010/09/19 16:40:53 mabi Exp $
+
+ 19 Sep 2010; Matti Bickel <mabi@gentoo.org> pecl-sca_sdo-1.2.4-r1.ebuild,
+ +files/pecl-sca_sdo-1.2.4-php53.patch:
+ fix compilation with php-5.3 (bug #324833)
*pecl-sca_sdo-1.2.4-r1 (29 May 2010)
diff --git a/dev-php5/pecl-sca_sdo/files/pecl-sca_sdo-1.2.4-php53.patch b/dev-php5/pecl-sca_sdo/files/pecl-sca_sdo-1.2.4-php53.patch
new file mode 100644
index 000000000000..b64c89f8cc9e
--- /dev/null
+++ b/dev-php5/pecl-sca_sdo/files/pecl-sca_sdo-1.2.4-php53.patch
@@ -0,0 +1,113 @@
+--- SCA_SDO-1.2.4.orig/sdo.cpp 2006-09-29 17:04:22.000000000 +0200
++++ SCA_SDO-1.2.4/sdo.cpp 2010-09-19 17:58:27.000000000 +0200
+@@ -77,17 +77,17 @@
+ /* }}} */
+
+ /* {{{ single SDO_DataObject parameter */
+-static ZEND_BEGIN_ARG_INFO(arginfo_sdo_dataobject, 0)
++ZEND_BEGIN_ARG_INFO(arginfo_sdo_dataobject, 0)
+ ZEND_ARG_OBJ_INFO(0, data_object, SDO_DataObject, 0)
+ ZEND_END_ARG_INFO();
+ /* }}} */
+
+ /* {{{ SDO_PropertyAccess methods */
+-static ZEND_BEGIN_ARG_INFO(arginfo___get, 0)
++ZEND_BEGIN_ARG_INFO(arginfo___get, 0)
+ ZEND_ARG_INFO(0, name)
+ ZEND_END_ARG_INFO();
+
+-static ZEND_BEGIN_ARG_INFO(arginfo___set, 0)
++ZEND_BEGIN_ARG_INFO(arginfo___set, 0)
+ ZEND_ARG_INFO(0, name)
+ ZEND_ARG_INFO(0, value)
+ ZEND_END_ARG_INFO();
+@@ -100,7 +100,7 @@
+ /* }}} */
+
+ /* {{{ SDO_DataObject methods */
+-static ZEND_BEGIN_ARG_INFO(arginfo_sdo_dataobject_createdataobject, 0)
++ZEND_BEGIN_ARG_INFO(arginfo_sdo_dataobject_createdataobject, 0)
+ ZEND_ARG_INFO(0, identifier)
+ ZEND_END_ARG_INFO();
+
+@@ -116,16 +116,16 @@
+ /* }}} */
+
+ /* {{{ SDO_Sequence methods */
+-static ZEND_BEGIN_ARG_INFO(arginfo_sdo_sequence_getproperty, 0)
++ZEND_BEGIN_ARG_INFO(arginfo_sdo_sequence_getproperty, 0)
+ ZEND_ARG_INFO(0, sequence_index)
+ ZEND_END_ARG_INFO();
+
+-static ZEND_BEGIN_ARG_INFO(arginfo_sdo_sequence_move, 0)
++ZEND_BEGIN_ARG_INFO(arginfo_sdo_sequence_move, 0)
+ ZEND_ARG_INFO(0, to_index)
+ ZEND_ARG_INFO(0, from_index)
+ ZEND_END_ARG_INFO();
+
+-static ZEND_BEGIN_ARG_INFO_EX(arginfo_sdo_sequence_insert, 0, ZEND_RETURN_VALUE, 1)
++ZEND_BEGIN_ARG_INFO_EX(arginfo_sdo_sequence_insert, 0, ZEND_RETURN_VALUE, 1)
+ ZEND_ARG_INFO(0, value)
+ ZEND_ARG_INFO(0, sequence_index)
+ ZEND_ARG_INFO(0, property_identifier)
+@@ -141,7 +141,7 @@
+ /* }}} */
+
+ /* {{{ SDO_List methods */
+-static ZEND_BEGIN_ARG_INFO_EX(arginfo_sdo_list_insert, 0, ZEND_RETURN_VALUE, 1)
++ZEND_BEGIN_ARG_INFO_EX(arginfo_sdo_list_insert, 0, ZEND_RETURN_VALUE, 1)
+ ZEND_ARG_INFO(0, value)
+ ZEND_ARG_INFO(0, index)
+ ZEND_END_ARG_INFO();
+@@ -155,7 +155,7 @@
+ /* }}} */
+
+ /* {{{ SDO_DataFactory methods */
+-static ZEND_BEGIN_ARG_INFO(arginfo_sdo_datafactory_create, 0)
++ZEND_BEGIN_ARG_INFO(arginfo_sdo_datafactory_create, 0)
+ ZEND_ARG_INFO(0, type_namespace_uri)
+ ZEND_ARG_INFO(0, type_name)
+ ZEND_END_ARG_INFO();
+@@ -174,13 +174,13 @@
+ /* }}} */
+
+ /* {{{ SDO_DAS_DataFactory methods */
+-static ZEND_BEGIN_ARG_INFO_EX(arginfo_sdo_das_datafactory_addType, 0, ZEND_RETURN_VALUE, 2)
++ZEND_BEGIN_ARG_INFO_EX(arginfo_sdo_das_datafactory_addType, 0, ZEND_RETURN_VALUE, 2)
+ ZEND_ARG_INFO(0, type_namespace_uri)
+ ZEND_ARG_INFO(0, type_name)
+ ZEND_ARG_INFO(0, options)
+ ZEND_END_ARG_INFO();
+
+-static ZEND_BEGIN_ARG_INFO_EX(arginfo_sdo_das_datafactory_addPropertyToType, 0, ZEND_RETURN_VALUE, 5)
++ZEND_BEGIN_ARG_INFO_EX(arginfo_sdo_das_datafactory_addPropertyToType, 0, ZEND_RETURN_VALUE, 5)
+ ZEND_ARG_INFO(0, parent_type_namespace_uri)
+ ZEND_ARG_INFO(0, parent_type_name)
+ ZEND_ARG_INFO(0, property_name)
+@@ -260,7 +260,7 @@
+ /* }}} */
+
+ /* {{{ SDO_Model_Type methods */
+-static ZEND_BEGIN_ARG_INFO(arginfo_sdo_model_type_identifier, 0)
++ZEND_BEGIN_ARG_INFO(arginfo_sdo_model_type_identifier, 0)
+ ZEND_ARG_INFO(0, identifier)
+ ZEND_END_ARG_INFO();
+
+@@ -322,7 +322,7 @@
+ /* }}} */
+
+ /* {{{ SDO_Model_ReflectionDataObject methods */
+-static ZEND_BEGIN_ARG_INFO_EX(arginfo_sdo_model_reflectiondataobject_export, 0, ZEND_RETURN_VALUE, 1)
++ZEND_BEGIN_ARG_INFO_EX(arginfo_sdo_model_reflectiondataobject_export, 0, ZEND_RETURN_VALUE, 1)
+ ZEND_ARG_OBJ_INFO(0, reflector, Reflector, 0)
+ ZEND_ARG_INFO(0, return_output)
+ ZEND_END_ARG_INFO();
+@@ -379,7 +379,7 @@
+ /* {{{ sdo_deps
+ */
+ #if ZEND_MODULE_API_NO >= 20050922
+-static zend_module_dep sdo_deps[] = {
++zend_module_dep sdo_deps[] = {
+ ZEND_MOD_REQUIRED("libxml")
+ ZEND_MOD_REQUIRED("spl")
+ ZEND_MOD_REQUIRED("Reflection")
diff --git a/dev-php5/pecl-sca_sdo/pecl-sca_sdo-1.2.4-r1.ebuild b/dev-php5/pecl-sca_sdo/pecl-sca_sdo-1.2.4-r1.ebuild
index f94e175aa7c3..4a377802324d 100644
--- a/dev-php5/pecl-sca_sdo/pecl-sca_sdo-1.2.4-r1.ebuild
+++ b/dev-php5/pecl-sca_sdo/pecl-sca_sdo-1.2.4-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-php5/pecl-sca_sdo/pecl-sca_sdo-1.2.4-r1.ebuild,v 1.1 2010/05/29 18:48:46 mabi Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-php5/pecl-sca_sdo/pecl-sca_sdo-1.2.4-r1.ebuild,v 1.2 2010/09/19 16:40:53 mabi Exp $
EAPI="2"
@@ -24,11 +24,9 @@ RDEPEND="${DEPEND}"
need_php_by_category
-src_unpack() {
- php-ext-source-r1_src_unpack
-
- cd "${S}"
+src_prepare() {
epatch "${FILESDIR}"/${P}-gcc44.patch
+ epatch "${FILESDIR}/${P}-php53.patch"
}
src_install() {