[Pkg-tcltk-commits] r1318 - in tcl8.6/tags: . 8.6.0-1/debian 8.6.0-1/debian/patches

sgolovan at alioth.debian.org sgolovan at alioth.debian.org
Thu Dec 20 16:42:49 UTC 2012


Author: sgolovan
Date: 2012-12-20 16:42:49 +0000 (Thu, 20 Dec 2012)
New Revision: 1318

Added:
   tcl8.6/tags/8.6.0-1/
   tcl8.6/tags/8.6.0-1/debian/changelog
   tcl8.6/tags/8.6.0-1/debian/patches/confsearch.diff
   tcl8.6/tags/8.6.0-1/debian/patches/manpages.diff
   tcl8.6/tags/8.6.0-1/debian/patches/non-linux.diff
   tcl8.6/tags/8.6.0-1/debian/patches/rpath.diff
   tcl8.6/tags/8.6.0-1/debian/patches/tcllibrary.diff
   tcl8.6/tags/8.6.0-1/debian/patches/tclpackagepath.diff
   tcl8.6/tags/8.6.0-1/debian/patches/tclport.diff
   tcl8.6/tags/8.6.0-1/debian/rules
Removed:
   tcl8.6/tags/8.6.0-1/debian/changelog
   tcl8.6/tags/8.6.0-1/debian/patches/confsearch.diff
   tcl8.6/tags/8.6.0-1/debian/patches/manpages.diff
   tcl8.6/tags/8.6.0-1/debian/patches/non-linux.diff
   tcl8.6/tags/8.6.0-1/debian/patches/rpath.diff
   tcl8.6/tags/8.6.0-1/debian/patches/tcllibrary.diff
   tcl8.6/tags/8.6.0-1/debian/patches/tclpackagepath.diff
   tcl8.6/tags/8.6.0-1/debian/patches/tclport.diff
   tcl8.6/tags/8.6.0-1/debian/rules
Log:
[svn-buildpackage] Tagging tcl8.6 8.6.0-1

Deleted: tcl8.6/tags/8.6.0-1/debian/changelog
===================================================================
--- tcl8.6/trunk/debian/changelog	2012-08-22 13:31:23 UTC (rev 1296)
+++ tcl8.6/tags/8.6.0-1/debian/changelog	2012-12-20 16:42:49 UTC (rev 1318)
@@ -1,98 +0,0 @@
-tcl8.6 (8.6.0~b2-3) UNRELEASED; urgency=low
-
-  * NOT RELEASED YET
-
- -- Sergei Golovan <sgolovan at debian.org>  Mon, 28 May 2012 18:26:18 +0400
-
-tcl8.6 (8.6.0~b2-2) experimental; urgency=low
-
-  * Install library(3tcl), packagens(3tcl), pkgMkIndex(3tcl) and safe(3tcl)
-    manpages despite of upstream renaming them because they are referenced
-    from the other pages.
-  * Don't break the build if tdbc headers aren't in the tarball (helps
-    to build the package using sources from the upstream repository).
-  * Removed Chris Waters wrom the uploaders list (closes: #664113).
-  * Renamed suggested dependency to tcl-tclreadline.
-  * Switched to 3.0 (quilt) source package format.
-  * Bumped debhelper compatibility version to 8.
-  * Added hardening build flags using dpkg-buildflags.
-  * Bumped standards version to 3.9.3.
-
- -- Sergei Golovan <sgolovan at debian.org>  Mon, 28 May 2012 18:13:35 +0400
-
-tcl8.6 (8.6.0~b2-1) experimental; urgency=low
-
-  * New upstream beta release.
-
- -- Sergei Golovan <sgolovan at debian.org>  Mon, 08 Aug 2011 23:11:31 +0400
-
-tcl8.6 (8.6.0~b2~rc4-1) experimental; urgency=low
-
-  * New upstream beta release candidate.
-
- -- Sergei Golovan <sgolovan at debian.org>  Sun, 07 Aug 2011 12:28:21 +0400
-
-tcl8.6 (8.6.0~b2~rc0-1) experimental; urgency=low
-
-  * New upstream beta release candidate.
-  * Moved /usr/share/tcltk/tcl8.6/tclConfig.sh back to the /usr/lib/tcl8.6
-    directory because it is architecture dependent.
-  * Added ${misc:Depends} to debian/control.
-  * Added README.source which explains how to apply quilt patches.
-  * Bumped standards version to 3.9.2.
-
- -- Sergei Golovan <sgolovan at debian.org>  Thu, 21 Jul 2011 10:30:26 +0400
-
-tcl8.6 (8.6.0~b1-4) experimental; urgency=low
-
-  * Removed tcl8.6-tdbc package because TDBC is to be packaged separately.
-  * Added zlib1g-dev to build dependencies to make Tcl use the system-wide
-    Zlib library.
-
- -- Sergei Golovan <sgolovan at debian.org>  Thu, 29 Jul 2010 09:50:49 +0400
-
-tcl8.6 (8.6.0~b1-3) experimental; urgency=low
-
-  * Don't override CFLAGS in make call and supply it to configure script
-    as suggested by Anders Kaseorg (closes: #510153).
-
- -- Sergei Golovan <sgolovan at debian.org>  Mon, 18 May 2009 09:35:52 +0400
-
-tcl8.6 (8.6.0~b1-2) experimental; urgency=low
-
-  * Added a compiler directive which helps to build tdbc extension
-    (closes: #510153).
-  * Don't remove tclsh alternative in case of package upgrade because the
-    manually installed alternative is also removed which isn't desirable.
-
- -- Sergei Golovan <sgolovan at debian.org>  Sun, 01 Mar 2009 10:36:35 +0300
-
-tcl8.6 (8.6.0~b1-1) experimental; urgency=low
-
-  * New upstream beta release.
-  * Separated new TDBC package which is bundled with the Tcl distribution to
-    tcl8.6-tdbc package, and added directory /usr/lib/tcltk/tcl8.6 to the
-    list of paths where Tcl packages are searched.
-
- -- Sergei Golovan <sgolovan at debian.org>  Sat, 27 Dec 2008 13:47:14 +0300
-
-tcl8.6 (8.6.0~a3-1) experimental; urgency=low
-
-  * New upstream alpha release.
-
- -- Sergei Golovan <sgolovan at debian.org>  Sat, 11 Oct 2008 02:17:42 +0400
-
-tcl8.6 (8.6.0~a2-1) experimental; urgency=low
-
-  * New upstream alpha release.
-  * Restored DLL unloading for hppa and kfreebsd architectures because this
-    bug was worked around in glibc.
-
- -- Sergei Golovan <sgolovan at debian.org>  Sat, 23 Aug 2008 12:19:37 +0400
-
-tcl8.6 (8.6.0~a1-1) experimental; urgency=low
-
-  * Initial alpha release (closes: #488653).
-
- -- Sergei Golovan <sgolovan at debian.org>  Thu, 03 Jul 2008 21:27:33 +0400
-

Copied: tcl8.6/tags/8.6.0-1/debian/changelog (from rev 1317, tcl8.6/trunk/debian/changelog)
===================================================================
--- tcl8.6/tags/8.6.0-1/debian/changelog	                        (rev 0)
+++ tcl8.6/tags/8.6.0-1/debian/changelog	2012-12-20 16:42:49 UTC (rev 1318)
@@ -0,0 +1,104 @@
+tcl8.6 (8.6.0-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Sergei Golovan <sgolovan at debian.org>  Thu, 20 Dec 2012 20:24:41 +0400
+
+tcl8.6 (8.6.0~b3-1) experimental; urgency=low
+
+  * New upstream beta release.
+
+ -- Sergei Golovan <sgolovan at debian.org>  Thu, 20 Sep 2012 09:04:01 +0400
+
+tcl8.6 (8.6.0~b2-2) experimental; urgency=low
+
+  * Install library(3tcl), packagens(3tcl), pkgMkIndex(3tcl) and safe(3tcl)
+    manpages despite of upstream renaming them because they are referenced
+    from the other pages.
+  * Don't break the build if tdbc headers aren't in the tarball (helps
+    to build the package using sources from the upstream repository).
+  * Removed Chris Waters wrom the uploaders list (closes: #664113).
+  * Renamed suggested dependency to tcl-tclreadline.
+  * Switched to 3.0 (quilt) source package format.
+  * Bumped debhelper compatibility version to 8.
+  * Added hardening build flags using dpkg-buildflags.
+  * Bumped standards version to 3.9.3.
+
+ -- Sergei Golovan <sgolovan at debian.org>  Mon, 28 May 2012 18:13:35 +0400
+
+tcl8.6 (8.6.0~b2-1) experimental; urgency=low
+
+  * New upstream beta release.
+
+ -- Sergei Golovan <sgolovan at debian.org>  Mon, 08 Aug 2011 23:11:31 +0400
+
+tcl8.6 (8.6.0~b2~rc4-1) experimental; urgency=low
+
+  * New upstream beta release candidate.
+
+ -- Sergei Golovan <sgolovan at debian.org>  Sun, 07 Aug 2011 12:28:21 +0400
+
+tcl8.6 (8.6.0~b2~rc0-1) experimental; urgency=low
+
+  * New upstream beta release candidate.
+  * Moved /usr/share/tcltk/tcl8.6/tclConfig.sh back to the /usr/lib/tcl8.6
+    directory because it is architecture dependent.
+  * Added ${misc:Depends} to debian/control.
+  * Added README.source which explains how to apply quilt patches.
+  * Bumped standards version to 3.9.2.
+
+ -- Sergei Golovan <sgolovan at debian.org>  Thu, 21 Jul 2011 10:30:26 +0400
+
+tcl8.6 (8.6.0~b1-4) experimental; urgency=low
+
+  * Removed tcl8.6-tdbc package because TDBC is to be packaged separately.
+  * Added zlib1g-dev to build dependencies to make Tcl use the system-wide
+    Zlib library.
+
+ -- Sergei Golovan <sgolovan at debian.org>  Thu, 29 Jul 2010 09:50:49 +0400
+
+tcl8.6 (8.6.0~b1-3) experimental; urgency=low
+
+  * Don't override CFLAGS in make call and supply it to configure script
+    as suggested by Anders Kaseorg (closes: #510153).
+
+ -- Sergei Golovan <sgolovan at debian.org>  Mon, 18 May 2009 09:35:52 +0400
+
+tcl8.6 (8.6.0~b1-2) experimental; urgency=low
+
+  * Added a compiler directive which helps to build tdbc extension
+    (closes: #510153).
+  * Don't remove tclsh alternative in case of package upgrade because the
+    manually installed alternative is also removed which isn't desirable.
+
+ -- Sergei Golovan <sgolovan at debian.org>  Sun, 01 Mar 2009 10:36:35 +0300
+
+tcl8.6 (8.6.0~b1-1) experimental; urgency=low
+
+  * New upstream beta release.
+  * Separated new TDBC package which is bundled with the Tcl distribution to
+    tcl8.6-tdbc package, and added directory /usr/lib/tcltk/tcl8.6 to the
+    list of paths where Tcl packages are searched.
+
+ -- Sergei Golovan <sgolovan at debian.org>  Sat, 27 Dec 2008 13:47:14 +0300
+
+tcl8.6 (8.6.0~a3-1) experimental; urgency=low
+
+  * New upstream alpha release.
+
+ -- Sergei Golovan <sgolovan at debian.org>  Sat, 11 Oct 2008 02:17:42 +0400
+
+tcl8.6 (8.6.0~a2-1) experimental; urgency=low
+
+  * New upstream alpha release.
+  * Restored DLL unloading for hppa and kfreebsd architectures because this
+    bug was worked around in glibc.
+
+ -- Sergei Golovan <sgolovan at debian.org>  Sat, 23 Aug 2008 12:19:37 +0400
+
+tcl8.6 (8.6.0~a1-1) experimental; urgency=low
+
+  * Initial alpha release (closes: #488653).
+
+ -- Sergei Golovan <sgolovan at debian.org>  Thu, 03 Jul 2008 21:27:33 +0400
+

Deleted: tcl8.6/tags/8.6.0-1/debian/patches/confsearch.diff
===================================================================
--- tcl8.6/trunk/debian/patches/confsearch.diff	2012-08-22 13:31:23 UTC (rev 1296)
+++ tcl8.6/tags/8.6.0-1/debian/patches/confsearch.diff	2012-12-20 16:42:49 UTC (rev 1318)
@@ -1,22 +0,0 @@
-Patch by Sergei Golovan allows to find tclConfig.sh in /usr/lib/tcl8.6
-and tkConfig.sh in /usr/lib/tk8.6 where they are located in Debian
-installation.
-
---- tcl8.6b2.orig/unix/tcl.m4
-+++ tcl8.6b2/unix/tcl.m4
-@@ -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/lib/tcl8.6 2>/dev/null` \
- 			`ls -d /usr/lib 2>/dev/null` \
- 			`ls -d /usr/lib64 2>/dev/null` \
- 			; do
-@@ -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/lib/tk8.6 2>/dev/null` \
- 			`ls -d /usr/lib 2>/dev/null` \
- 			`ls -d /usr/lib64 2>/dev/null` \
- 			; do

Copied: tcl8.6/tags/8.6.0-1/debian/patches/confsearch.diff (from rev 1316, tcl8.6/trunk/debian/patches/confsearch.diff)
===================================================================
--- tcl8.6/tags/8.6.0-1/debian/patches/confsearch.diff	                        (rev 0)
+++ tcl8.6/tags/8.6.0-1/debian/patches/confsearch.diff	2012-12-20 16:42:49 UTC (rev 1318)
@@ -0,0 +1,22 @@
+Patch by Sergei Golovan allows to find tclConfig.sh in /usr/lib/tcl8.6
+and tkConfig.sh in /usr/lib/tk8.6 where they are located in Debian
+installation.
+
+--- tcl8.6-8.6.0.orig/unix/tcl.m4
++++ tcl8.6-8.6.0/unix/tcl.m4
+@@ -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/lib/tcl8.6 2>/dev/null` \
+ 			`ls -d /usr/lib 2>/dev/null` \
+ 			`ls -d /usr/lib64 2>/dev/null` \
+ 			; do
+@@ -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/lib/tk8.6 2>/dev/null` \
+ 			`ls -d /usr/lib 2>/dev/null` \
+ 			`ls -d /usr/lib64 2>/dev/null` \
+ 			; do

Deleted: tcl8.6/tags/8.6.0-1/debian/patches/manpages.diff
===================================================================
--- tcl8.6/trunk/debian/patches/manpages.diff	2012-08-22 13:31:23 UTC (rev 1296)
+++ tcl8.6/tags/8.6.0-1/debian/patches/manpages.diff	2012-12-20 16:42:49 UTC (rev 1318)
@@ -1,27 +0,0 @@
-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.6b2.orig/unix/installManPage
-+++ tcl8.6b2/unix/installManPage
-@@ -92,12 +92,20 @@
- 	exit 2 ;;
- esac
- 
-+Name=`basename $ManPage .$Section`
- SrcDir=`dirname $ManPage`
- 
- ########################################################################
- ### Process Page to Create Target Pages
- ###
- 
-+Specials="DString Thread Notifier RegExp library packagens pkgMkIndex safesock"
-+for n in $Specials; do
-+    if [ "$Name" = "$n" ] ; then
-+	Names="$n $Names"
-+    fi
-+done
-+
- First=""
- for Target in $Names; do
-     Target=$Target.$Section$Suffix

Copied: tcl8.6/tags/8.6.0-1/debian/patches/manpages.diff (from rev 1316, tcl8.6/trunk/debian/patches/manpages.diff)
===================================================================
--- tcl8.6/tags/8.6.0-1/debian/patches/manpages.diff	                        (rev 0)
+++ tcl8.6/tags/8.6.0-1/debian/patches/manpages.diff	2012-12-20 16:42:49 UTC (rev 1318)
@@ -0,0 +1,27 @@
+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.6-8.6.0.orig/unix/installManPage
++++ tcl8.6-8.6.0/unix/installManPage
+@@ -92,12 +92,20 @@
+ 	exit 2 ;;
+ esac
+ 
++Name=`basename $ManPage .$Section`
+ SrcDir=`dirname $ManPage`
+ 
+ ########################################################################
+ ### Process Page to Create Target Pages
+ ###
+ 
++Specials="DString Thread Notifier RegExp library packagens pkgMkIndex safesock"
++for n in $Specials; do
++    if [ "$Name" = "$n" ] ; then
++	Names="$n $Names"
++    fi
++done
++
+ First=""
+ for Target in $Names; do
+     Target=$Target.$Section$Suffix

Deleted: tcl8.6/tags/8.6.0-1/debian/patches/non-linux.diff
===================================================================
--- tcl8.6/trunk/debian/patches/non-linux.diff	2012-08-22 13:31:23 UTC (rev 1296)
+++ tcl8.6/tags/8.6.0-1/debian/patches/non-linux.diff	2012-12-20 16:42:49 UTC (rev 1318)
@@ -1,55 +0,0 @@
-Patch by Sergei Golovan (originally by Mike Markley and Chris Waters) fixes
-building on non-linux Debian architectures.
-
---- tcl8.6b2.orig/unix/configure
-+++ tcl8.6b2/unix/configure
-@@ -6659,6 +6659,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
-+		    system=NetBSD-Debian
-+		fi
- 	    fi
- 	fi
- 
-@@ -7495,7 +7498,7 @@
- fi
- 
- 	    ;;
--	Linux*)
-+	Linux*|GNU*|NetBSD-Debian)
- 	    SHLIB_CFLAGS="-fPIC"
- 	    SHLIB_SUFFIX=".so"
- 
---- tcl8.6b2.orig/unix/Makefile.in
-+++ tcl8.6b2/unix/Makefile.in
-@@ -178,6 +178,7 @@
- SHLIB_LD		= @SHLIB_LD@
- SHLIB_CFLAGS		= @SHLIB_CFLAGS@ -DBUILD_tcl
- SHLIB_LD_LIBS		= @SHLIB_LD_LIBS@
-+SHLIB_LD_FLAGS		= @SHLIB_LD_FLAGS@
- TCL_SHLIB_LD_EXTRAS	= @TCL_SHLIB_LD_EXTRAS@
- 
- SHLIB_SUFFIX		= @SHLIB_SUFFIX@
---- tcl8.6b2.orig/unix/tcl.m4
-+++ tcl8.6b2/unix/tcl.m4
-@@ -925,6 +925,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
-     ])
-@@ -1379,7 +1382,7 @@
- 	        ])
- 	    ])
- 	    ;;
--	Linux*)
-+	Linux*|GNU*|NetBSD-Debian)
- 	    SHLIB_CFLAGS="-fPIC"
- 	    SHLIB_SUFFIX=".so"
- 

Copied: tcl8.6/tags/8.6.0-1/debian/patches/non-linux.diff (from rev 1316, tcl8.6/trunk/debian/patches/non-linux.diff)
===================================================================
--- tcl8.6/tags/8.6.0-1/debian/patches/non-linux.diff	                        (rev 0)
+++ tcl8.6/tags/8.6.0-1/debian/patches/non-linux.diff	2012-12-20 16:42:49 UTC (rev 1318)
@@ -0,0 +1,55 @@
+Patch by Sergei Golovan (originally by Mike Markley and Chris Waters) fixes
+building on non-linux Debian architectures.
+
+--- tcl8.6-8.6.0.orig/unix/configure
++++ tcl8.6-8.6.0/unix/configure
+@@ -6665,6 +6665,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
++		    system=NetBSD-Debian
++		fi
+ 	    fi
+ 	fi
+ 
+@@ -7577,7 +7580,7 @@
+ fi
+ 
+ 	    ;;
+-	Linux*)
++	Linux*|GNU*|NetBSD-Debian)
+ 	    SHLIB_CFLAGS="-fPIC"
+ 	    SHLIB_SUFFIX=".so"
+ 
+--- tcl8.6-8.6.0.orig/unix/Makefile.in
++++ tcl8.6-8.6.0/unix/Makefile.in
+@@ -179,6 +179,7 @@
+ SHLIB_LD		= @SHLIB_LD@
+ SHLIB_CFLAGS		= @SHLIB_CFLAGS@ -DBUILD_tcl
+ SHLIB_LD_LIBS		= @SHLIB_LD_LIBS@
++SHLIB_LD_FLAGS		= @SHLIB_LD_FLAGS@
+ TCL_SHLIB_LD_EXTRAS	= @TCL_SHLIB_LD_EXTRAS@
+ 
+ SHLIB_SUFFIX		= @SHLIB_SUFFIX@
+--- tcl8.6-8.6.0.orig/unix/tcl.m4
++++ tcl8.6-8.6.0/unix/tcl.m4
+@@ -924,6 +924,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
+     ])
+@@ -1400,7 +1403,7 @@
+ 	        ])
+ 	    ])
+ 	    ;;
+-	Linux*)
++	Linux*|GNU*|NetBSD-Debian)
+ 	    SHLIB_CFLAGS="-fPIC"
+ 	    SHLIB_SUFFIX=".so"
+ 

Deleted: tcl8.6/tags/8.6.0-1/debian/patches/rpath.diff
===================================================================
--- tcl8.6/trunk/debian/patches/rpath.diff	2012-08-22 13:31:23 UTC (rev 1296)
+++ tcl8.6/tags/8.6.0-1/debian/patches/rpath.diff	2012-12-20 16:42:49 UTC (rev 1318)
@@ -1,41 +0,0 @@
-Patch by Chris Waters removes -rpath from search flags and adds -soname
-to library build options.
-
---- tcl8.6b2.orig/unix/configure
-+++ tcl8.6b2/unix/configure
-@@ -7505,6 +7505,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
-+	    TCL_SHLIB_LD_EXTRAS="-Wl,-soname,\${TCL_LIB_FILE}.0"
-+
- 	    SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
- 	    DL_OBJS="tclLoadDl.o"
- 	    DL_LIBS="-ldl"
---- tcl8.6b2.orig/unix/Makefile.in
-+++ tcl8.6b2/unix/Makefile.in
-@@ -784,7 +784,10 @@
- 	    done;
- 	@echo "Installing $(LIB_FILE) to @DLL_INSTALL_DIR@/"
- 	@@INSTALL_LIB@
--	@chmod 555 "@DLL_INSTALL_DIR@"/$(LIB_FILE)
-+	mv "@DLL_INSTALL_DIR@"/$(LIB_FILE) "@DLL_INSTALL_DIR@"/$(LIB_FILE).0
-+	ln -sf $(LIB_FILE).0 "@DLL_INSTALL_DIR@"/$(LIB_FILE)
-+	ln -sf "@DLL_INSTALL_DIR@"/$(LIB_FILE).0 ./
-+	@chmod 555 "@DLL_INSTALL_DIR@"/$(LIB_FILE).0
- 	@echo "Installing ${TCL_EXE} as $(BIN_INSTALL_DIR)/tclsh$(VERSION)${EXE_SUFFIX}"
- 	@$(INSTALL_PROGRAM) ${TCL_EXE} "$(BIN_INSTALL_DIR)"/tclsh$(VERSION)${EXE_SUFFIX}
- 	@echo "Installing tclConfig.sh to $(CONFIG_INSTALL_DIR)/"
---- tcl8.6b2.orig/unix/tcl.m4
-+++ tcl8.6b2/unix/tcl.m4
-@@ -1389,6 +1389,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
-+	    TCL_SHLIB_LD_EXTRAS="-Wl,-soname,\${TCL_LIB_FILE}.0"
-+
- 	    SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
- 	    DL_OBJS="tclLoadDl.o"
- 	    DL_LIBS="-ldl"

