misc/146093: [patch] mail/policyd2: add support for PHP 5.2

Frank Wall fw at moov.de
Tue Apr 27 16:10:02 UTC 2010

>Number:         146093
>Category:       misc
>Synopsis:       [patch] mail/policyd2: add support for PHP 5.2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 27 16:10:01 UTC 2010
>Originator:     Frank Wall
>Release:        7.1-RELEASE-p4
FreeBSD 7.1-RELEASE-p4 FreeBSD 7.1-RELEASE-p4 #0: Sun Mar 22 09:43:46 UTC 2009     root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

The port mail/policyd2 does not support the new php52-* ports. A PHP 5.3 module is listed in RUN_DEPENDS.

Attached is a patch to make this port support all versions of PHP.
1. install lang/php52
2. try to install mail/policyd2
3. it will try to install a PHP module for PHP 5.3, not 5.2

===>   policyd2-2.0.10 depends on file: /usr/local/lib/php/20060613/pdo_mysql.so - not found
===>    Verifying install for /usr/local/lib/php/20060613/pdo_mysql.so in /usr/ports/databases/php5-pdo_mysql
===>  Extracting for php5-pdo_mysql-5.3.2
=> MD5 Checksum OK for php-5.3.2.tar.bz2.
=> SHA256 Checksum OK for php-5.3.2.tar.bz2.

apply the patch (remove the PHP module from RUN_DEPENDS and utilize USE_PHP instead)

Patch attached with submission follows:

--- mail/policyd2/Makefile.orig	2010-04-27 17:38:39.000000000 +0200
+++ mail/policyd2/Makefile	2010-04-27 17:39:21.000000000 +0200
@@ -17,8 +17,7 @@
 RUN_DEPENDS=	${SITE_PERL}/Net/Server.pm:${PORTSDIR}/net/p5-Net-Server \
 		${SITE_PERL}/Net/CIDR.pm:${PORTSDIR}/net-mgmt/p5-Net-CIDR \
 		${SITE_PERL}/Config/IniFiles.pm:${PORTSDIR}/devel/p5-Config-IniFiles \
-		${SITE_PERL}/mach/Cache/FastMmap.pm:${PORTSDIR}/devel/p5-Cache-FastMmap \
-		${LOCALBASE}/lib/php/${PHP_EXT_DIR}/pdo_mysql.so:${PORTSDIR}/databases/php5-pdo_mysql
+		${SITE_PERL}/mach/Cache/FastMmap.pm:${PORTSDIR}/devel/p5-Cache-FastMmap
 USE_PERL5=	yes
 USE_PHP=	yes
@@ -34,6 +33,7 @@
 		SQLite "Use SQLite support" Off
 .include <bsd.port.pre.mk>
+USE_PHP=	pdo_mysql
 .if defined(WITH_MYSQL)
 RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql


More information about the freebsd-bugs mailing list