Your message dated Fri, 01 Mar 2013 17:47:28 +0000
with message-id <[email protected]>
and subject line Bug#701224: fixed in im-config 0.21
has caused the Debian Bug report #701224,
regarding Safely prevent adverse impact if im-switch was removed but not purged
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
701224: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=701224
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: im-config
Severity: important
This is a forward of the Ubuntu bug https://launchpad.net/bugs/1101836
The fix of http://bugs.debian.org/701181 meant inserting of a line of
code which prevents that /etc/X11/Xsession.d/80im-switch keeps being
sourced if the im-switch package is removed but not purged. This is
essential for im-config to work correctly.
However, if a user who has modified 80im-switch does not update before
replacing im-switch with im-config, 80im-switch will keep being sourced
and with that affect the im-config functionality adversely. One way to
prevent that from happening is to let im-config at installation insert a
line as just mentioned into 80im-switch, if it's not there already.
Attached please find a modified debian/postinst file which does just
that, and which we are about to use in Ubuntu.
--
Gunnar Hjalmarsson
https://launchpad.net/~gunnarhj
#!/bin/sh
# postinst script for im-config
# vim: set sts=4 expandtab:
set -e
# version just before wheezy release
# 4045a8eeb0e9226cdd9f8a121ccf4c04 80im-config_launch 0.3 (stable initial)
# 8a4829f935b5561ca6e61bec6eb3893f 80im-config_launch 0.3+squeeze1 (stable),
0.4
# b243876a16f7b87c397ceef626098069 80im-config_launch 0.5
# 5ef27261ac38d704d8f766da19635461 80im-config_launch 0.6-0.17 (testing,
unstable)
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 ] &&
[ "$( head -1 $IM_SWITCH_HOOK )" != "$IM_SWITCH_DISABLE_CODE" ] &&
[ "$( sed -n 15p $IM_SWITCH_HOOK )" != "$IM_SWITCH_DISABLE_CODE" ]
then
echo "Disabling conflicting hook file: $IM_SWITCH_HOOK ..."
sed -i "1 i $IM_SWITCH_DISABLE_CODE" $IM_SWITCH_HOOK
fi
IM_CONFIG_HOOK=/etc/X11/Xsession.d/80im-config_launch
if [ -f $IM_CONFIG_HOOK ]; then
IM_CONFIG_HOOK_MD5SUM=$(md5sum < $IM_CONFIG_HOOK|cut -d ' ' -f 1)
case $IM_CONFIG_HOOK_MD5SUM in
4045a8eeb0e9226cdd9f8a121ccf4c04|8a4829f935b5561ca6e61bec6eb3893f|b243876a16f7b87c397ceef626098069|5ef27261ac38d704d8f766da19635461)
rm -f $IM_CONFIG_HOOK
;;
*)
echo "ERROR: Unknown hook file exists: $IM_CONFIG_HOOK." >&2
;;
esac
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0
--- End Message ---
--- Begin Message ---
Source: im-config
Source-Version: 0.21
We believe that the bug you reported is fixed in the latest version of
im-config, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Osamu Aoki <[email protected]> (supplier of updated im-config package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Tue, 26 Feb 2013 23:04:39 +0900
Source: im-config
Binary: im-config
Architecture: source all
Version: 0.21
Distribution: unstable
Urgency: low
Maintainer: Osamu Aoki <[email protected]>
Changed-By: Osamu Aoki <[email protected]>
Description:
im-config - Input method configuration framework
Closes: 701224
Changes:
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
Checksums-Sha1:
4fd1b070838f2b28133ed9ece5b2d9e40cb44983 877 im-config_0.21.dsc
537d2657883f6ca3107b2d19aa8aec716532ba26 32997 im-config_0.21.tar.gz
7550aef251ee2a9a1ec4e76416e4b84a31013e71 36576 im-config_0.21_all.deb
Checksums-Sha256:
a39d400074e153246cf53754891502ab942233045916138427e50f355b9f21f9 877
im-config_0.21.dsc
4d9576d3f9ce96929883406b4fe8e15cd0a25a0046c0e81c0744fdb7a2efe764 32997
im-config_0.21.tar.gz
1d63c4879c0ec7726c5fa3c393db68d12d4bbeba177f597f8bc1fd990f90879c 36576
im-config_0.21_all.deb
Files:
80193a0ef2a0d303a02f5fc787c756bb 877 x11 optional im-config_0.21.dsc
4d48fde13c6780fda4eb7522307e7e79 32997 x11 optional im-config_0.21.tar.gz
3accd7bda2797880bf20b3e189c7598e 36576 x11 optional im-config_0.21_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlEswygACgkQ6A/EwagGHzKNLwCdFcZKRWOMCGH56oVyKEMbvUgD
wzAAnixxpLLeReQJe77YEehVYbPW/Di4
=aXhZ
-----END PGP SIGNATURE-----
--- End Message ---