From zaa@ulstu.ru  Sat Feb 11 23:45:32 2006
Return-Path: <zaa@ulstu.ru>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 8E0BE16A420
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 11 Feb 2006 23:45:32 +0000 (GMT)
	(envelope-from zaa@ulstu.ru)
Received: from kernel.ulstu.ru (kernel.ulstu.ru [62.76.34.36])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D45D843D45
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 11 Feb 2006 23:45:27 +0000 (GMT)
	(envelope-from zaa@ulstu.ru)
Received: from localhost (localhost [127.0.0.1])
	by kernel.ulstu.ru (ulstuMail) with ESMTP id BC1824AC24;
	Sun, 12 Feb 2006 02:45:22 +0300 (MSK)
Received: from kernel.ulstu.ru ([127.0.0.1])
 by localhost (kernel.ulstu.ru [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 32733-06; Sun, 12 Feb 2006 02:45:20 +0300 (MSK)
Received: from wave.zaa.local (zaa.ulstu.ru [62.76.34.17])
	by kernel.ulstu.ru (ulstuMail) with ESMTP id 226104AC22
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 12 Feb 2006 02:45:18 +0300 (MSK)
Received: by wave.zaa.local (Postfix, from userid 3909)
	id 4E365B81E; Sun, 12 Feb 2006 02:47:00 +0300 (MSK)
Message-Id: <20060211234700.4E365B81E@wave.zaa.local>
Date: Sun, 12 Feb 2006 02:47:00 +0300 (MSK)
From: Alexander Zhuravlev <zaa@ulstu.ru>
Reply-To: Alexander Zhuravlev <zaa@ulstu.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [new port] databases/pecl-paradox A PHP extension to read and write Paradox files
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         93211
>Category:       ports
>Synopsis:       [new port] databases/pecl-paradox A PHP extension to read and write Paradox files
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    garga
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 11 23:50:04 GMT 2006
>Closed-Date:    Tue Feb 14 14:55:19 GMT 2006
>Last-Modified:  Tue Feb 14 14:55:19 GMT 2006
>Originator:     Alexander Zhuravlev
>Release:        FreeBSD 6.1-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD wave.zaa.local 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #16: Wed Feb 8 14:34:14 MSK 2006 root@wave.zaa.local:/usr/obj/usr/src/sys/WAVE i386


	
>Description:
	
>How-To-Repeat:
	
>Fix:

	Please apply the patch provided below.

	Thank you for your efforts ;-)


--- pecl-paradox.diff begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	pecl-paradox/
#	pecl-paradox/distinfo
#	pecl-paradox/Makefile
#	pecl-paradox/pkg-descr
#	pecl-paradox/files
#	pecl-paradox/files/patch-config.m4
#
echo c - pecl-paradox/
mkdir -p pecl-paradox/ > /dev/null 2>&1
echo x - pecl-paradox/distinfo
sed 's/^X//' >pecl-paradox/distinfo << 'END-of-pecl-paradox/distinfo'
XMD5 (PECL/paradox-1.4.0.tgz) = 6780ffc7863e7940e05e811b93d19e58
XSHA256 (PECL/paradox-1.4.0.tgz) = f46979446f3de4aa1f8047497bc731593e155f58ff3f44360e463ae06cad939a
XSIZE (PECL/paradox-1.4.0.tgz) = 18696
END-of-pecl-paradox/distinfo
echo x - pecl-paradox/Makefile
sed 's/^X//' >pecl-paradox/Makefile << 'END-of-pecl-paradox/Makefile'
X# Ports collection makefile for:  pecl-paradox
X# Date created:			  2006-02-11
X# Whom:				  Alexander Zhuravlev <zaa@zaa.pp.ru>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	paradox
XDISTVERSION=	1.4.0
XCATEGORIES=	databases www
XMASTER_SITES=	http://pecl.php.net/get/
XPKGNAMEPREFIX=	pecl-
XEXTRACT_SUFX=	.tgz
XDIST_SUBDIR=	PECL
X
XMAINTAINER=	zaa@zaa.pp.ru
XCOMMENT=	An extension to read and write Paradox files
X
XLIB_DEPENDS=	px.6:${PORTSDIR}/databases/pxlib
X
XUSE_PHP=	yes
XUSE_PHPIZE=	yes
XUSE_PHPEXT=	yes
XDEFAULT_PHP_VER=5
XBROKEN_WITH_PHP=4
XPHP_MODNAME=	paradox
X
XCONFIGURE_ARGS+=	--with-paradox=${LOCALBASE}
XCONFIGURE_ENV=  CPPFLAGS=-I${LOCALBASE}/include LDFLAGS=-L${LOCALBASE}/lib
X
X.include <bsd.port.mk>
END-of-pecl-paradox/Makefile
echo x - pecl-paradox/pkg-descr
sed 's/^X//' >pecl-paradox/pkg-descr << 'END-of-pecl-paradox/pkg-descr'
XParadox is an extension to read and write Paradox .DB and .PX files.
XIt can handle almost all field types and binary large objects stored
Xin .MB files.
X
XWWW: http://pecl.php.net/package/paradox
END-of-pecl-paradox/pkg-descr
echo c - pecl-paradox/files
mkdir -p pecl-paradox/files > /dev/null 2>&1
echo x - pecl-paradox/files/patch-config.m4
sed 's/^X//' >pecl-paradox/files/patch-config.m4 << 'END-of-pecl-paradox/files/patch-config.m4'
X--- config.m4.orig	Thu Feb  9 20:26:37 2006
X+++ config.m4	Sat Feb 11 04:35:51 2006
X@@ -44,7 +44,7 @@ if test "$PHP_PARADOX" != "no"; then
X   ],[
X     AC_MSG_ERROR([wrong paradox lib version or lib not found. Need at least pxlib 0.6.0])
X   ],[
X-    -L$PARADOX_DIR/lib -lm -ldl
X+    -L$PARADOX_DIR/lib -lm -liconv -lintl
X   ])
X 
X   PHP_SUBST(PARADOX_SHARED_LIBADD)
END-of-pecl-paradox/files/patch-config.m4
exit
--- pecl-paradox.diff ends here ---


