--- tcl8.4-8.4.19.orig/debian/changelog +++ tcl8.4-8.4.19/debian/changelog @@ -0,0 +1,328 @@ +tcl8.4 (8.4.19-4) unstable; urgency=low + + * Removed Anselm Lingnau from uploaders list (closes: #540848). + * Protected quilt calls in debian/rules to make conversion to source + format 3.0 (quilt) possible (closes: #484913). + * Added README.source which describes how to work with quilt. + * Use SourceForge redirector in debian/watch uscan control file. + * Bumped standards version to 3.8.3. + + -- Sergei Golovan Sat, 05 Sep 2009 11:34:08 +0400 + +tcl8.4 (8.4.19-3) unstable; urgency=low + + * Don't remove tclsh alternative in case of package upgrade because the + manually installed alternative is also removed which isn't desirable. + + -- Sergei Golovan Sun, 01 Mar 2009 10:35:09 +0300 + +tcl8.4 (8.4.19-2) unstable; urgency=low + + * Fixed clean target to work with debhelper 7.0 (made dh_clean the last + command, so debhelper logs are removed now). + + -- Sergei Golovan Thu, 01 May 2008 12:13:47 +0400 + +tcl8.4 (8.4.19-1) unstable; urgency=low + + * New upstream release. + + -- Sergei Golovan Sat, 19 Apr 2008 18:09:51 +0400 + +tcl8.4 (8.4.18-3) unstable; urgency=low + + * Quoted CFLAGS in debian/rules when passing to the shell, not when + assigning to a make variable; otherwise the quotes end up as part of + the variable and many things go wrong, leading to a build failure + (closes: #467397, #476015). + * Explicitly specified configure options --host and --build to make build + results more predictable. + * Cleaned up debian/rules. + + -- Sergei Golovan Mon, 14 Apr 2008 23:01:19 +0400 + +tcl8.4 (8.4.18-2) unstable; urgency=low + + * Upload to unstable. + + -- Sergei Golovan Sat, 09 Feb 2008 01:39:26 +0300 + +tcl8.4 (8.4.18-1) experimental; urgency=low + + * New upstream release. + * Overridden lintian warning package-name-doesnt-match-sonames since tcl8.4 + package contains not only a library, and it's unreasonable to split it + into smaller parts. + + -- Sergei Golovan Fri, 08 Feb 2008 21:35:49 +0300 + +tcl8.4 (8.4.17-1) unstable; urgency=low + + * New upstream release. + * Bumped standards version to 3.7.3. + + -- Sergei Golovan Thu, 03 Jan 2008 02:40:34 +0300 + +tcl8.4 (8.4.16-4) unstable; urgency=medium + + * Temporarily (until transition to a new Tcl/Tk policy is done) readded + /usr/lib to TCL_PACKAGE_PATH variable (closes: #451129, #451195). + + -- Sergei Golovan Wed, 14 Nov 2007 08:42:30 +0300 + +tcl8.4 (8.4.16-3) unstable; urgency=low + + * Fixed tcl8.4-dev.preinst bug in update-alternatives call (ignore return + value if tcl.m4 alternative doesn't exist already, + closes: #447310, #447311). + + -- Sergei Golovan Sat, 20 Oct 2007 06:14:00 +0400 + +tcl8.4 (8.4.16-2) unstable; urgency=low + + [ Sergei Golovan ] + * Added -fno-unit-at-a-time option to prevent stack corruption in a + particular use case (closes: #446335). + * Added /usr/local/lib/tcltk, /usr/local/share/tcltk, /usr/lib/tcltk, + /usr/share/tcltk to auto_path variable. These directories are to be + contain Tcl/Tk packages according to upcoming Debian Tcl/Tk Policy + (preliminary version see at + http://pkg-tcltk.alioth.debian.org/tcltk-policy.html/) + * Removed TCL_INC_DIR from tclConfig.sh and tcl.m4. + * Moved architecture independent files from /usr/lib/tcl8.4 to + /usr/share/tcltk/tcl8.4. To keep backward compatibility tclConfig.sh is + linked to /usr/lib/tcl8.4 directory. + * Fixed bug with update-alternatives in prerm scripts. + * Removed conflicts with tcl and providing tcl-dev packages from + debian/control to prepare binary packages for default tcl and tcl-dev. + * Removed build-essential package from tcl8.4-dev dependencies. + * Moved tcl.m4 to /usr/share/aclocal/tcl8.4.m4 to make it easier to use + different versions of tcl.m4. + * Removed alternative of tcl.m4 (the link to default tcl.m4 is to be + maintained by tcl-dev package). + * Rearranged conflicts of tcl8.4-doc package because of planned adoption of + real tcl-doc package. + + [ Francesco Paolo Lovergine ] + * Added Homepage field in debian/control. + + -- Sergei Golovan Fri, 19 Oct 2007 16:07:39 +0400 + +tcl8.4 (8.4.16-1) unstable; urgency=low + + * New upstream release. + * Removed patch which fixed memcmp() since it is included in upstream + sources. + * Cleaned up patches in debian/patches directory. + * Added /usr/lib/tcl8.4 to a search path for tclConfig.sh and /usr/lib/tk8.4 + to a search path for tkConfig.sh in tcl.m4. + * Removed patch which replaced strcmp by strcoll in lsort -ascii since + it doesn't make sense for unicode Tcl strings. + * Removed hack which fixed random crashes on SMP machines (it doesn't crash + anymore, but needs additional testing). + * Removed patch which fixed build-failure on sparc in tclPosixStr.c since it + is not necessary anymore. + * Added uscan control file debian/watch. + * Bumped debhelper compatibility to 5. + + -- Sergei Golovan Fri, 28 Sep 2007 20:54:36 +0400 + +tcl8.4 (8.4.15-2) unstable; urgency=low + + * Added Sergei Golovan to uploaders list. + * Added forgotten TCL_INC_DIR variable to tclConfig.sh. + * Applied patch by Ian Jackson which fixes memcmp() + function (closes: #440682). + * Removed --enable-64bit configure option from debian/rules + (closes: #440689). + * Provide virtual tcl-dev package and removed conflict with tcl-dev package + of tcl8.4-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 10:31:07 +0400 + +tcl8.4 (8.4.15-1) unstable; urgency=low + + * New maintainer Tcl/Tk Debian Packagers + . + + [ Sergei Golovan ] + * New upstream release (closes: #400820, #424055, #426251). + * Use quilt for patch management. + * Fixed sections inside manual pages. + * Added get-orig-source target to debian/rules. + * Added headers from compat directory to tcl8.4-dev package. + * Added list of copyright holders and files distributed under special + conditions to debian/copyright (closes: #403169). + [Chris Waters] + * Added Anselm Lingnau to uploaders. + + -- Chris Waters Wed, 25 Jul 2007 04:21:47 -0700 + +tcl8.4 (8.4.12-1.1) unstable; urgency=low + + * Non-maintainer upload. + * unix/tcl.m4: fix annoying underquoted definitions in tcl.m4, patch + courtesy of Toby White (Closes: #277826). + + -- Sam Hocevar (Debian packages) Sat, 15 Jul 2006 11:49:52 +0200 + +tcl8.4 (8.4.12-1) unstable; urgency=low + + * New upstream release. + + -- Chris Waters Fri, 27 Jan 2006 04:22:19 -0800 + +tcl8.4 (8.4.11-1.1) unstable; urgency=low + + * NMU. + * Fix syntax errors in unix/tcl.m4 and unix/configure. + Closes: #343989. + + -- Daniel Schepler Sun, 8 Jan 2006 11:51:22 +0100 + +tcl8.4 (8.4.11-1) unstable; urgency=low + + * New upstream release. + * Needed to fix mechanism for picking up SONAME. Now uses special + macro, TCL_SHLIB_LD_EXTRAS, and only for Linux, Hurd and DebianBSD. + + -- Chris Waters Tue, 6 Sep 2005 13:32:03 -0700 + +tcl8.4 (8.4.9-1) unstable; urgency=low + + * New upstream release. + * Removed old patch for integer conversion on 64-bit systems, as + upstream seems to have created their own patch, which conflicts. + * Added a new patch (courtesy of James Troup and Ubuntu) which fixes + crashes on SMP machines, but may introduce some resource leakage on + very unusual apps - this is, we hope, only a temporary patch until + upstream comes up with a better solution (closes: #285062). + * The old mechanism for renaming the man pages no longer worked, so I + had to create a new one. + + -- Chris Waters Wed, 15 Dec 2004 18:48:10 -0800 + +tcl8.4 (8.4.7-1) unstable; urgency=low + + * New upstream release. + * Removed patch files for tcl.m4, they were badly out-of-synch, and I + don't actually use them for anything. + + -- Chris Waters Sat, 7 Aug 2004 20:42:08 -0700 + +tcl8.4 (8.4.6-1) unstable; urgency=low + + * New upstream release. + * Removed the Tcl_Ungets patch, upstream has fixed the problem. + + -- Chris Waters Sat, 13 Mar 2004 15:10:00 -0800 + +tcl8.4 (8.4.5-1) unstable; urgency=low + + * New upstream release (closes: #224162). + * Add --enable-64bit configuration option to maximize the use of any + available 64-bit options. + + -- Chris Waters Mon, 22 Dec 2003 17:48:23 -0800 + +tcl8.4 (8.4.4-1) unstable; urgency=low + + * New upstream release. + * Re-enabled XIMPEEK which has been fixed to work with newer XFree86es. + + -- Chris Waters Thu, 31 Jul 2003 01:32:31 -0700 + +tcl8.4 (8.4.3-3) unstable; urgency=low + + * Rebuilt to not use XIMPEEK code, which doesn't work with newer + versions of XFree86. This really only affects Tk, but there's a + passing reference to it in tcl.m4, so I'm removing it from there as + well, just to make extra sure that it's gone. + + -- Chris Waters Tue, 24 Jun 2003 18:10:17 -0700 + +tcl8.4 (8.4.3-2) unstable; urgency=low + + * Changed -dev dependency from "libc6-dev" to "libc6-dev|libc-dev", for + greater flexibility. + + -- Chris Waters Fri, 6 Jun 2003 00:32:47 -0700 + +tcl8.4 (8.4.3-1) unstable; urgency=low + + * New upstream release, includes fix for zh_CN.GB2312 crashing problem + (closes: #193284). + * Added mention of threading support to description. + + -- Chris Waters Tue, 20 May 2003 22:38:26 -0700 + +tcl8.4 (8.4.2-1) unstable; urgency=low + + * New upstream release. + * Tightened dependencies for -dev package. + * Upstream no longer uses PATH_MAX, so hurd patch is simplified. + * Added debian-netbsd patch from Joel Baker. + + -- Chris Waters Wed, 5 Mar 2003 19:53:44 -0800 + +tcl8.4 (8.4.1-2) unstable; urgency=low + + * The -dev package no longer uses a symlink in /usr/share/doc. Any + pre-existing link now cleaned by preinst. + * Added README.TCL_INC to -dev package. + * Moved README.Debian to tcl8.4 package instead of tcl8.4-doc. + * Updated source location in copyright file. + * debian/rules: simplified the logic used to get the .sh and .m4 files + into the -dev package. No longer dependent on the order that + dh_movefiles processes the packages, and no longer uses obscure + globbing magic. + * Include the actual upstream changelog file, as well as the file named + "changes" (which is more of a user-oriented description). + * Applied new Hurd patch from Robert Millan, hacked up a bit after + talking to upstream (closes: #170449). + + -- Chris Waters Mon, 16 Dec 2002 17:52:14 -0800 + +tcl8.4 (8.4.1-1) unstable; urgency=low + + * New upstream release. + * debian/control: tcl8.4 to interpreters section, -doc to doc section. + * Fleshed out the package descriptions a little. + * Enabled thread support (needed for new aolserver) (closes: #164692). + + -- Chris Waters Sun, 17 Nov 2002 19:33:28 -0800 + +tcl8.4 (8.4.0-4) unstable; urgency=low + + * Removed the man page patch introduced in 8.4.0-2, as it was large, and + didn't actually help. Re-added the "ln" hack to mkLinks (as seen in + earlier tcl packages). + + -- Chris Waters Fri, 11 Oct 2002 18:59:36 -0700 + +tcl8.4 (8.4.0-3) unstable; urgency=low + + * New maintainer. + * Fixed man pages missed by earlier patch in -2 (closes: #162966). + * Now builds with debhelper v3, did some associated cleanup. + + -- Chris Waters Thu, 10 Oct 2002 00:26:38 -0700 + +tcl8.4 (8.4.0-2) unstable; urgency=low + + * Patch to tcl.m4/mkLinks/Makefile.in to support compile-time + specified manpage section (Closes: #161335) + * Fixed paths in tclConfig.sh (Closes: #161458) + + -- Mike Markley Fri, 20 Sep 2002 20:14:09 -0700 + +tcl8.4 (8.4.0-1) unstable; urgency=low + + * New upstream TCL version. + * Hurd support now integrated upstream + * Patched mkLinks to call $ZIP -9 + + -- Mike Markley Wed, 11 Sep 2002 21:53:22 -0700 --- tcl8.4-8.4.19.orig/debian/rules +++ tcl8.4-8.4.19/debian/rules @@ -0,0 +1,174 @@ +#!/usr/bin/make -f +# debian/rules that uses debhelper. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +export QUILT_PATCHES := debian/patches + +v = 8.4 + +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 || test $$? = 2 + rm -rf patch-stamp .pc + +patch: patch-stamp +patch-stamp: + dh_testdir + quilt push -a || test $$? = 2 + touch patch-stamp + +build: build-stamp +build-stamp: patch-stamp + dh_testdir +# So so ugly but it works... + touch generic/tclStubInit.c + cd unix && \ + TCL_LIBRARY="/usr/share/tcltk/tcl$(v)" \ + TCL_PACKAGE_PATH="/usr/local/lib/tcltk /usr/local/share/tcltk /usr/lib/tcltk /usr/share/tcltk /usr/lib" \ + ./configure --host=$(DEB_HOST_GNU_TYPE) \ + --build=$(DEB_BUILD_GNU_TYPE) \ + --prefix=/usr \ + --includedir=/usr/include/tcl$(v) \ + --enable-shared \ + --enable-threads \ + --mandir=/usr/share/man \ + --enable-man-symlinks \ + --enable-man-compression=gzip && \ + touch ../generic/tclStubInit.c && \ + $(MAKE) CFLAGS="$(CFLAGS)" +# Build the static library. + cd unix && \ + ar cr libtcl$(v).a *.o && \ + ar d libtcl$(v).a tclAppInit.o && \ + ranlib libtcl$(v).a + touch build-stamp + +clean: clean-patched unpatch + dh_testdir + dh_testroot + dh_clean + +clean-patched: + dh_testdir + dh_testroot + rm -f build-stamp install-stamp + cd unix && [ ! -f Makefile ] || $(MAKE) distclean +# Remove forgotten files + rm -f tests/pkg/pkga.so unix/config.log unix/Tcltest.so + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + 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 the libraries. + cp unix/libtcl$(v).a debian/tmp/usr/lib + mv debian/tmp/usr/lib/libtcl$(v).so debian/tmp/usr/lib/libtcl$(v).so.0 + ln -sf libtcl$(v).so.0 debian/tmp/usr/lib/libtcl$(v).so + mv debian/tmp/usr/lib/*.sh debian/tmp/usr/share/tcltk/tcl$(v) + cp unix/tcl.m4 debian/tmp/usr/share/tcltk/tcl$(v)/tcl.m4 + rm -f debian/tmp/usr/share/tcltk/tcl$(v)/ldAix +# Fix up the include files. + install -d debian/tmp/usr/include/tcl$(v)/tcl-private/generic + cp generic/*.h debian/tmp/usr/include/tcl$(v)/tcl-private/generic + install -d debian/tmp/usr/include/tcl$(v)/tcl-private/unix + cp unix/*.h debian/tmp/usr/include/tcl$(v)/tcl-private/unix + install -d debian/tmp/usr/include/tcl$(v)/tcl-private/compat + cp compat/*.h debian/tmp/usr/include/tcl$(v)/tcl-private/compat +# Fix up the manpages. + cd debian/tmp/usr/share/man/man1 && \ + zcat tclsh.1.gz | sed -e 's/(n)/(3tcl)/g' | gzip -9 > tclsh$(v).1.gz && \ + rm tclsh.1.gz + cd debian/tmp/usr/share/man/man3 && \ + for f in *.[3n].gz ; do \ + f2=$$(echo $$f | sed -e 's/\.[3n]/.3tcl/') ; \ + if [ -L $$f ]; then \ + l=$$(readlink -n $$f |sed -e 's/\.[3n]/.3tcl/') ; \ + rm $$f ; \ + ln -sf $$l $$f2 ; \ + else \ + zcat $$f | sed -e 's/^\.TH \([^ ]\+\|"[^"]\+"\) [3n]/.TH \1 3tcl/' \ + -e 's/\(Tk_[0-9A-Za-z]*\)(3)/\1(3tk)/g' \ + -e 's/\([A-Z][0-9A-Za-z_]*\)(3)/\1(3tcl)/g' \ + -e 's/send(n)/send(3tk)/g' \ + -e 's/text(n)/text(3tk)/g' \ + -e 's/tk(n)/tk(3tk)/g' \ + -e 's/winfo(n)/winfo(3tk)/g' \ + -e 's/(n)/(3tcl)/g' \ + | gzip -9 >$$f2 ; \ + rm $$f ; \ + fi ; \ + done + 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 and .m4 + mv debian/tcl$(v)/usr/share/tcltk/tcl$(v)/tcl.m4 \ + debian/tcl$(v)-dev/usr/share/aclocal/tcl$(v).m4 + mv debian/tcl$(v)/usr/share/tcltk/tcl$(v)/tclConfig.sh \ + debian/tcl$(v)-dev/usr/share/tcltk/tcl$(v) + ln -s ../../share/tcltk/tcl$(v)/tclConfig.sh \ + debian/tcl$(v)-dev/usr/lib/tcl$(v)/tclConfig.sh + dh_installdocs -a + dh_installmenu -a + dh_installchangelogs -a ChangeLog + install -m 644 debian/tcl$(v).lintian-override \ + debian/tcl$(v)/usr/share/lintian/overrides/tcl$(v) + dh_fixperms -a + dh_strip -a + dh_compress -a + dh_makeshlibs -a -V 'tcl$(v) (>= 8.4.16)' -XTcltest + dh_installdeb -a + dh_shlibdeps -a -ldebian/tcl$(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 tcl8.4_8.4.19.orig.tar.gz \ + http://prdownloads.sourceforge.net/tcl/tcl8.4.19-src.tar.gz + +.PHONY: patch unpatch clean-patched build clean binary-indep binary-arch binary install get-orig-source + --- tcl8.4-8.4.19.orig/debian/tcl8.4.menu +++ tcl8.4-8.4.19/debian/tcl8.4.menu @@ -0,0 +1,4 @@ +?package(tcl8.4):needs="text"\ + section="Applications/Programming"\ + title="Tclsh8.4"\ + command="/usr/bin/tclsh8.4" --- tcl8.4-8.4.19.orig/debian/README.TCL_INC +++ tcl8.4-8.4.19/debian/README.TCL_INC @@ -0,0 +1,16 @@ +Packages which used to use the debian-specific hack TCL_INC_DIR from +tclConfig.sh to find the tcl (or tk) headers should be modified to use +the new patented upstream TCL_INCLUDE_SPEC variable instead. + +TCL_INCLUDE_SPEC is a little different than TCL_INC_DIR -- it includes +a "-I" in front of the path, so if you were using "-I$TCL_INC_DIR", +you should change it to just "$TCL_INCLUDE_SPEC". If you were doing +something with TCL_INC_DIR that isn't compatible with have "-I" at the +front, LET US KNOW! + +TCL_INC_DIR is removed from tcl8.4. So, anything still using TCL_INC_DIR +will *break* if you want to build it with Tcl/Tk 8.4! +If you have a problem with that, LET US KNOW, as soon as possible! + +cheers +Chris Waters, 8 Dec 2002, Sergei Golovan, 28 Sep 2007 --- tcl8.4-8.4.19.orig/debian/tcl8.4.postinst +++ tcl8.4-8.4.19/debian/tcl8.4.postinst @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +if [ "$1" = "configure" ]; then + update-alternatives --install /usr/bin/tclsh tclsh /usr/bin/tclsh8.4 841 \ + --slave /usr/share/man/man1/tclsh.1.gz tclsh.1 \ + /usr/share/man/man1/tclsh8.4.1.gz +fi + +#DEBHELPER# --- tcl8.4-8.4.19.orig/debian/tcl8.4-dev.docs +++ tcl8.4-8.4.19/debian/tcl8.4-dev.docs @@ -0,0 +1 @@ +debian/README.TCL_INC --- tcl8.4-8.4.19.orig/debian/README.Debian +++ tcl8.4-8.4.19/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. --- tcl8.4-8.4.19.orig/debian/shlibs.local +++ tcl8.4-8.4.19/debian/shlibs.local @@ -0,0 +1 @@ +libtcl8.4 1 --- tcl8.4-8.4.19.orig/debian/watch +++ tcl8.4-8.4.19/debian/watch @@ -0,0 +1,6 @@ +# Watch control file for uscan + +# Compulsory line, this is a version 3 file +version=3 + +http://sf.net/tcl/tcl(8\.4\.[\d.]*)(?:-src)?.tar.gz --- tcl8.4-8.4.19.orig/debian/copyright +++ tcl8.4-8.4.19/debian/copyright @@ -0,0 +1,141 @@ +This package was originally debianized by David Engel +from sources obtained at http://prdownloads.sourceforge.net/tcl + +List of copyright holders mentioned in individual files: + +Copyright 1983, 1988-1994 The Regents of the University of California +Copyright 1991-1999 Karl Lehenbauer and Mark Diekhans +Copyright 1992-1996 Free Software Foundation, Inc. +Copyright 1993-1994 Lockheed Missle & Space Company, AI Center +Copyright 1993-1997 Bell Labs Innovations for Lucent Technologies +Copyright 1993-1997 Lucent Technologies +Copyright 1994-1998 Sun Microsystems, Inc. +Copyright 1995 General Electric Company +Copyright 1995 Dave Nebinger +Copyright 1995-1997 Roger E. Critchlow Jr +Copyright 1996 Lucent Technologies and Jim Ingham +Copyright 1997-2000 Ajuba Solutions +Copyright 1998-2000 Scriptics Corporation +Copyright 1998-1999 Henry Spencer +Copyright 1998 Paul Duffin +Copyright 1998 Mark Harrison +Copyright 1999 America Online, Inc. +Copyright 1999-2000 Andreas Kupries +Copyright 2000-2001 ActiveState Corporation, et al +Copyright 2001 ActiveState Tool Corp. +Copyright 2001-2002 Apple Computer, Inc. +Copyright 2001-2002 ActiveState Corporation +Copyright 2001-2002 Vincent Darley +Copyright 2001-2002 Donal K. Fellows +Copyright 2001-2003 Kevin B. Kenny +Copyright 2001-2002 David Gravereaux +Contributions from Don Porter, NIST, 2002-2003. (not subject to US copyright) +Copyright 2005 Tcl Core Team +Copyright 2005 Daniel A. Steffen + +Copyright: + +This software is copyrighted by the Regents of the University of +California, Sun Microsystems, Inc., Scriptics Corporation, +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. + +Several files are distributed under other conditions: + +compat/strftime.c: +/* + * strftime.c -- + * + * This file contains a modified version of the BSD 4.4 strftime + * function. + * + * This file is a modified version of the strftime.c file from the BSD 4.4 + * source. See the copyright notice below for details on redistribution + * restrictions. The "license.terms" file does not apply to this file. + * + * Changes 2002 Copyright (c) 2002 ActiveState Corporation. + * + * RCS: @(#) $Id: strftime.c,v 1.10.2.3 2005/11/04 18:18:04 kennykb Exp $ + */ + +/* + * Copyright (c) 1989 The Regents of the University of California. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * This product includes software developed by the University of + * California, Berkeley and its contributors. + * 4. Neither the name of the University nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +compat/dlfcn.h and unix/tclLoadAix.c: + * This file is subject to the following copyright notice, which is + * different from the notice used elsewhere in Tcl but rougly + * equivalent in meaning. + * + * Copyright (c) 1992,1993,1995,1996, Jens-Uwe Mager, Helios Software GmbH + * Not derived from licensed software. + * + * Permission is granted to freely use, copy, modify, and redistribute + * this software, provided that the author is not construed to be liable + * for any results of using the software, alterations are clearly marked + * as such, and this notice is not modified. + --- tcl8.4-8.4.19.orig/debian/tcl8.4.files +++ tcl8.4-8.4.19/debian/tcl8.4.files @@ -0,0 +1,4 @@ +usr/bin +usr/share/tcltk/tcl8.4 +usr/lib/*.so.* +usr/share/man/man1 --- tcl8.4-8.4.19.orig/debian/compat +++ tcl8.4-8.4.19/debian/compat @@ -0,0 +1 @@ +5 --- tcl8.4-8.4.19.orig/debian/tcl8.4-dev.files +++ tcl8.4-8.4.19/debian/tcl8.4-dev.files @@ -0,0 +1,3 @@ +usr/include +usr/lib/*.a +usr/lib/*.so --- tcl8.4-8.4.19.orig/debian/tcl8.4.lintian-override +++ tcl8.4-8.4.19/debian/tcl8.4.lintian-override @@ -0,0 +1 @@ +tcl8.4: package-name-doesnt-match-sonames --- tcl8.4-8.4.19.orig/debian/tcl8.4.docs +++ tcl8.4-8.4.19/debian/tcl8.4.docs @@ -0,0 +1,3 @@ +README +changes +ChangeLog.[12]* --- tcl8.4-8.4.19.orig/debian/tcl8.4.dirs +++ tcl8.4-8.4.19/debian/tcl8.4.dirs @@ -0,0 +1 @@ +usr/share/lintian/overrides --- tcl8.4-8.4.19.orig/debian/control +++ tcl8.4-8.4.19/debian/control @@ -0,0 +1,43 @@ +Source: tcl8.4 +Section: libs +Priority: optional +Maintainer: Debian Tcl/Tk Packagers +Uploaders: Chris Waters , Sergei Golovan +Build-Depends: debhelper (>= 5.0.0), quilt +Standards-Version: 3.8.3 +Homepage: http://www.tcl.tk/ + +Package: tcl8.4 +Section: interpreters +Priority: optional +Architecture: any +Depends: ${shlibs:Depends} +Conflicts: tcl74 (<= 7.4p3-2) +Provides: tclsh +Suggests: tclreadline +Description: Tcl (the Tool Command Language) v8.4 - run-time files + Tcl is a powerful, easy to use, embeddable, cross-platform interpreted + scripting language. This package contains everything you need to run + Tcl scripts and Tcl-enabled apps. This version includes thread support. + +Package: tcl8.4-doc +Section: doc +Priority: optional +Architecture: all +Suggests: tcl8.4 +Conflicts: tcldoc, tcl8.3-doc +Provides: tcldoc +Description: Tcl (the Tool Command Language) v8.4 - manual pages + Tcl is a powerful, easy-to-use, embeddable, cross-platform interpreted + scripting language. This package contains the man pages for Tcl commands. + +Package: tcl8.4-dev +Section: devel +Priority: optional +Architecture: any +Depends: tcl8.4 (= ${binary:Version}) +Suggests: tcl8.4-doc +Description: Tcl (the Tool Command Language) v8.4 - development files + Tcl is a powerful, easy-to-use, embeddable, cross-platform interpreted + scripting language. This package contains the headers and libraries + needed to embed or extend Tcl. --- tcl8.4-8.4.19.orig/debian/tcl8.4.prerm +++ tcl8.4-8.4.19/debian/tcl8.4.prerm @@ -0,0 +1,9 @@ +#!/bin/sh + +set -e + +if [ $1 != "upgrade" ] ; then + update-alternatives --remove tclsh /usr/bin/tclsh8.4 +fi + +#DEBHELPER# --- tcl8.4-8.4.19.orig/debian/README.source +++ tcl8.4-8.4.19/debian/README.source @@ -0,0 +1,8 @@ +This package uses quilt to manage all modifications to the upstream +source. Changes are stored in the source package as diffs in +debian/patches and applied during the build. + +To get detailed instructions on how to apply the series of patches +and modify them, please read /usr/share/doc/quilt/README.source + + -- Sergei Golovan Sat, 05 Sep 2009 11:33:56 +0400 --- tcl8.4-8.4.19.orig/debian/tcl8.4-dev.preinst +++ tcl8.4-8.4.19/debian/tcl8.4-dev.preinst @@ -0,0 +1,16 @@ +#!/bin/sh + +set -e + +# remove old symlink if it's still hanging around. +if [ -L /usr/share/doc/tcl8.4-dev ]; then + rm -f /usr/share/doc/tcl8.4-dev +fi + +if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt-nl "8.4.16-2"; then + update-alternatives --remove tcl.m4 /usr/lib/tcl8.4/tcl.m4 + # We really want to remove this alternative + update-alternatives --auto tcl.m4 >/dev/null || true +fi + +#DEBHELPER# --- tcl8.4-8.4.19.orig/debian/tcl8.4-doc.files +++ tcl8.4-8.4.19/debian/tcl8.4-doc.files @@ -0,0 +1 @@ +usr/share/man/man3 --- tcl8.4-8.4.19.orig/debian/tcl8.4-dev.dirs +++ tcl8.4-8.4.19/debian/tcl8.4-dev.dirs @@ -0,0 +1,3 @@ +usr/lib/tcl8.4 +usr/share/aclocal +usr/share/tcltk/tcl8.4 --- tcl8.4-8.4.19.orig/debian/patches/tclpackagepath.diff +++ tcl8.4-8.4.19/debian/patches/tclpackagepath.diff @@ -0,0 +1,32 @@ +Patch by Sergei Golovan allows to specify TCL_PACKAGE_PATH at configure stage +without adding /usr/lib to it. It helps to put the policy compliant value to +::tcl_pkgPath variable and to TCL_PACKAGE_PATH variable in tclConfig.sh. + +--- tcl8.4-8.4.19.orig/unix/configure ++++ tcl8.4-8.4.19/unix/configure +@@ -9281,9 +9281,9 @@ + test -z "$TCL_PACKAGE_PATH" && \ + TCL_PACKAGE_PATH="~/Library/Tcl /Library/Tcl /Network/Library/Tcl /System/Library/Tcl ~/Library/Frameworks /Library/Frameworks /Network/Library/Frameworks /System/Library/Frameworks" + elif test "$prefix" != "$exec_prefix"; then +- TCL_PACKAGE_PATH="${libdir} ${prefix}/lib ${TCL_PACKAGE_PATH}" ++ test -z "$TCL_PACKAGE_PATH" && TCL_PACKAGE_PATH="${libdir} ${prefix}/lib" + else +- TCL_PACKAGE_PATH="${prefix}/lib ${TCL_PACKAGE_PATH}" ++ test -z "$TCL_PACKAGE_PATH" && TCL_PACKAGE_PATH="${prefix}/lib" + fi + + #-------------------------------------------------------------------- +--- tcl8.4-8.4.19.orig/unix/configure.in ++++ tcl8.4-8.4.19/unix/configure.in +@@ -670,9 +670,9 @@ + test -z "$TCL_PACKAGE_PATH" && \ + TCL_PACKAGE_PATH="~/Library/Tcl /Library/Tcl /Network/Library/Tcl /System/Library/Tcl ~/Library/Frameworks /Library/Frameworks /Network/Library/Frameworks /System/Library/Frameworks" + elif test "$prefix" != "$exec_prefix"; then +- TCL_PACKAGE_PATH="${libdir} ${prefix}/lib ${TCL_PACKAGE_PATH}" ++ test -z "$TCL_PACKAGE_PATH" && TCL_PACKAGE_PATH="${libdir} ${prefix}/lib" + else +- TCL_PACKAGE_PATH="${prefix}/lib ${TCL_PACKAGE_PATH}" ++ test -z "$TCL_PACKAGE_PATH" && TCL_PACKAGE_PATH="${prefix}/lib" + fi + + #-------------------------------------------------------------------- --- tcl8.4-8.4.19.orig/debian/patches/manpages.diff +++ tcl8.4-8.4.19/debian/patches/manpages.diff @@ -0,0 +1,23 @@ +Patch by Chris Waters fixes installing of several manual pages which +aren't installed by upstream script but are referenced inside other +manual pages. + +--- tcl8.4-8.4.19.orig/unix/installManPage ++++ tcl8.4-8.4.19/unix/installManPage +@@ -49,7 +49,16 @@ + }' $MANPAGE` + + SECTION=`echo $MANPAGE | sed 's/.*\(.\)$/\1/'` ++NAME=`basename $MANPAGE .$SECTION` + SRCDIR=`dirname $MANPAGE` ++ ++SPECIALS="DString Thread Notifier RegExp" ++for n in $SPECIALS; do ++ if [ "$NAME" = "$n" ] ; then ++ NAMES="$n $NAMES" ++ fi ++done ++ + FIRST="" + for f in $NAMES; do + f=$f.$SECTION$SUFFIX --- tcl8.4-8.4.19.orig/debian/patches/tcllibrary.diff +++ tcl8.4-8.4.19/debian/patches/tcllibrary.diff @@ -0,0 +1,33 @@ +--- tcl8.4-8.4.19.orig/unix/configure ++++ tcl8.4-8.4.19/unix/configure +@@ -9150,7 +9150,7 @@ + DBGX='${TCL_DBGX}' + eval "TCL_LIB_FILE=${TCL_LIB_FILE}" + +-TCL_LIBRARY='$(prefix)/lib/tcl$(VERSION)' ++test -z "$TCL_LIBRARY" && TCL_LIBRARY='$(prefix)/lib/tcl$(VERSION)' + PRIVATE_INCLUDE_DIR='$(includedir)' + HTML_DIR='$(DISTDIR)/html' + +--- tcl8.4-8.4.19.orig/unix/configure.in ++++ tcl8.4-8.4.19/unix/configure.in +@@ -570,7 +570,7 @@ + DBGX='${TCL_DBGX}' + eval "TCL_LIB_FILE=${TCL_LIB_FILE}" + +-TCL_LIBRARY='$(prefix)/lib/tcl$(VERSION)' ++test -z "$TCL_LIBRARY" && TCL_LIBRARY='$(prefix)/lib/tcl$(VERSION)' + PRIVATE_INCLUDE_DIR='$(includedir)' + HTML_DIR='$(DISTDIR)/html' + +--- tcl8.4-8.4.19.orig/library/init.tcl ++++ tcl8.4-8.4.19/library/init.tcl +@@ -49,7 +49,7 @@ + namespace eval tcl { + variable Dir + if {[info library] ne ""} { +- foreach Dir [list [info library] [file dirname [info library]]] { ++ foreach Dir [list [info library]] { + if {[lsearch -exact $::auto_path $Dir] < 0} { + lappend ::auto_path $Dir + } --- tcl8.4-8.4.19.orig/debian/patches/non-linux.diff +++ tcl8.4-8.4.19/debian/patches/non-linux.diff @@ -0,0 +1,45 @@ +Patch by Sergei Golovan (originally by Mike Markley and Chris Waters) fixes +building on non-linux Debian architectures. + +--- tcl8.4-8.4.19.orig/unix/configure ++++ tcl8.4-8.4.19/unix/configure +@@ -2506,6 +2506,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 + +@@ -3061,7 +3064,7 @@ + fi + fi + ;; +- Linux*) ++ Linux*|GNU*|NetBSD-Debian) + SHLIB_CFLAGS="-fPIC" + SHLIB_LD_LIBS='${LIBS}' + SHLIB_SUFFIX=".so" +--- tcl8.4-8.4.19.orig/unix/tcl.m4 ++++ tcl8.4-8.4.19/unix/tcl.m4 +@@ -898,6 +898,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 + ]) +@@ -1335,7 +1338,7 @@ + fi + fi + ;; +- Linux*) ++ Linux*|GNU*|NetBSD-Debian) + SHLIB_CFLAGS="-fPIC" + SHLIB_LD_LIBS='${LIBS}' + SHLIB_SUFFIX=".so" --- tcl8.4-8.4.19.orig/debian/patches/tclinc.diff +++ tcl8.4-8.4.19/debian/patches/tclinc.diff @@ -0,0 +1,64 @@ +Patch by Chris Waters and Sergei Golovan. + +It sets paths which are normally point to a directory with Tcl +sources to a subdirectory of /usr/include/tcl8.4 (debian/rules puts +private Tcl headers there). + +Also, it allows to find tclConfig.sh in /usr/share/tcltk/tcl8.4 and tkConfig.sh +in /usr/share/tcltk/tk8.4 where they are located in Debian installation. + +--- tcl8.4-8.4.19.orig/unix/tcl.m4 ++++ tcl8.4-8.4.19/unix/tcl.m4 +@@ -83,6 +83,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.4 2>/dev/null` \ + `ls -d /usr/lib 2>/dev/null` \ + ; do + if test -f "$i/tclConfig.sh" ; then +@@ -203,6 +204,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.4 2>/dev/null` \ + `ls -d /usr/lib 2>/dev/null` \ + ; do + if test -f "$i/tkConfig.sh" ; then +--- tcl8.4-8.4.19.orig/unix/tclConfig.sh.in ++++ tcl8.4-8.4.19/unix/tclConfig.sh.in +@@ -111,7 +111,7 @@ + + # String to pass to linker to pick up the Tcl library from its + # build directory. +-TCL_BUILD_LIB_SPEC='@TCL_BUILD_LIB_SPEC@' ++TCL_BUILD_LIB_SPEC='@TCL_LIB_SPEC@' + + # String to pass to linker to pick up the Tcl library from its + # installed directory. +@@ -146,7 +146,7 @@ + # different place than the directory containing the source files, this + # points to the location of the sources, not the location where Tcl was + # compiled. +-TCL_SRC_DIR='@TCL_SRC_DIR@' ++TCL_SRC_DIR='@includedir@/tcl-private' + + # List of standard directories in which to look for packages during + # "package require" commands. Contains the "prefix" directory plus also +@@ -164,14 +164,14 @@ + + # String to pass to linker to pick up the Tcl stub library from its + # build directory. +-TCL_BUILD_STUB_LIB_SPEC='@TCL_BUILD_STUB_LIB_SPEC@' ++TCL_BUILD_STUB_LIB_SPEC='@TCL_STUB_LIB_SPEC@' + + # String to pass to linker to pick up the Tcl stub library from its + # installed directory. + TCL_STUB_LIB_SPEC='@TCL_STUB_LIB_SPEC@' + + # Path to the Tcl stub library in the build directory. +-TCL_BUILD_STUB_LIB_PATH='@TCL_BUILD_STUB_LIB_PATH@' ++TCL_BUILD_STUB_LIB_PATH='@TCL_STUB_LIB_PATH@' + + # Path to the Tcl stub library in the install directory. + TCL_STUB_LIB_PATH='@TCL_STUB_LIB_PATH@' --- tcl8.4-8.4.19.orig/debian/patches/rpath.diff +++ tcl8.4-8.4.19/debian/patches/rpath.diff @@ -0,0 +1,41 @@ +Patch by Chris Waters removes -rpath from search flags and adds -soname +to library build options. + +--- tcl8.4-8.4.19.orig/unix/configure ++++ tcl8.4-8.4.19/unix/configure +@@ -3072,12 +3072,15 @@ + # 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 ++ TCL_SHLIB_LD_EXTRAS="-Wl,-soname,\${TCL_LIB_FILE}.0" ++ + if test "$have_dl" = yes; then + SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' + DL_OBJS="tclLoadDl.o" + DL_LIBS="-ldl" + LDFLAGS="$LDFLAGS -Wl,--export-dynamic" +- CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' ++ CC_SEARCH_FLAGS="" + LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} + else + ac_safe=`echo "dld.h" | sed 'y%./+-%__p_%'` +--- tcl8.4-8.4.19.orig/unix/tcl.m4 ++++ tcl8.4-8.4.19/unix/tcl.m4 +@@ -1346,12 +1346,15 @@ + # 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 ++ TCL_SHLIB_LD_EXTRAS="-Wl,-soname,\${TCL_LIB_FILE}.0" ++ + if test "$have_dl" = yes; then + SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' + DL_OBJS="tclLoadDl.o" + DL_LIBS="-ldl" + LDFLAGS="$LDFLAGS -Wl,--export-dynamic" +- CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' ++ CC_SEARCH_FLAGS="" + LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} + else + AC_CHECK_HEADER(dld.h, [ --- tcl8.4-8.4.19.orig/debian/patches/series +++ tcl8.4-8.4.19/debian/patches/series @@ -0,0 +1,6 @@ +tcllibrary.diff +tclpackagepath.diff +tclinc.diff +rpath.diff +non-linux.diff +manpages.diff