From 6cfbcbf3b8104fd8181dd424f66f2c0de74babea Mon Sep 17 00:00:00 2001 From: Bernd Zeimetz Date: Sun, 10 Feb 2008 23:30:00 +0100 Subject: [PATCH] Depend on the same tcl version as the tcl package does. --- debian/control | 2 +- debian/rules | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/debian/control b/debian/control index aed5030..48fbd71 100644 --- a/debian/control +++ b/debian/control @@ -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, diff --git a/debian/rules b/debian/rules index 7117f55..350f546 100755 --- a/debian/rules +++ b/debian/rules @@ -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 -- 2.30.2