Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Nov 2009 21:10:44 GMT
From:      Morton Jonuschat <mjonuschat@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/140680: Modify port databases/phpmyadmin to allow building with PHP 5.3.0
Message-ID:  <200911182110.nAILAiBv039105@www.freebsd.org>
Resent-Message-ID: <200911182120.nAILK1OE000133@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         140680
>Category:       ports
>Synopsis:       Modify port databases/phpmyadmin to allow building with PHP 5.3.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 18 21:20:00 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Morton Jonuschat
>Release:        8.0-PRERELEASE
>Organization:
>Environment:
FreeBSD localhorst.local 8.0-PRERELEASE FreeBSD 8.0-PRERELEASE #0: Tue Nov 17 07:52:33 CET 2009 root@localhorst.local:/usr/obj/usr/src/sys/HOMESERVER amd64
>Description:
This patch allows phpMyAdmin to build with PHP 5.3.0 which permanently includes SPL in the core and this presents a dependency problem.

Related to http://www.freebsd.org/cgi/query-pr.cgi?pr=140678


>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -urN /usr/ports-php52/databases/phpmyadmin/Makefile databases/phpmyadmin/Makefile
--- /usr/ports-php52/databases/phpmyadmin/Makefile	2009-11-17 01:35:11.062653213 +0100
+++ databases/phpmyadmin/Makefile	2009-11-18 22:04:08.309974589 +0100
@@ -20,7 +20,7 @@
 USE_BZIP2=	yes
 NO_BUILD=	yes
 .if !defined(WITHOUT_PHP_DEPENDS)
-USE_PHP=	ctype mysql session spl filter
+USE_PHP=	ctype mysql session filter
 .endif
 
 # Unfortunately can't make WITH_SUPHP part of the OPTIONS selection,
@@ -108,6 +108,13 @@
 
 .include <bsd.port.pre.mk>
 
+.if !defined(WITHOUT_PHP_DEPENDS)
+PHP_VERNUM!=	${PHPBASE}/bin/php-config --vernum
+.	if ${PHP_VERNUM} < 50300
+USE_PHP+=	spl
+.	endif
+.endif
+
 _PMA_GID!=	${PW} group show -n ${PMA_GRP} | ${CUT} -d : -f 3
 .if empty(_PMA_GID)
 _PMA_GID=	80


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911182110.nAILAiBv039105>