FS#31579 - [munin-node] please add community/perl-dbi to optdepends

Attached to Project: Arch Linux
Opened by Martín Cigorraga (msx) - Monday, 17 September 2012, 10:30 GMT
Last edited by Dan McGee (toofishes) - Friday, 06 December 2013, 15:44 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Dan McGee (toofishes)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Plugins mysql_ and ntp_states included in the munin-node package requires extra dependencies.
mysql_ plugin needs community/perl-dbi and Cache::Cache module - installable via CPAN.
ntp_states plugin needs Net::DNS::Resolver module - installable via CPAN too.

community/perl-dbi should be added as optdepends dependency (because not everybody might want to monitor MySQL databases).
Also the user should be alerted to install Cache::Cache / Net::DNS::Resolver in the event he/she needs to use the above mentioned plugins.

Additional info:
* package version(s)
munin 2.0.6-1
munin-node 2.0.6-1

* config and/or log files etc.
Whenever I run:
# munin-node-configure --shell | sh
I got this:
# The following plugins caused errors:
# mysql_:
# Non-zero exit during autoconf (2)
# ntp_states:
# Non-zero exit during autoconf (2)
# proc:
# In family 'auto' but doesn't have 'autoconf' capability

* Looking closer *
For mysql_:
/home/msx # /usr/lib/munin/plugins/mysql_ suggest
Can't locate DBI.pm in @INC (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl .) at /usr/lib/munin/plugins/mysql_ line 134.
BEGIN failed--compilation aborted at /usr/lib/munin/plugins/mysql_ line 134.
/home/msx # pacman -S perl-dbi
...
(1/1) installing perl-dbi [---------------------------------] 100%
/home/msx # /usr/lib/munin/plugins/mysql_ suggest
Missing dependency Cache::Cache at /usr/lib/munin/plugins/mysql_ line 729.

For ntp_states:
/usr/lib/munin/plugins # /usr/lib/munin/plugins/ntp_states suggest
Can't locate object method "new" via package "Net::DNS::Resolver" (perhaps you forgot to load "Net::DNS::Resolver"?) at /usr/lib/munin/plugins/ntp_states line 70.

Steps to reproduce:
1. pacman -S munin munin-node
2. follow wiki instructions: https://wiki.archlinux.org/index.php/Munin
3. munin-node-configure --shell | sh will produce the above mentioned output.

Link to the mailing list archive: http://mailman.archlinux.org/pipermail/arch-general/2012-September/031014.html

Last, I suggest to keep this bug with severity "medium" because while the bug I report here isn't a show-stopper for everyone who don't need these plugins this issue indeed *is* a show-stopper for those who need them and, like me, must go hunt the answer.

Live long and prosper.
This task depends upon

Closed by  Dan McGee (toofishes)
Friday, 06 December 2013, 15:44 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed back in commit 185268, 2.0.13.

Loading...