tags 639288 + patch pending
thanks

On 26/08/11 03:49, Daniel Schepler wrote:
> On Thursday, August 25, 2011 12:36:13 PM David Claughton wrote:
>> On 25/08/11 17:58, Daniel Schepler wrote:
> When I tried removing gv.3python from debian/libgv-python.install to get the 
> packages built, I ran into a more serious issue: configure couldn't find 
> tclConfig.sh and therefore the Tcl/Tk bindings weren't built.  From looking 
> through configure.ac, it looks like it only looks in /usr/lib64/tcl8.5, 
> /usr/lib64, and /usr/lib.  But since the /usr/lib64 symlink was recently 
> removed (it's incompatible with multiarch), and tcl-dev and tk-dev aren't in 
> the Build-Depends, it can't find tclConfig.sh in any of those locations.

Hi Daniel,

Yes, this is a bug in configure.ac, on 64-bit machines it looks in
/usr/lib64/tcl<version> and /usr/lib, but not in /usr/lib/tcl<version>.

Can you try the attached patch?  It should do the trick, but I can't
test it myself as I'm still running 32-bit here.

I suspect this will also fix the python issue - due to the bad placement
of a couple of key lines in patch 0_python_27_support, which end up
inside a "if WITH_TCL" block.

Cheers,

        David.
diff --git a/configure.ac b/configure.ac
index cacafe1..d1ffa00 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1476,8 +1476,12 @@ if test "x$use_tcl" = "x"; then
     if test -f ${TCLSH_EXEC_PREFIX}/lib${LIBPOSTFIX}/tclConfig.sh; then
       TCLCONFIG=${TCLSH_EXEC_PREFIX}/lib${LIBPOSTFIX}/tclConfig.sh
     else
-      if test -f ${TCLSH_EXEC_PREFIX}/lib/tclConfig.sh; then
-        TCLCONFIG=${TCLSH_EXEC_PREFIX}/lib/tclConfig.sh
+      if test -f 
${TCLSH_EXEC_PREFIX}/lib/tcl${TCL_VERSION_FOUND}/tclConfig.sh; then
+        TCLCONFIG=${TCLSH_EXEC_PREFIX}/lib/tcl${TCL_VERSION_FOUND}/tclConfig.sh
+      else
+        if test -f ${TCLSH_EXEC_PREFIX}/lib/tclConfig.sh; then
+          TCLCONFIG=${TCLSH_EXEC_PREFIX}/lib/tclConfig.sh
+        fi
       fi
     fi
   fi

Reply via email to