ports/64536: incorrect perl module dependency in net-mgnt/mrtg

Toshiya SAITOH toshiya at saitoh.nu
Sun Mar 21 14:30:13 UTC 2004


>Number:         64536
>Category:       ports
>Synopsis:       incorrect perl module dependency in net-mgnt/mrtg
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 21 06:30:12 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Toshiya SAITOH
>Release:        FreeBSD 4.9-RELEASE-p4 i386
>Organization:
>Environment:
System: FreeBSD dmz.saitoh.nu 4.9-RELEASE-p4 FreeBSD 4.9-RELEASE-p4 #11: Thu Mar 18 20:59:27 JST 2004 root at dmz.saitoh.nu:/usr/obj/usr/src/sys/AKAFUKU i386


>Description:
	If we use perl-5.6.0 and later, this ports overwrite perl core modules.
	So, please correct to check the dependency on perl version and perl core module strictly.
	Thanks! 

>How-To-Repeat:
	patch for Makefile
>Fix:


--- Makefile.orig	Sun Mar 21 22:58:47 2004
+++ Makefile	Sun Mar 21 22:58:47 2004
@@ -21,7 +21,6 @@
 COMMENT=	The multi-router traffic grapher
 
 RUN_DEPENDS=	${SITE_PERL}/SNMP_Session.pm:${PORTSDIR}/net-mgmt/p5-SNMP_Session \
-		${SITE_PERL}/Pod/Usage.pm:${PORTSDIR}/textproc/p5-PodParser \
 		${SITE_PERL}/IO/Socket/INET6.pm:${PORTSDIR}/net/p5-IO-INET6
 
 .if defined(WITH_GD1)
@@ -83,4 +82,10 @@
 	@${ECHO} "############################################################################"
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500600
+RUN_DEPENDS+=	${SITE_PERL}/Pod/Usage.pm:${PORTSDIR}/textproc/p5-PodParser
+.endif
+
+.include <bsd.port.post.mk>

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



More information about the freebsd-ports-bugs mailing list