Bug 154367 - Patch net-mgmt/p5-SNMP_Session to avoid redefinition of SNMP_Session::*_INET6
Summary: Patch net-mgmt/p5-SNMP_Session to avoid redefinition of SNMP_Session::*_INET6
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: 2011-01-29 03:40 UTC by Doug Barton
Modified: 2011-01-31 15:00 UTC (History)
0 users

See Also:


Attachments
file.diff (878 bytes, patch)
2011-01-29 03:40 UTC, Doug Barton
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Doug Barton freebsd_committer freebsd_triage 2011-01-29 03:40:09 UTC
	See https://bugs.gentoo.org/show_bug.cgi?id=321701 for a discussion
	of the bug. Using up to date ports and IPv6 enabled in both
	net-mgmt/mrtg and net-mgmt/p5-SNMP_Session with perl 5.10.1 I get:

/usr/local/bin/mrtg --logging /data/logs/mrtg.log --lock-file /var/run/mrtg/mrtg.lock /usr/local/etc/mrtg/mrtg.cfg
Constant subroutine SNMP_Session::AF_INET6 redefined at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67.
 at /usr/local/lib/perl5/site_perl/5.10.1/SNMP_Session.pm line 149
 Prototype mismatch: sub SNMP_Session::AF_INET6 () vs none at /usr/local/lib/perl5/5.10.1/Exporter.pm line 67.
  at /usr/local/lib/perl5/site_perl/5.10.1/SNMP_Session.pm line 149
...
etc.

Fix: Apply the following patch:
How-To-Repeat: 	See above
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-01-29 03:40:14 UTC
Responsible Changed
From-To: freebsd-ports-bugs->demon

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2011-01-31 14:51:30 UTC
demon       2011-01-31 14:51:25 UTC

  FreeBSD ports repository

  Modified files:
    net-mgmt/p5-SNMP_Session Makefile distinfo 
  Added files:
    net-mgmt/p5-SNMP_Session/files patch-SNMP_Session.pm 
  Log:
  Update to 1.13;
  Add a patch http://oss.oetiker.ch/mrtg-trac/changeset/330 to
  eliminate a warning regarding IPv6;
  
  PR:             154367 154411
  Feature safe:   yes
  
  Revision  Changes    Path
  1.33      +6 -3      ports/net-mgmt/p5-SNMP_Session/Makefile
  1.23      +2 -3      ports/net-mgmt/p5-SNMP_Session/distinfo
  1.1       +21 -0     ports/net-mgmt/p5-SNMP_Session/files/patch-SNMP_Session.pm (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Dmitry Sivachenko freebsd_committer freebsd_triage 2011-01-31 14:52:17 UTC
State Changed
From-To: open->closed

Fixed by adding a patch instead of sed, thanks!