[Pkg-tcltk-devel] Bug#628179: tcltk-defaults: please bump default tcl/tk version to 8.6

Jonathan Nieder jrnieder at gmail.com
Sat May 28 01:40:09 UTC 2011


Source: tcltk-defaults
Version: 8.5.0-2
Severity: wishlist
Tags: patch

Hi,

I have a dream.  It goes like this:

 * upload tcltk-defaults 8.6 to experimental
 * beg Lucas or someone with similar hardware to build rbuilddeps
   and send logs
 * upload tcltk-defaults 8.6 to unstable

What do you think?  Patch implementing step 1 follows.

While at it, I bumped standards-version and, following the advice
from upgrading-checklist.txt, checked the maintainer scripts for
potential minor bugs and found some.
---
 debian/changelog       |   13 +++++++++++++
 debian/control         |   26 +++++++++++++-------------
 debian/control.in      |    2 +-
 debian/rules           |    8 ++++----
 debian/tcl.postinst.in |    4 +---
 debian/tcl.prerm.in    |    4 +++-
 debian/tk.postinst.in  |    4 +---
 debian/tk.prerm.in     |    4 +++-
 8 files changed, 39 insertions(+), 26 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index f51f686..d3efc2c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,16 @@
+tcltk-defaults (8.6.0~b1-0.1) local; urgency=low
+
+  * Changed the default Tcl/Tk version to 8.6. This means depending on
+    tcl8.6 and tk8.6 packages.
+  * Made "update-alternatives --install" call in tcl.postinst and tk.postinst
+    unconditional, so the tcl and tk packages provide tclsh and wish commands
+    even after unwinding a failed upgrade.
+  * Made "update-alternatives --remove" call in tcl.prerm and tk.prerm no
+    longer trigger during ordinary upgrades.
+  * Bumped standards version to 3.9.2.
+
+ -- Jonathan Nieder <jrnieder at gmail.com>  Fri, 27 May 2011 20:04:10 -0500
+
 tcltk-defaults (8.5.0-2) unstable; urgency=low
 
   * Upload of 8.5 to unstable (closes: #515984).
diff --git a/debian/control b/debian/control
index 1239324..0ab069b 100644
--- a/debian/control
+++ b/debian/control
@@ -8,84 +8,84 @@ Build-Depends-Indep: subversion, debiandoc-sgml,
  texlive-fonts-recommended | tetex-extra,
  texlive-latex-extra | tetex-extra,
  texlive-latex-recommended | tetex-extra
-Standards-Version: 3.9.1
+Standards-Version: 3.9.2
 
 Package: tcl
 Section: interpreters
 Priority: optional
 Architecture: all
-Depends: tcl8.5 (>= 8.5.0-1), ${misc:Depends}
+Depends: tcl8.6 (>= 8.6.0~b1-4), ${misc:Depends}
 Conflicts: tcl8.3 (<< 8.3.5-8), tcl8.4 (<< 8.4.16-2), tcl8.5 (<< 0.b1-2)
 Description: The Tool Command Language (default version) - run-time files
  Tcl is a powerful, easy to use, embeddable, cross-platform interpreted
  scripting language.
  .
  This package is a dependency package, which depends on Debian's default
- Tcl version (currently 8.5).
+ Tcl version (currently 8.6).
 
 Package: tcl-doc
 Section: doc
 Priority: optional
 Architecture: all
 Depends: ${misc:Depends}
-Recommends: tcl8.5-doc (>= 8.5.0-1)
+Recommends: tcl8.6-doc (>= 8.6.0~b1-4)
 Suggests: tcl
 Description: The Tool Command Language (default version) - manual pages
  Tcl is a powerful, easy-to-use, embeddable, cross-platform interpreted
  scripting language.  This package contains the man pages for Tcl commands.
  .
  This package is a dependency package, which depends on Debian's default
- Tcl version (currently 8.5).
+ Tcl version (currently 8.6).
 
 Package: tcl-dev
 Section: devel
 Priority: optional
 Architecture: all
-Depends: tcl8.5-dev (>= 8.5.0-1), tcl (= ${binary:Version}), ${misc:Depends}
+Depends: tcl8.6-dev (>= 8.6.0~b1-4), tcl (= ${binary:Version}), ${misc:Depends}
 Suggests: tcl-doc
 Description: The Tool Command Language (default version) - development files
  Tcl is a powerful, easy-to-use, embeddable, cross-platform interpreted
  scripting language.
  .
  This package is a dependency package, which depends on Debian's default
- Tcl version (currently 8.5).
+ Tcl version (currently 8.6).
 
 Package: tk
 Section: libs
 Priority: optional
 Architecture: all
-Depends: tk8.5 (>= 8.5.0-1), tcl (= ${binary:Version}), ${misc:Depends}
+Depends: tk8.6 (>= 8.6.0~b1-3), tcl (= ${binary:Version}), ${misc:Depends}
 Conflicts: tk8.3 (<< 8.3.5-11), tk8.4 (<< 8.4.16-2), tk8.5 (<< 0.b1-2)
 Description: The Tk toolkit for Tcl and X11 (default version) - 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 is a dependency package, which depends on Debian's default
- Tk version (currently 8.5).
+ Tk version (currently 8.6).
 
 Package: tk-doc
 Section: doc
 Priority: optional
 Architecture: all
 Depends: tcl-doc (= ${binary:Version}), ${misc:Depends}
-Recommends: tk8.5-doc (>= 8.5.0-1)
+Recommends: tk8.6-doc (>= 8.6.0~b1-3)
 Suggests: tk
 Description: The Tk toolkit for Tcl and X11 (default version) - 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 is a dependency package, which depends on Debian's default
- Tk version (currently 8.5).
+ Tk version (currently 8.6).
 
 Package: tk-dev
 Section: devel
 Priority: optional
 Architecture: all
-Depends: tk8.5-dev (>= 8.5.0-1), tk (= ${binary:Version}), tcl-dev (= ${binary:Version}), ${misc:Depends}
+Depends: tk8.6-dev (>= 8.6.0~b1-3), tk (= ${binary:Version}), tcl-dev (= ${binary:Version}), ${misc:Depends}
 Suggests: tk-doc
 Description: The Tk toolkit for Tcl and X11 (default version) - 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 is a dependency package, which depends on Debian's default
- Tk version (currently 8.5).
+ Tk version (currently 8.6).
diff --git a/debian/control.in b/debian/control.in
index 1d36aae..27e8398 100644
--- a/debian/control.in
+++ b/debian/control.in
@@ -8,7 +8,7 @@ Build-Depends-Indep: subversion, debiandoc-sgml,
  texlive-fonts-recommended | tetex-extra,
  texlive-latex-extra | tetex-extra,
  texlive-latex-recommended | tetex-extra
-Standards-Version: 3.9.1
+Standards-Version: 3.9.2
 
 Package: tcl
 Section: interpreters
diff --git a/debian/rules b/debian/rules
index b6670d8..58a364c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,10 +5,10 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-VER    := 8.5
-TCLVER := 8.5.0-1
-TKVER  := 8.5.0-1
-COMPATVER := 8.5.0-1
+VER    := 8.6
+TCLVER := 8.6.0~b1-4
+TKVER  := 8.6.0~b1-3
+COMPATVER := 8.6.0~b1-1
 
 DOCS = tcltk-policy.html tcltk-policy.txt tcltk-policy.pdf
 
diff --git a/debian/tcl.postinst.in b/debian/tcl.postinst.in
index 8cc304c..3b8ad1e 100644
--- a/debian/tcl.postinst.in
+++ b/debian/tcl.postinst.in
@@ -2,10 +2,8 @@
 
 set -e
 
-if [ "$1" = "configure" ]; then
-    update-alternatives --install /usr/bin/tclsh tclsh /usr/bin/tclsh-default 10000 \
+update-alternatives --install /usr/bin/tclsh tclsh /usr/bin/tclsh-default 10000 \
 			--slave /usr/share/man/man1/tclsh.1.gz tclsh.1 \
 			/usr/share/man/man1/tclsh-default.1.gz
-fi
 
 #DEBHELPER#
diff --git a/debian/tcl.prerm.in b/debian/tcl.prerm.in
index badffc8..69867de 100644
--- a/debian/tcl.prerm.in
+++ b/debian/tcl.prerm.in
@@ -2,6 +2,8 @@
 
 set -e
 
-update-alternatives --remove tclsh /usr/bin/tclsh-default
+if [ "$1" != "upgrade" ]; then
+    update-alternatives --remove tclsh /usr/bin/tclsh-default
+fi
 
 #DEBHELPER#
diff --git a/debian/tk.postinst.in b/debian/tk.postinst.in
index d2f071b..8c8bea7 100644
--- a/debian/tk.postinst.in
+++ b/debian/tk.postinst.in
@@ -2,10 +2,8 @@
 
 set -e
 
-if [ "$1" = "configure" ]; then
-    update-alternatives --install /usr/bin/wish wish /usr/bin/wish-default 10000 \
+update-alternatives --install /usr/bin/wish wish /usr/bin/wish-default 10000 \
 			--slave /usr/share/man/man1/wish.1.gz wish.1 \
 			/usr/share/man/man1/wish-default.1.gz
-fi
 
 #DEBHELPER#
diff --git a/debian/tk.prerm.in b/debian/tk.prerm.in
index f20f201..e9b9d02 100644
--- a/debian/tk.prerm.in
+++ b/debian/tk.prerm.in
@@ -2,6 +2,8 @@
 
 set -e
 
-update-alternatives --remove wish /usr/bin/wish-default
+if [ "$1" != "upgrade" ]; then
+    update-alternatives --remove wish /usr/bin/wish-default
+fi
 
 #DEBHELPER#
-- 
1.7.5.3






More information about the Pkg-tcltk-devel mailing list