Bug 72292 - ports/security/smtpscan install error with perl > 5.6.x
Summary: ports/security/smtpscan install error with perl > 5.6.x
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-04 05:10 UTC by tjs
Modified: 2004-12-15 08:45 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tjs 2004-10-04 05:10:25 UTC
    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.

Fix: 

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>--JJ6asp5PkyMgRkSHVUTtoWpJs2z3allPMBeZA2NvX4Gra0FS
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- 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
How-To-Repeat: 	Ensuring devel/p5-IO is not installed, and install lang/perl5.
    Then attempt to install security/smtpscan.
Comment 1 Volker Stolz freebsd_committer freebsd_triage 2004-11-15 09:50:40 UTC
Dear maintainer, please look into this issue.

Volker
Comment 2 Volker Stolz freebsd_committer freebsd_triage 2004-11-15 09:50:54 UTC
State Changed
From-To: open->feedback

Forwarded PR to maintainer
Comment 3 Hubert Tournier 2004-12-08 23:20:05 UTC
 >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 ---
Comment 4 Volker Stolz freebsd_committer freebsd_triage 2004-12-15 08:45:46 UTC
State Changed
From-To: feedback->closed

Committed, thanks!