Code

rules: Use dpkg-shlibdeps, rather than dh_shlibdeps to get collectd's deps.
authorSebastian Harl <sh@tokkee.org>
Tue, 22 Dec 2009 23:44:58 +0000 (00:44 +0100)
committerSebastian Harl <sh@tokkee.org>
Tue, 22 Dec 2009 23:44:58 +0000 (00:44 +0100)
dh_shlibdeps does not work, because the "collectd" package does not contain
any binaries / shared objects and, thus, dh_shlibdeps would not call
dpkg-shlibdeps at all.

debian/control
debian/rules

index 0db3ef0ddf2cc2129e6a7989608dbe9a5b534ce4..a801e706d4980e63a0ff16dd0c17e617644b1488 100644 (file)
@@ -118,7 +118,7 @@ Description: statistics collection and monitoring daemon (core system)
 
 Package: collectd
 Architecture: any
-Depends: collectd-core, ${misc:Depends}
+Depends: collectd-core, ${shlibs:Depends}, ${misc:Depends}
 Recommends: ${shlibs:Recommends}
 Description: statistics collection and monitoring daemon
  collectd is a small daemon which collects system information periodically and
index bf00f6e28192b263a62b9b91e1f94c1deae858fe..f5b027bf5318819faba8a84374066a729fdc284d 100755 (executable)
@@ -202,8 +202,8 @@ binary-arch: build install-arch
        dh_makeshlibs -a
        dh_installdeb -a
        dh_shlibdeps -a -Ncollectd-core -Ncollectd
-       dh_shlibdeps -pcollectd \
-               -- -edebian/collectd-core/usr/lib/collectd/rrdtool.so
+       dpkg-shlibdeps -Tdebian/collectd.substvars \
+               -dDepends debian/collectd-core/usr/lib/collectd/rrdtool.so
        dpkg-shlibdeps -Tdebian/collectd-core.substvars \
                -dDepends debian/collectd-core/usr/sbin/* \
                -dSuggests debian/collectd-core/usr/lib/collectd/*.so