Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Mar 2004 23:21:36 +0900 (JST)
From:      Toshiya SAITOH <toshiya@saitoh.nu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        toshiya@saitoh.nu
Subject:   ports/64536: incorrect perl module dependency in net-mgnt/mrtg
Message-ID:  <20040321142136.6817C231@ns.saitoh.nu>
Resent-Message-ID: <200403211430.i2LEUDi4014394@freefall.freebsd.org>

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

>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@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:



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