diff options
author | jdolecek <jdolecek@pkgsrc.org> | 2005-09-18 15:22:11 +0000 |
---|---|---|
committer | jdolecek <jdolecek@pkgsrc.org> | 2005-09-18 15:22:11 +0000 |
commit | 0e362a75ef7abb66593e7e03f75b2c5a0ff00a98 (patch) | |
tree | 892028eea81e9bdea9ce1a9cd58544e62eb6f796 /databases/php-sqlite | |
parent | ba68b12980045a9076adda17c95dd19f49e9f0f3 (diff) | |
download | pkgsrc-0e362a75ef7abb66593e7e03f75b2c5a0ff00a98.tar.gz |
replace local arg3_force_ref[] with standard Zend API's third_arg_force_ref
(definition is identical on PHP4), so that this compiles with PHP5
allow the package to build with PHP5 too, bump package revision
Diffstat (limited to 'databases/php-sqlite')
-rw-r--r-- | databases/php-sqlite/Makefile | 6 | ||||
-rw-r--r-- | databases/php-sqlite/distinfo | 3 | ||||
-rw-r--r-- | databases/php-sqlite/patches/patch-aa | 24 |
3 files changed, 28 insertions, 5 deletions
diff --git a/databases/php-sqlite/Makefile b/databases/php-sqlite/Makefile index 3a668322708..437652ae64c 100644 --- a/databases/php-sqlite/Makefile +++ b/databases/php-sqlite/Makefile @@ -1,16 +1,14 @@ -# $NetBSD: Makefile,v 1.2 2005/09/12 16:43:18 tv Exp $ +# $NetBSD: Makefile,v 1.3 2005/09/18 15:22:11 jdolecek Exp $ MODNAME= SQLite PKGMODNAME= sqlite PKGNAME= php-${PKGMODNAME}-${PHP_BASE_VERS}.${PECL_VERSION} -PKGREVISION= 1 +PKGREVISION= 2 PECL_VERSION= 1.0.3 CATEGORIES+= databases MAINTAINER= tech-pkg@NetBSD.org COMMENT= PHP extension for SQLite 2.x databases -PHP_VERSIONS_ACCEPTED= 4 - CONFIGURE_ARGS+= --with-${PKGMODNAME}=shared,${BUILDLINK_PREFIX.sqlite} .include "../../lang/php/ext.mk" diff --git a/databases/php-sqlite/distinfo b/databases/php-sqlite/distinfo index 1cb84314cc3..a2e4fb302c6 100644 --- a/databases/php-sqlite/distinfo +++ b/databases/php-sqlite/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.1.1.1 2005/09/06 19:10:57 tv Exp $ +$NetBSD: distinfo,v 1.2 2005/09/18 15:22:11 jdolecek Exp $ SHA1 (php-SQLite/SQLite-1.0.3.tgz) = 338333183875deb74956b37a8d58e2659d47a501 RMD160 (php-SQLite/SQLite-1.0.3.tgz) = 681928ec360b5fe3e7cdcecc5ff88491f5547428 Size (php-SQLite/SQLite-1.0.3.tgz) = 371189 bytes +SHA1 (patch-aa) = cfc560a992bd8706f79828f31b7210fcef14e25f diff --git a/databases/php-sqlite/patches/patch-aa b/databases/php-sqlite/patches/patch-aa new file mode 100644 index 00000000000..7abe961761a --- /dev/null +++ b/databases/php-sqlite/patches/patch-aa @@ -0,0 +1,24 @@ +$NetBSD: patch-aa,v 1.1 2005/09/18 15:22:11 jdolecek Exp $ + +--- sqlite.c.orig 2005-09-18 16:59:55.000000000 +0200 ++++ sqlite.c 2005-09-18 17:01:08.000000000 +0200 +@@ -53,8 +53,6 @@ + extern int sqlite_encode_binary(const unsigned char *in, int n, unsigned char *out); + extern int sqlite_decode_binary(const unsigned char *in, unsigned char *out); + +-static unsigned char arg3_force_ref[] = {3, BYREF_NONE, BYREF_NONE, BYREF_FORCE }; +- + static int le_sqlite_db, le_sqlite_result, le_sqlite_pdb; + + static inline void php_sqlite_strtoupper(char *s) +@@ -122,8 +120,8 @@ + enum { PHPSQLITE_ASSOC = 1, PHPSQLITE_NUM = 2, PHPSQLITE_BOTH = PHPSQLITE_ASSOC|PHPSQLITE_NUM }; + + function_entry sqlite_functions[] = { +- PHP_FE(sqlite_open, arg3_force_ref) +- PHP_FE(sqlite_popen, arg3_force_ref) ++ PHP_FE(sqlite_open, third_arg_force_ref) ++ PHP_FE(sqlite_popen, third_arg_force_ref) + PHP_FE(sqlite_close, NULL) + PHP_FE(sqlite_query, NULL) + PHP_FE(sqlite_exec, NULL) |