Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 481926

Summary: net-analyzer/nagios-plugins should depend on snmp? ( net-analyzer/net-snmp )
Product: Gentoo Linux Reporter: fleg <oleg.fiksel>
Component: Current packagesAssignee: Sysadmin Bugs <sysadmin>
Status: RESOLVED FIXED    
Severity: normal CC: alexanderyt, bug
Priority: Normal Keywords: EBUILD, PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Modified Ebuild

Description fleg 2013-08-21 11:41:24 UTC
Created attachment 356582 [details]
Modified Ebuild

When snmp use flag is on and emerging nagios-plugins the plugin check_snmp and check_hpjd is not build because the configure searches for snmp-get and snmp-walk commands which are available in net-snmp (-minimal).
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-08-21 14:00:33 UTC
Comment on attachment 356582 [details]
Modified Ebuild

--- nagios-plugins-1.4.16-r3.ebuild     2012-11-27 18:15:59.893527016 +0100
+++ -   2013-08-21 15:59:16.740576066 +0200
@@ -33,7 +33,8 @@
 RDEPEND="${DEPEND}
        >=dev-lang/perl-5.6.1-r7
        samba? ( >=net-fs/samba-2.2.5-r1 )
-       snmp? ( >=dev-perl/Net-SNMP-4.0.1-r1 )
+       snmp? ( >=dev-perl/Net-SNMP-4.0.1-r1 
+                       net-analyzer/net-snmp[-minimal] )
        mysql? ( dev-perl/DBI
                         dev-perl/DBD-mysql )
        nagios-dns? ( >=net-dns/bind-tools-9.2.2_rc1 )
Comment 2 Marcin Mirosław 2014-04-30 20:27:32 UTC
I reckon net-analyzer/net-snmp[-minimal] doesn't need to be in RDEPEND, DEPEND should be enough.
Comment 3 Michael Orlitzky gentoo-dev 2014-11-22 22:09:29 UTC
Can you please check if this is true with the nagios-plugins-2.0.3 that I've just committed? I'm happy to fix it if so.
Comment 4 Michael Orlitzky gentoo-dev 2014-11-23 20:32:40 UTC
Ok, I have a fix for this. A *lot* of the dependencies are automagic and needed to be fixed.
Comment 5 Michael Orlitzky gentoo-dev 2014-11-26 02:05:33 UTC
Should take care of it:

*nagios-plugins-2.0.3-r1 (26 Nov 2014)

  26 Nov 2014; Michael Orlitzky <mjo@gentoo.org>
  +nagios-plugins-2.0.3-r1.ebuild:
  Revbump to fix bug #468296 and bug #481926.