Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 322795 - net-misc/ntp-4.2.6_p1 automagically depends on net-analyzer/net-snmp
Summary: net-misc/ntp-4.2.6_p1 automagically depends on net-analyzer/net-snmp
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-04 21:12 UTC by Eduard Warkentin
Modified: 2010-06-07 09:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Adding a fixed ebuild for net-misc/ntp-4.2.6_p1 introducing the "snmpd" useflag (ntp-4.2.6_p1.ebuild,3.70 KB, text/plain)
2010-06-04 21:13 UTC, Eduard Warkentin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eduard Warkentin 2010-06-04 21:12:05 UTC
If installed, net-analyzer/net-snmp will be used to build the /usr/bin/ntpsnmpd binary. If not installed, the component will not be built -- no messages, nothing so far.

Reproducible: Always

Steps to Reproduce:
1. emerge net-misc/ntp
2. qlist net-misc/ntp | grep ntpsnmpd
3. emerge -C net-analyzer/net-snmp
4. emerge net-misc/ntp
5. qlist net-misc/ntp | grep ntpsnmpd
6. compare the results
Actual Results:  
If net-analyzer/net-snmp is installed, /usr/bin/ntpsnmpd is being built.
If net-analyzer/net-snmp is NOT installed, /usr/bin/ntpsnmpd is NOT being built.

Expected Results:  
Exüecting a use flag to predict wether /usr/bin/ntpsnmpd will be built or not.
Comment 1 Eduard Warkentin 2010-06-04 21:13:40 UTC
Created attachment 234151 [details]
Adding a fixed ebuild for net-misc/ntp-4.2.6_p1 introducing the "snmpd" useflag
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2010-06-07 00:05:32 UTC
Comment on attachment 234151 [details]
Adding a fixed ebuild for net-misc/ntp-4.2.6_p1 introducing the "snmpd" useflag

--- ntp-4.2.6_p1.ebuild 2010-04-17 00:42:22.000000000 +0200
+++ ntp-4.2.6_p1-r1.ebuild      2010-06-07 02:04:10.000000000 +0200
@@ -15,7 +15,8 @@
 LICENSE="as-is"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
-IUSE="caps debug ipv6 openntpd parse-clocks selinux ssl vim-syntax zeroconf"
+IUSE="caps debug ipv6 openntpd parse-clocks selinux ssl vim-syntax zeroconf
+snmpd"
 
 DEPEND=">=sys-libs/ncurses-5.2
        >=sys-libs/readline-4.1
@@ -23,7 +24,8 @@
        zeroconf? ( || ( net-dns/avahi[mdnsresponder-compat] net-misc/mDNSResponder ) )
        !openntpd? ( !net-misc/openntpd )
        ssl? ( dev-libs/openssl )
-       selinux? ( sec-policy/selinux-ntp )"
+       selinux? ( sec-policy/selinux-ntp )
+       snmpd? ( net-analyzer/net-snmp )"
 RDEPEND="${DEPEND}
        vim-syntax? ( app-vim/ntp-syntax )"
 PDEPEND="openntpd? ( net-misc/openntpd )"
@@ -55,7 +57,8 @@
                $(use_enable parse-clocks) \
                $(use_enable ipv6) \
                $(use_enable debug debugging) \
-               $(use_with ssl crypto)
+               $(use_with ssl crypto) \
+               $(use_with snmpd netsnmpd)
 }
 
 src_install() {
Comment 3 SpanKY gentoo-dev 2010-06-07 09:47:43 UTC
the USE flag is "snmp", not "snmpd".  so corrected that and added to the tree as 4.2.6_p1-r1, thanks.