>Release-Note:
>Audit-Trail:

From: Alexander Zhuravlev <zaa@ulstu.ru>
To: bug-followup@FreeBSD.org
Cc:  
Subject: re: ports/93211 : [new port] databases/pecl-paradox A PHP extension to read and write Paradox files
Date: Tue, 14 Feb 2006 04:49:09 +0300

 Below is updated shar archive (with pecl-paradox version 1.4.1)
 
 --- pecl-paradox-1.4.1.patch begins here ---
 # This is a shell archive.  Save it in a file, remove anything before
 # this line, and then unpack it by entering "sh file".  Note, it may
 # create directories; files and directories will be owned by you and
 # have default permissions.
 #
 # This archive contains:
 #
 #	pecl-paradox
 #	pecl-paradox/distinfo
 #	pecl-paradox/Makefile
 #	pecl-paradox/pkg-descr
 #	pecl-paradox/files
 #	pecl-paradox/files/patch-config.m4
 #	pecl-paradox/files/patch-paradox.c
 #
 echo c - pecl-paradox
 mkdir -p pecl-paradox > /dev/null 2>&1
 echo x - pecl-paradox/distinfo
 sed 's/^X//' >pecl-paradox/distinfo << 'END-of-pecl-paradox/distinfo'
 XMD5 (PECL/paradox-1.4.1.tgz) = bc66cee698c9843fc92a0a159f1695a7
 XSIZE (PECL/paradox-1.4.1.tgz) = 18956
 END-of-pecl-paradox/distinfo
 echo x - pecl-paradox/Makefile
 sed 's/^X//' >pecl-paradox/Makefile << 'END-of-pecl-paradox/Makefile'
 X# Ports collection makefile for:  pecl-paradox
 X# Date created:			  2006-02-11
 X# Whom:				  Alexander Zhuravlev <zaa@zaa.pp.ru>
 X#
 X# $FreeBSD$
 X#
 X
 XPORTNAME=	paradox
 XDISTVERSION=	1.4.1
 XCATEGORIES=	databases www
 XMASTER_SITES=	http://pecl.php.net/get/
 XPKGNAMEPREFIX=	pecl-
 XEXTRACT_SUFX=	.tgz
 XDIST_SUBDIR=	PECL
 X
 XMAINTAINER=	zaa@zaa.pp.ru
 XCOMMENT=	An extension to read and write Paradox files
 X
 XLIB_DEPENDS=	px.6:${PORTSDIR}/databases/pxlib
 X
 XUSE_PHP=	yes
 XUSE_PHPIZE=	yes
 XUSE_PHPEXT=	yes
 XDEFAULT_PHP_VER=5
 XBROKEN_WITH_PHP=4
 XPHP_MODNAME=	paradox
 X
 XCONFIGURE_ARGS+=	--with-paradox=${LOCALBASE}
 XCONFIGURE_ENV=  CPPFLAGS=-I${LOCALBASE}/include LDFLAGS=-L${LOCALBASE}/lib
 X
 X.include <bsd.port.mk>
 END-of-pecl-paradox/Makefile
 echo x - pecl-paradox/pkg-descr
 sed 's/^X//' >pecl-paradox/pkg-descr << 'END-of-pecl-paradox/pkg-descr'
 XParadox is an extension to read and write Paradox .DB and .PX files.
 XIt can handle almost all field types and binary large objects stored
 Xin .MB files.
 X
 XWWW: http://pecl.php.net/package/paradox
 END-of-pecl-paradox/pkg-descr
 echo c - pecl-paradox/files
 mkdir -p pecl-paradox/files > /dev/null 2>&1
 echo x - pecl-paradox/files/patch-config.m4
 sed 's/^X//' >pecl-paradox/files/patch-config.m4 << 'END-of-pecl-paradox/files/patch-config.m4'
 X--- config.m4.orig	Thu Feb  9 20:26:37 2006
 X+++ config.m4	Sat Feb 11 04:35:51 2006
 X@@ -44,7 +44,7 @@ if test "$PHP_PARADOX" != "no"; then
 X   ],[
 X     AC_MSG_ERROR([wrong paradox lib version or lib not found. Need at least pxlib 0.6.0])
 X   ],[
 X-    -L$PARADOX_DIR/lib -lm -ldl
 X+    -L$PARADOX_DIR/lib -lm -liconv -lintl
 X   ])
 X 
 X   PHP_SUBST(PARADOX_SHARED_LIBADD)
 END-of-pecl-paradox/files/patch-config.m4
 echo x - pecl-paradox/files/patch-paradox.c
 sed 's/^X//' >pecl-paradox/files/patch-paradox.c << 'END-of-pecl-paradox/files/patch-paradox.c'
 X--- paradox.c.orig	Tue Feb 14 03:57:58 2006
 X+++ paradox.c	Tue Feb 14 03:59:42 2006
 X@@ -86,8 +86,10 @@
 X };
 X /* }}} */
 X 
 X-//#define PHP_ME_MAPPING(name, func_name, arg_types) \
 X-//	ZEND_NAMED_FE(name, ZEND_FN(func_name), arg_types)
 X+/*
 X+#define PHP_ME_MAPPING(name, func_name, arg_types) \
 X+	ZEND_NAMED_FE(name, ZEND_FN(func_name), arg_types)
 X+*/
 X 
 X function_entry paradox_funcs_db[] = {
 X 	PHP_ME_MAPPING(__construct, px_new, NULL)
 X@@ -425,6 +427,7 @@
 X 	FILE *fp = NULL;
 X 	pxdoc_t *pxdoc = NULL;
 X 	zval *object = getThis();
 X+	php_stream *stream;
 X 
 X 	if (object) {
 X 		if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &zfp)) {
 X@@ -438,8 +441,6 @@
 X 		PXDOC_FROM_ZVAL(pxdoc, &zpx);
 X 	}
 X 
 X-	php_stream *stream;
 X-
 X 	php_stream_from_zval(stream, &zfp);
 X 	
 X 	if (php_stream_cast(stream, PHP_STREAM_AS_STDIO, (void*)&fp, 1) == FAILURE)	{
 X@@ -468,6 +469,7 @@
 X 	pxfield_t *pxf;
 X 	int numfields, i;
 X 	zval *object = getThis();
 X+	php_stream *stream;
 X 
 X 	if (object) {
 X 		if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rz", &zfp, &schema)) {
 X@@ -486,7 +488,6 @@
 X 		RETURN_FALSE;
 X 	}
 X 
 X-	php_stream *stream;
 X 	php_stream_from_zval(stream, &zfp);
 X 	
 X 	if (php_stream_cast(stream, PHP_STREAM_AS_STDIO, (void*)&fp, 1) == FAILURE)	{
 END-of-pecl-paradox/files/patch-paradox.c
 exit
 --- pecl-paradox-1.4.1.patch ends here ---
 
 -- 
 Alexander Zhuravlev
Responsible-Changed-From-To: freebsd-ports-bugs->garga 
Responsible-Changed-By: garga 
Responsible-Changed-When: Tue Feb 14 10:07:19 UTC 2006 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=93211 
State-Changed-From-To: open->closed 
State-Changed-By: garga 
State-Changed-When: Tue Feb 14 14:55:17 UTC 2006 
State-Changed-Why:  
New port added, with some changes, the most important is that I added a 
patch-paradox.c that fix build on FreeBSD 4.x. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=93211 
>Unformatted:
