From julian@castle.dreaming.org  Wed Aug 20 13:13:29 2003
Return-Path: <julian@castle.dreaming.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 11A8F16A4BF
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 20 Aug 2003 13:13:29 -0700 (PDT)
Received: from castle.dreaming.org (monalisa.creativehouse.com [209.82.34.79])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6F0BD43F3F
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 20 Aug 2003 13:13:28 -0700 (PDT)
	(envelope-from julian@castle.dreaming.org)
Received: from localhost (localhost [127.0.0.1])
	by castle.dreaming.org (Postfix) with ESMTP id B25A89F6CC
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 20 Aug 2003 16:13:27 -0400 (EDT)
Received: by castle.dreaming.org (Postfix, from userid 1225)
	id 665829F6D1; Wed, 20 Aug 2003 16:13:26 -0400 (EDT)
Message-Id: <20030820201326.665829F6D1@castle.dreaming.org>
Date: Wed, 20 Aug 2003 16:13:26 -0400 (EDT)
From: Julian C.Dunn <julian@dreaming.org>
Reply-To: Julian C.Dunn <julian@dreaming.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: amavisd-new build will break when in-use Perl is >= 5.6
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         55817
>Category:       ports
>Synopsis:       amavisd-new build will break when in-use Perl is >= 5.6
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 20 13:20:17 PDT 2003
>Closed-Date:    Sun Sep 28 11:47:02 PDT 2003
>Last-Modified:  Sun Sep 28 11:47:02 PDT 2003
>Originator:     Julian C. Dunn
>Release:        FreeBSD 4.8-RC i386
>Organization:
The Dreaming Electronic Community Network, Inc.
>Environment:
System: FreeBSD castle.dreaming.org 4.8-RC FreeBSD 4.8-RC #3: Sat Mar 22 21:41:41 EST 2003 merlyn@castle.dreaming.org:/export/u7/obj/export/u7/src/sys/castle i386


>Description:
	If one of the Perl from the ports (5.6.1 or 5.8) is built and 
	installed on the system, and "use.perl ports" is run, to make the
	default Perl the ports Perl, then the build of amavisd-new will
	break because the ${SITE_PERL}/${PERL_ARCH}/IO/Socket/UNIX.pm
	is already satisfied within Perl itself.

>How-To-Repeat:
	When Perl >= 5.6.0 is installed and is the default Perl:

	cd /usr/ports/security/amavisd-new && make install

>Fix:

	This patch may not be perfect, but it appears to work. It needs
	testing for the case when the system Perl is the only Perl and
	the IO::Socket::UNIX dependency does need to be satisfied.

--- amavisd-new/Makefile.bak	Wed Aug 20 15:37:50 2003
+++ amavisd-new/Makefile	Wed Aug 20 16:02:27 2003
@@ -15,8 +15,7 @@
 MAINTAINER=	blaz@si.FreeBSD.org
 COMMENT=	Performance-enhanced daemonized version of amavis-perl
 
-RUN_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/IO/Socket/UNIX.pm:${PORTSDIR}/devel/p5-IO \
-		${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes \
+RUN_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes \
 		${SITE_PERL}/${PERL_ARCH}/Unix/Syslog.pm:${PORTSDIR}/sysutils/p5-Unix-Syslog \
 		${SITE_PERL}/MIME/Words.pm:${PORTSDIR}/mail/p5-MIME-Tools \
 		${SITE_PERL}/Convert/TNEF.pm:${PORTSDIR}/converters/p5-Convert-TNEF \
@@ -35,6 +34,12 @@
 		${LOCALBASE}/bin/unrar:${PORTSDIR}/archivers/unrar \
 		${LOCALBASE}/bin/zoo:${PORTSDIR}/archivers/zoo
 
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500600
+RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/IO/Socket/UNIX.pm:${PORTSDIR}/devel/p5-IO 
+.endif
+
 USE_PERL5_RUN=	yes
 
 PKGINSTALL=	${WRKDIR}/INSTALL
@@ -104,4 +109,4 @@
 	@${CAT} ${PKGMESSAGE}
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: leeym 
State-Changed-When: Sun Sep 28 11:46:45 PDT 2003 
State-Changed-Why:  
Supreceded by ports/56013 

http://www.freebsd.org/cgi/query-pr.cgi?pr=55817 
>Unformatted:
