--- tk8.5-8.5.0.orig/debian/changelog +++ tk8.5-8.5.0/debian/changelog @@ -0,0 +1,89 @@ +tk8.5 (8.5.0-3~gutsy1) gutsy-backports; urgency=low + + * Automated backport upload; no source changes. + + -- John Dong Mon, 18 Feb 2008 21:49:43 +0000 + +tk8.5 (8.5.0-3) unstable; urgency=high + + * Applied patch by upstream to fix security vulnerability CVE-2006-4484 + overflow triggered by crafted GIF file. + + -- Sergei Golovan Mon, 04 Feb 2008 23:28:55 +0300 + +tk8.5 (8.5.0-2) unstable; urgency=low + + * Fixed tcl8.5 version in build-dependencies (closes: #458935). + + -- Sergei Golovan Thu, 03 Jan 2008 23:01:49 +0300 + +tk8.5 (8.5.0-1) unstable; urgency=low + + * New upstream release. + * Removed empty directory /usr/share/tk8.5 from the binary package. + * Added uscan control file debian/watch. + * Changed tk8.5 version in shlibs to 8.5.0. + * Bumped standards version to 3.7.3. + + -- Sergei Golovan Wed, 19 Dec 2007 11:19:51 +0300 + +tk8.5 (0.b3-1) unstable; urgency=low + + * New upstream beta release. + + -- Sergei Golovan Wed, 21 Nov 2007 19:03:48 +0300 + +tk8.5 (0.b2-1) unstable; urgency=low + + * New upstream beta release. + + -- Sergei Golovan Fri, 26 Oct 2007 22:08:59 +0400 + +tk8.5 (0.b1-2) unstable; urgency=low + + * Added -fno-unit-at-a-time option to match tcl8.5 build options. + * Moved architecture independent files from /usr/lib/tk8.5 to + /usr/share/tcltk/tk8.5. To keep backward compatibility tkConfig.sh is + linked into /usr/lib/tk8.5 directory. + * Fixed bug with update-alternatives in prerm script. + * Removed conflicts with tcl and providing tcl-dev packages from + debian/control to prepare binary packages for default tcl and tcl-dev. + * Added Homepage field to debian/control. + * Rearranged conflicts of tk8.5-doc package because of planned adoption of + real tk-doc package. + + -- Sergei Golovan Fri, 19 Oct 2007 16:08:15 +0400 + +tk8.5 (0.b1-1) unstable; urgency=low + + * New upstream beta release. + * Upload to debian archive (closes: #443969). + * Cleaned up patches in debian/patches directory. + * Added /usr/lib/tcl8.5 to a search path for tclConfig.sh and /usr/lib/tk8.5 + to a search path for tkConfig.sh in tcl.m4. + * Removed TK_INC_DIR from tkConfig.sh and tcl.m4. + * Bumped debhelper compatibility to 5. + + -- Sergei Golovan Fri, 28 Sep 2007 19:08:11 +0400 + +tk8.5 (0.a6-1) unstable; urgency=low + + * New upstream alpha release. + * Added Sergei Golovan to uploaders list. + * Added missed build dependency on quilt. + * Added headers from compat directory to tk8.5-dev package. + * Added list of copyright holders to debian/copyright. + * Removed --enable-64bit configure option from debian/rules. + * Removed tk-dev from packages which conflict with tk8.5-dev. + * Replaced deprecated ${Source-Version} substitution variable by + ${binary:Version}. + * Moved menu item from obsolete Apps to Applications section. + + -- Sergei Golovan Sat, 15 Sep 2007 12:20:00 +0400 + +tk8.5 (0.a5-1) unstable; urgency=low + + * Initial alpha release. + + -- Chris Waters Fri, 26 Jan 2007 23:01:39 +0300 + --- tk8.5-8.5.0.orig/debian/patches/confsearch.diff +++ tk8.5-8.5.0/debian/patches/confsearch.diff @@ -0,0 +1,36 @@ +Patch by Sergei Golovan allows to find tclConfig.sh in /usr/share/tcltk/tcl8.5 +and tkConfig.sh in /usr/share/tcltk/tk8.5 where they are located in Debian +installation. + +Index: tk8.5-8.5.0/unix/configure +=================================================================== +--- tk8.5-8.5.0.orig/unix/configure 2007-12-19 11:22:32.000000000 +0300 ++++ tk8.5-8.5.0/unix/configure 2007-12-19 11:22:41.000000000 +0300 +@@ -1430,6 +1430,7 @@ + `ls -d ${prefix}/lib 2>/dev/null` \ + `ls -d /usr/local/lib 2>/dev/null` \ + `ls -d /usr/contrib/lib 2>/dev/null` \ ++ `ls -d /usr/share/tcltk/tcl8.5 2>/dev/null` \ + `ls -d /usr/lib 2>/dev/null` \ + ; do + if test -f "$i/tclConfig.sh" ; then +Index: tk8.5-8.5.0/unix/tcl.m4 +=================================================================== +--- tk8.5-8.5.0.orig/unix/tcl.m4 2007-12-17 20:57:25.000000000 +0300 ++++ tk8.5-8.5.0/unix/tcl.m4 2007-12-19 11:22:41.000000000 +0300 +@@ -93,6 +93,7 @@ + `ls -d ${prefix}/lib 2>/dev/null` \ + `ls -d /usr/local/lib 2>/dev/null` \ + `ls -d /usr/contrib/lib 2>/dev/null` \ ++ `ls -d /usr/share/tcltk/tcl8.5 2>/dev/null` \ + `ls -d /usr/lib 2>/dev/null` \ + ; do + if test -f "$i/tclConfig.sh" ; then +@@ -223,6 +224,7 @@ + `ls -d ${prefix}/lib 2>/dev/null` \ + `ls -d /usr/local/lib 2>/dev/null` \ + `ls -d /usr/contrib/lib 2>/dev/null` \ ++ `ls -d /usr/share/tcltk/tk8.5 2>/dev/null` \ + `ls -d /usr/lib 2>/dev/null` \ + ; do + if test -f "$i/tkConfig.sh" ; then --- tk8.5-8.5.0.orig/debian/patches/tkprivate.diff +++ tk8.5-8.5.0/debian/patches/tkprivate.diff @@ -0,0 +1,43 @@ +Patch by Chris Waters sets path which are normally point to a directory +with Tk sources to a subdirectory of /usr/include/tcl8.4 (debian/rules +puts private Tk headers there). + +Index: tk8.5-8.5.0/unix/tkConfig.sh.in +=================================================================== +--- tk8.5-8.5.0.orig/unix/tkConfig.sh.in 2007-12-17 20:57:25.000000000 +0300 ++++ tk8.5-8.5.0/unix/tkConfig.sh.in 2007-12-19 11:22:39.000000000 +0300 +@@ -55,7 +55,7 @@ + + # String to pass to linker to pick up the Tk library from its + # build directory. +-TK_BUILD_LIB_SPEC='@TK_BUILD_LIB_SPEC@' ++TK_BUILD_LIB_SPEC='@TK_LIB_SPEC@' + + # String to pass to linker to pick up the Tk library from its + # installed directory. +@@ -71,7 +71,7 @@ + # different place than the directory containing the source files, this + # points to the location of the sources, not the location where Tk was + # compiled. +-TK_SRC_DIR='@TK_SRC_DIR@' ++TK_SRC_DIR='@includedir@/tk-private' + + # Needed if you want to make a 'fat' shared library library + # containing tk objects or link a different wish. +@@ -86,14 +86,14 @@ + + # String to pass to linker to pick up the Tk stub library from its + # build directory. +-TK_BUILD_STUB_LIB_SPEC='@TK_BUILD_STUB_LIB_SPEC@' ++TK_BUILD_STUB_LIB_SPEC='@TK_STUB_LIB_SPEC@' + + # String to pass to linker to pick up the Tk stub library from its + # installed directory. + TK_STUB_LIB_SPEC='@TK_STUB_LIB_SPEC@' + + # Path to the Tk stub library in the build directory. +-TK_BUILD_STUB_LIB_PATH='@TK_BUILD_STUB_LIB_PATH@' ++TK_BUILD_STUB_LIB_PATH='@TK_STUB_LIB_PATH@' + + # Path to the Tk stub library in the install directory. + TK_STUB_LIB_PATH='@TK_STUB_LIB_PATH@' --- tk8.5-8.5.0.orig/debian/patches/tklibrary.diff +++ tk8.5-8.5.0/debian/patches/tklibrary.diff @@ -0,0 +1,26 @@ +Index: tk8.5-8.5.0/unix/configure +=================================================================== +--- tk8.5-8.5.0.orig/unix/configure 2007-12-17 20:57:25.000000000 +0300 ++++ tk8.5-8.5.0/unix/configure 2007-12-19 11:22:32.000000000 +0300 +@@ -10554,7 +10554,7 @@ + TCL_STUB_FLAGS="-DUSE_TCL_STUBS" + fi + +-TK_LIBRARY='$(prefix)/lib/tk$(VERSION)' ++test -z "$TK_LIBRARY" && TK_LIBRARY='$(prefix)/lib/tk$(VERSION)' + PRIVATE_INCLUDE_DIR='$(includedir)' + HTML_DIR='$(DISTDIR)/html' + TK_PKG_DIR='tk$(VERSION)' +Index: tk8.5-8.5.0/unix/configure.in +=================================================================== +--- tk8.5-8.5.0.orig/unix/configure.in 2007-12-17 20:57:25.000000000 +0300 ++++ tk8.5-8.5.0/unix/configure.in 2007-12-19 11:22:32.000000000 +0300 +@@ -558,7 +558,7 @@ + TCL_STUB_FLAGS="-DUSE_TCL_STUBS" + fi + +-TK_LIBRARY='$(prefix)/lib/tk$(VERSION)' ++test -z "$TK_LIBRARY" && TK_LIBRARY='$(prefix)/lib/tk$(VERSION)' + PRIVATE_INCLUDE_DIR='$(includedir)' + HTML_DIR='$(DISTDIR)/html' + TK_PKG_DIR='tk$(VERSION)' --- tk8.5-8.5.0.orig/debian/patches/CVE-2006-4484.diff +++ tk8.5-8.5.0/debian/patches/CVE-2006-4484.diff @@ -0,0 +1,22 @@ +Patch by upstream fixes vulnerability similar to +CVE-2006-4484 an unknown impact via a GIF file with input_code_size greater +than MAX_LWZ_BITS, which triggers an overflow when initializing the table +array. + +Index: tk8.5-8.5.0/generic/tkImgGIF.c +=================================================================== +--- tk8.4-8.5.0.orig/generic/tkImgGIF.c ++++ tk8.4-8.5.0/generic/tkImgGIF.c +@@ -826,6 +826,12 @@ + Tcl_PosixError(interp), (char *) NULL); + return TCL_ERROR; + } ++ ++ if (initialCodeSize > MAX_LWZ_BITS) { ++ Tcl_SetResult(interp, "malformed image", TCL_STATIC); ++ return TCL_ERROR; ++ } ++ + if (transparent != -1) { + cmap[transparent][CM_RED] = 0; + cmap[transparent][CM_GREEN] = 0; --- tk8.5-8.5.0.orig/debian/patches/manpages.diff +++ tk8.5-8.5.0/debian/patches/manpages.diff @@ -0,0 +1,25 @@ +Patch by Chris Waters fixes installing of several manual pages which +aren't installed by upstream script but are referenced inside other +manual pages. + +Index: tk8.5-8.5.0/unix/installManPage +=================================================================== +--- tk8.5-8.5.0.orig/unix/installManPage 2007-12-17 20:57:25.000000000 +0300 ++++ tk8.5-8.5.0/unix/installManPage 2007-12-19 11:22:49.000000000 +0300 +@@ -51,7 +51,16 @@ + }' $MANPAGE` + + SECTION=`echo $MANPAGE | sed 's/.*\(.\)$/\1/'` ++NAME=`basename $MANPAGE .$SECTION` + SRCDIR=`dirname $MANPAGE` ++ ++SPECIALS="FindPhoto" ++for n in $SPECIALS; do ++ if [ "$NAME" = "$n" ] ; then ++ NAMES="$n $NAMES" ++ fi ++done ++ + FIRST="" + for f in $NAMES; do + f=$f.$SECTION$SUFFIX --- tk8.5-8.5.0.orig/debian/patches/non-linux.diff +++ tk8.5-8.5.0/debian/patches/non-linux.diff @@ -0,0 +1,49 @@ +Patch by Sergei Golovan (originally by Mike Markley and Chris Waters) fixes +building on non-linux Debian architectures. + +Index: tk8.5-8.5.0/unix/configure +=================================================================== +--- tk8.5-8.5.0.orig/unix/configure 2007-12-19 11:22:44.000000000 +0300 ++++ tk8.5-8.5.0/unix/configure 2007-12-19 11:22:47.000000000 +0300 +@@ -4741,6 +4741,9 @@ + if test "`uname -s`" = "AIX" ; then + tcl_cv_sys_version=AIX-`uname -v`.`uname -r` + fi ++ if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then ++ tcl_cv_sys_version=NetBSD-Debian ++ fi + fi + fi + +@@ -5538,7 +5541,7 @@ + fi + + ;; +- Linux*) ++ Linux*|GNU*|NetBSD-Debian) + SHLIB_CFLAGS="-fPIC" + SHLIB_LD_LIBS='${LIBS}' + SHLIB_SUFFIX=".so" +Index: tk8.5-8.5.0/unix/tcl.m4 +=================================================================== +--- tk8.5-8.5.0.orig/unix/tcl.m4 2007-12-19 11:22:44.000000000 +0300 ++++ tk8.5-8.5.0/unix/tcl.m4 2007-12-19 11:22:47.000000000 +0300 +@@ -962,6 +962,9 @@ + if test "`uname -s`" = "AIX" ; then + tcl_cv_sys_version=AIX-`uname -v`.`uname -r` + fi ++ if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then ++ tcl_cv_sys_version=NetBSD-Debian ++ fi + fi + fi + ]) +@@ -1418,7 +1421,7 @@ + ]) + ]) + ;; +- Linux*) ++ Linux*|GNU*|NetBSD-Debian) + SHLIB_CFLAGS="-fPIC" + SHLIB_LD_LIBS='${LIBS}' + SHLIB_SUFFIX=".so" --- tk8.5-8.5.0.orig/debian/patches/rpath.diff +++ tk8.5-8.5.0/debian/patches/rpath.diff @@ -0,0 +1,46 @@ +Patch by Chris Waters removes -rpath from search flags and adds -soname +to library build options. + +Also, it fixes Makefile.in to put correct Tk library filename to pkgIndex.tcl + +Index: tk8.5-8.5.0/unix/configure +=================================================================== +--- tk8.5-8.5.0.orig/unix/configure 2007-12-19 11:22:41.000000000 +0300 ++++ tk8.5-8.5.0/unix/configure 2007-12-19 11:22:44.000000000 +0300 +@@ -5549,6 +5549,9 @@ + # get rid of the warnings. + #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" + ++ # following line added by CW for Debian GNU/Linux ++ TK_SHLIB_LD_EXTRAS="-Wl,-soname,\${TK_LIB_FILE}.0" ++ + SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' + DL_OBJS="tclLoadDl.o" + DL_LIBS="-ldl" +Index: tk8.5-8.5.0/unix/Makefile.in +=================================================================== +--- tk8.5-8.5.0.orig/unix/Makefile.in 2007-12-17 20:57:25.000000000 +0300 ++++ tk8.5-8.5.0/unix/Makefile.in 2007-12-19 11:22:44.000000000 +0300 +@@ -710,7 +710,7 @@ + $(TCLVERSION)$(TCLPATCHL)}]} { return }";\ + relative=`echo | awk '{ORS=" "; split("$(TK_PKG_DIR)",a,"/"); for (f in a) {print ".."}}'`;\ + echo "package ifneeded Tk $(MAJOR_VERSION).$(MINOR_VERSION)$(PATCH_LEVEL)\ +- [list load [file join \$$dir $${relative}$(TK_LIB_FILE)] Tk]";\ ++ [list load [file join $(LIB_RUNTIME_DIR) $(TK_LIB_FILE).0] Tk]";\ + ) > $(PKG_INDEX); \ + fi + @echo "Installing $(LIB_FILE) to $(LIB_INSTALL_DIR)/" +Index: tk8.5-8.5.0/unix/tcl.m4 +=================================================================== +--- tk8.5-8.5.0.orig/unix/tcl.m4 2007-12-19 11:22:41.000000000 +0300 ++++ tk8.5-8.5.0/unix/tcl.m4 2007-12-19 11:22:44.000000000 +0300 +@@ -1429,6 +1429,9 @@ + # get rid of the warnings. + #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" + ++ # following line added by CW for Debian GNU/Linux ++ TK_SHLIB_LD_EXTRAS="-Wl,-soname,\${TK_LIB_FILE}.0" ++ + SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' + DL_OBJS="tclLoadDl.o" + DL_LIBS="-ldl" --- tk8.5-8.5.0.orig/debian/patches/series +++ tk8.5-8.5.0/debian/patches/series @@ -0,0 +1,7 @@ +CVE-2006-4484.diff +tklibrary.diff +tkprivate.diff +confsearch.diff +rpath.diff +non-linux.diff +manpages.diff --- tk8.5-8.5.0.orig/debian/rules +++ tk8.5-8.5.0/debian/rules @@ -0,0 +1,176 @@ +#!/usr/bin/make -f +# debian/rules that uses debhelper. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +export QUILT_PATCHES := debian/patches + +v = 8.5 + +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) +CFLAGS="-g -O0" +else +# See bug #446335 +CFLAGS="-g -O2 -fno-unit-at-a-time" +endif + +unpatch: + dh_testdir + -quilt pop -a + rm -rf patch-stamp .pc + +patch: patch-stamp +patch-stamp: + dh_testdir + quilt push -a + touch patch-stamp + +build: build-stamp +build-stamp: patch-stamp + dh_testdir + + cd unix && \ + TK_LIBRARY="/usr/share/tcltk/tk$(v)" \ + ./configure --prefix=/usr \ + --includedir=/usr/include/tcl$(v) \ + --with-tcl=/usr/lib/tcl$(v) \ + --enable-shared \ + --enable-threads \ + --disable-rpath \ + --enable-xft \ + --enable-man-symlinks \ + --enable-man-compression=gzip && \ + $(MAKE) CFLAGS=$(CFLAGS) + +# Build the static library. + cd unix && \ + ar cr libtk$(v).a *.o && \ + ar d libtk$(v).a tkAppInit.o && \ + ranlib libtk$(v).a + + touch build-stamp + +clean: clean-patched unpatch +clean-patched: + dh_testdir + dh_testroot + rm -f build-stamp install-stamp + + cd unix && [ ! -f Makefile ] || $(MAKE) distclean + + dh_clean + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_installdirs + + mkdir -p debian/tmp/usr + cd unix && \ + GZIP=-9 \ + $(MAKE) INSTALL_ROOT=`pwd`/../debian/tmp \ + MAN_INSTALL_DIR=`pwd`/../debian/tmp/usr/share/man \ + MANN_INSTALL_DIR=`pwd`/../debian/tmp/usr/share/man/man3 install +# Fix up pkgInstall.tcl + cp debian/tmp/usr/lib/tk$(v)/* debian/tmp/usr/share/tcltk/tk$(v) +# Fix up the libraries. + cp unix/libtk$(v).a debian/tmp/usr/lib + mv debian/tmp/usr/lib/libtk$(v).so debian/tmp/usr/lib/libtk$(v).so.0 + ln -sf libtk$(v).so.0 debian/tmp/usr/lib/libtk$(v).so + mv debian/tmp/usr/lib/*.sh debian/tmp/usr/share/tcltk/tk$(v) +# Fix up the include files. + install -d debian/tmp/usr/include/tcl$(v)/tk-private/generic + cp generic/*.h debian/tmp/usr/include/tcl$(v)/tk-private/generic + install -d debian/tmp/usr/include/tcl$(v)/tk-private/unix + cp unix/*.h debian/tmp/usr/include/tcl$(v)/tk-private/unix + install -d debian/tmp/usr/include/tcl$(v)/tk-private/compat + cp compat/*.h debian/tmp/usr/include/tcl$(v)/tk-private/compat +# Fix up the manpages. + cd debian/tmp/usr/share/man/man1 && \ + mv wish.1.gz wish$(v).1.gz + cd debian/tmp/usr/share/man/man3 && \ + for f in *.[3n].gz ; do \ + f2=$$(echo $$f | sed -e 's/\.[3n]/.3tk/') ; \ + if [ -L $$f ]; then \ + l=$$(readlink -n $$f |sed -e 's/\.[3n]/.3tk/') ; \ + rm $$f ; \ + ln -sf $$l $$f2 ; \ + else \ + zcat $$f | sed -e 's/^\.TH \([^ ]\+\|"[^"]\+"\) [3n]/.TH \1 3tk/' \ + -e 's/\([0-9A-Za-z]\+\)(3)/\1(3tk)/g' \ + -e 's/bgerror(n)/bgerror(3tcl)/g' \ + -e 's/fconfigure(n)/fconfigure(3tcl)/g' \ + -e 's/history(n)/history(3tcl)/g' \ + -e 's/interp(n)/interp(3tcl)/g' \ + -e 's/library(n)/library(3tcl)/g' \ + -e 's/load(n)/load(3tcl)/g' \ + -e 's/package(n)/package(3tcl)/g' \ + -e 's/puts(n)/puts(3tcl)/g' \ + -e 's/safe(n)/safe(3tcl)/g' \ + -e 's/source(n)/source(3tcl)/g' \ + -e 's/tclvars(n)/tclvars(3tcl)/g' \ + -e 's/unknown(n)/unknown(3tcl)/g' \ + -e 's/(n)/(3tk)/g' \ + | gzip -9 >$$f2 ; \ + rm $$f ; \ + fi ; \ + done + rm -rf `pwd`/debian/tmp/usr/share/tcltk/tk$(v)/demos + ln -sf ../../doc/tk$(v)/examples `pwd`/debian/tmp/usr/share/tcltk/tk$(v)/demos + touch install-stamp + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir -i + dh_testroot -i + dh_movefiles -i + dh_installdocs -i + dh_installchangelogs -i ChangeLog + dh_compress -i + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir -a + dh_testroot -a + dh_movefiles -a +# now, fix up file locations for .sh + mv debian/tk$(v)/usr/share/tcltk/tk$(v)/*.sh \ + debian/tk$(v)-dev/usr/share/tcltk/tk$(v) + ln -s ../../share/tcltk/tk$(v)/tkConfig.sh \ + debian/tk$(v)-dev/usr/lib/tk$(v)/tkConfig.sh + + dh_installdocs -a + install -d `pwd`/debian/tk$(v)/usr/share/doc/tk$(v)/examples/ +# move around the demos + cp -a library/demos/* `pwd`/debian/tk$(v)/usr/share/doc/tk$(v)/examples/ + rm -f debian/tk$(v)/usr/share/doc/tk$(v)/examples/license.terms + dh_installmenu -a + dh_installchangelogs -a ChangeLog + dh_fixperms -a + dh_strip -a + dh_compress -a -Xusr/share/doc/tk$(v)/examples/ + dh_makeshlibs -a -V 'tk$(v) (>= 8.5.0)' + dh_installdeb -a + dh_shlibdeps -a -ldebian/tk$(v)/usr/lib + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +source diff: + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false + +binary: binary-indep binary-arch + +get-orig-source: + wget -O tk8.5_8.5.0.orig.tar.gz \ + http://prdownloads.sourceforge.net/tcl/tk8.5.0-src.tar.gz + +.PHONY: patch unpatch clean-patched build clean binary-indep binary-arch binary install get-orig-source + --- tk8.5-8.5.0.orig/debian/tk8.5-doc.files +++ tk8.5-8.5.0/debian/tk8.5-doc.files @@ -0,0 +1 @@ +usr/share/man/man3 --- tk8.5-8.5.0.orig/debian/tk8.5.files +++ tk8.5-8.5.0/debian/tk8.5.files @@ -0,0 +1,4 @@ +usr/bin +usr/share/tcltk/tk8.5 +usr/lib/*.so.* +usr/share/man/man1 --- tk8.5-8.5.0.orig/debian/README.Debian +++ tk8.5-8.5.0/debian/README.Debian @@ -0,0 +1,3 @@ +Please see the Documentation section in the upstream README for a list of +books on getting started with Tcl/Tk. Also see the main Tcl/Tk web site +at http://www.tcl.tk/ for other documentation. --- tk8.5-8.5.0.orig/debian/shlibs.local +++ tk8.5-8.5.0/debian/shlibs.local @@ -0,0 +1 @@ +libtk8.5 1 --- tk8.5-8.5.0.orig/debian/watch +++ tk8.5-8.5.0/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://sf.net/tcl/tk(8\.5\.\d+)-src\.tar\.gz --- tk8.5-8.5.0.orig/debian/tk8.5.dirs +++ tk8.5-8.5.0/debian/tk8.5.dirs @@ -0,0 +1 @@ +usr/share --- tk8.5-8.5.0.orig/debian/copyright +++ tk8.5-8.5.0/debian/copyright @@ -0,0 +1,74 @@ +This package was debianized by David Engel +from sources obtained at http://prdownloads.sourceforge.net/tcl + +List of copyright holders of individual files: + +Copyright 1985-1987, 1989, 1991 Massachusetts Institute of Technology +Copyright 1987-1994 Adobe Systems Inc. +Copyright 1987 Digital Equipment Corporation +Copyright 1989-1994 The Regents of the University of California +Copyright 1990, David Koblas +Copyright 1992-1996 Free Software Foundation, Inc. +Copyright 1993-1994 Lockheed Missle & Space Company, AI Center +Copyright 1994-1998 Sun Microsystems, Inc. +Copyright 1994 Software Research Associates, Inc. +Copyright 1994 The Australian National University +Copyright 1997-2000 Ajuba Solutions +Copyright 1997-2000 Scriptics Corporation +Copyright 1997 Australian National University +Copyright 1998-2005 ActiveState Corporation +Copyright 1998 Hutchison Avenue Software Corporation +Copyright 1998 Paul Duffin +Copyright 1999-2000 Jeffrey Hobbs +Copyright 1999 Jan Nijtman. +Copyright 2001-2002, Apple Computer, Inc. +Copyright 2001-2002 Donal K. Fellows +Copyright 2001-2003 David Gravereaux +Copyright 2002-2007 Daniel A. Steffen +Copyright 2002 David Gravereaux +Copyright 2002 Ludwig Callewaert +Copyright 2003-2006 Patrick Thoyts +Copyright 2007 Tcl Core Team +Copyright Reed Wade + +Copyright: + +This software is copyrighted by the Regents of the University of +California, Sun Microsystems, Inc., and other parties. The following +terms apply to all files associated with the software unless explicitly +disclaimed in individual files. + +The authors hereby grant permission to use, copy, modify, distribute, +and license this software and its documentation for any purpose, provided +that existing copyright notices are retained in all copies and that this +notice is included verbatim in any distributions. No written agreement, +license, or royalty fee is required for any of the authorized uses. +Modifications to this software may be copyrighted by their authors +and need not follow the licensing terms described here, provided that +the new terms are clearly indicated on the first page of each file where +they apply. + +IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY +FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES +ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY +DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + +THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, +INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THIS SOFTWARE +IS PROVIDED ON AN "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE +NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR +MODIFICATIONS. + +GOVERNMENT USE: If you are acquiring this software on behalf of the +U.S. government, the Government shall have only "Restricted Rights" +in the software and related documentation as defined in the Federal +Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you +are acquiring the software on behalf of the Department of Defense, the +software shall be classified as "Commercial Computer Software" and the +Government shall have only "Restricted Rights" as defined in Clause +252.227-7013 (c) (1) of DFARs. Notwithstanding the foregoing, the +authors grant the U.S. Government and others acting in its behalf +permission to use and distribute the software in accordance with the +terms specified in this license. --- tk8.5-8.5.0.orig/debian/tk8.5.postrm +++ tk8.5-8.5.0/debian/tk8.5.postrm @@ -0,0 +1,12 @@ +#!/bin/sh + +set -e + +if [ "$1" = "remove" ]; then + if [ -d /usr/share/doc/tk8.5/examples ]; then + # brokenness + rm -rf /usr/share/doc/tk8.5/examples + fi +fi + +#DEBHELPER# --- tk8.5-8.5.0.orig/debian/compat +++ tk8.5-8.5.0/debian/compat @@ -0,0 +1 @@ +5 --- tk8.5-8.5.0.orig/debian/tk8.5-dev.files +++ tk8.5-8.5.0/debian/tk8.5-dev.files @@ -0,0 +1,3 @@ +usr/include +usr/lib/*.a +usr/lib/*.so --- tk8.5-8.5.0.orig/debian/tk8.5-dev.dirs +++ tk8.5-8.5.0/debian/tk8.5-dev.dirs @@ -0,0 +1,2 @@ +usr/lib/tk8.5 +usr/share/tcltk/tk8.5 --- tk8.5-8.5.0.orig/debian/tk8.5.preinst +++ tk8.5-8.5.0/debian/tk8.5.preinst @@ -0,0 +1,12 @@ +#!/bin/sh + +set -e + +if [ "$1" = "upgrade" ] || [ "$1" = "install" ]; then + if [ -d /usr/lib/tk8.5/demos ]; then + # brokenness + rm -rf /usr/lib/tk8.5/demos + fi +fi + +#DEBHELPER# --- tk8.5-8.5.0.orig/debian/tk8.5.prerm +++ tk8.5-8.5.0/debian/tk8.5.prerm @@ -0,0 +1,7 @@ +#!/bin/sh + +set -e + +update-alternatives --remove wish /usr/bin/wish8.5 + +#DEBHELPER# --- tk8.5-8.5.0.orig/debian/control +++ tk8.5-8.5.0/debian/control @@ -0,0 +1,46 @@ +Source: tk8.5 +Section: libs +Priority: optional +Maintainer: Tcl/Tk Debian Packagers +Uploaders: Chris Waters , Sergei Golovan +Build-Depends: debhelper (>= 5.0.0), x11proto-core-dev | x-dev, libx11-dev, libxt-dev, libxss-dev | libxext-dev, libxft-dev, tcl8.5-dev (>= 8.5.0), quilt +Standards-Version: 3.7.3 +Homepage: http://www.tcl.tk/ + +Package: tk8.5 +Section: libs +Priority: optional +Architecture: any +Depends: ${shlibs:Depends} +Recommends: xterm | x-terminal-emulator +Conflicts: tk40 (<= 4.0p3-2), libtk-img (<< 1.2.5) +Provides: wish +Description: Tk toolkit for Tcl and X11, v8.5 - run-time files + Tk is a cross-platform graphical toolkit which provides the Motif + look-and-feel and is implemented using the Tcl scripting language. + This package contains everything you need to run Tk (wish) scripts + and Tk-enabled apps. + +Package: tk8.5-doc +Section: doc +Priority: optional +Architecture: all +Suggests: tk8.5 +Conflicts: tkdoc, tk8.3-doc, tk8.4-doc +Provides: tkdoc +Description: Tk toolkit for Tcl and X11, v8.5 - manual pages + Tk is a cross-platform graphical toolkit which provides the Motif + look-and-feel and is implemented using the Tcl scripting language. + This package contains the manual pages for the Tk commands. + +Package: tk8.5-dev +Section: devel +Priority: optional +Architecture: any +Depends: x11proto-core-dev | x-dev, libx11-dev, tcl8.5-dev (>= 8.5.0), tk8.5 (= ${binary:Version}) +Suggests: tk8.5-doc +Description: Tk toolkit for Tcl and X11, v8.5 - development files + Tk is a cross-platform graphical toolkit which provides the Motif + look-and-feel and is implemented using the Tcl scripting language. + This package contains the headers and libraries needed to extend + or embed Tk. --- tk8.5-8.5.0.orig/debian/tk8.5.postinst +++ tk8.5-8.5.0/debian/tk8.5.postinst @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +if [ "$1" = "configure" ]; then + update-alternatives --install /usr/bin/wish wish /usr/bin/wish8.5 800 \ + --slave /usr/share/man/man1/wish.1.gz wish.1 \ + /usr/share/man/man1/wish8.5.1.gz +fi + +#DEBHELPER# --- tk8.5-8.5.0.orig/debian/tk8.5.menu +++ tk8.5-8.5.0/debian/tk8.5.menu @@ -0,0 +1,4 @@ +?package(tk8.5):needs="x11"\ + section="Applications/Programming"\ + title="TkWish8.5"\ + command="x-terminal-emulator -e /usr/bin/wish8.5" --- tk8.5-8.5.0.orig/debian/tk8.5.docs +++ tk8.5-8.5.0/debian/tk8.5.docs @@ -0,0 +1,2 @@ +README +changes