ports/58617: [Maintainer Update] Port: lang/php5

Alex Dupre sysadmin at alexdupre.com
Tue Oct 28 13:20:21 UTC 2003


>Number:         58617
>Category:       ports
>Synopsis:       [Maintainer Update] Port: lang/php5
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 28 05:20:12 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Alex Dupre
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
>Environment:
System: FreeBSD armada.alexdupre.com 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Sat Oct 25 14:49:52 CEST 2003 alex at armada.alexdupre.com:/usr/obj/usr/src/sys/ARMADA i386


	
>Description:
Update to 5.0.0a3 snapshot.
Un-break port.
A lot of fixes, taken from recent commits to php4 port.
	
>How-To-Repeat:
	
>Fix:

	

--- php5.diff begins here ---
diff -ruN php5.orig/Makefile php5/Makefile
--- php5.orig/Makefile	Tue Oct 28 12:40:18 2003
+++ php5/Makefile	Tue Oct 28 14:59:32 2003
@@ -20,18 +20,18 @@
 #
 
 PORTNAME=	php5
-PORTVERSION=	5.0.0.a2
+PORTVERSION=	5.0.0.a3
 CATEGORIES?=	lang devel www
-MASTER_SITES=	http://www.php.net/distributions/ \
-		http://it.php.net/distributions/ \
-		http://fi.php.net/distributions/ \
-		http://de.php.net/distributions/ \
-		http://gr.php.net/distributions/ \
-		http://fr.php.net/distributions/ \
-		http://es.php.net/distributions/ \
-		http://se.php.net/distributions/ \
-		http://www.sm.FreeBSD.org/~alex/ \
-		http://downloads.php.net/jani/
+MASTER_SITES=	http://www.php.net/distributions/:release \
+		http://it.php.net/distributions/:release \
+		http://fi.php.net/distributions/:release \
+		http://de.php.net/distributions/:release \
+		http://gr.php.net/distributions/:release \
+		http://fr.php.net/distributions/:release \
+		http://es.php.net/distributions/:release \
+		http://se.php.net/distributions/:release \
+		http://www.sm.FreeBSD.org/~alex/:rc \
+		http://downloads.php.net/jani/:rc
 .if defined(WITHOUT_CLI) && !defined(WITHOUT_APACHE)
 PKGNAMEPREFIX=	mod_
 .else
@@ -44,6 +44,7 @@
 .endif
 .endif
 DISTNAME=	php-${PORTVERSION:S/.a/a/}
+DISTFILES=	${DISTNAME}${EXTRACT_SUFX}:rc
 
 MAINTAINER?=	sysadmin at alexdupre.com
 COMMENT=	PHP Scripting Language (Apache Module and CLI)
@@ -59,13 +60,10 @@
 .endif
 .endif
 
-BROKEN=		Does not compile
-
 USE_BZIP2=	yes
 USE_SUBMAKE=	yes
 GNU_CONFIGURE=	yes
 USE_BISON=	yes
-USE_LIBTOOL_VER=14
 
 CONFIGURE_ARGS=	--enable-versioning \
 		--enable-memory-limit \
@@ -126,8 +124,8 @@
 
 ALL_OPTIONS=	BCMATH BZIP2 CALENDAR CDB CRACK CTYPE CURL DB4 DBASE DBX DOM \
 		EXIF FILEPRO FTP GD GDBM GETTEXT GMP ICONV IMAP INTERBASE \
-		INIFILE MBSTRING MCAL MCVE MCRYPT MHASH MIME MING MYSQL \
-		NCURSES OPENLDAP OPENSSL ORACLE PCNTL PCRE PDFLIB POSIX \
+		INIFILE MBSTRING MCAL MCVE MCRYPT MHASH MIME MING MNOGOSEARCH \
+		MYSQL NCURSES OPENLDAP OPENSSL ORACLE PCNTL PCRE PDFLIB POSIX \
 		POSTGRESQL PSPELL READLINE RECODE SESSION SHMOP SIMPLEXML SNMP \
 		SOCKETS SQLITE SYBASEDB SYBASECT SYSVSEM SYSVSHM TOKENIZER \
 		UNIXODBC WDDX XML XMLRPC XSL YAZ YP ZLIB
