Bug#695728: RFS: mlterm/3.1.2-1.3 [RC] [NMU]
Package: sponsorship-requests
Severity: important
Dear mentors,
I am looking for a sponsor for my RC bug fix of "mlterm". It fixes a piuparts
upgrade test failure (bugs #688603, #688604, #688605, #688606, #694153).
The previous fix (in -1.2) creates new problems (hence bug #694153). It seems
something (dpkg?) gets confused and follows the symlink when removing the
files from the old package on upgrade. This removes files from the -common
package (see the piuparts log attached to bug #694153).
My fix just copies the relevant part from the postinst of mlterm and
mlterm-tiny for the other packages. With this change (and a revert of the
changes in -1.2), the piuparts upgrade test works fine. Below is a debdiff
against version -1.1, which is currently in wheezy.
* Package name : mlterm
Version : 3.1.2-1.3
* License : BSD
Section : x11
It builds those binary packages:
mlterm - MultiLingual TERMinal
mlterm-common - MultiLingual TERMinal, common files
mlterm-im-ibus - MultiLingual TERMinal, IBus input method plugin
mlterm-im-m17nlib - MultiLingual TERMinal, m17nlib input method plugin
mlterm-im-scim - MultiLingual TERMinal, scim input method plugin
mlterm-im-uim - MultiLingual TERMinal, uim input method plugin
mlterm-tiny - MultiLingual TERMinal, tiny version
mlterm-tools - MultiLingual TERMinal, additional tools
To access further information about this package, please visit the following URL:
http://mentors.debian.net/package/mlterm
Alternatively, one can download the package with dget using this command:
dget -x http://mentors.debian.net/debian/pool/main/m/mlterm/mlterm_3.1.2-1.3.dsc
Changes since the last upload:
diff -Nru mlterm-3.1.2/debian/changelog mlterm-3.1.2/debian/changelog
--- mlterm-3.1.2/debian/changelog 2012-09-08 16:18:20.000000000 +0200
+++ mlterm-3.1.2/debian/changelog 2012-12-12 00:34:48.000000000 +0100
@@ -1,3 +1,19 @@
+mlterm (3.1.2-1.3) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Don't delete docs in preinst. Create correct symlinks in postinst.
+ (closes: #688603, #688604, #688605, #688606, 694153).
+
+ -- Ivo De Decker <ivo.dedecker@ugent.be> Wed, 12 Dec 2012 00:34:33 +0100
+
+mlterm (3.1.2-1.2) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Remove previous documentation directories prior to package installation
+ (closes: #688603, #688604, #688605, #688606).
+
+ -- Michael Gilbert <mgilbert@debian.org> Sun, 18 Nov 2012 07:18:33 +0000
+
mlterm (3.1.2-1.1) unstable; urgency=low
* Non-maintainer upload.
diff -Nru mlterm-3.1.2/debian/mlterm-im-ibus.postinst mlterm-3.1.2/debian/mlterm-im-ibus.postinst
--- mlterm-3.1.2/debian/mlterm-im-ibus.postinst 1970-01-01 01:00:00.000000000 +0100
+++ mlterm-3.1.2/debian/mlterm-im-ibus.postinst 2012-12-12 00:12:38.000000000 +0100
@@ -0,0 +1,19 @@
+#! /bin/sh
+
+set -e
+
+if [ "$1" = "configure" ]; then
+ # Replace documentation directory with symlink
+ docdir="/usr/share/doc/mlterm-im-ibus"
+ if [ -d $docdir -a ! -L $docdir ]; then
+ if rmdir $docdir 2>/dev/null; then
+ ln -sf /usr/share/doc/mlterm-common $docdir
+ fi
+ fi
+fi
+
+#DEBHELPER#
+
+exit 0
+
+
diff -Nru mlterm-3.1.2/debian/mlterm-im-m17nlib.postinst mlterm-3.1.2/debian/mlterm-im-m17nlib.postinst
--- mlterm-3.1.2/debian/mlterm-im-m17nlib.postinst 1970-01-01 01:00:00.000000000 +0100
+++ mlterm-3.1.2/debian/mlterm-im-m17nlib.postinst 2012-12-12 00:12:38.000000000 +0100
@@ -0,0 +1,19 @@
+#! /bin/sh
+
+set -e
+
+if [ "$1" = "configure" ]; then
+ # Replace documentation directory with symlink
+ docdir="/usr/share/doc/mlterm-im-m17nlib"
+ if [ -d $docdir -a ! -L $docdir ]; then
+ if rmdir $docdir 2>/dev/null; then
+ ln -sf /usr/share/doc/mlterm-common $docdir
+ fi
+ fi
+fi
+
+#DEBHELPER#
+
+exit 0
+
+
diff -Nru mlterm-3.1.2/debian/mlterm-im-scim.postinst mlterm-3.1.2/debian/mlterm-im-scim.postinst
--- mlterm-3.1.2/debian/mlterm-im-scim.postinst 1970-01-01 01:00:00.000000000 +0100
+++ mlterm-3.1.2/debian/mlterm-im-scim.postinst 2012-12-12 00:12:38.000000000 +0100
@@ -0,0 +1,19 @@
+#! /bin/sh
+
+set -e
+
+if [ "$1" = "configure" ]; then
+ # Replace documentation directory with symlink
+ docdir="/usr/share/doc/mlterm-im-scim"
+ if [ -d $docdir -a ! -L $docdir ]; then
+ if rmdir $docdir 2>/dev/null; then
+ ln -sf /usr/share/doc/mlterm-common $docdir
+ fi
+ fi
+fi
+
+#DEBHELPER#
+
+exit 0
+
+
diff -Nru mlterm-3.1.2/debian/mlterm-im-uim.postinst mlterm-3.1.2/debian/mlterm-im-uim.postinst
--- mlterm-3.1.2/debian/mlterm-im-uim.postinst 1970-01-01 01:00:00.000000000 +0100
+++ mlterm-3.1.2/debian/mlterm-im-uim.postinst 2012-12-12 00:12:38.000000000 +0100
@@ -0,0 +1,19 @@
+#! /bin/sh
+
+set -e
+
+if [ "$1" = "configure" ]; then
+ # Replace documentation directory with symlink
+ docdir="/usr/share/doc/mlterm-im-uim"
+ if [ -d $docdir -a ! -L $docdir ]; then
+ if rmdir $docdir 2>/dev/null; then
+ ln -sf /usr/share/doc/mlterm-common $docdir
+ fi
+ fi
+fi
+
+#DEBHELPER#
+
+exit 0
+
+
diff -Nru mlterm-3.1.2/debian/mlterm-tools.postinst mlterm-3.1.2/debian/mlterm-tools.postinst
--- mlterm-3.1.2/debian/mlterm-tools.postinst 1970-01-01 01:00:00.000000000 +0100
+++ mlterm-3.1.2/debian/mlterm-tools.postinst 2012-12-12 00:12:38.000000000 +0100
@@ -0,0 +1,19 @@
+#! /bin/sh
+
+set -e
+
+if [ "$1" = "configure" ]; then
+ # Replace documentation directory with symlink
+ docdir="/usr/share/doc/mlterm-tools"
+ if [ -d $docdir -a ! -L $docdir ]; then
+ if rmdir $docdir 2>/dev/null; then
+ ln -sf /usr/share/doc/mlterm-common $docdir
+ fi
+ fi
+fi
+
+#DEBHELPER#
+
+exit 0
+
+
Regards,
Ivo De Decker
Reply to: