--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: unblock: im-config/0.21
- From: Osamu Aoki <osamu@debian.org>
- Date: Tue, 26 Feb 2013 23:26:41 +0900
- Message-id: <20130226142641.GA7196@goofy.localdomain>
Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock
Please unblock package im-config
Thank you for approving testing migration of im-switch 1.23 before my
unblock request. This unblock request of im-config is addressing the
same serious bug as #701181. I have raised severity of this #701224 bud
to serious, too.
http://bugs.debian.org/701181 (im-switch)
http://bugs.debian.org/701224 (im-config)
This bug fix is basically backporting of Ubuntu bug fix. Kudos to
Ubuntu developer Gunnar Hjalmarsson .
Ubuntu bug https://launchpad.net/bugs/1101836
im-config (0.21) unstable; urgency=low
* Disable im-switch hook script if im-switch package is removed
and im-config is installed. Closes: #701224
-- Osamu Aoki <osamu@debian.org> Tue, 26 Feb 2013 23:04:39 +0900
This modification should not have negative side effects even if user
wish to go back to im-switch after installing im-config. (Of course, we
wncourage people to migrate to im-config.)
debdiff attached.
unblock im-config/0.21
-- System Information:
Debian Release: 7.0
APT prefers testing
APT policy: (500, 'testing'), (10, 'unstable'), (9, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.7-trunk-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru im-config-0.20/debian/changelog im-config-0.21/debian/changelog
--- im-config-0.20/debian/changelog 2012-12-15 11:25:30.000000000 +0900
+++ im-config-0.21/debian/changelog 2013-02-26 23:04:45.000000000 +0900
@@ -1,3 +1,10 @@
+im-config (0.21) unstable; urgency=low
+
+ * Disable im-switch hook script if im-switch package is removed
+ and im-config is installed. Closes: #701224
+
+ -- Osamu Aoki <osamu@debian.org> Tue, 26 Feb 2013 23:04:39 +0900
+
im-config (0.20) unstable; urgency=low
* Fix regression on uim for #683950 caused by the 0.19~pre1 fixing
diff -Nru im-config-0.20/debian/postinst im-config-0.21/debian/postinst
--- im-config-0.20/debian/postinst 2012-11-27 23:15:17.000000000 +0900
+++ im-config-0.21/debian/postinst 2013-02-26 23:13:00.000000000 +0900
@@ -7,6 +7,7 @@
# version just before wheezy release
# acb685ae9264be3fc1800f98a70b12bb 80im-switch 1.14
# 044a2f13aa8382902dc8f47dc7da7064 80im-switch 1.16 (oldstable) - 1.22 (unstable)
+# 5b34831bb3c203ced71b7efb6da4609e 80im-switch 1.23 (testing/unstable)
# 4045a8eeb0e9226cdd9f8a121ccf4c04 80im-config_launch 0.3 (stable initial)
# 8a4829f935b5561ca6e61bec6eb3893f 80im-config_launch 0.3+squeeze1 (stable), 0.4
@@ -16,15 +17,19 @@
case "$1" in
configure)
IM_SWITCH_HOOK=/etc/X11/Xsession.d/80im-switch
+ IM_SWITCH_DISABLE_CODE='[ -x /usr/bin/im-switch ] || return 0'
if [ -f $IM_SWITCH_HOOK ]; then
IM_SWITCH_HOOK_MD5SUM=$(md5sum < $IM_SWITCH_HOOK|cut -d ' ' -f 1)
case $IM_SWITCH_HOOK_MD5SUM in
- acb685ae9264be3fc1800f98a70b12bb|044a2f13aa8382902dc8f47dc7da7064)
+ acb685ae9264be3fc1800f98a70b12bb|044a2f13aa8382902dc8f47dc7da7064|5b34831bb3c203ced71b7efb6da4609e)
rm -f $IM_SWITCH_HOOK
;;
*)
- echo "ERROR: Unknown hook file exists: $IM_SWITCH_HOOK." >&2
+ if [ "$( head -1 $IM_SWITCH_HOOK )" != "$IM_SWITCH_DISABLE_CODE" ];then
+ echo "Migrating from im-switch to im-config. Disabling: $IM_SWITCH_HOOK." >&2
+ sed -i "1 i $IM_SWITCH_DISABLE_CODE" $IM_SWITCH_HOOK
+ fi
;;
esac
fi
--- End Message ---