From owner-freebsd-ports-bugs@FreeBSD.ORG  Tue Mar  2 13:30:04 2010
Return-Path: <owner-freebsd-ports-bugs@FreeBSD.ORG>
Delivered-To: freebsd-ports-bugs@hub.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 2FE741065679
	for <freebsd-ports-bugs@hub.freebsd.org>;
	Tue,  2 Mar 2010 13:30:04 +0000 (UTC)
	(envelope-from gnats@FreeBSD.org)
Received: from freefall.freebsd.org (freefall.freebsd.org
	[IPv6:2001:4f8:fff6::28])
	by mx1.freebsd.org (Postfix) with ESMTP id E435D8FC0C
	for <freebsd-ports-bugs@hub.freebsd.org>;
	Tue,  2 Mar 2010 13:30:03 +0000 (UTC)
Received: from freefall.freebsd.org (localhost [127.0.0.1])
	by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o22DU3jT008028
	for <freebsd-ports-bugs@freefall.freebsd.org>;
	Tue, 2 Mar 2010 13:30:03 GMT
	(envelope-from gnats@freefall.freebsd.org)
Received: (from gnats@localhost)
	by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o22DU3Go008025;
	Tue, 2 Mar 2010 13:30:03 GMT (envelope-from gnats)
Resent-Date: Tue, 2 Mar 2010 13:30:03 GMT
Resent-Message-Id: <201003021330.o22DU3Go008025@freefall.freebsd.org>
Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer)
Resent-To: freebsd-ports-bugs@FreeBSD.org
Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org,
	Jeremy Chadwick <freebsd@jdc.parodius.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 65B74106566C
	for <freebsd-gnats-submit@freebsd.org>;
	Tue,  2 Mar 2010 13:27:41 +0000 (UTC)
	(envelope-from jdc@koitsu.dyndns.org)
Received: from qmta03.emeryville.ca.mail.comcast.net
	(qmta03.emeryville.ca.mail.comcast.net [76.96.30.32])
	by mx1.freebsd.org (Postfix) with ESMTP id 503FD8FC1B
	for <freebsd-gnats-submit@freebsd.org>;
	Tue,  2 Mar 2010 13:27:40 +0000 (UTC)
Received: from omta16.emeryville.ca.mail.comcast.net ([76.96.30.72])
	by qmta03.emeryville.ca.mail.comcast.net with comcast
	id oCsM1d0071ZMdJ4A3DThx8; Tue, 02 Mar 2010 13:27:41 +0000
Received: from koitsu.dyndns.org ([98.248.46.159])
	by omta16.emeryville.ca.mail.comcast.net with comcast
	id oDWq1d0053S48mS8cDWqQi; Tue, 02 Mar 2010 13:30:50 +0000
Received: by icarus.home.lan (Postfix, from userid 1000)
	id C817F1E3035; Tue,  2 Mar 2010 05:27:39 -0800 (PST)
Message-Id: <20100302132739.C817F1E3035@icarus.home.lan>
Date: Tue,  2 Mar 2010 05:27:39 -0800 (PST)
From: Jeremy Chadwick <freebsd@jdc.parodius.com>
To: FreeBSD-gnats-submit@FreeBSD.org
X-Send-Pr-Version: 3.113
Cc: 
Subject: ports/144418: p5-Mail-SpamAssassin doesn't handle WITHOUT_IPV6
	systems
X-BeenThere: freebsd-ports-bugs@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: Jeremy Chadwick <freebsd@jdc.parodius.com>
List-Id: Ports bug reports <freebsd-ports-bugs.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs>, 
	<mailto:freebsd-ports-bugs-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-ports-bugs>
List-Post: <mailto:freebsd-ports-bugs@freebsd.org>
List-Help: <mailto:freebsd-ports-bugs-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs>, 
	<mailto:freebsd-ports-bugs-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 02 Mar 2010 13:30:04 -0000


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