Your message dated Mon, 04 Dec 2006 14:17:04 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#400374: fixed in gcin 1.3.1-1
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: gcin
Version: 1.3.0.1-1
Severity: important
Tags: patch

im-switch needs to have fall back so we can see it as a low level choice 
from non chinese environment (we use UTF-8)

So please use style like I use for scim.

Patch attached.


-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-2-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages gcin depends on:
ii  libatk1.0-0                  1.12.3-1    The ATK accessibility toolkit
ii  libc6                        2.3.6.ds1-8 GNU C Library: Shared libraries
ii  libcairo2                    1.2.4-4     The Cairo 2D vector graphics libra
ii  libfontconfig1               2.4.1-2     generic font configuration library
ii  libglib2.0-0                 2.12.4-2    The GLib library of C routines
ii  libgtk2.0-0                  2.8.20-3    The GTK+ graphical user interface 
ii  libgtk2.0-bin                2.8.20-3    The programs for the GTK+ graphica
ii  libpango1.0-0                1.14.8-2    Layout and rendering of internatio
ii  libx11-6                     2:1.0.3-4   X11 client-side library
ii  libxcursor1                  1.1.7-4     X cursor management library
ii  libxext6                     1:1.0.1-2   X11 miscellaneous extension librar
ii  libxfixes3                   1:4.0.1-4   X11 miscellaneous 'fixes' extensio
ii  libxi6                       1:1.0.1-3   X11 Input extension library
ii  libxinerama1                 1:1.0.1-4.1 X11 Xinerama extension library
ii  libxrandr2                   2:1.1.0.2-4 X11 RandR extension library
ii  libxrender1                  1:0.9.1-3   X Rendering Extension client libra
ii  libxtst6                     1:1.0.1-5   X11 Testing -- Resource extension 

Versions of packages gcin recommends:
pn  gcin-qt3-immodule             <none>     (no description available)
ii  im-switch                     1.12       Input method switch framework

-- no debconf information

-- 
~\^o^/~~~ ~\^.^/~~~ ~\^*^/~~~ ~\^_^/~~~ ~\^+^/~~~ ~\^:^/~~~ ~\^v^/~~~ +++++
        Osamu Aoki <[EMAIL PROTECTED]>  Yokohama Japan, GPG-key: A8061F32
 .''`.  Debian Reference: post-installation user's guide for non-developers
 : :' : http://qref.sf.net and http://people.debian.org/~osamu
 `. `'  "Our Priorities are Our Users and Free Software" --- Social Contract

diff -rNu gcin-1.3.0.1-orig/debian/gcin.postinst 
gcin-1.3.0.1/debian/gcin.postinst
--- gcin-1.3.0.1-orig/debian/gcin.postinst      2006-11-26 03:10:31.000000000 
+0900
+++ gcin-1.3.0.1/debian/gcin.postinst   2006-11-26 03:21:53.000000000 +0900
@@ -1,19 +1,57 @@
 #!/bin/sh
 # postinst script for gcin
+#
+# see: dh_installdeb(1)
 
 set -e
 
-update-alternatives \
-       --install /etc/X11/xinit/xinput.d/zh_TW xinput-zh_TW \
-       /etc/X11/xinit/xinput.d/gcin 50
-
-update-alternatives \
-       --install /etc/X11/xinit/xinput.d/zh_CN xinput-zh_CN \
-       /etc/X11/xinit/xinput.d/gcin 50
-
-if [ "$1" = "configure" ]; then
-    /usr/sbin/update-gtk-immodules
-fi
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+#
+# quoting from the policy:
+#     Any necessary prompting should almost always be confined to the
+#     post-installation script, and should be protected with a conditional
+#     so that unnecessary prompting doesn't happen if a package's
+#     installation fails and the `postinst' is called with `abort-upgrade',
+#     `abort-remove' or `abort-deconfigure'.
+ua_inst () {
+       update-alternatives \
+        --install /etc/X11/xinit/xinput.d/$1 xinput-$1 \
+        /etc/X11/xinit/xinput.d/$2 $3 ;
+}
+
+case "$1" in
+    configure)
+        # Set up default
+        ua_inst all_ALL gcin  0
+        ua_inst zh_CN   gcin 50
+        ua_inst zh_TW   gcin 50
+        ua_inst zh_HK   gcin 50
+        ua_inst zh_SG   gcin 50
+       /usr/sbin/update-gtk-immodules
+    ;;
+
+    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#
 
