From paul@lugnut.aps.org  Fri Aug 22 07:38:46 2003
Return-Path: <paul@lugnut.aps.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2326416A4BF
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 22 Aug 2003 07:38:46 -0700 (PDT)
Received: from lugnut.aps.org (lugnut.aps.org [149.28.3.182])
	by mx1.FreeBSD.org (Postfix) with ESMTP id B88B343FE0
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 22 Aug 2003 07:38:44 -0700 (PDT)
	(envelope-from paul@lugnut.aps.org)
Received: from lugnut.aps.org (localhost [127.0.0.1])
	by lugnut.aps.org (8.12.9/8.12.9) with ESMTP id h7MEcdHx074774
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 22 Aug 2003 10:38:39 -0400 (EDT)
	(envelope-from paul@lugnut.aps.org)
Received: (from paul@localhost)
	by lugnut.aps.org (8.12.9/8.12.9/Submit) id h7MEcdJT074773;
	Fri, 22 Aug 2003 10:38:39 -0400 (EDT)
	(envelope-from paul)
Message-Id: <200308221438.h7MEcdJT074773@lugnut.aps.org>
Date: Fri, 22 Aug 2003 10:38:39 -0400 (EDT)
From: Paul Dlug <paul@aps.org>
Reply-To: Paul Dlug <paul@aps.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: amavisd-new install error with perl > 5.6.0
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         55867
>Category:       ports
>Synopsis:       amavisd-new install error with perl > 5.6.0
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 22 07:40:21 PDT 2003
>Closed-Date:    Sun Sep 28 11:47:41 PDT 2003
>Last-Modified:  Sun Sep 28 11:47:41 PDT 2003
>Originator:     Paul Dlug
>Release:        FreeBSD 5.1-RELEASE-p2 i386
>Organization:
>Environment:
System: FreeBSD lugnut.aps.org 5.1-RELEASE-p2 FreeBSD 5.1-RELEASE-p2 #2: Mon Aug 11 14:37:47 EDT 2003 root@lugnut.aps.org:/usr/obj/usr/src/sys/LUGNUT i386


	
>Description:
	security/amavisd-new requires the perl module p5-IO. This module is included in perl 5.6.1 and higher. The location checked by the makefile for this module is: /usr/local/lib/perl5/site_perl/5.8.0/mach/IO/Socket/UNIX.pm Which is correct when installed by devel/p5-IO but not when using the IO module in now included with perl. amavisd attempts to build p5-IO as a dependency which fails because it is not needed:

===>  Installing for amavisd-new-20030616.p2
===>   amavisd-new-20030616.p2 depends on file: /usr/local/lib/perl5/site_perl/5.8.0/mach/IO/Socket/UNIX.pm - not found
===>    Verifying install for /usr/local/lib/perl5/site_perl/5.8.0/mach/IO/Socket/UNIX.pm in /usr/ports/devel/p5-IO
===>  p5-IO-1.20 This module is already included in perl 5.6.x and later..
*** Error code 1

Stop in /usr/ports/devel/p5-IO.
*** Error code 1


>How-To-Repeat:
	Ensuring devel/p5-IO is not installed, install devel/perl5 or devel/perl5.8 and run /usr/local/bin/use.perl port to switch the native perl version to 5.6.1 or 5.8.0. Then attempt to install security/amavisd-new
>Fix:

	Patch included below to fix the makefile to only include devel/p5-IO if running a perl version lower than 5.6.x

--- Makefile.diff begins here ---
--- Makefile	Fri Aug 22 10:33:07 2003
+++ Makefile.orig	Fri Aug 22 10:32:36 2003
@@ -15,7 +15,8 @@
 MAINTAINER=	blaz@si.FreeBSD.org
 COMMENT=	Performance-enhanced daemonized version of amavis-perl
 
-RUN_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes \
+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 \
 		${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 \
@@ -34,13 +35,6 @@
 		${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
@@ -110,4 +104,4 @@
 	@${CAT} ${PKGMESSAGE}
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
--- Makefile.diff ends here ---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: leeym 
State-Changed-When: Sun Sep 28 11:47:23 PDT 2003 
State-Changed-Why:  
Superceded by ports/56013 

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