Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Oct 2004 12:07:45 +0800 (CST)
From:      tjs <tjs@cdpa.nsysu.edu.tw>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        hubert@frbsd.org
Subject:    ports/72292: ports/security/smtpscan install error with perl > 5.6.x
Message-ID:  <200410040407.i9447jOD063229@Pluto.CDPA.nsysu.edu.tw>
Resent-Message-ID: <200410040410.i944APcV070060@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         72292
>Category:       ports
>Synopsis:       ports/security/smtpscan install error with perl > 5.6.x
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 04 04:10:25 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Jin-Shan Tseng
>Release:        FreeBSD 5.3-BETA7 i386
>Organization:
NSYSU-CDPA
>Environment:
System: FreeBSD Pluto.CDPA.nsysu.edu.tw 5.3-BETA7 FreeBSD 5.3-BETA7 #0: Sun Oct 3 15:03:45 CST 2004 tjs@Pluto.CDPA.nsysu.edu.tw:/usr/obj/usr/src/sys/Pluto i386


>Description:
    ports/security/smtpscan requires the perl module p5-IO, but Tthis module is included in perl 5.6.x and higher.

===>  Installing for smtpscan-0.5
===>   smtpscan-0.5 depends on file: /usr/local/lib/perl5/site_perl/5.6.1/Getopt/Long.pm - found
===>   smtpscan-0.5 depends on file: /usr/local/lib/perl5/site_perl/5.6.1/mach/IO.pm - not found
===>    Verifying install for /usr/local/lib/perl5/site_perl/5.6.1/mach/IO.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

Stop in /usr/ports/security/smtpscan.

>How-To-Repeat:
	Ensuring devel/p5-IO is not installed, and install lang/perl5.
    Then attempt to install security/smtpscan.
>Fix:

--- Makefile.orig       Mon Oct  4 11:57:58 2004
+++ Makefile    Mon Oct  4 11:59:27 2004
@@ -14,7 +14,6 @@
 COMMENT=       A remote SMTP server version detector

 RUN_DEPENDS=   ${SITE_PERL}/Getopt/Long.pm:${PORTSDIR}/devel/p5-Getopt-Long \
-               ${SITE_PERL}/${PERL_ARCH}/IO.pm:${PORTSDIR}/devel/p5-IO \
                                ${SITE_PERL}/${PERL_ARCH}/Net/DNS.pm:${PORTSDIR}/dns/p5-Net-DNS

 USE_PERL5=     yes
@@ -24,4 +23,8 @@
 pre-build:
        ${CP} ${FILESDIR}/Makefile ${WRKSRC}/Makefile

-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.if ${PERL_LEVEL} < 500600
+    RUN_DEPENDS+=   ${SITE_PERL}/${PERL_ARCH}/IO.pm:${PORTSDIR}/devel/p5-IO
+.endif
+.include <bsd.port.post.mk>

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200410040407.i9447jOD063229>