ports/55817: amavisd-new build will break when in-use Perl is >= 5.6

Julian C.Dunn julian at dreaming.org
Wed Aug 20 20:20:26 UTC 2003


>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:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 20 13:20:17 PDT 2003
>Closed-Date:
>Last-Modified:
>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 at 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 at 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:
>Unformatted:



More information about the freebsd-ports-bugs mailing list