@@ -142,40 +140,6 @@
 IS_INTERACTIVE=	yes
 .endif
 
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} < 400014 || defined(WITHOUT_IPV6)
-CONFIGURE_ARGS+=--disable-ipv6
-.endif
-
-.if !defined(WITHOUT_APACHE)
-.if exists(${LOCALBASE}/include/apache2/apr.h)
-WITH_APACHE2=	yes
-.endif
-
-APXS?=		${LOCALBASE}/sbin/apxs
-
-.if defined(WITH_APACHE2)
-APACHE_PORT?=	${PORTSDIR}/www/apache2
-CONFIGURE_ARGS+=--with-apxs2=${APXS}
-SAPI_FILE=	libexec/apache2/libphp5.so
-.else
-APACHE_PORT?=	${PORTSDIR}/www/apache13
-CONFIGURE_ARGS+=--with-apxs=${APXS}
-SAPI_FILE=	libexec/apache/libphp5.so
-.endif
-
-BUILD_DEPENDS+=	${APXS}:${APACHE_PORT}
-RUN_DEPENDS+=	${APXS}:${APACHE_PORT}
-
-PLIST_SUB+=	APACHE=""
-.else
-PLIST_SUB+=	APACHE="@comment "
-.endif
-
-PLIST_SUB+=	SAPI_FILE=${SAPI_FILE} \
-		EXT_DIR=${EXT_DIR}
-
 WRKDIR?=	${WRKDIRPREFIX}${.CURDIR}/work
 PHP5_OPTFILE?=	${HOME}/php5_options
 
@@ -189,6 +153,9 @@
 .for opt in ${PHP5_OPTIONS}
 .if !defined(WITHOUT_${opt})
 SEL_OPTIONS+=	${opt}
+.if !exists(${WRKDIR}/Makefile.inc)
+WITH_${opt}=	yes
+.endif
 .endif
 SCRIPTS_ENV+=	WITH_${opt}=ON
 .endfor
@@ -199,10 +166,6 @@
 		CAT="${CAT}" \
 		SED="${SED}"
 
-.ifmake describe
-WITH_XML=	yes
-.endif
-
 .if exists(${WRKDIR}/Makefile.inc)
 .include "${WRKDIR}/Makefile.inc"
 .endif
@@ -337,30 +300,13 @@
 
 .if defined(WITH_ICONV) || defined(WITH_ICONV_DEP)
 LIB_DEPENDS+=	iconv.3:${PORTSDIR}/converters/libiconv
+CONFIGURE_ARGS+=--with-iconv-dir=${LOCALBASE}
 .endif
 
 .if defined(WITH_ICONV)
 CONFIGURE_ARGS+=--with-iconv=${LOCALBASE}
 .endif
 
-.if defined(WITH_IMAP)
-LIB_DEPENDS+=	c-client4.8:${PORTSDIR}/mail/cclient
-.if !exists(${LOCALBASE}/lib/libc-client4.so)
-.if !defined(WITHOUT_SSL)
-CONFIGURE_ARGS+=--with-imap=${LOCALBASE} --with-imap-ssl=${LOCALBASE}
-.else
-CONFIGURE_ARGS+=--with-imap=${LOCALBASE}
-.endif
-.else
-WITH_IMAP_SSL!=/usr/bin/ldd ${LOCALBASE}/lib/libc-client4.so | ${GREP} libssl || ${TRUE}
-.if !empty(WITH_IMAP_SSL)
-CONFIGURE_ARGS+=--with-imap=${LOCALBASE} --with-imap-ssl=${LOCALBASE}
-.else
-CONFIGURE_ARGS+=--with-imap=${LOCALBASE}
-.endif
-.endif
-.endif
-
 .if defined(WITH_INIFILE)
 CONFIGURE_ARGS+=--with-inifile
 .endif
@@ -386,6 +332,7 @@
 
 .if defined(WITH_MCRYPT)
 LIB_DEPENDS+=	mcrypt.8:${PORTSDIR}/security/libmcrypt
+LIB_DEPENDS+=	ltdl.4:${PORTSDIR}/devel/libltdl
 CONFIGURE_ARGS+=--with-mcrypt=${LOCALBASE}
 .endif
 
@@ -403,28 +350,25 @@
 CONFIGURE_ARGS+=--with-ming=${LOCALBASE}
 .endif
 
+.if defined(WITH_MNOGOSEARCH)
+LIB_DEPENDS+=	udmsearch.1:${PORTSDIR}/www/mnogosearch
+CONFIGURE_ARGS+=--with-mnogosearch=${LOCALBASE}
+.endif
+
 .if defined(WITH_MYSQL)
 USE_MYSQL=	yes
 CONFIGURE_ARGS+=--with-mysql=${LOCALBASE}
 .endif
 
-.if defined(WITH_NCURSES)
-.if ${OSVERSION} < 400000
-NCURSESBASE=	${LOCALBASE}
-LIB_DEPENDS+=	ncurses.5:${PORTSDIR}/devel/ncurses
-.else
-NCURSESBASE=	/usr
-.endif
-CONFIGURE_ARGS+=--with-ncurses=${NCURSESBASE}
-.endif
-
 .if defined(WITH_OPENLDAP)
 USE_OPENLDAP=	yes
 CONFIGURE_ARGS+=--with-ldap=${LOCALBASE}
 .endif
 
 .if defined(WITH_OPENSSL) || defined(WITH_OPENSSL_DEP)
-.include "${PORTSDIR}/Mk/bsd.openssl.mk"
+USE_OPENSSL=	yes
+LDFLAGS+=	-lcrypto -lssl
+CONFIGURE_ENV+=	LDFLAGS="${LDFLAGS}"
 CONFIGURE_ARGS+=--with-openssl-dir=${OPENSSLBASE}
 .endif
 
@@ -486,15 +430,6 @@
 CONFIGURE_ARGS+=--enable-simplexml
 .endif
 
-.if defined(WITH_SNMP)
-.if exists(${LOCALBASE}/lib/libsnmp.so.4)
-LIB_DEPENDS+=	snmp.4:${PORTSDIR}/net/net-snmp4
-.else
-LIB_DEPENDS+=	netsnmp.5:${PORTSDIR}/net/net-snmp
-.endif
-CONFIGURE_ARGS+=--with-snmp=${LOCALBASE} --enable-ucd-snmp-hack
-.endif
-
 .if defined(WITH_SOCKETS)
 CONFIGURE_ARGS+=--enable-sockets
 .endif
@@ -536,7 +471,7 @@
 
 .if defined(WITH_XML) || defined(WITH_XML_DEP)
 LIB_DEPENDS+=	xml2.5:${PORTSDIR}/textproc/libxml2
-CONFIGURE_ARGS+=--with-libxml-dir=${LOCALBASE}
+CONFIGURE_ARGS+=--enable-libxml --with-libxml-dir=${LOCALBASE}
 .endif
 
 .if defined(WITH_XML)
@@ -545,7 +480,7 @@
 
 .if defined(WITH_XMLRPC)
 LIB_DEPENDS+=	expat.4:${PORTSDIR}/textproc/expat2
-CONFIGURE_ARGS+=--with-xmlrpc --with-expat-dir=${LOCALBASE} --with-iconv-dir=${LOCALBASE}
+CONFIGURE_ARGS+=--with-xmlrpc --with-expat-dir=${LOCALBASE}
 .endif
 
 .if defined(WITH_XSL)
@@ -568,6 +503,70 @@
 
 .if defined(WITH_ZLIB)
 CONFIGURE_ARGS+=--with-zlib
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if !defined(WITHOUT_APACHE)
+APXS?=		${LOCALBASE}/sbin/apxs
+.if exists(${LOCALBASE}/include/apache2/apr.h)
+WITH_APACHE2=	yes
+.endif
+.if defined(WITH_APACHE2)
+APACHE_PORT?=	${PORTSDIR}/www/apache2
+CONFIGURE_ARGS+=--with-apxs2=${APXS}
+SAPI_FILE=	libexec/apache2/libphp5.so
+.else
+APACHE_PORT?=	${PORTSDIR}/www/apache13
+CONFIGURE_ARGS+=--with-apxs=${APXS}
+SAPI_FILE=	libexec/apache/libphp5.so
+.endif
+BUILD_DEPENDS+=	${APXS}:${APACHE_PORT}
+RUN_DEPENDS+=	${APXS}:${APACHE_PORT}
+.endif
+
+PLIST_SUB+=	SAPI_FILE=${SAPI_FILE} \
+		EXT_DIR=${EXT_DIR}
+
+.if ${OSVERSION} < 400014 || defined(WITHOUT_IPV6)
+CONFIGURE_ARGS+=--disable-ipv6
+.endif
+
+.if defined(WITH_IMAP)
+LIB_DEPENDS+=	c-client4.8:${PORTSDIR}/mail/cclient
+.if !exists(${LOCALBASE}/lib/libc-client4.so)
+.if !defined(WITHOUT_SSL)
+CONFIGURE_ARGS+=--with-imap=${LOCALBASE} --with-imap-ssl=${LOCALBASE}
+.else
+CONFIGURE_ARGS+=--with-imap=${LOCALBASE}
+.endif
+.else
+WITH_IMAP_SSL!=	/usr/bin/ldd ${LOCALBASE}/lib/libc-client4.so | ${GREP} libssl || ${TRUE}
+.if !empty(WITH_IMAP_SSL)
+CONFIGURE_ARGS+=--with-imap=${LOCALBASE} --with-imap-ssl=${LOCALBASE}
+.else
+CONFIGURE_ARGS+=--with-imap=${LOCALBASE}
+.endif
+.endif
+.endif
+
+.if defined(WITH_NCURSES)
+.if ${OSVERSION} < 400000
+NCURSESBASE=	${LOCALBASE}
+LIB_DEPENDS+=	ncurses.5:${PORTSDIR}/devel/ncurses
+.else
+NCURSESBASE=	/usr
+.endif
+CONFIGURE_ARGS+=--with-ncurses=${NCURSESBASE}
+.endif
+
+.if defined(WITH_SNMP)
+.if exists(${LOCALBASE}/lib/libsnmp.so.4)
+LIB_DEPENDS+=	snmp.4:${PORTSDIR}/net/net-snmp4
+.else
+LIB_DEPENDS+=	netsnmp.5:${PORTSDIR}/net/net-snmp
+.endif
+CONFIGURE_ARGS+=--with-snmp=${LOCALBASE} --enable-ucd-snmp-hack
 .endif
 
 pre-patch:
