Bug 50470 - SNMP_Session.pm conflict in net/mrtg net/p5-SNMP_Session
Summary: SNMP_Session.pm conflict in net/mrtg net/p5-SNMP_Session
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: Dmitry Sivachenko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-31 09:20 UTC by Ruben van Staveren
Modified: 2003-06-07 20:02 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ruben van Staveren 2003-03-31 09:20:13 UTC
	
grep .pm /usr/ports/net/mrtg/pkg-plist \
	/usr/ports/net/p5-SNMP_Session/pkg-plist | sed -e 's#/usr/ports/net/##'

yields:

mrtg/pkg-plist:lib/perl5/site_perl/%%PERL_VER%%/BER.pm
mrtg/pkg-plist:lib/perl5/site_perl/%%PERL_VER%%/MRTG_lib.pm
mrtg/pkg-plist:lib/perl5/site_perl/%%PERL_VER%%/Pod/InputObjects.pm
mrtg/pkg-plist:lib/perl5/site_perl/%%PERL_VER%%/Pod/Parser.pm
mrtg/pkg-plist:lib/perl5/site_perl/%%PERL_VER%%/Pod/PlainText.pm
mrtg/pkg-plist:lib/perl5/site_perl/%%PERL_VER%%/Pod/Select.pm
mrtg/pkg-plist:lib/perl5/site_perl/%%PERL_VER%%/Pod/Usage.pm
mrtg/pkg-plist:lib/perl5/site_perl/%%PERL_VER%%/SNMP_Session.pm
mrtg/pkg-plist:lib/perl5/site_perl/%%PERL_VER%%/SNMP_util.pm
mrtg/pkg-plist:lib/perl5/site_perl/%%PERL_VER%%/locales_mrtg.pm
p5-SNMP_Session/pkg-plist:lib/perl5/site_perl/%%PERL_VER%%/BER.pm
p5-SNMP_Session/pkg-plist:lib/perl5/site_perl/%%PERL_VER%%/SNMP_Session.pm
p5-SNMP_Session/pkg-plist:lib/perl5/site_perl/%%PERL_VER%%/SNMP_util.pm

And

cd /tmp

tar -zxf /usr/ports/distfiles/mrtg-2.9.25.tar.gz
tar -zxf /usr/ports/distfiles/SNMP_Session-0.94.tar.gz

find . -name SNMP_Session.pm | xargs diff -u | egrep '\+\+\+|---|VERSION'

--- ./mrtg-2.9.25/lib/mrtg2/SNMP_Session.pm	Sat Oct 19 11:06:55 2002
+++ ./SNMP_Session-0.94/lib/SNMP_Session.pm	Thu Oct 24 22:26:55 2002
-$VERSION = '0.93';
+$VERSION = '0.94';


find . -name SNMP_util.pm | xargs diff -u | egrep '\+\+\+|---|VERSION'

--- ./mrtg-2.9.25/lib/mrtg2/SNMP_util.pm	Sat Oct 19 11:06:55 2002
+++ ./SNMP_Session-0.94/lib/SNMP_util.pm	Thu Oct 24 10:51:24 2002
-$VERSION = '0.93';
+$VERSION = '0.92';


find . -name BER.pm | xargs diff -u | egrep '\+\+\+|---|VERSION'

--- ./mrtg-2.9.25/lib/mrtg2/BER.pm	Sat Oct 19 11:06:55 2002
+++ ./SNMP_Session-0.94/lib/BER.pm	Sun Oct 27 18:29:36 2002
 use vars qw(@ISA @EXPORT $VERSION $pretty_print_timeticks $errmsg);
-$VERSION = '0.88';
+$VERSION = '0.94';

Fix: 

- upgrade p5-SNMP_Session to 0.95, it is the newest version

	grep ^\$VERSION /tmp/SNMP_Session-0.95/lib/*.pm

	SNMP_Session-0.95/lib/BER.pm:$VERSION = '0.95';
	SNMP_Session-0.95/lib/SNMP_Session.pm:$VERSION = '0.95';
	SNMP_Session-0.95/lib/SNMP_util.pm:$VERSION = '0.94';


- List it as a RUN_DEPENDS for net/mrtg
- Omit installation of all double perl modules listed in net/p5-SNMP_Session
  for net/mrtg (BER.pm SNMP_Session.pm SNMP_util.pm are best ${RM} from mrtg's
  ${WRKSRC} at do-install: time )
How-To-Repeat: 	

Install both packages
Comment 1 Lars Thegler 2003-04-16 19:19:51 UTC
Ruben van Staveren wrote:

> - List it as a RUN_DEPENDS for net/mrtg
> - Omit installation of all double perl modules listed in
>   net/p5-SNMP_Session for net/mrtg (BER.pm SNMP_Session.pm
>   SNMP_util.pm are best ${RM} from mrtg's ${WRKSRC} at do-install:
> time )

Quite true. net/smokeping (by the same author) also suffers from this, and
is here fixed by doing:

--cut--
do-build:
        @${RM} ${WRKSRC}/lib/BER.pm
        @${RM} ${WRKSRC}/lib/SNMP_*.pm
--cut--

/Lars
Comment 2 Dmitry Sivachenko freebsd_committer freebsd_triage 2003-06-03 07:07:26 UTC
Responsible Changed
From-To: freebsd-ports-bugs->demon-ports-bugs

Working on it.
Comment 3 Dmitry Sivachenko freebsd_committer freebsd_triage 2003-06-03 07:09:07 UTC
Responsible Changed
From-To: demon-ports-bugs->demon

Oops...
Comment 4 Dmitry Sivachenko freebsd_committer freebsd_triage 2003-06-07 19:59:49 UTC
State Changed
From-To: open->closed

Fixed. 
Thanks for your submission!