ports/140680: Modify port databases/phpmyadmin to allow building with PHP 5.3.0
Morton Jonuschat
mjonuschat at gmail.com
Wed Nov 18 21:20:01 UTC 2009
>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 at 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:
More information about the freebsd-ports-bugs
mailing list