From tjs@Pluto.CDPA.nsysu.edu.tw  Mon Oct  4 04:07:54 2004
Return-Path: <tjs@Pluto.CDPA.nsysu.edu.tw>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6832916A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  4 Oct 2004 04:07:54 +0000 (GMT)
Received: from Pluto.CDPA.nsysu.edu.tw (Pluto.CDPA.nsysu.edu.tw [140.117.205.30])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D2AFE43D3F
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  4 Oct 2004 04:07:53 +0000 (GMT)
	(envelope-from tjs@Pluto.CDPA.nsysu.edu.tw)
Received: from Pluto.CDPA.nsysu.edu.tw (localhost [127.0.0.1])
	by Pluto.CDPA.nsysu.edu.tw (8.13.1/8.13.1) with ESMTP id i9447kJN063230;
	Mon, 4 Oct 2004 12:07:46 +0800 (CST)
	(envelope-from tjs@Pluto.CDPA.nsysu.edu.tw)
Received: (from root@localhost)
	by Pluto.CDPA.nsysu.edu.tw (8.13.1/8.13.1/Submit) id i9447jOD063229;
	Mon, 4 Oct 2004 12:07:45 +0800 (CST)
	(envelope-from tjs)
Message-Id: <200410040407.i9447jOD063229@Pluto.CDPA.nsysu.edu.tw>
Date: Mon, 4 Oct 2004 12:07:45 +0800 (CST)
From: tjs <tjs@cdpa.nsysu.edu.tw>
Reply-To: tjs <tjs@cdpa.nsysu.edu.tw>
To: FreeBSD-gnats-submit@freebsd.org
Cc: hubert@frbsd.org
Subject: ports/security/smtpscan install error with perl > 5.6.x
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>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:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 04 04:10:25 GMT 2004
>Closed-Date:    Wed Dec 15 08:45:57 GMT 2004
>Last-Modified:  Wed Dec 15 08:45:57 GMT 2004
>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:
State-Changed-From-To: open->feedback 
State-Changed-By: vs 
State-Changed-When: Mon Nov 15 09:50:54 GMT 2004 
State-Changed-Why:  
Forwarded PR to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=72292 

From: "Volker Stolz" <vs@freebsd.org>
To: freebsd-gnats-submit@freebsd.org, tjs@cdpa.nsysu.edu.tw,
	hubert@frbsd.org
Cc:  
Subject: Re: ports/72292: ports/security/smtpscan install error with perl > 5.6.x
Date: Mon, 15 Nov 2004 10:50:40 +0100

 Dear maintainer, please look into this issue.
 
 Volker

From: Hubert Tournier <hubert@frbsd.org>
To: FreeBSD-gnats-submit@freebsd.org,
	Jin-Shan Tseng <tjs@cdpa.nsysu.edu.tw>
Cc:  
Subject: Re: ports/72292: ports/security/smtpscan install error with perl
 > 5.6.x
Date: Thu, 09 Dec 2004 00:20:05 +0100

  >Submitter-Id:	current-users
  >Originator:	Hubert Tournier <hubert@frbsd.org>
  >Organization:	Chuck's corner <http://www.frbsd.org/fr/>
  >Confidential:	no
  >Synopsis:	ports/72292: ports/security/smtpscan install error with perl > 5.6.x
  >Severity:	non-critical
  >Priority:	low
  >Category:	ports
  >Class:		maintainer-update
  >Release:	FreeBSD 5.3-RELEASE-p2 i386
  >Environment:
 System: FreeBSD castor.online.fr 5.3-RELEASE-p2 FreeBSD 5.3-RELEASE-p2 #0: Sat Dec 4 18:13:35 CET 2004 root@castor.online.fr:/usr/obj/usr/src/sys/CASTOR i386
 
  >Description:
 
 I'm OK with the fix proposed by Jin-Shan Tseng (along with portrevision++).
 
 Thank you! And apologies for the delay :-(
 
  >Fix:
 
 --- diff begins here ---
 --- Makefile.bak	Wed Dec  8 23:46:30 2004
 +++ Makefile	Wed Dec  8 23:42:09 2004
 @@ -7,6 +7,7 @@
 
   PORTNAME=	smtpscan
   PORTVERSION=	0.5
 +PORTREVISION=	1
   CATEGORIES=	security mail perl5
   MASTER_SITES=	http://www.greyhats.org/outils/smtpscan/
 
 @@ -14,7 +15,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 +24,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>
 --- diff ends here ---
 
 
State-Changed-From-To: feedback->closed 
State-Changed-By: vs 
State-Changed-When: Wed Dec 15 08:45:46 GMT 2004 
State-Changed-Why:  
Committed, thanks! 

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