[Pkg-tcltk-devel] Unversionized tk-dev; mixed versions
Sergei Golovan
sgolovan at nes.ru
Tue Jul 22 11:58:45 UTC 2014
Hi Ole,
On Sun, Jul 20, 2014 at 3:58 PM, Оlе Ѕtrеісhеr
<debian-devel at liska.ath.cx> wrote:
> Hi,
>
> I just got a FTBS bugreport for my saods9 package. The package (still)
> needs to build (and run) against tcl/tk 8.5. However, it depends on
> libtk-img-dev.
>
> libtk-img-dev depends on (now) tk-dev which in turn depends on
> tk8.6-dev, so that the saods9 package build pulls both 8.5 and 8.6
> versions (and fixed because of a minor 8.6 incompability).
>
> How should I solve this? Since libtk-img does not depend on a specific
> version of tk, why does libtk-img-dev? Since there is a new saods9
> version supporting 8.6 in upstream development, I don't want to put much
> efforts in making the current version compatible.
libtk-img-dev has to pull in some specific tk-dev version (in order to maintain
consistency of building environment).
In your case I guess the easiest fix is to put 8.5 before 8.6 in
htmlwidget/configure.in search
routines. The following patch does that:
--- a/htmlwidget/configure.in
+++ b/htmlwidget/configure.in
@@ -387,7 +387,7 @@
fi
fi
if test "$BUILD_TCLSH" = ""; then
- AC_CHECK_PROGS(BUILD_TCLSH, tclsh8.2 tclsh8.1 tclsh81 tclsh8.0
tclsh80 cygtclsh80 tclsh, "")
+ AC_CHECK_PROGS(BUILD_TCLSH, tclsh8.5 tclsh8.1 tclsh81 tclsh8.0
tclsh80 cygtclsh80 tclsh, "")
fi
if test "$BUILD_TCLSH" = ""; then
AC_MSG_ERROR([no working "tclsh" could be found])
@@ -580,7 +580,7 @@
LIBS=$extra
else
LIBS=""
- AC_SEARCH_LIBS(Tcl_Init, tcl8.2 tcl8.1 tcl8.0 tcl80 tcl,,,$otherlibs)
+ AC_SEARCH_LIBS(Tcl_Init, tcl8.5 tcl8.1 tcl8.0 tcl80 tcl,,,$otherlibs)
fi
TARGET_TCL_LIBS="$LIBS $otherlibs"
fi
@@ -610,7 +610,7 @@
AC_CHECK_HEADER(tcl.h, [found=yes])
fi
if test "$found" = "no"; then
- for dir in /usr/include /usr/include/tcl /usr/include/tcl8.* ; do
+ for dir in /usr/include/tcl8.5 /usr/include/tcl /usr/include/tcl8.* ; do
n=$dir/tcl.h
AC_CHECK_FILE($dir/tcl.h, found=yes)
if test "$found" = "yes"; then
@@ -663,7 +663,7 @@
CC=$TARGET_CC
otherlibs="$TARGET_X_LIBS $TARGET_TCL_LIBS"
LIBS=""
- AC_SEARCH_LIBS(Tk_Init, tk8.2 tk8.1 tk8.0 tk80 tk,,,$otherlibs)
+ AC_SEARCH_LIBS(Tk_Init, tk8.5 tk8.1 tk8.0 tk80 tk,,,$otherlibs)
TARGET_TK_LIBS=$LIBS
fi
fi
--
Sergei Golovan
More information about the Pkg-tcltk-devel
mailing list