Package: collectd
Version: 4.6.3-1
Severity: minor

        May I suggest that the rrdtool plugin is either split off to a
        separate package, or the librrd4 dependency be downgraded to
        Recommends: and the corresponding default collectd.conf line be
        commented out?  The justification is as follows.

        One of the features introduced in the Debian Lenny version of
        the package is the single package for collectd and its various
        plug-ins.  As a side-effect, the package now Depends: on librrd4
        and, thus, on all of its dependencies.

        Namely, on a freshly installed Debian Squeeze system:

# apt-get install -q collectd --no-install-recommends 
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  defoma file fontconfig fontconfig-config libcairo2 libdatrie1
  libdirectfb-1.2-0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0
  libmagic1 libpango1.0-0 libpango1.0-common libpcre3 libpixman-1-0 libpng12-0
  librrd4 libsysfs2 libthai-data libthai0 libts-0.0-0 libxcb-render-util0
  libxcb-render0 libxft2 libxrender1 tsconf ttf-dejavu ttf-dejavu-core
  ttf-dejavu-extra ucf
Suggested packages:
  ...
Recommended packages:
  ...
The following NEW packages will be installed:
  collectd defoma file fontconfig fontconfig-config libcairo2 libdatrie1
  libdirectfb-1.2-0 libexpat1 libfontconfig1 libfreetype6 libglib2.0-0
  libmagic1 libpango1.0-0 libpango1.0-common libpcre3 libpixman-1-0 libpng12-0
  librrd4 libsysfs2 libthai-data libthai0 libts-0.0-0 libxcb-render-util0
  libxcb-render0 libxft2 libxrender1 tsconf ttf-dejavu ttf-dejavu-core
  ttf-dejavu-extra ucf
0 upgraded, 32 newly installed, 0 to remove and 23 not upgraded.
Need to get 11.2MB of archives.
After this operation, 26.7MB of additional disk space will be used.
Do you want to continue [Y/n]? n
Abort.
# 

        Now it makes me wonder, why I might need, say, libdirectfb-1.2-0
        on a monitor-less system which sole purpose is to route packets,
        while also sending some data (temperature, load) to a remote
        collectd?  I probably want no ttf-dejavu-core on it, either.

        Well, why not to try a trivial hack, I though to myself?

# printf 'Package: librrd4\nStatus: install ok installed\nVersion: %s\n\n' \
      1.3.0-0.1+dummy \
      >> /var/lib/dpkg/status 
# 

        Now, these 31 dependencies are gone:

# apt-get install -q collectd --no-install-recommends 
Reading package lists...
Building dependency tree...
Reading state information...
Suggested packages:
  collectd-dev librrds-perl liburi-perl libhtml-parser-perl
  libregexp-common-perl libconfig-general-perl httpd-cgi hddtemp mbmon
Recommended packages:
  rrdtool lm-sensors libatk1.0-0 libcairo2 libcurl3-gnutls libdbi0 libdbus-1-3
  libdbus-glib-1-2 libesmtp5 libfontconfig1 libfreetype6 libglib2.0-0
  libgtk2.0-0 libhal1 libmysqlclient15off libnotify1 libnotify1-gtk2.10
  libopenipmi0 liboping0 libpango1.0-0 libpcap0.8 libperl5.10 libpq5
  libsensors3 libsnmp15 libupsclient1 libvirt0
The following NEW packages will be installed:
  collectd
0 upgraded, 1 newly installed, 0 to remove and 24 not upgraded.
Need to get 0B/580kB of archives.
After this operation, 1962kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package collectd.
(Reading database ... 65%
dpkg: warning: files list file for package `librrd4' missing, assuming package 
has no files currently installed.
(Reading database ... 10121 files and directories currently installed.)
Unpacking collectd (from .../collectd_4.6.3-1_amd64.deb) ...
Processing triggers for man-db ...
Setting up collectd (4.6.3-1) ...
Starting statistics collection and monitoring daemon: collectdlt_dlopen 
(/usr/lib/collectd/rrdtool.so) failed: librrd_th.so.4: cannot open shared 
object file: No such file or directory
Unable to load plugin rrdtool.
.
# 

        After disabling the rrdtool plugin:

$ diff -u /etc/collectd/collectd.conf{.~2009-08-30~,} 
--- /etc/collectd/collectd.conf.~2009-08-30~    2009-06-03 06:06:07 +0700
+++ /etc/collectd/collectd.conf 2009-08-30 21:23:34 +0700
@@ -71,7 +71,7 @@
 #LoadPlugin postgresql
 #LoadPlugin powerdns
 LoadPlugin processes
-LoadPlugin rrdtool
+#LoadPlugin rrdtool
 #LoadPlugin sensors
 #LoadPlugin serial
 #LoadPlugin snmp
$ 

        collectd could finally be started:

# invoke-rc.d collectd start 
Starting statistics collection and monitoring daemon: collectd.
# 

-- 
The unavoidable price of reliability is simplicity.
                        -- C. A. R. Hoare



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to