Code

Depend on the same tcl version as the tcl package does.
authorBernd Zeimetz <bzed@debian.org>
Sun, 10 Feb 2008 22:30:00 +0000 (23:30 +0100)
committerBernd Zeimetz <bzed@debian.org>
Sun, 10 Feb 2008 22:30:00 +0000 (23:30 +0100)
debian/control
debian/rules

index aed5030f7fb4eff2162b59bc8f95ff22cbab48a7..48fbd71f6e65807bb9fbf57c8d3615b06c966b99 100644 (file)
@@ -97,7 +97,7 @@ Description: Time-series data storage and display system (Perl interface, piped)
 Package: rrdtool-tcl
 Architecture: any
 Section: utils
-Depends: ${shlibs:Depends}, ${misc:Depends}, tcl (>= 8.4) | tclsh
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${tcl:Depends}
 Description: Time-series data storage and display system (Tcl interface)
  The Round Robin Database Tool (RRDtool) is a system to store and display
  time-series data (e.g. network bandwidth, machine-room temperature,
index 7117f55039f61accefa418ff7b0ceeed5dd2f855..350f54618e7267f8180a66b8fb1e1d129d475f07 100755 (executable)
@@ -28,6 +28,10 @@ PY_VERS := $(shell set -e; \
                        if [ -x /usr/bin/python$$py ]; then echo $$py; fi;    \
                    done)
 
+#tcl version we're building for
+TCL_VERS := $(shell dpkg -s tcl | grep ^Depends | sed 's,.*tcl\([0-9.]*\).*,\1,')
+
+
 #let's help configure to figure out our host/build system
 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
@@ -188,7 +192,7 @@ binary-arch: build-arch install-arch
        dh_installchangelogs -a CHANGES
        dh_installdocs -A CONTRIBUTORS
        dh_installdocs -a
-#      dh_installexamples -a
+       echo 'tcl:Depends=tcl$(TCL_VERS) | tclsh' >> debian/rrdtool-tcl.substvars
        dh_pysupport -ppython-rrdtool
        dh_perl -a
        dh_installman -a