ports/144418: p5-Mail-SpamAssassin doesn't handle WITHOUT_IPV6 systems
Jeremy Chadwick
freebsd at jdc.parodius.com
Tue Mar 2 13:30:04 UTC 2010
>Number: 144418
>Category: ports
>Synopsis: p5-Mail-SpamAssassin doesn't handle WITHOUT_IPV6 systems
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Mar 02 13:30:03 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Jeremy Chadwick
>Release: FreeBSD 8.0-STABLE amd64
>Organization:
>Environment:
System: FreeBSD icarus.home.lan 8.0-STABLE FreeBSD 8.0-STABLE #0: Mon Mar 1 11:51:38 PST 2010 root at icarus.home.lan:/usr/obj/usr/src/sys/X7SBA_RELENG_8_amd64 amd64
>Description:
The mail/p5-Mail-SpamAssassin port improperly requires IPv6-related
perl modules on systems which have WITHOUT_IPV6 defined. Specifically,
the Makefile contains the following RUN_DEPENDS entry which should
*only* be required on systems which have IPv6:
${SITE_PERL}/IO/Socket/INET6.pm:${PORTSDIR}/net/p5-IO-INET6
>How-To-Repeat:
Build p5-Mail-SpamAssassin on a system which lacks IPv6 support and
has WITHOUT_IPV6 defined.
>Fix:
Apply the below patch to exclude p5-IO-INET6 from the dependency list
if WITHOUT_IPV6 is defined.
--- Makefile.orig 2010-02-17 22:06:18.000000000 -0800
+++ Makefile 2010-03-02 05:23:39.000000000 -0800
@@ -30,7 +30,6 @@
${SITE_PERL}/Mail/Internet.pm:${PORTSDIR}/mail/p5-Mail-Tools
RUN_DEPENDS= ${BUILD_DEPENDS} \
- ${SITE_PERL}/IO/Socket/INET6.pm:${PORTSDIR}/net/p5-IO-INET6 \
${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes
CONFLICTS= ja-p5-Mail-SpamAssassin-[0-9]*
@@ -76,6 +75,10 @@
BUILD_DEPENDS+= ${SITE_PERL}/Mail/SPF.pm:${PORTSDIR}/mail/p5-Mail-SPF
.endif
+.if !defined(WITHOUT_IPV6)
+RUN_DEPENDS+= ${SITE_PERL}/IO/Socket/INET6.pm:${PORTSDIR}/net/p5-IO-INET6
+.endif
+
.if !defined(WITHOUT_SSL)
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
RUN_DEPENDS+= ${SITE_PERL}/IO/Socket/SSL.pm:${PORTSDIR}/security/p5-IO-Socket-SSL
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list