Copied: tcl8.6/tags/8.6.0-1/debian/patches/rpath.diff (from rev 1316, tcl8.6/trunk/debian/patches/rpath.diff)
===================================================================
--- tcl8.6/tags/8.6.0-1/debian/patches/rpath.diff	                        (rev 0)
+++ tcl8.6/tags/8.6.0-1/debian/patches/rpath.diff	2012-12-20 16:42:49 UTC (rev 1318)
@@ -0,0 +1,41 @@
+Patch by Chris Waters removes -rpath from search flags and adds -soname
+to library build options.
+
+--- tcl8.6-8.6.0.orig/unix/configure
++++ tcl8.6-8.6.0/unix/configure
+@@ -7587,6 +7587,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
++	    TCL_SHLIB_LD_EXTRAS="-Wl,-soname,\${TCL_LIB_FILE}.0"
++
+ 	    SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
+ 	    DL_OBJS="tclLoadDl.o"
+ 	    DL_LIBS="-ldl"
+--- tcl8.6-8.6.0.orig/unix/Makefile.in
++++ tcl8.6-8.6.0/unix/Makefile.in
+@@ -794,7 +794,10 @@
+ 	fi
+ 	@echo "Installing $(LIB_FILE) to $(DLL_INSTALL_DIR)/"
+ 	@@INSTALL_LIB@
+-	@chmod 555 "$(DLL_INSTALL_DIR)/$(LIB_FILE)"
++	mv "$(DLL_INSTALL_DIR)/$(LIB_FILE)" "$(DLL_INSTALL_DIR)/$(LIB_FILE).0"
++	ln -sf $(LIB_FILE).0 "$(DLL_INSTALL_DIR)/$(LIB_FILE)"
++	ln -sf "$(DLL_INSTALL_DIR)/$(LIB_FILE).0" ./
++	@chmod 555 "$(DLL_INSTALL_DIR)/$(LIB_FILE).0"
+ 	@echo "Installing ${TCL_EXE} as $(BIN_INSTALL_DIR)/tclsh$(VERSION)${EXE_SUFFIX}"
+ 	@$(INSTALL_PROGRAM) ${TCL_EXE} "$(BIN_INSTALL_DIR)/tclsh$(VERSION)${EXE_SUFFIX}"
+ 	@echo "Installing tclConfig.sh to $(CONFIG_INSTALL_DIR)/"
+--- tcl8.6-8.6.0.orig/unix/tcl.m4
++++ tcl8.6-8.6.0/unix/tcl.m4
+@@ -1410,6 +1410,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
++	    TCL_SHLIB_LD_EXTRAS="-Wl,-soname,\${TCL_LIB_FILE}.0"
++
+ 	    SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
+ 	    DL_OBJS="tclLoadDl.o"
+ 	    DL_LIBS="-ldl"