diff -ruN php5.orig/distinfo php5/distinfo
--- php5.orig/distinfo	Tue Oct 28 12:36:21 2003
+++ php5/distinfo	Tue Oct 28 14:32:09 2003
@@ -1 +1 @@
-MD5 (php-5.0.0a2.tar.bz2) = d6bba61fad4be66fb0a79791fee5cff4
+MD5 (php-5.0.0a3.tar.bz2) = f83cc6b735ccf312045d9178d107874f
diff -ruN php5.orig/files/patch-configure php5/files/patch-configure
--- php5.orig/files/patch-configure	Tue Oct 28 12:36:21 2003
+++ php5/files/patch-configure	Tue Oct 28 14:33:41 2003
@@ -228,7 +228,7 @@
 @@ -57066,8 +57240,8 @@
    
    echo $ac_n "checking Oracle version""... $ac_c" 1>&6
- echo "configure:58744: checking Oracle version" >&5
+ echo "configure:59505: checking Oracle version" >&5
 -  if test -s "$ORACLE_DIR/orainst/unix.rgs"; then
 -  	ORACLE_VERSION=`grep '"ocommon"' $ORACLE_DIR/orainst/unix.rgs | sed 's/  */:/g' | cut -d: -f 6 | cut -c 2-4`
 +  if test -s "$ORACLE_DIR/ocommon/install/partial.prd"; then
diff -ruN php5.orig/pkg-plist php5/pkg-plist
--- php5.orig/pkg-plist	Tue Oct 28 12:36:21 2003
+++ php5/pkg-plist	Tue Oct 28 15:00:28 2003
@@ -41,7 +41,9 @@
 include/php/Zend/zend_ini.h
 include/php/Zend/zend_ini_parser.h
 include/php/Zend/zend_ini_scanner.h
+include/php/Zend/zend_interfaces.h
 include/php/Zend/zend_istdiostream.h
+include/php/Zend/zend_iterators.h
 include/php/Zend/zend_language_parser.h
 include/php/Zend/zend_language_scanner.h
 include/php/Zend/zend_list.h
@@ -123,6 +125,7 @@
 include/php/ext/standard/php_string.h
 include/php/ext/standard/php_sunfuncs.h
 include/php/ext/standard/php_type.h
+include/php/ext/standard/php_uuencode.h
 include/php/ext/standard/php_var.h
 include/php/ext/standard/php_versioning.h
 include/php/ext/standard/proc_open.h
diff -ruN php5.orig/scripts/configure.php php5/scripts/configure.php
--- php5.orig/scripts/configure.php	Tue Oct 28 12:36:21 2003
+++ php5/scripts/configure.php	Tue Oct 28 13:04:33 2003
@@ -47,6 +47,7 @@
 MHASH		"Crypto-hashing support" ${WITH_MHASH:-OFF} \
 MIME		"mime_magic support" ${WITH_MIME:-OFF} \
 MING		"ming shockwave flash support" ${WITH_MING:-OFF} \
+MNOGOSEARCH	"mnoGoSearch support" ${WITH_MNOGOSEARCH:-OFF} \
 MYSQL		"MySQL database support" ${WITH_MYSQL:-OFF} \
 NCURSES		"ncurses support (CLI only)" ${WITH_NCURSES:-OFF} \
 OPENLDAP	"OpenLDAP support" ${WITH_OPENLDAP:-OFF} \
diff -ruN php5.orig/scripts/php5_options php5/scripts/php5_options
--- php5.orig/scripts/php5_options	Tue Oct 28 12:36:21 2003
+++ php5/scripts/php5_options	Tue Oct 28 13:04:49 2003
@@ -27,6 +27,7 @@
 WITH_MHASH=OFF
 WITH_MIME=OFF
 WITH_MING=OFF
+WITH_MNOGOSEARCH=OFF
 WITH_MYSQL=OFF
 WITH_NCURSES=OFF
 WITH_OPENLDAP=OFF
--- php5.diff ends here ---



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list