Skip site navigation (1)Skip section navigation (2)
Date:      Tue,  2 Mar 2010 05:27:39 -0800 (PST)
From:      Jeremy Chadwick <freebsd@jdc.parodius.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/144418: p5-Mail-SpamAssassin doesn't handle WITHOUT_IPV6 systems
Message-ID:  <20100302132739.C817F1E3035@icarus.home.lan>
Resent-Message-ID: <201003021330.o22DU3Go008025@freefall.freebsd.org>

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

>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@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:



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