diff -rNu gcin-1.3.0.1-orig/debian/gcin.prerm gcin-1.3.0.1/debian/gcin.prerm
--- gcin-1.3.0.1-orig/debian/gcin.prerm 2006-11-26 03:10:31.000000000 +0900
+++ gcin-1.3.0.1/debian/gcin.prerm      2006-11-26 03:27:41.000000000 +0900
@@ -1,11 +1,28 @@
 #!/bin/sh
-# prerm script for gcin
-
 set -e
 
+ua_remove () {
+       update-alternatives \
+        --remove xinput-$1 \
+        /etc/X11/xinit/xinput.d/$2 ;
+}
+
 #DEBHELPER#
 
-update-alternatives --remove xinput-zh_TW /etc/X11/xinit/xinput.d/gcin
-update-alternatives --remove xinput-zh_CN /etc/X11/xinit/xinput.d/gcin
+case "$1" in
+    remove|upgrade|deconfigure)
+        ua_remove all_ALL gcin
+        ua_remove zh_CN   gcin
+        ua_remove zh_TW   gcin
+        ua_remove zh_HK   gcin
+        ua_remove zh_SG   gcin
+       ;;
+    failed-upgrade)
+       ;;
+    *)
+       echo "prerm called with unknown argument \`$1'" >&2
+       exit 1
+   ;;
+esac
 
 exit 0

--- End Message ---
--- Begin Message ---
Source: gcin
Source-Version: 1.3.1-1

We believe that the bug you reported is fixed in the latest version of
gcin, which is due to be installed in the Debian FTP archive:

gcin-qt3-immodule_1.3.1-1_i386.deb
  to pool/main/g/gcin/gcin-qt3-immodule_1.3.1-1_i386.deb
gcin_1.3.1-1.diff.gz
  to pool/main/g/gcin/gcin_1.3.1-1.diff.gz
gcin_1.3.1-1.dsc
  to pool/main/g/gcin/gcin_1.3.1-1.dsc
gcin_1.3.1-1_i386.deb
  to pool/main/g/gcin/gcin_1.3.1-1_i386.deb
gcin_1.3.1.orig.tar.gz
  to pool/main/g/gcin/gcin_1.3.1.orig.tar.gz



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.
Wen-Yen Chuang <[EMAIL PROTECTED]> (supplier of updated gcin 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.7
Date: Mon,  4 Dec 2006 20:28:58 +0800
Source: gcin
Binary: gcin-qt3-immodule gcin
Architecture: source i386
Version: 1.3.1-1
Distribution: unstable
Urgency: low
Maintainer: Wen-Yen Chuang <[EMAIL PROTECTED]>
Changed-By: Wen-Yen Chuang <[EMAIL PROTECTED]>
Description: 
 gcin       - a GTK+ based input method platform for Chinese users
 gcin-qt3-immodule - a QT input method module with gcin as backend
Closes: 400374
Changes: 
 gcin (1.3.1-1) unstable; urgency=low
 .
   * New upstream release.
   * Set fallback option for im-switch. (Closes: #400374)
   * Fix gcin's postrm script so that it can be removed cleanly when
     libgtk2.0-bin is already removed. (This is scim's Ubuntu bug #52087)
   * debian/patches:
     - remove 20_fix-glibc2.4-with-amd64.dpatch because upstream had fixed this
       bug.
     - add 20_fix_installation_path_for_im-client.dpatch and
       40_fix_build_failure_in_big-endian_arch.dpatch.
Files: 
 37f46b058e857af1d70a6aaf9d3a0137 615 utils optional gcin_1.3.1-1.dsc
 246ee254706260a191ab7a7827224d1c 1678709 utils optional gcin_1.3.1.orig.tar.gz
 ca7abdc3b30028ae3deca200868c4bc3 9289 utils optional gcin_1.3.1-1.diff.gz
 e0faf2197a3949824b620e995fb26238 1434228 utils optional gcin_1.3.1-1_i386.deb
 282f2e7d579e46de4b5bb2d4488232b4 36348 utils optional 
gcin-qt3-immodule_1.3.1-1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFdCvm+C5cwEsrK54RAnXZAKCuLrCeF5OFa3bGmvf2EErYxJNrVQCfVhrB
SBvY5jMo6pOVeI5MWamBk6I=
=9qMy
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to