Deleted: tcl8.6/tags/8.6.0-1/debian/patches/tcllibrary.diff
===================================================================
--- tcl8.6/trunk/debian/patches/tcllibrary.diff	2012-08-22 13:31:23 UTC (rev 1296)
+++ tcl8.6/tags/8.6.0-1/debian/patches/tcllibrary.diff	2012-12-20 16:42:49 UTC (rev 1318)
@@ -1,33 +0,0 @@
---- tcl8.6b2.orig/unix/configure
-+++ tcl8.6b2/unix/configure
-@@ -19217,7 +19217,7 @@
- 
- 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.6b2.orig/unix/configure.in
-+++ tcl8.6b2/unix/configure.in
-@@ -762,7 +762,7 @@
- 
- 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.6b2.orig/library/init.tcl
-+++ tcl8.6b2/library/init.tcl
-@@ -46,7 +46,7 @@
- }
- namespace eval tcl {
-     variable Dir
--    foreach Dir [list $::tcl_library [file dirname $::tcl_library]] {
-+    foreach Dir [list $::tcl_library] {
- 	if {$Dir ni $::auto_path} {
- 	    lappend ::auto_path $Dir
- 	}

Copied: tcl8.6/tags/8.6.0-1/debian/patches/tcllibrary.diff (from rev 1316, tcl8.6/trunk/debian/patches/tcllibrary.diff)
===================================================================
--- tcl8.6/tags/8.6.0-1/debian/patches/tcllibrary.diff	                        (rev 0)
+++ tcl8.6/tags/8.6.0-1/debian/patches/tcllibrary.diff	2012-12-20 16:42:49 UTC (rev 1318)
@@ -0,0 +1,33 @@
+--- tcl8.6-8.6.0.orig/unix/configure
++++ tcl8.6-8.6.0/unix/configure
+@@ -19348,7 +19348,7 @@
+ 
+ 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.6-8.6.0.orig/unix/configure.in
++++ tcl8.6-8.6.0/unix/configure.in
+@@ -790,7 +790,7 @@
+ 
+ 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.6-8.6.0.orig/library/init.tcl
++++ tcl8.6-8.6.0/library/init.tcl
+@@ -46,7 +46,7 @@
+ }
+ namespace eval tcl {
+     variable Dir
+-    foreach Dir [list $::tcl_library [file dirname $::tcl_library]] {
++    foreach Dir [list $::tcl_library] {
+ 	if {$Dir ni $::auto_path} {
+ 	    lappend ::auto_path $Dir
+ 	}

Deleted: tcl8.6/tags/8.6.0-1/debian/patches/tclpackagepath.diff
===================================================================
--- tcl8.6/trunk/debian/patches/tclpackagepath.diff	2012-08-22 13:31:23 UTC (rev 1296)
+++ tcl8.6/tags/8.6.0-1/debian/patches/tclpackagepath.diff	2012-12-20 16:42:49 UTC (rev 1318)
@@ -1,32 +0,0 @@
-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.6b2.orig/unix/configure
-+++ tcl8.6b2/unix/configure
-@@ -19348,9 +19348,9 @@
-     test -z "$TCL_MODULE_PATH"  && \
- 	TCL_MODULE_PATH="~/Library/Tcl /Library/Tcl /System/Library/Tcl"
- elif test "$prefix/lib" != "$libdir"; 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.6b2.orig/unix/configure.in
-+++ tcl8.6b2/unix/configure.in
-@@ -855,9 +855,9 @@
-     test -z "$TCL_MODULE_PATH"  && \
- 	TCL_MODULE_PATH="~/Library/Tcl /Library/Tcl /System/Library/Tcl"
- elif test "$prefix/lib" != "$libdir"; 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
- 
- #--------------------------------------------------------------------

Copied: tcl8.6/tags/8.6.0-1/debian/patches/tclpackagepath.diff (from rev 1316, tcl8.6/trunk/debian/patches/tclpackagepath.diff)
===================================================================
--- tcl8.6/tags/8.6.0-1/debian/patches/tclpackagepath.diff	                        (rev 0)
+++ tcl8.6/tags/8.6.0-1/debian/patches/tclpackagepath.diff	2012-12-20 16:42:49 UTC (rev 1318)
@@ -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.6-8.6.0.orig/unix/configure
++++ tcl8.6-8.6.0/unix/configure
+@@ -19479,9 +19479,9 @@
+     test -z "$TCL_MODULE_PATH"  && \
+ 	TCL_MODULE_PATH="~/Library/Tcl /Library/Tcl /System/Library/Tcl"
+ elif test "$prefix/lib" != "$libdir"; 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.6-8.6.0.orig/unix/configure.in
++++ tcl8.6-8.6.0/unix/configure.in
+@@ -883,9 +883,9 @@
+     test -z "$TCL_MODULE_PATH"  && \
+ 	TCL_MODULE_PATH="~/Library/Tcl /Library/Tcl /System/Library/Tcl"
+ elif test "$prefix/lib" != "$libdir"; 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
+ 
+ #--------------------------------------------------------------------

Deleted: tcl8.6/tags/8.6.0-1/debian/patches/tclport.diff
===================================================================
--- tcl8.6/trunk/debian/patches/tclport.diff	2012-08-22 13:31:23 UTC (rev 1296)
+++ tcl8.6/tags/8.6.0-1/debian/patches/tclport.diff	2012-12-20 16:42:49 UTC (rev 1318)
@@ -1,14 +0,0 @@
-Patch by Stanislav Maslovski <stanislav.maslovski at gmail.com>.
-See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488491
-
---- tcl8.6b2.orig/generic/tclPort.h
-+++ tcl8.6b2/generic/tclPort.h
-@@ -22,7 +22,7 @@
- #endif
- #include "tcl.h"
- #if !defined(_WIN32)
--#   include "tclUnixPort.h"
-+#   include "../unix/tclUnixPort.h"
- #endif
- 
- #if defined(__CYGWIN__)

Copied: tcl8.6/tags/8.6.0-1/debian/patches/tclport.diff (from rev 1316, tcl8.6/trunk/debian/patches/tclport.diff)
===================================================================
--- tcl8.6/tags/8.6.0-1/debian/patches/tclport.diff	                        (rev 0)
+++ tcl8.6/tags/8.6.0-1/debian/patches/tclport.diff	2012-12-20 16:42:49 UTC (rev 1318)
@@ -0,0 +1,14 @@
+Patch by Stanislav Maslovski <stanislav.maslovski at gmail.com>.
+See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488491
+
+--- tcl8.6-8.6.0.orig/generic/tclPort.h
++++ tcl8.6-8.6.0/generic/tclPort.h
+@@ -22,7 +22,7 @@
+ #endif
+ #include "tcl.h"
+ #if !defined(_WIN32)
+-#   include "tclUnixPort.h"
++#   include "../unix/tclUnixPort.h"
+ #endif
+ 
+ #if !defined(LLONG_MIN)

Deleted: tcl8.6/tags/8.6.0-1/debian/rules
===================================================================
--- tcl8.6/trunk/debian/rules	2012-08-22 13:31:23 UTC (rev 1296)
+++ tcl8.6/tags/8.6.0-1/debian/rules	2012-12-20 16:42:49 UTC (rev 1318)
@@ -1,119 +0,0 @@
-#!/usr/bin/make -f
-
-v = 8.6
-DIR = $(shell pwd)/debian/tmp
-
-DPKG_EXPORT_BUILDFLAGS = 1
-include /usr/share/dpkg/buildflags.mk
-
-LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS)
-export LDFLAGS
-
-ifeq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
-# See bug #446335 for -fno-unit-at-a-time
-ifeq ($(DEB_HOST_ARCH), hppa)
-# Disable stack checking for hppa (it doesn't work properly yet)
-CFLAGS += -fno-unit-at-a-time -DTCL_NO_STACK_CHECK=1
-else
-CFLAGS += -fno-unit-at-a-time
-endif
-endif
-
-
-%:
-	dh $@
-
-override_dh_auto_configure:
-	# So so ugly but it works...
-	touch generic/tclStubInit.c
-	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/tcltk/tcl$(v) /usr/lib" \
-	CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" \
-	dh_auto_configure -Dunix -- \
-		      --includedir=/usr/include/tcl$(v) \
-		      --enable-shared \
-		      --enable-threads \
-		      --enable-dll-unloading \
-		      --disable-rpath \
-		      --enable-man-symlinks
-
-override_dh_auto_build:
-	touch generic/tclStubInit.c && \
-	$(MAKE) -C unix
-	# Build the static library
-	cd unix && \
-	  ar cr libtcl$(v).a *.o && \
-	  ar d libtcl$(v).a tclAppInit.o && \
-	  ranlib libtcl$(v).a
-
-override_dh_auto_install:
-	GZIP=-9 \
-	$(MAKE) -C unix INSTALL_ROOT=$(DIR) \
-			MAN_INSTALL_DIR=$(DIR)/usr/share/man \
-			MANN_INSTALL_DIR=$(DIR)/usr/share/man/man3 \
-			TCL_MODULE_PATH="/usr/lib/tcltk /usr/share/tcltk" \
-		install
-	# Fix up the modules
-	sed -i -e's:variable paths {}:variable paths {/usr/share/tcltk/tcl$(v)/tcl8}:' \
-	    $(DIR)/usr/share/tcltk/tcl$(v)/tm.tcl
-	install -d -m 755 $(DIR)/usr/share/tcltk/tcl$(v)/tcl8
-	mv $(DIR)/usr/share/tcltk/tcl8/*/* $(DIR)/usr/share/tcltk/tcl$(v)/tcl8
-	# Fix up the libraries
-	cp unix/libtcl$(v).a $(DIR)/usr/lib
-	#mv $(DIR)/usr/lib/libtcl$(v).so $(DIR)/usr/lib/libtcl$(v).so.0
-	#ln -sf libtcl$(v).so.0 $(DIR)/usr/lib/libtcl$(v).so
-	install -d -m 755 $(DIR)/usr/lib/tcl$(v)
-	mv $(DIR)/usr/lib/*.sh $(DIR)/usr/lib/tcl$(v)
-	sh debian/filterconfig $(DIR)/usr/lib/tcl$(v)/tclConfig.sh
-	install -d -m 755 $(DIR)/usr/share/aclocal
-	cp unix/tcl.m4 $(DIR)/usr/share/aclocal/tcl$(v).m4
-	rm -f $(DIR)/usr/share/tcltk/tcl$(v)/ldAix
-	# Fix up the include files
-	install -d $(DIR)/usr/include/tcl$(v)/tcl-private/generic
-	cp generic/*.h $(DIR)/usr/include/tcl$(v)/tcl-private/generic
-	install -d $(DIR)/usr/include/tcl$(v)/tcl-private/unix
-	cp unix/*.h $(DIR)/usr/include/tcl$(v)/tcl-private/unix
-	install -d $(DIR)/usr/include/tcl$(v)/tcl-private/compat
-	cp compat/*.h $(DIR)/usr/include/tcl$(v)/tcl-private/compat
-	install -d $(DIR)/usr/include/tcl$(v)/tcl-private/libtommath
-	cp libtommath/*.h $(DIR)/usr/include/tcl$(v)/tcl-private/libtommath
-	-rm $(DIR)/usr/include/tcl$(v)/tdbc*.h
-	#
-	# Fix up the manpages.
-	cd $(DIR)/usr/share/man/man1 && \
-	  cat tclsh.1 | sed -e 's/(n)/(3tcl)/g' > tclsh$(v).1 && \
-	  rm tclsh.1
-	cd $(DIR)/usr/share/man/man3 && \
-	  for f in *.[3n] ; 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 \
-		cat $$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' \
-			       -e "s/\\N'244'/\\[^o]/g" \
-			 >$$f2 ; \
-		rm $$f ; \
-	     fi ; \
-	  done
-
-override_dh_makeshlibs:
-	dh_makeshlibs -a -V 'tcl$(v) (>= 8.6.0~b1)' -XTcltest
-
-override_dh_shlibdeps:
-	dh_shlibdeps -a -ldebian/tcl$(v)/usr/lib
-
-get-orig-source:
-	wget -O tcl8.6_8.6.0~b2.orig.tar.gz \
-	     http://prdownloads.sourceforge.net/tcl/tcl8.6b2-src.tar.gz
-
-.PHONY: override_dh_auto_configure override_dh_auto_install override_dh_makeshlibs override_dh_shlibdeps get-orig-source
-

Copied: tcl8.6/tags/8.6.0-1/debian/rules (from rev 1316, tcl8.6/trunk/debian/rules)
===================================================================
--- tcl8.6/tags/8.6.0-1/debian/rules	                        (rev 0)
+++ tcl8.6/tags/8.6.0-1/debian/rules	2012-12-20 16:42:49 UTC (rev 1318)
@@ -0,0 +1,118 @@
+#!/usr/bin/make -f
+
+v = 8.6
+DIR = $(shell pwd)/debian/tmp
+
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/buildflags.mk
+
+LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS)
+export LDFLAGS
+
+ifeq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+# See bug #446335 for -fno-unit-at-a-time
+ifeq ($(DEB_HOST_ARCH), hppa)
+# Disable stack checking for hppa (it doesn't work properly yet)
+CFLAGS += -fno-unit-at-a-time -DTCL_NO_STACK_CHECK=1
+else
+CFLAGS += -fno-unit-at-a-time
+endif
+endif
+
+
+%:
+	dh $@
+
+override_dh_auto_configure:
+	# So so ugly but it works...
+	touch generic/tclStubInit.c
+	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/tcltk/tcl$(v) /usr/lib" \
+	CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" \
+	dh_auto_configure -Dunix -- \
+		      --includedir=/usr/include/tcl$(v) \
+		      --enable-shared \
+		      --enable-threads \
+		      --enable-dll-unloading \
+		      --disable-rpath \
+		      --enable-man-symlinks
+
+override_dh_auto_build:
+	touch generic/tclStubInit.c && \
+	$(MAKE) -C unix
+	# Build the static library
+	cd unix && \
+	  ar cr libtcl$(v).a *.o && \
+	  ar d libtcl$(v).a tclAppInit.o && \
+	  ranlib libtcl$(v).a
+
+override_dh_auto_install:
+	GZIP=-9 \
+	$(MAKE) -C unix INSTALL_ROOT=$(DIR) \
+			MAN_INSTALL_DIR=$(DIR)/usr/share/man \
+			MANN_INSTALL_DIR=$(DIR)/usr/share/man/man3 \
+			TCL_MODULE_PATH="/usr/lib/tcltk /usr/share/tcltk" \
+		install
+	# Fix up the modules
+	sed -i -e's:variable paths {}:variable paths {/usr/share/tcltk/tcl$(v)/tcl8}:' \
+	    $(DIR)/usr/share/tcltk/tcl$(v)/tm.tcl
+	install -d -m 755 $(DIR)/usr/share/tcltk/tcl$(v)/tcl8
+	mv $(DIR)/usr/share/tcltk/tcl8/*/* $(DIR)/usr/share/tcltk/tcl$(v)/tcl8
+	# Fix up the libraries
+	cp unix/libtcl$(v).a $(DIR)/usr/lib
+	#mv $(DIR)/usr/lib/libtcl$(v).so $(DIR)/usr/lib/libtcl$(v).so.0
+	#ln -sf libtcl$(v).so.0 $(DIR)/usr/lib/libtcl$(v).so
+	install -d -m 755 $(DIR)/usr/lib/tcl$(v)
+	mv $(DIR)/usr/lib/*.sh $(DIR)/usr/lib/tcl$(v)
+	sh debian/filterconfig $(DIR)/usr/lib/tcl$(v)/tclConfig.sh
+	install -d -m 755 $(DIR)/usr/share/aclocal
+	cp unix/tcl.m4 $(DIR)/usr/share/aclocal/tcl$(v).m4
+	rm -f $(DIR)/usr/share/tcltk/tcl$(v)/ldAix
+	# Fix up the include files
+	install -d $(DIR)/usr/include/tcl$(v)/tcl-private/generic
+	cp generic/*.h $(DIR)/usr/include/tcl$(v)/tcl-private/generic
+	install -d $(DIR)/usr/include/tcl$(v)/tcl-private/unix
+	cp unix/*.h $(DIR)/usr/include/tcl$(v)/tcl-private/unix
+	install -d $(DIR)/usr/include/tcl$(v)/tcl-private/compat
+	cp compat/*.h $(DIR)/usr/include/tcl$(v)/tcl-private/compat
+	install -d $(DIR)/usr/include/tcl$(v)/tcl-private/libtommath
+	cp libtommath/*.h $(DIR)/usr/include/tcl$(v)/tcl-private/libtommath
+	#
+	# Fix up the manpages.
+	cd $(DIR)/usr/share/man/man1 && \
+	  cat tclsh.1 | sed -e 's/(n)/(3tcl)/g' > tclsh$(v).1 && \
+	  rm tclsh.1
+	cd $(DIR)/usr/share/man/man3 && \
+	  for f in *.[3n] ; 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 \
+		cat $$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' \
+			       -e "s/\\N'244'/\\[^o]/g" \
+			 >$$f2 ; \
+		rm $$f ; \
+	     fi ; \
+	  done
+
+override_dh_makeshlibs:
+	dh_makeshlibs -a -V 'tcl$(v) (>= $(v).0)' -XTcltest
+
+override_dh_shlibdeps:
+	dh_shlibdeps -a -ldebian/tcl$(v)/usr/lib
+
+get-orig-source:
+	wget -O tcl$(v)_$(v).0.orig.tar.gz \
+	     http://prdownloads.sourceforge.net/tcl/tcl-core$(v).0-src.tar.gz
+
+.PHONY: override_dh_auto_configure override_dh_auto_install override_dh_makeshlibs override_dh_shlibdeps get-orig-source
+




More information about the Pkg-tcltk-commits mailing list