Date: Fri, 22 Aug 2003 10:38:39 -0400 (EDT) From: Paul Dlug <paul@aps.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/55867: amavisd-new install error with perl > 5.6.0 Message-ID: <200308221438.h7MEcdJT074773@lugnut.aps.org> Resent-Message-ID: <200308221440.h7MEeLFb050689@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Aug 22 07:40:21 PDT 2003 >Closed-Date: >Last-Modified: >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: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308221438.h7MEcdJT074773>