From 2270ab20ccb1ebb5c8da912c73e988cea0c65be3 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sun, 15 Jun 2008 14:26:40 +0200 Subject: [PATCH] debian/rules: Use tcl-dev instead of tcl to determine the TCL version. This way, we don't depend on tcl-dev having a dependency on tcl for this to work. Also, the regex used to determine the version from the "dpkg -s" output has been hardened by checking for word boundaries. --- debian/rules | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 9e196a7..d642464 100755 --- a/debian/rules +++ b/debian/rules @@ -19,7 +19,8 @@ PY_VERS := $(shell set -e; \ done) #tcl version we're building for -TCL_VERS := $(shell dpkg -s tcl | grep ^Depends | sed 's,.*tcl\([0-9.]*\).*,\1,') +TCL_VERS := $(shell dpkg -s tcl-dev | grep '^Depends' \ + | sed 's,.*\.*,\1,') #let's help configure to figure out our host/build system -- 2.30.2