Date: Tue, 27 Apr 2010 16:09:02 GMT From: Frank Wall <fw@moov.de> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/146093: [patch] mail/policyd2: add support for PHP 5.2 Message-ID: <201004271609.o3RG92eN004093@www.freebsd.org> Resent-Message-ID: <201004271610.o3RGA2FK085635@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Apr 27 16:10:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Frank Wall
>Release: 7.1-RELEASE-p4
>Organization:
>Environment:
FreeBSD 7.1-RELEASE-p4 FreeBSD 7.1-RELEASE-p4 #0: Sun Mar 22 09:43:46 UTC 2009 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
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.
>How-To-Repeat:
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.
^C
>Fix:
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
.endif
>Release-Note:
>Audit-Trail:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004271609.o3RG92eN004093>
