--- im-sdk-12.3.91.orig/debian/iiimf-le-sun-traditional-chinese.postinst +++ im-sdk-12.3.91/debian/iiimf-le-sun-traditional-chinese.postinst @@ -0,0 +1,23 @@ +#!/bin/sh +# Post-installation script for the GTK+ input method module +# Shamelessly stolen from gucharmap package +# Copyright © 2003 Colin Walters +# Roger So + +set -e + +#DEBHELPER# + +case "$1" in + configure) + /usr/bin/iiimf-le-tools -g --install /usr/lib/iiim/le/twle/twle.so + ;; + abort-upgrade|abort-remove|abort-deconfigure) + ;; + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# vim:fileencoding=utf-8 --- im-sdk-12.3.91.orig/debian/compat +++ im-sdk-12.3.91/debian/compat @@ -0,0 +1 @@ +5 --- im-sdk-12.3.91.orig/debian/iiimf-client-el.dirs +++ im-sdk-12.3.91/debian/iiimf-client-el.dirs @@ -0,0 +1 @@ +usr/share/emacs/site-lisp/iiimf-client-el --- im-sdk-12.3.91.orig/debian/control +++ im-sdk-12.3.91/debian/control @@ -0,0 +1,287 @@ +Source: im-sdk +Section: text +Priority: optional +Maintainer: Roger So +Build-Depends: autotools-dev, libtool, dbs, debhelper (>= 5), libwrap0-dev (>= 7.6.dbs-3), libx11-dev, libice-dev, libsm-dev, libxt-dev, libpam0g-dev, libcanna1g-dev, libgtk2.0-dev (>= 2.10.1-1), flex, intltool, libxml2-dev, libgconf2-dev, libgnomeui-dev, libpanel-applet2-dev, scrollkeeper, libchewing3-dev, docbook-xml, docbook-xsl, xsltproc +Uploaders: Roger So , Akira TAGOH +Standards-Version: 3.8.0 + +Package: iiimf +Architecture: all +Depends: iiimf-server, iiimf-client-xbe, iiimf-client-gtk +Suggests: iiimf-im-switcher, iiimf-client-el, im-sdk-docs +Description: Meta package for IIIMF + The IIIMF package is a sample implementation of the Internet/Intranet Input + Method (IIIM Framework). IIIM is the next generation input method framework + under development. Compared to old solutions like XIM, IIIM provides + benefits like platform independence; multilingual, Unicode support; + distributed architecture; and efficient, lightweight client and server. + . + This package provides a meta package to install IIIMF easily. + +Package: iiimf-dev +Architecture: all +Depends: libiiimp-dev, libiiimcf-dev +Description: Meta package for the development of IIIMF + The IIIMF package is a sample implementation of the Internet/Intranet Input + Method (IIIM Framework). IIIM is the next generation input method framework + under development. Compared to old solutions like XIM, IIIM provides + benefits like platform independence; multilingual, Unicode support; + distributed architecture; and efficient, lightweight client and server. + . + This package provides a meta package to install the development + packages for IIIMF. + +Package: iiimf-server +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Suggests: iiimf-le-canna, iiimf-le-hangul, iiimf-le-unit, iiimf-le-sun-simplified-chinese, iiimf-le-sun-thai, iiimf-le-sun-traditional-chinese +Conflicts: iiimf-htt-server +Replaces: iiimf-htt-server, libiiimutils0 +Provides: iiimf-htt-server +Description: IIIMF input method server + The IIIMF package is a sample implementation of the Internet/Intranet Input + Method (IIIM Framework). IIIM is the next generation input method framework + under development. Compared to old solutions like XIM, IIIM provides + benefits like platform independence; multilingual, Unicode support; + distributed architecture; and efficient, lightweight client and server. + . + iiimfd is an IIIM server daemon that provides input method service to + multiple users in multiple languages simultaneously. The actual input + methods (called language engines) are implemented as plug-ins. + . + Note that this package alone does not contain any language engines; you'll + need to install them as well to get a useful IIIM server. For example, + iiimf-le-simplefied-chinese is a good Simplified Chinese language engine. + +Package: iiimf-client-xbe +Architecture: any +Depends: locales, ${shlibs:Depends}, ${misc:Depends}, iiimf-csconv-modules (= ${binary:Version}) +Suggests: iiimf-server +Conflicts: iiimf-htt-xbe +Replaces: iiimf-htt-xbe +Provides: iiimf-htt-xbe +Description: IIIMF XIM BackEnd module + The Htt package is a sample implementation of the Internet/Intranet Input + Method (IIIM) Framework. IIIM is the next generation input method framework + under development. Compared to old solutions like XIM, IIIM provides benefits + like platform independence; multilingual, Unicode support; distributed + architecture; and efficient, lightweight client and server. + . + The XIM BackEnd module is part of the IIIM X Window System Client Framework. + XBE is a small bridge server that translates the IIIM protocol to the old + XIM protocol, so that XIM clients like Mozilla and GTK+ programs can use the + input methods provided by an IIIM server. + +Package: iiimf-client-gtk +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Suggests: iiimf-server +Conflicts: iiimgcf +Replaces: iiimgcf +Provides: iiimgcf +Description: IIIM GTK+ 2.x Input Method Module Client + iiimf-client-gtk provides a GTK+ 2.x Input Method Module that connects to an + Internet/Intranet Input Method server such as iiimf-server. This + enables applications based on GTK+ 2.x to use input methods provided by the + IIIM server without going through the antiquated XIM protocol; benefits + include the ability to input all characters in the Unicode character set + even if the underlying locale does not support them. + +Package: iiimf-im-switcher +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Input Method switcher for IIIMF + The IIIMF package is a sample implementation of the Internet/Intranet Input + Method (IIIM Framework). IIIM is the next generation input method framework + under development. Compared to old solutions like XIM, IIIM provides + benefits like platform independence; multilingual, Unicode support; + distributed architecture; and efficient, lightweight client and server. + . + iiimf-im-switcher provides an applet for GNOME to switch the input method + for IIIMF. + +Package: iiimf-csconv-modules +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Conflicts: iiimf-htt-csconv +Replaces: iiimf-htt-csconv +Provides: iiimf-htt-csconv +Description: Codeset Conversion modules for IIIMF components + This package contains encoding conversion modules derived from IBM's + International Components for Unicode (ICU), which is needed by the + iiimf-client-xbe package and some language engines. + +Package: libiiimp1 +Architecture: any +Section: libs +Depends: ${shlibs:Depends}, ${misc:Depends} +Replaces: libiiimp0 +Description: Internet/Intranet Input Method Protocol library + The IIIMF package is a sample implementation of the Internet/Intranet Input + Method (IIIM Framework). IIIM is the next generation input method framework + under development. Compared to old solutions like XIM, IIIM provides + benefits like platform independence; multilingual, Unicode support; + distributed architecture; and efficient, lightweight client and server. + . + libiiimp provides a C application programming interface to deal with the + IIIM protocol. + +Package: libiiimp-dev +Architecture: any +Section: libdevel +Depends: libiiimp1 (= ${binary:Version}) +Description: IIIM Protocol library development files + The IIIMF package is a sample implementation of the Internet/Intranet Input + Method (IIIM Framework). IIIM is the next generation input method framework + under development. Compared to old solutions like XIM, IIIM provides + benefits like platform independence; multilingual, Unicode support; + distributed architecture; and efficient, lightweight client and server. + . + libiiimp provides a C application programming interface to deal with the + IIIM protocol. + . + This package provides a static version of libiiimp, as well as the header + files needed for developing programs that use libiiimp. + +Package: libiiimcf3 +Architecture: any +Section: libs +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Internet/Intranet Input Method Client Framework library + The IIIMF package is a sample implementation of the Internet/Intranet Input + Method (IIIM Framework). IIIM is the next generation input method framework + under development. Compared to old solutions like XIM, IIIM provides + benefits like platform independence; multilingual, Unicode support; + distributed architecture; and efficient, lightweight client and server. + . + libiiimcf provides an easy to use C application programming interface to + write IIIM clients. + +Package: libiiimcf-dev +Architecture: any +Section: libdevel +Depends: libiiimcf3 (= ${binary:Version}), libiiimp-dev (= ${binary:Version}) +Description: IIIM Client Framework library development files + The IIIMF package is a sample implementation of the Internet/Intranet Input + Method (IIIM Framework). IIIM is the next generation input method framework + under development. Compared to old solutions like XIM, IIIM provides + benefits like platform independence; multilingual, Unicode support; + distributed architecture; and efficient, lightweight client and server. + . + libiiimcf provides an easy to use C application programming interface to + write IIIM clients. + . + This package provides a static version of libiiimcf, as well as the header + files. + +Package: iiimf-client-el-bin +Architecture: any +Section: utils +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Utility of IIIMF frontend for Emacs + The IIIMF package is a sample implementation of the Internet/Intranet Input + Method (IIIM Framework). IIIM is the next generation input method framework + under development. Compared to old solutions like XIM, IIIM provides + benefits like platform independence; multilingual, Unicode support; + distributed architecture; and efficient, lightweight client and server. + . + iiimf-client-el-bin contains an utility to use iiimf-client-el. + +Package: iiimf-client-el +Architecture: all +Section: utils +Depends: emacs21 | emacsen, mule-ucs, iiimf-client-el-bin (>= ${source:Version}) +Description: IIIMF frontend for Emacs + The IIIMF package is a sample implementation of the Internet/Intranet Input + Method (IIIM Framework). IIIM is the next generation input method framework + under development. Compared to old solutions like XIM, IIIM provides + benefits like platform independence; multilingual, Unicode support; + distributed architecture; and efficient, lightweight client and server. + . + iiimf-client-el provides a frontend to use IIIMF inside Emacs. + +Package: im-sdk-docs +Architecture: all +Section: doc +Depends: doc-base, ${misc:Depends} +Recommends: www-browser +Description: Documentation provided in IM-SDK + This package contains documents provided in the Internet/Intranet Input + Method Framework (IIIMF) Input Method Software Development Kit, including: + . + * IIIMF White Paper + * IIIM Protocol Specification + * Language Engine API Specification + * IIIMF FAQ + * Platform Independent Converters Specification + * IIIMCF Library Specification + +Package: iiimf-le-unit +Architecture: any +Depends: iiimf-server, ${shlibs:Depends}, ${misc:Depends} +Conflicts: iiimf-htt-le-indic +Replaces: iiimf-htt-le-indic +Provides: iiimf-htt-le-indic +Description: UNIT language engine for iiimf-server + This package adds the "UNIT" language engine to iiimf-server, an + Internet/Intranet Input Method (IIIM) server. + . + Currently this includes the following input methods: + * Bengali + * Gujarati + * Gurmukhi + * Hindi + * Kannada + * Malayalam + * Tamil + * Telugu + +Package: iiimf-le-canna +Architecture: any +Depends: iiimf-server, iiimf-csconv-modules, ${shlibs:Depends}, ${misc:Depends} +Suggests: canna +Conflicts: iiimf-htt-le-canna +Replaces: iiimf-htt-le-canna +Provides: iiimf-htt-le-canna +Description: Canna language engine for iiimf-server + This language engine adds the Canna Japanese input method to + iiimf-server, an Internet/Intranet Input Method (IIIM) server. Note + that this language engine needs to connect to a Canna server to work. + +Package: iiimf-le-hangul +Architecture: any +Depends: iiimf-server, ${shlibs:Depends}, ${misc:Depends} +Description: Korean language engine for iiimf-server + This language engine adds the Hangul input method to iiimf-server, + an Internet/Intranet Input Method (IIIM) server. + +Package: iiimf-le-sun-thai +Architecture: any +Depends: iiimf-server, ${shlibs:Depends}, ${misc:Depends} +Description: Thai language engine for iiimf-server + This language engine adds the Thai input method to iiimf-server, + an Internet/Intranet Input Method (IIIM) server. which is made by Sun. + +Package: iiimf-le-sun-simplified-chinese +Architecture: any +Depends: iiimf-server, ${shlibs:Depends}, ${misc:Depends} +Description: Simplified Chinese language engine for iiimf-server + This language engine adds the Simplified Chinese input method to iiimf-server, + an Internet/Intranet Input Method (IIIM) server. which is made by Sun. + +Package: iiimf-le-sun-traditional-chinese +Architecture: any +Depends: iiimf-server, ${shlibs:Depends}, ${misc:Depends} +Description: Traditional Chinese language engine for iiimf-server + This language engine adds the Traditional Chinese input method to + iiimf-server, an Internet/Intranet Input Method (IIIM) server, + which is made by Sun. + +Package: iiimf-le-sun-hong-kong-chinese +Architecture: any +Depends: iiimf-server, ${shlibs:Depends}, ${misc:Depends} +Description: Hong Kong Chinese language engine for iiimf-server + This language engine adds the Hong Kong Chinese input method to + iiimf-server, an Internet/Intranet Input Method (IIIM) server, + which is made by Sun. --- im-sdk-12.3.91.orig/debian/iiimf-le-sun-thai.prerm +++ im-sdk-12.3.91/debian/iiimf-le-sun-thai.prerm @@ -0,0 +1,22 @@ +#!/bin/sh +# Post-installation script for the GTK+ input method module +# Shamelessly stolen from gucharmap package +# Copyright © 2003 Colin Walters +# Roger So + +set -e + +#DEBHELPER# + +case "$1" in + remove|upgrade|deconfigure) + /usr/bin/iiimf-le-tools -g --remove /usr/lib/iiim/le/thaile/thaile.so + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 +esac + +# vim:fileencoding=utf-8 --- im-sdk-12.3.91.orig/debian/iiimf-le-sun-simplified-chinese.prerm +++ im-sdk-12.3.91/debian/iiimf-le-sun-simplified-chinese.prerm @@ -0,0 +1,22 @@ +#!/bin/sh +# Post-installation script for the GTK+ input method module +# Shamelessly stolen from gucharmap package +# Copyright © 2003 Colin Walters +# Roger So + +set -e + +#DEBHELPER# + +case "$1" in + remove|upgrade|deconfigure) + /usr/bin/iiimf-le-tools -g --remove /usr/lib/iiim/le/cle/cle.so + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 +esac + +# vim:fileencoding=utf-8 --- im-sdk-12.3.91.orig/debian/libiiimcf-dev.install +++ im-sdk-12.3.91/debian/libiiimcf-dev.install @@ -0,0 +1,6 @@ +usr/lib/libiiimcf.a +usr/lib/libiiimcf.la +usr/lib/libiiimcf.so +usr/lib/pkgconfig/iiimf-lib-client.pc +usr/include/iiim/iiimcf.h +usr/include/iiim/lexmlconf.h --- im-sdk-12.3.91.orig/debian/iiimf-le-sun-traditional-chinese.install +++ im-sdk-12.3.91/debian/iiimf-le-sun-traditional-chinese.install @@ -0,0 +1 @@ +usr/lib/iiim/le/twle/* --- im-sdk-12.3.91.orig/debian/iiimf-le-sun-simplified-chinese.install +++ im-sdk-12.3.91/debian/iiimf-le-sun-simplified-chinese.install @@ -0,0 +1,2 @@ +usr/lib/iiim/le/cle/* +usr/lib/iiim/le/newpy/* --- im-sdk-12.3.91.orig/debian/iiimf-csconv-modules.install +++ im-sdk-12.3.91/debian/iiimf-csconv-modules.install @@ -0,0 +1 @@ +usr/lib/iiim/csconv/* --- im-sdk-12.3.91.orig/debian/iiimf-le-sun-hong-kong-chinese.postinst +++ im-sdk-12.3.91/debian/iiimf-le-sun-hong-kong-chinese.postinst @@ -0,0 +1,23 @@ +#!/bin/sh +# Post-installation script for the GTK+ input method module +# Shamelessly stolen from gucharmap package +# Copyright © 2003 Colin Walters +# Roger So + +set -e + +#DEBHELPER# + +case "$1" in + configure) + /usr/bin/iiimf-le-tools -g --install /usr/lib/iiim/le/hkle/hkle.so + ;; + abort-upgrade|abort-remove|abort-deconfigure) + ;; + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# vim:fileencoding=utf-8 --- im-sdk-12.3.91.orig/debian/iiimf-client-gtk.install +++ im-sdk-12.3.91/debian/iiimf-client-gtk.install @@ -0,0 +1 @@ +usr/lib/gtk-2.0/* --- im-sdk-12.3.91.orig/debian/iiimf-client-el-bin.install +++ im-sdk-12.3.91/debian/iiimf-client-el-bin.install @@ -0,0 +1 @@ +usr/bin/udclient --- im-sdk-12.3.91.orig/debian/iiimf-le-unit.prerm +++ im-sdk-12.3.91/debian/iiimf-le-unit.prerm @@ -0,0 +1,22 @@ +#!/bin/sh +# Post-installation script for the GTK+ input method module +# Shamelessly stolen from gucharmap package +# Copyright © 2003 Colin Walters +# Roger So + +set -e + +#DEBHELPER# + +case "$1" in + remove|upgrade|deconfigure) + /usr/bin/iiimf-le-tools -g --remove /usr/lib/iiim/le/unitle/unitle.so + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 +esac + +# vim:fileencoding=utf-8 --- im-sdk-12.3.91.orig/debian/iiimf-le-canna.install +++ im-sdk-12.3.91/debian/iiimf-le-canna.install @@ -0,0 +1 @@ +usr/lib/iiim/le/CannaLE/* --- im-sdk-12.3.91.orig/debian/iiimf-client-gtk.postinst +++ im-sdk-12.3.91/debian/iiimf-client-gtk.postinst @@ -0,0 +1,11 @@ +#!/bin/sh +# Post-installation script for the GTK+ input method module +# Shamelessly stolen from gucharmap package +# Copyright © 2003 Colin Walters +# Roger So + +set -e + +#DEBHELPER# + +# vim:fileencoding=utf-8 --- im-sdk-12.3.91.orig/debian/README.build +++ im-sdk-12.3.91/debian/README.build @@ -0,0 +1,20 @@ +This package uses a build system called DBS (Doogie's Build System). +To extract the upstream source, run "debian/rules setup". This will +extract the pristine source in build-tree/, and apply patches from +debian/patches/. + +Note that source modifications in build-tree/ will not be preserved +after the "clean" target is run. + +To create patches for the source, remember the following steps: There +are two targets for handling source. The "unpacked" target will +simply unpack the tarball(s) into build-tree/; the "patched" target +will apply all patches from debian/patches/. If you make any changes, +you can generate a new patch using the "make_patch" target. This will +move your current sources under build-tree/, unpack the source+patches +again, and then generate a diff between the two. Note that you should +run the "clean" target in the build-tree/ source before doing this to +get a clean patch. + +Tollef Fog Heen +(modified by Colin Walters ) --- im-sdk-12.3.91.orig/debian/iiimf-le-sun-thai.postinst +++ im-sdk-12.3.91/debian/iiimf-le-sun-thai.postinst @@ -0,0 +1,23 @@ +#!/bin/sh +# Post-installation script for the GTK+ input method module +# Shamelessly stolen from gucharmap package +# Copyright © 2003 Colin Walters +# Roger So + +set -e + +#DEBHELPER# + +case "$1" in + configure) + /usr/bin/iiimf-le-tools -g --install /usr/lib/iiim/le/thaile/thaile.so + ;; + abort-upgrade|abort-remove|abort-deconfigure) + ;; + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# vim:fileencoding=utf-8 --- im-sdk-12.3.91.orig/debian/iiimf-server.README.Debian +++ im-sdk-12.3.91/debian/iiimf-server.README.Debian @@ -0,0 +1,2 @@ +The file /etc/iiim/htt.xml.conf configures the access control mechanisms of +htt_server. Please see that file for details; it is commented extensively. --- im-sdk-12.3.91.orig/debian/iiimf-client-xbe.install +++ im-sdk-12.3.91/debian/iiimf-client-xbe.install @@ -0,0 +1,5 @@ +usr/bin/iiimx +usr/lib/iiim/iiim-xbe +usr/lib/iiim/xiiimp.so +usr/lib/iiim/xiiimp.so.2 +usr/lib/iiim/xiiimp.so.2.0.0 --- im-sdk-12.3.91.orig/debian/im-sdk-docs.doc-base.iiimf-faq +++ im-sdk-12.3.91/debian/im-sdk-docs.doc-base.iiimf-faq @@ -0,0 +1,9 @@ +Document: iiimf-faq +Title: IIIMF FAQ +Abstract: This is a list of frequently asked questions (and their answers) + regarding the Internet/Intranet Input Method Framework (IIIMF). +Section: Apps/Programming + +Format: HTML +Index: /usr/share/doc/im-sdk-docs/IIIM/faq/FAQ.html +Files: /usr/share/doc/im-sdk-docs/IIIM/faq/* --- im-sdk-12.3.91.orig/debian/libiiimp1.install +++ im-sdk-12.3.91/debian/libiiimp1.install @@ -0,0 +1 @@ +usr/lib/libiiimp.so.* --- im-sdk-12.3.91.orig/debian/iiimf-le-sun-hong-kong-chinese.install +++ im-sdk-12.3.91/debian/iiimf-le-sun-hong-kong-chinese.install @@ -0,0 +1 @@ +usr/lib/iiim/le/hkle/* --- im-sdk-12.3.91.orig/debian/iiimf-le-unit.install +++ im-sdk-12.3.91/debian/iiimf-le-unit.install @@ -0,0 +1 @@ +usr/lib/iiim/le/unitle/* --- im-sdk-12.3.91.orig/debian/im-sdk-docs.doc-base.iiimp-spec +++ im-sdk-12.3.91/debian/im-sdk-docs.doc-base.iiimp-spec @@ -0,0 +1,13 @@ +Document: iiimp-spec +Title: IIIM Protocol Specification +Author: Hideki Hiura, Hidetoshi Tajima +Abstract: This document specifies the Internet-Intranet Input Method Protocol + (IIIMP), which leverages network-based input method services for the Internet, + Network Computer and Java. While IIIMP is designed for use by applications on + Network Computers, this specification discusses its operation on other hardware + platforms. +Section: Apps/Programming + +Format: HTML +Index: /usr/share/doc/im-sdk-docs/IIIM/protocol/spec.html +Files: /usr/share/doc/im-sdk-docs/IIIM/protocol/* --- im-sdk-12.3.91.orig/debian/im-sdk-docs.doc-base.iiimf-lei-spec +++ im-sdk-12.3.91/debian/im-sdk-docs.doc-base.iiimf-lei-spec @@ -0,0 +1,12 @@ +Document: lei-spec +Title: Language Engine API Specification +Author: Masaki Katakai +Abstract: This document describes how to develop Language Engine Modules to be + connected to htt_server by using SunIM library. When you have written Language + Engine Module once with SunIM library, the module will connect any client that + supports Internet-Intranet Input Method (IIIM) protocol through htt_server. +Section: Apps/Programming + +Format: HTML +Index: /usr/share/doc/im-sdk-docs/IIIM/spi/LEI.html +Files: /usr/share/doc/im-sdk-docs/IIIM/spi/* --- im-sdk-12.3.91.orig/debian/iiimf-client-gtk.postrm +++ im-sdk-12.3.91/debian/iiimf-client-gtk.postrm @@ -0,0 +1,15 @@ +#!/bin/sh +# Post-installation script for the GTK+ input method module +# Shamelessly stolen from gucharmap package +# Copyright © 2003 Colin Walters +# Roger So + +set -e + +#DEBHELPER# + +if [ -x /usr/sbin/update-gtk-immodules ]; then + /usr/sbin/update-gtk-immodules +fi + +# vim:fileencoding=utf-8 --- im-sdk-12.3.91.orig/debian/im-sdk-docs.doc-base.libiiimcf-spec +++ im-sdk-12.3.91/debian/im-sdk-docs.doc-base.libiiimcf-spec @@ -0,0 +1,11 @@ +Document: libiiimcf-spec +Title: IIIMCF Library Specification +Author: Hisashi Miyashita +Abstract: This document specifies the Internet-Intranet Input Method Client + Framework library API, which is a generic C-based client framework for + applications to enable intelligent input method facility. +Section: Apps/Programming + +Format: HTML +Index: /usr/share/doc/im-sdk-docs/iiimcf/index.html +Files: /usr/share/doc/im-sdk-docs/iiimcf/* --- im-sdk-12.3.91.orig/debian/iiimf-client-el.emacsen-startup +++ im-sdk-12.3.91/debian/iiimf-client-el.emacsen-startup @@ -0,0 +1,20 @@ +;; -*-emacs-lisp-*- +;; +;; Emacs startup file for the Debian emacs-wget package +;; +;; Originally contributed by Nils Naumann +;; Modified by Dirk Eddelbuettel +;; Adapted for dh-make by Jim Van Zandt + +;; The emacs-wget package follows the Debian/GNU Linux 'emacsen' policy and +;; byte-compiles its elisp files for each 'emacs flavor' (emacs19, +;; xemacs19, emacs20, xemacs20...). The compiled code is then +;; installed in a subdirectory of the respective site-lisp directory. +;; We have to add this to the load-path: + +(setq load-path (cons (concat "/usr/share/" + (symbol-name flavor) + "/site-lisp/iiimf-el") load-path)) + +(setq iiimcf-server-control-hostlist '("unix/:9010")) +(require 'iiimcf-sc) --- im-sdk-12.3.91.orig/debian/changelog +++ im-sdk-12.3.91/debian/changelog @@ -0,0 +1,435 @@ +im-sdk (12.3.91-6.3) unstable; urgency=low + + * Non-maintainer upload. + * Fix several implicit pointer conversions (Closes: #355612) + + -- dann frazier Mon, 19 Jan 2009 16:21:05 -0700 + +im-sdk (12.3.91-6.2) unstable; urgency=medium + + * Non-maintainer upload. + * Fix bashism in debian/rules (Closes: #477585) + * Bump Standards-Version to 3.8.0 + + -- Chris Lamb Sat, 07 Jun 2008 19:58:58 +0100 + +im-sdk (12.3.91-6.1) unstable; urgency=low + + * Non-maintainer upload. + * Added LSB formatted dependency info in init.d script (closes: #469026) + + -- Peter Eisentraut Thu, 03 Apr 2008 14:21:56 +0200 + +im-sdk (12.3.91-6) unstable; urgency=low + + * Ack NMU. Thank you Cyril Brulebois and Mario Iseli. (Closes: #431579) + * debian/control: + + Made binMNU safe. (Closes: #437485) + * debian/patches/007_leif-implicit-pointer.patch + + More implicit pointer conversions fix. Thanks to Dann Frazier for the + patch. + * debian/patches/010_dont-use-0-as-null.patch + + Fix iiim-xbe crashes on 64-bit architectures. + + -- Roger So Mon, 13 Aug 2007 13:14:03 +0800 + +im-sdk (12.3.91-5.1) unstable; urgency=medium + + * Non-maintainer upload. + * Only execute update-gtk-immodules in iiimf-client-gtk.postrm if it's + available (Closes: #431579). + + -- Mario Iseli Wed, 9 Aug 2007 09:13:17 +0200 + +im-sdk (12.3.91-5) unstable; urgency=low + + * Set LD_LIBRARY_PATH when calling dh_gtkmodules (Closes: #427641) + + -- Roger So Tue, 5 Jun 2007 22:01:49 +0800 + +im-sdk (12.3.91-4) unstable; urgency=low + + * Recompile against Gtk+ 2.10. (Closes: #419307) + * More 64-bit fixes. + * Use xsltproc and docbook-xsl instead of jade to generate HTML documents. + + -- Roger So Mon, 4 Jun 2007 23:56:52 +0800 + +im-sdk (12.3.91-3) unstable; urgency=low + + * Patch to install missing libiiimp header files. (Closes: #393881) + * Another attempt at fixing 64 bit issues, but still needs testing so + I'm not closing any bugs at the moment. + + -- Roger So Wed, 14 Mar 2007 16:25:03 +0800 + +im-sdk (12.3.91-2) unstable; urgency=low + + * debian/iiimf-server.postinst: + + Should not run update-gtk-immodules. (Closes: #409728) + + Should not start/restart daemon if running. (Closes: #393447) + * debian/iiimf-le-*.postinst: + + Again, should not run update-gtk-immodules. + * debian/control: + + Added more descriptive descriptons to libiiim*, iiimf and iiimf-dev + packages. (Closes: #332379) + + Fixed speling mistooks. (Closes: #363959, #363960) + + Added proper Replaces: for deprecated packages. (Closes: #341332) + + Removed Recommends: lynx for im-sdk-docs. + + -- Roger So Mon, 12 Mar 2007 13:05:48 +0800 + +im-sdk (12.3.91-0.2) unstable; urgency=low + + * Reverting back to this version as newer trunk is unlikely to be + stable before etch. + * Use debhelper v5 + * debian/control: + + Build-Depends: libchewing3-dev + + Bump Standards-Version to 3.7.2.1 + - No changes + + -- Roger So Tue, 29 Aug 2006 12:43:47 +0800 + +im-sdk (12.3.91-0.1) experimental; urgency=low + + * New upstream release + * debian/control: + + Removed packages libiiimutils0, libiiimutils-dev: + They are not meant to be public interfaces, but are part + of iiimf-server. + + Bump Standards-Version to 3.6.2.1 + - im-sdk-docs actually Depends: doc-base now + * soname version bumps + + libiiimp0 -> libiiimp1 + + libiiimcf2 -> libiiimcf3 + + -- Roger So Tue, 25 Oct 2005 15:43:27 +0700 + +im-sdk (12.2.2612-0.1) experimental; urgency=low + + * New upstream stable release r12.2. + + -- Roger So Tue, 5 Jul 2005 11:10:56 +0800 + +im-sdk (12.1.1.svn2402-0.2) experimental; urgency=high + + * First public release of 12.x series. + * debian/control: + + Added Uploaders: Akira TAGOH . + Thank you Tagoh-san! + + Added Build-Depends: libchewing2-dev to allow chewing to be built + for twle and hkle. + * debian/rules: + + Actually pass CFLAGS to the configure commands. + + See how we go with -Wl,--as-needed + * New package: + + iiimf-le-sun-hong-kong-chinese + + -- Roger So Sat, 2 Apr 2005 11:28:03 +0800 + +im-sdk (12.1.1.svn2402-0.1) unstable; urgency=low + + * New upstream release from svn. + - fixed the invalid path issue. + + -- Akira TAGOH Thu, 31 Mar 2005 02:54:34 +0900 + +im-sdk (12.1.1.svn2401-0.1) unstable; urgency=low + + * New upstream release from svn. + + -- Akira TAGOH Wed, 30 Mar 2005 17:22:25 +0900 + +im-sdk (12.1.1.svn2379-0.2) unstable; urgency=low + + * debian/rules: updated shlibs. + + -- Akira TAGOH Thu, 24 Mar 2005 03:52:49 +0900 + +im-sdk (12.1.1.svn2379-0.1) unstable; urgency=low + + * New upstream release from svn. + * Package renaming again: + - iiimf-xbe(iiimf-htt-xbe) -> iiimf-client-xbe + - iiimf-gtk(iiimgcf) -> iiimf-client-gtk + - iiimf-el-bin -> iiimf-client-el-bin + - iiimf-el -> iiimf-client-el + * New packages: + - iiimf: a meta package to install IIIMF. + - iiimf-dev: a meta package to install the development packages. + + -- Akira TAGOH Thu, 24 Mar 2005 02:25:37 +0900 + +im-sdk (12.1.1.svn2364-0.1) unstable; urgency=low + + * New upstream release from svn. + * debian/rules: added dh_installemacsen. + + -- Akira TAGOH Tue, 22 Mar 2005 08:43:23 +0900 + +im-sdk (12.1.1.svn2360-0.1) unstable; urgency=low + + * New upstream release from svn. + * debian/rules: clean up. + * Packages renaming: + - iiimf-htt-server -> iiimf-server + - iiimf-htt-xbe -> iiimf-xbe + - iiimgcf -> iiimf-gtk + - iiimf-htt-csconv -> iiimf-csconv-modules + - iiimf-htt-le-indic -> iiimf-le-unit + - iiimf-htt-le-canna -> iiimf-le-canna + * New packages: + - libiiimutils0 + - libiiimutils-dev + - iiimf-im-switcher + - iiimf-el + - iiimf-el-bin + - iiimf-le-hangul + - iiimf-le-sun-thai + - iiimf-le-sun-simplified-chinese + - iiimf-le-sun-traditional-chinese + * Removed package: + - iiimf-htt-le-newpy: replaced by Sun Chinese LE. + + -- Akira TAGOH Mon, 21 Mar 2005 11:21:38 +0900 + +im-sdk (12.1.2059-1mtu1) unstable-mtu; urgency=low + + * Built for MTU/Linux. + * Added libxml2-dev to build-depends. + * Made 64bit patch. + + -- Kenshi Muto Tue, 4 Jan 2005 14:22:10 +0000 + +im-sdk (12.1.2059-1) unstable; urgency=high + + * new snapshot of upstream for atokx2. + + -- Hiroshi Miura Sat, 25 Dec 2004 18:08:20 -0900 + +im-sdk (12.1.2002-2) unstable; urgency=high + + * debian/rules: add configure options to fix install path of im-sdk-doc. + + -- Hiroshi Miura Sat, 20 Nov 2004 18:08:20 -0900 + +im-sdk (12.1.2002-1) unstable; urgency=high + + * New snapshot of upstream Subversion repository. + * debian/patches/005_leif_makefile.patch + + fix Makefile.am to compile with new flex source + * debian/patches/006_doc_xmlpath.patch + + change an install path of xml.dcl file. + + -- Hiroshi Miura Sat, 20 Nov 2004 18:08:20 -0900 + +im-sdk (12.0.1887-1) unstable; urgency=high + + * New snapshot of upstream Subversion repository. + + -- Hiroshi Miura Fri, 19 Nov 2004 18:08:20 -0900 + +im-sdk (11.4.1870-7) unstable; urgency=high + + * Recompiled with dependencies from sarge. + * Urgency=high to get this into sarge. + + -- Roger So Sat, 6 Nov 2004 16:38:40 +0800 + +im-sdk (11.4.1870-6) unstable; urgency=high + + * So Gmail has been marking all mail from the BTS as spam. Grrr... + * debian/control: + + Add Build-Depends: jade as a quick fix to Bug #274099. + (Closes: #274099) + * Urgency=high to get this into sarge now! + + -- Roger So Tue, 26 Oct 2004 20:32:51 +0800 + +im-sdk (11.4.1870-5) unstable; urgency=high + + * debian/patches/004_fix-64bit.patch: + Fix yet more 64 bit breakage on alpha, ia64, and hopefully amd64... + + -- Roger So Tue, 24 Aug 2004 16:27:44 +0800 + +im-sdk (11.4.1870-4) unstable; urgency=high + + * urgency=high to get this into sarge. + * debian/patches/004_fix-64bit.patch (new): + Attempt to fix FTBFS on 64 bit archs. + + -- Roger So Tue, 24 Aug 2004 00:42:42 +0800 + +im-sdk (11.4.1870-3) unstable; urgency=high + + * debian/control: + + Build-Depends on intltool. Argh!!! + + -- Roger So Fri, 20 Aug 2004 13:03:48 +0800 + +im-sdk (11.4.1870-2) unstable; urgency=low + + * Oops, the last one could not be compile because some of the libtool + scripts were only symlinks to the actual files! Argh! + * debian/control: + + Build-Depends on libtool for now. + * urgency=high to get this into sarge. + + -- Roger So Fri, 20 Aug 2004 10:12:27 +0800 + +im-sdk (11.4.1870-1) unstable; urgency=medium + + * New snapshot of upstream Subversion repository. + * Let's get this into sarge! + * debian/patches/*: + + All patches updated for revision 1870. + * debian/control: + + Bump Standards-Version to 3.6.1.1 (no changes). + + im-sdk-docs now Recommends a web browser. + * debian/rules: + + Minor changes for revision 1870. + * GIMLET not included in this release as it is still not stable enough. + + -- Roger So Tue, 17 Aug 2004 14:17:57 +0800 + +im-sdk (11.4.1483-4) unstable; urgency=high + + * Urgency=high as this fixes grave bugs. + * debian/patches/003_htt-conf-perms.patch (new): + Allow all connections from localhost by default. + * debian/control: + iiimgcf Depends: on libgtk2.0-bin, as postinst needs it. (Closes: #246988) + * debian/iiimgcf.post{inst,rm}: + Use update-gtk-immodules instead of updating GTK's IM modules file + ourselves. + * Recompile with GTK+ 2.4. (Closes: #252797) + + -- Roger So Tue, 4 May 2004 12:26:53 +0800 + +im-sdk (11.4.1483-3) unstable; urgency=medium + + * debian/patches/000_gb18030.patch (recovered): + Patch to enable GB18030 support for CSConv. Note that the libx11-6 package + in Debian still does not have the GB18030 patches. + * debian/patches/002_xiiimp-xtrl-mask.patch (new): + Patch to unblock the sending of modifier keys' keypress events from + xiiimp.so to the input server. + + -- Roger So Tue, 27 Apr 2004 15:04:47 +0800 + +im-sdk (11.4.1483-2) unstable; urgency=medium + + * debian/patches/001_fix-xml-dcl.patch (new): + sgml-data >= 2.0 no longer symlinks /usr/lib/sgml to /usr/share/sgml. + Applied patch from Alexander Schmehl to fix FTBFS; thanks. + (Closes: #240431) + * debian/control: tightened some Build-Depends. + + -- Roger So Sun, 18 Apr 2004 16:12:09 +0800 + +im-sdk (11.4.1483-1) unstable; urgency=low + + * New upstream release. + * Improved package descriptions. (Closes: #209544) + * Bump Standards-Version to 3.6.1 (no changes). + * libiiimcf2: Changed soname (from libiiimcf1). + + -- Roger So Mon, 6 Oct 2003 10:32:03 -0400 + +im-sdk (11.3.1421-1) unstable; urgency=medium + + * New upstream release. (Closes: #195798) + * Libraries are now linked correctly by using libtool all the way. + (Closes: #196610) + * New package iiimgcf: GTK+ 2.x input method module. + * debian/control: + + Build-Depends on libgtk2.0-dev. + + Removed the Provides/Conflicts/Replaces on htt-server and htt-xbe, as + I don't think anybody ever installed these. + + For iiimf-htt-xbe, demoted the Recommends: iiimf-htt-server to + Suggests:, as it is not required to have both on the same system. + + iiimf-htt-server now Suggests: some language engines. + + Reworded some package descriptions. + * debian/patches/001_trunk-1279-to-1280.diff (removed): + + No longer needed as we are using the latest version. + * debian/patches/002_stolen_from_HEAD_use_stdarg.diff (removed): + + Patch incorporated upstream. + * debian/lib*.post* (removed): + + Let debhelper insert the ldconfig line to postinst and postrm. + * debian/rules: + + Split binary-common into binary-arch and binary-indep. + + Miscellaneous cleanups. + * debian/copyright: + + Added reference to LGPL for iiimgcf. + + -- Roger So Tue, 17 Jun 2003 19:30:02 +1000 + +im-sdk (11.1.1280-5) unstable; urgency=medium + + * debian/control: + + Bump Standards-Version to 3.5.10 (no changes). + + Build-Depends on autotools-dev. + * debian/rules: + + Figured out how to use config.* from autotools-dev. (Closes: #194538) + * debian/patches/002_stolen_from_HEAD_use_stdarg.diff (new): + + Use stdarg.h instead of varargs.h to please GCC 3.3. Thanks to Jan + Ischebeck for initial patch (see #195798). (Closes: #196409) + + -- Roger So Sun, 8 Jun 2003 08:00:53 +1000 + +im-sdk (11.1.1280-4) unstable; urgency=low + + * debian/control: + + Replace 'jade, sgml-data' with 'docbook-dsssl, docbook-xml' for + Build-Depends. Yes, I must investigate pbuilder... (Closes: #192791) + + -- Roger So Sun, 11 May 2003 23:46:04 +1000 + +im-sdk (11.1.1280-3) unstable; urgency=low + + * debian/control: + + Add sgml-data to Build-Depends. (Closes: #190424) + + -- Roger So Sat, 10 May 2003 03:14:39 +1000 + +im-sdk (11.1.1280-2) unstable; urgency=low + + * debian/copyright: + + Copied IPL in full. (Thanks, ftpmaster.) + * debian/control: + + Added Suggests: canna for iiimf-htt-le-canna. + * debian/rules: + + Don't use DH_COMPAT. + + -- Roger So Mon, 14 Apr 2003 11:40:38 +1000 + +im-sdk (11.1.1280-1) unstable; urgency=low + + * First upload to unstable. (Closes: #155352) + * New upstream release, totally rewritten from ground up. + * Re-packaged using dbs and debhelper 4. + + -- Roger So Sat, 5 Apr 2003 01:55:03 +1000 + +im-sdk (10.1+cvs20020531-0.3) experimental; urgency=low + + * Added patch from Masaru Yokoi , to make + htt_xbe preserve XMODIFIERS when loading X auxiliary objects. + + * Initial upload to experimental. Please test! + + -- Roger So Wed, 28 Aug 2002 02:54:20 +1000 + +im-sdk (10.1+cvs20020531-0.2) experimental; urgency=low + + * Added fixes to errors found by valgrind + + -- Roger So Wed, 7 Aug 2002 15:41:50 +1000 + +im-sdk (10.1+cvs20020531-0.1) experimental; urgency=low + + * Initial packaging + + -- Roger So Sun, 4 Aug 2002 05:10:17 +1000 --- im-sdk-12.3.91.orig/debian/iiimf-le-sun-simplified-chinese.postinst +++ im-sdk-12.3.91/debian/iiimf-le-sun-simplified-chinese.postinst @@ -0,0 +1,23 @@ +#!/bin/sh +# Post-installation script for the GTK+ input method module +# Shamelessly stolen from gucharmap package +# Copyright © 2003 Colin Walters +# Roger So + +set -e + +#DEBHELPER# + +case "$1" in + configure) + /usr/bin/iiimf-le-tools -g --install /usr/lib/iiim/le/cle/cle.so + ;; + abort-upgrade|abort-remove|abort-deconfigure) + ;; + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# vim:fileencoding=utf-8 --- im-sdk-12.3.91.orig/debian/iiimf-le-hangul.install +++ im-sdk-12.3.91/debian/iiimf-le-hangul.install @@ -0,0 +1,2 @@ +usr/lib/iiim/le/hangul/* +usr/lib/iiim/le/kole/* --- im-sdk-12.3.91.orig/debian/rules +++ im-sdk-12.3.91/debian/rules @@ -0,0 +1,211 @@ +#!/usr/bin/make -f +# debian/rules for im-sdk +# Copyright © 2003 Roger So +# Modified by Akira TAGOH +# +# Derived from the sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. +# +# Modified to make a template file for a multi-binary package with separated +# build-arch and build-indep targets by Bill Allombert 2001 + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This has to be exported to make some magic below work. +export DH_OPTIONS + +TAR_DIR = iiimf-12.3.91-svn2814 +IIIMP_SO = 1 +IIIMCF_SO = 3 +# the dbs rules +include /usr/share/dbs/dbs-build.mk + +# set the DEB_BUILD_* and DEB_HOST_* variables +ifeq (,$(DEB_BUILD_GNU_TYPE)) + include /usr/share/dbs/dpkg-arch.mk +endif + +# FOR AUTOCONF 2.52 AND NEWER ONLY +ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) + confflags += --build $(DEB_HOST_GNU_TYPE) +else + confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) +endif + +confflags += --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=\$${prefix}/lib/iiim CFLAGS="$(CFLAGS)" + +CFLAGS = -Wall -g -pipe -Wl,--as-needed + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +TARGET_DIRS = lib/CSConv lib/EIMIL lib/iiimp lib/iiimcf iiimsf leif leif/sch_le_sun leif/sun_le_korea leif/thai_le_sun leif/tch_le_sun iiimxcf/xiiimp.so iiimxcf/htt_xbe + +configure: configure-stamp +configure-stamp: $(patched) + dh_testdir + + # hkle + cd $(BUILD_TREE)/leif && \ + cp -ar tch_le_sun hk_le_sun + + #cd $(BUILD_TREE) && \ + # make bootstrap CONFIGDIRS="$(TARGET_DIRS) leif/hk_le_sun" + + + for dir in $(TARGET_DIRS); do \ + (cd $(BUILD_TREE)/$$dir && \ + ./configure $(confflags);) \ + done + + # hkle again + cd $(BUILD_TREE)/leif/hk_le_sun && \ + ./configure --with-lang=zh_HK $(confflags) + + # iiimgcf + cd $(BUILD_TREE)/iiimgcf && \ + cp /usr/share/misc/config.sub /usr/share/misc/config.guess . && \ + ./configure $(confflags) + + # gnome-im-switcher + cd $(BUILD_TREE)/gnome-im-switcher && \ + cp /usr/share/misc/config.sub /usr/share/misc/config.guess . && \ + ./configure $(confflags) + + touch configure-stamp + + +#Architecture +build: build-arch build-indep + +build-arch: build-arch-stamp +build-arch-stamp: configure-stamp $(patched) + + # Add here commands to compile the arch part of the package. + for dir in $(TARGET_DIRS) leif/hk_le_sun iiimgcf gnome-im-switcher; do \ + (cd $(BUILD_TREE)/$$dir && \ + $(MAKE);) \ + done + cd $(BUILD_TREE)/iiimecf/util && make prefix=/usr + + touch build-arch-stamp + + +build-indep: build-indep-stamp +build-indep-stamp: configure-stamp $(patched) + + # Add here commands to compile the indep part of the package. + cd $(BUILD_TREE)/doc && sh ./autogen.sh --prefix=/usr + $(MAKE) -C $(BUILD_TREE)/doc XML_DECL=/usr/share/sgml/declaration/xml.dcl + $(MAKE) -C $(BUILD_TREE)/doc/iiimcf iiimcf-spec.html + $(MAKE) -C $(BUILD_TREE)/doc/iiimsf iiimsf-impl.html + + touch build-indep-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-arch-stamp build-indep-stamp configure-stamp + + # Add here commands to clean up after the build process. + rm -rf $(STAMP_DIR) $(SOURCE_DIR) + for dir in libiiimcf3-dbg libiiimp1-dbg; do \ + ( rm -rf $(CURDIR)/debian/$$dir ;) \ + done + + dh_clean + +install: install-indep install-arch +install-indep: + dh_testdir + dh_testroot + dh_clean -k -i + dh_installdirs -i + + # Add here commands to install the indep part of the package into + # debian/-doc. + # INSTALLDOC# + # dh_installdocs -pim-sdk-docs $(BUILD_TREE)/doc/* + # dh_install -i --sourcedir=debian/tmp + topdir=`pwd` ; \ + $(MAKE) -C $(BUILD_TREE)/doc install DESTDIR=$$topdir/debian/tmp + mkdir -p debian/im-sdk-docs/usr/share/doc/im-sdk-docs/iiimcf/images + mkdir -p debian/im-sdk-docs/usr/share/doc/im-sdk-docs/iiimsf/images + mv debian/tmp/usr/share/doc/IIIM debian/im-sdk-docs/usr/share/doc/im-sdk-docs + cp -arx $(BUILD_TREE)/doc/iiimcf/*ml debian/im-sdk-docs/usr/share/doc/im-sdk-docs/iiimcf + cp -arx $(BUILD_TREE)/doc/iiimcf/images/*.png debian/im-sdk-docs/usr/share/doc/im-sdk-docs/iiimcf/images + cp -arx $(BUILD_TREE)/doc/iiimsf/*ml debian/im-sdk-docs/usr/share/doc/im-sdk-docs/iiimsf + cp -arx $(BUILD_TREE)/doc/iiimsf/images/*.png debian/im-sdk-docs/usr/share/doc/im-sdk-docs/iiimsf/images + + install -m 0644 $(BUILD_TREE)/iiimecf/lisp/*el $(CURDIR)/debian/iiimf-client-el/usr/share/emacs/site-lisp/iiimf-client-el/ + install -m 0644 $(BUILD_TREE)/iiimecf/iiimcf-comp.el $(CURDIR)/debian/iiimf-client-el/usr/share/emacs/site-lisp/iiimf-client-el/ + + # remove the unnecessary files here + dh_installdocs -pim-sdk-docs + dh_installdocs -piiimf-client-el $(BUILD_TREE)/iiimecf/README $(BUILD_TREE)/iiimecf/README.ja + +install-arch: + dh_testdir + dh_testroot + dh_clean -k -a + dh_installdirs -a + + # Add here commands to install the arch part of the package into + # debian/tmp. + for dir in $(TARGET_DIRS) leif/hk_le_sun iiimgcf; do \ + (cd $(BUILD_TREE)/$$dir && \ + $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp;) \ + done + cd $(BUILD_TREE)/gnome-im-switcher && \ + $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 + cd $(BUILD_TREE)/iiimecf/util && $(MAKE) install prefix=$(CURDIR)/debian/tmp/usr + + dh_install -a --list-missing --sourcedir=debian/tmp + +# Build architecture independant packages. +binary-indep: build-indep install-indep + dh_testdir -i + dh_testroot -i + dh_installdocs -i + dh_installchangelogs -i + dh_installemacsen -i + dh_link -i + dh_compress -i + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +# Build architecture dependant packages. +binary-arch: build-arch install-arch + dh_testdir -a + dh_testroot -a + dh_installdocs -a + dh_installinit -a --no-restart-on-upgrade + dh_installchangelogs -a + dh_link -a + dh_scrollkeeper -a + dh_gconf -a + LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:debian/libiiimcf$(IIIMCF_SO)/usr/lib:debian/libiiimp$(IIIMP_SO)/usr/lib dh_gtkmodules -piiimf-client-gtk + dh_strip -a -k + dh_compress -a + dh_fixperms -a + dh_makeshlibs -p libiiimcf$(IIIMCF_SO) -V "libiiimcf$(IIIMCF_SO) (>= 12.3)" + dh_makeshlibs -p libiiimp$(IIIMP_SO) -V "libiiimp$(IIIMP_SO) (>= 12.3)" + cat debian/*/DEBIAN/shlibs > debian/shlibs.local + dh_shlibdeps -a -l debian/libiiimcf$(IIIMCF_SO)/usr/lib:debian/libiiimp$(IIIMP_SO)/usr/lib + dh_installdeb -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +binary: binary-arch binary-indep +.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure --- im-sdk-12.3.91.orig/debian/iiimf-server.dirs +++ im-sdk-12.3.91/debian/iiimf-server.dirs @@ -0,0 +1 @@ +var/log/iiim --- im-sdk-12.3.91.orig/debian/iiimf-client-xbe.README.Debian +++ im-sdk-12.3.91/debian/iiimf-client-xbe.README.Debian @@ -0,0 +1,29 @@ +Very Simple Instructions +------------------------ + +Run + +~$ htt_xbe [-if lang_module] + +to start the IIIM <-> XIM bridge. You can specify the language module to +use with the -if switch, eg. "httx -if newpy". If you don't, then the IIIM +server will select one for you based on the locale you're running in. + +Before running other programs, you need to set the XMODIFIERS environment +variable: + +~$ XMODIFIERS=@im=htt; export XMODIFIERS + +You can put these two lines in your ~/.Xsession file. If you do this and you +use GDM, select "Debian" from the "Session" menu before you login. + +By default htt_xbe will connect to the IIIM server at localhost port 9010. +You can tell it to connect to somewhere else by creating a file ~/.iiimp and +put the following line in that file: + +iiimp.server=iiimp://[hostname or IP address]:[port] + +For example, the following line would tell htt_xbe to connect to the IIIM +server at other.host.net port 56789: + +iiimp.server=iiimp://other.host.net:56789 --- im-sdk-12.3.91.orig/debian/iiimf-client-el.install +++ im-sdk-12.3.91/debian/iiimf-client-el.install @@ -0,0 +1 @@ +usr/share/emacs/site-lisp/iiimf-el/* --- im-sdk-12.3.91.orig/debian/iiimf-le-canna.postinst +++ im-sdk-12.3.91/debian/iiimf-le-canna.postinst @@ -0,0 +1,23 @@ +#!/bin/sh +# Post-installation script for the GTK+ input method module +# Shamelessly stolen from gucharmap package +# Copyright © 2003 Colin Walters +# Roger So + +set -e + +#DEBHELPER# + +case "$1" in + configure) + /usr/bin/iiimf-le-tools -g --install /usr/lib/iiim/le/CannaLE/CannaLE.so + ;; + abort-upgrade|abort-remove|abort-deconfigure) + ;; + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# vim:fileencoding=utf-8 --- im-sdk-12.3.91.orig/debian/iiimf-le-sun-thai.install +++ im-sdk-12.3.91/debian/iiimf-le-sun-thai.install @@ -0,0 +1 @@ +usr/lib/iiim/le/thaile/* --- im-sdk-12.3.91.orig/debian/iiimf-server.init +++ im-sdk-12.3.91/debian/iiimf-server.init @@ -0,0 +1,77 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: iiimf-server +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +### END INIT INFO +# +# htt-server init.d script for htt-server +# Adopted from the skeleton by Roger So . +# +# skeleton is: Written by Miquel van Smoorenburg . +# Modified for Debian GNU/Linux +# by Ian Murdock . +# +# Version: @(#)skeleton 1.9.1 08-Apr-2002 miquels@cistron.nl +# + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/bin/iiimd +NAME=iiimd +DESC="Internet/Intranet Input Method server" + +PORT=9010 + +test -x $DAEMON || exit 0 + +set -e + +case "$1" in + start) + echo -n "Starting $DESC: $NAME" + start-stop-daemon --start --quiet \ + --exec $DAEMON -- -port $PORT + echo "." + ;; + stop) + echo -n "Stopping $DESC: $NAME " + start-stop-daemon --stop --quiet --exec $DAEMON + echo "." + ;; + #reload) + # + # If the daemon can reload its config files on the fly + # for example by sending it SIGHUP, do it here. + # + # If the daemon responds to changes in its config file + # directly anyway, make this a do-nothing entry. + # + # echo -n "Reloading $DESC configuration..." + # start-stop-daemon --stop --signal 1 --quiet --pidfile \ + # /var/run/$NAME.pid --exec $DAEMON + # echo "done." + #;; + restart|force-reload) + # + # If the "reload" option is implemented, move the "force-reload" + # option to the "reload" entry above. If not, "force-reload" is + # just the same as "restart". + # + echo -n "Restarting $DESC: $NAME" + start-stop-daemon --stop --quiet --exec $DAEMON + sleep 1 + start-stop-daemon --start --quiet \ + --exec $DAEMON -- -port $PORT + echo "." + ;; + *) + N=/etc/init.d/$NAME + # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 + echo "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 --- im-sdk-12.3.91.orig/debian/libiiimcf3.install +++ im-sdk-12.3.91/debian/libiiimcf3.install @@ -0,0 +1 @@ +usr/lib/libiiimcf.so.* --- im-sdk-12.3.91.orig/debian/iiimf-server.install +++ im-sdk-12.3.91/debian/iiimf-server.install @@ -0,0 +1,9 @@ +usr/bin/iiimd +usr/bin/iiimf-le-tools +usr/lib/libiiimutils.so.* +usr/lib/iiim/iiimd-watchdog +usr/lib/iiim/iiimf-segv-logger +usr/lib/iiim/le/default/* +usr/share/iiim/gdbcmd +etc/iiim/iiimd.xml.conf +var/run/iiim --- im-sdk-12.3.91.orig/debian/iiimf-le-unit.postinst +++ im-sdk-12.3.91/debian/iiimf-le-unit.postinst @@ -0,0 +1,23 @@ +#!/bin/sh +# Post-installation script for the GTK+ input method module +# Shamelessly stolen from gucharmap package +# Copyright © 2003 Colin Walters +# Roger So + +set -e + +#DEBHELPER# + +case "$1" in + configure) + /usr/bin/iiimf-le-tools -g --install /usr/lib/iiim/le/unitle/unitle.so + ;; + abort-upgrade|abort-remove|abort-deconfigure) + ;; + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# vim:fileencoding=utf-8 --- im-sdk-12.3.91.orig/debian/iiimf-client-el.emacsen-install +++ im-sdk-12.3.91/debian/iiimf-client-el.emacsen-install @@ -0,0 +1,45 @@ +#! /bin/sh -e +# /usr/lib/emacsen-common/packages/install/emacs-wget + +# Written by Jim Van Zandt , borrowing heavily +# from the install scripts for gettext by Santiago Vila +# and octave by Dirk Eddelbuettel . + +FLAVOR=$1 +PACKAGE=iiimf-client-el + +if [ ${FLAVOR} = emacs ]; then exit 0; fi + +echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR} + +FLAVORTEST=`echo $FLAVOR | cut -c-6` +if [ ${FLAVORTEST} = xemacs ] ; then + echo "${FLAVOR} isn't supported yet." + exit 0 +fi +FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile" + +ELDIR=/usr/share/emacs/site-lisp/${PACKAGE} +ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE} + +# Install-info-altdir does not actually exist. +# Maybe somebody will write it. +#if test -x /usr/sbin/install-info-altdir; then +# echo install/${PACKAGE}: install Info links for ${FLAVOR} +# install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/info/${PACKAGE}.info.gz +#fi + +install -m 755 -d ${ELCDIR} +cd ${ELDIR} +FILES=`echo *.el` +cp ${FILES} ${ELCDIR} +cd ${ELCDIR} + +cat << EOF > path.el +(setq load-path (cons "." load-path) byte-compile-warnings nil) +EOF +${FLAVOR} ${FLAGS} ${FILES} >> CompilationLog 2>&1 +rm -f *.el path.el +gzip -9 -f ${ELCDIR}/CompilationLog + +exit 0 --- im-sdk-12.3.91.orig/debian/iiimf-server.postinst +++ im-sdk-12.3.91/debian/iiimf-server.postinst @@ -0,0 +1,23 @@ +#!/bin/sh +# Post-installation script for the GTK+ input method module +# Shamelessly stolen from gucharmap package +# Copyright © 2003 Colin Walters +# Roger So + +set -e + +#DEBHELPER# + +case "$1" in + configure) + /usr/bin/iiimf-le-tools -g --default --lang en --install /usr/lib/iiim/le/default/default.so + ;; + abort-upgrade|abort-remove|abort-deconfigure) + ;; + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# vim:fileencoding=utf-8 --- im-sdk-12.3.91.orig/debian/iiimf-le-sun-traditional-chinese.prerm +++ im-sdk-12.3.91/debian/iiimf-le-sun-traditional-chinese.prerm @@ -0,0 +1,22 @@ +#!/bin/sh +# Post-installation script for the GTK+ input method module +# Shamelessly stolen from gucharmap package +# Copyright © 2003 Colin Walters +# Roger So + +set -e + +#DEBHELPER# + +case "$1" in + remove|upgrade|deconfigure) + /usr/bin/iiimf-le-tools -g --remove /usr/lib/iiim/le/twle/twle.so + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 +esac + +# vim:fileencoding=utf-8 --- im-sdk-12.3.91.orig/debian/iiimf-le-hangul.prerm +++ im-sdk-12.3.91/debian/iiimf-le-hangul.prerm @@ -0,0 +1,22 @@ +#!/bin/sh +# Post-installation script for the GTK+ input method module +# Shamelessly stolen from gucharmap package +# Copyright © 2003 Colin Walters +# Roger So + +set -e + +#DEBHELPER# + +case "$1" in + remove|upgrade|deconfigure) + /usr/bin/iiimf-le-tools -g --remove /usr/lib/iiim/le/hangul/hangul.so + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 +esac + +# vim:fileencoding=utf-8 --- im-sdk-12.3.91.orig/debian/iiimf-le-hangul.postinst +++ im-sdk-12.3.91/debian/iiimf-le-hangul.postinst @@ -0,0 +1,23 @@ +#!/bin/sh +# Post-installation script for the GTK+ input method module +# Shamelessly stolen from gucharmap package +# Copyright © 2003 Colin Walters +# Roger So + +set -e + +#DEBHELPER# + +case "$1" in + configure) + /usr/bin/iiimf-le-tools -g --install /usr/lib/iiim/le/hangul/hangul.so + ;; + abort-upgrade|abort-remove|abort-deconfigure) + ;; + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# vim:fileencoding=utf-8 --- im-sdk-12.3.91.orig/debian/iiimf-le-canna.prerm +++ im-sdk-12.3.91/debian/iiimf-le-canna.prerm @@ -0,0 +1,22 @@ +#!/bin/sh +# Post-installation script for the GTK+ input method module +# Shamelessly stolen from gucharmap package +# Copyright © 2003 Colin Walters +# Roger So + +set -e + +#DEBHELPER# + +case "$1" in + remove|upgrade|deconfigure) + /usr/bin/iiimf-le-tools -g --remove /usr/lib/iiim/le/CannaLE/CannaLE.so + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 +esac + +# vim:fileencoding=utf-8 --- im-sdk-12.3.91.orig/debian/shlibs.local +++ im-sdk-12.3.91/debian/shlibs.local @@ -0,0 +1,2 @@ +libiiimcf 3 libiiimcf3 (>= 12.3) +libiiimp 1 libiiimp1 (>= 12.3) --- im-sdk-12.3.91.orig/debian/libiiimp-dev.install +++ im-sdk-12.3.91/debian/libiiimp-dev.install @@ -0,0 +1,5 @@ +usr/lib/libiiimp.a +usr/lib/libiiimp.la +usr/lib/libiiimp.so +usr/include/iiim/iiimp*.h +usr/lib/pkgconfig/iiimf-lib-protocol.pc --- im-sdk-12.3.91.orig/debian/iiimf-im-switcher.install +++ im-sdk-12.3.91/debian/iiimf-im-switcher.install @@ -0,0 +1,13 @@ +usr/lib/bonobo/* +usr/lib/iiim/gnome-im-switcher-applet +usr/share/locale/* +usr/share/gnome-2.0 +usr/share/iiimf-im-switcher +usr/share/gnome/help/imswitcher +usr/share/omf/iiimf-im-switcher +usr/bin/gnome-im* +usr/share/control-center-2.0 +usr/share/icons/hicolor +usr/share/pixmaps +etc/gconf/schemas/gnome-im-switcher.schemas +etc/gconf/schemas/gnome-im-properties.schemas --- im-sdk-12.3.91.orig/debian/iiimf-le-sun-hong-kong-chinese.prerm +++ im-sdk-12.3.91/debian/iiimf-le-sun-hong-kong-chinese.prerm @@ -0,0 +1,22 @@ +#!/bin/sh +# Post-installation script for the GTK+ input method module +# Shamelessly stolen from gucharmap package +# Copyright © 2003 Colin Walters +# Roger So + +set -e + +#DEBHELPER# + +case "$1" in + remove|upgrade|deconfigure) + /usr/bin/iiimf-le-tools -g --remove /usr/lib/iiim/le/hkle/hkle.so + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 +esac + +# vim:fileencoding=utf-8 --- im-sdk-12.3.91.orig/debian/copyright +++ im-sdk-12.3.91/debian/copyright @@ -0,0 +1,307 @@ +Source package: im-sdk +Downloaded from: OpenI18N web site + http://www.openi18n.org/download/docs/im-sdk/im-sdk.r11_3.1421.tar.bz2 +Upstream authors: OpenI18N Input Method Subcommittee, et al. +Debian package author: Roger So + +Except as noted below, the source code is licensed under the following, +which is a MIT/X license. + +---------- +Copyright 1985, 1986, 1987, 1991, 1998 The Open Group + +Portions Copyright 1990-2001 Sun Microsystems, Inc. All Rights Reserved. + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: The above copyright notice and this +permission notice shall be included in all copies or substantial +portions of the Software. + + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE OPEN GROUP OR SUN MICROSYSTEMS, INC. BE LIABLE +FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH +THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE EVEN IF +ADVISED IN ADVANCE OF THE POSSIBILITY OF SUCH DAMAGES. + + +Except as contained in this notice, the names of The Open Group and/or +Sun Microsystems, Inc. shall not be used in advertising or otherwise to +promote the sale, use or other dealings in this Software without prior +written authorization from The Open Group and/or Sun Microsystems, +Inc., as applicable. + + +X Window System is a trademark of The Open Group + +OSF/1, OSF/Motif and Motif are registered trademarks, and OSF, the OSF +logo, LBX, X Window System, and Xinerama are trademarks of the Open +Group. All other trademarks and registered trademarks mentioned herein +are the property of their respective owners. No right, title or +interest in or to any trademark, service mark, logo or trade name of +Sun Microsystems, Inc. or its licensors is granted. +---------- +============================================================================ + +The CSConv library included in iiimf-htt-csconv carries the follow notice: + +---------- +The CSConv library includes source codes derived from ICU, which can +be referred at: http://oss.software.ibm.com/icu/index.html. + +Those derived from ICU are exclusively used in the CsConv/converterPI/ +directory of this software and we are including them in our code contribution +to X Open Group under IBM Public License, which has been approved by the Open +Source Initiative. + +The 'licence.html' file in this directory is copied from the ICU version +1.4.1.1, which we downloaded and used in this software. +---------- + +The 'license.html' referred above was converted to plain text using +"links -dump license.html", with the output copied here: + +---------- + IBM PUBLIC LICENSE - IBM's Classes for Unicode VERSION 1.0 + + THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS IBM PUBLIC + LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE + PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. + + 1. DEFINITIONS + + "Contribution" means: + + a) in the case of International Business Machines Corporation ("IBM"), + the Original Program, and + + b) in the case of each Contributor, + + i) changes to the Program, and + + ii) additions to the Program; + + where such changes and/or additions to the Program originate from and + are distributed by that particular Contributor. A Contribution + `originates' from a Contributor if it was added to the Program by such + Contributor itself or anyone acting on such Contributor's behalf. + Contributions do not include additions to the Program which: (i) are + separate modules of software distributed in conjunction with the Program + under their own license agreement, and (ii) are not derivative works of + the Program. + + "Contributor" means IBM and any other entity that distributes the Program. + + "Licensed Patents " mean patent claims licensable by a Contributor which + are necessarily infringed by the use or sale of its Contribution alone or + when combined with the Program. + + "Original Program" means the original version of the software accompanying + this Agreement as released by IBM, including source code, object code and + documentation, if any. + + "Program" means the Original Program and Contributions. + + "Recipient" means anyone who receives the Program under this Agreement, + including all Contributors. + + 2. GRANT OF RIGHTS + + a) Subject to the terms of this Agreement, each Contributor hereby + grants Recipient a non-exclusive, worldwide, royalty-free copyright + license to reproduce, prepare derivative works of, publicly display, + publicly perform, distribute and sublicense the Contribution of such + Contributor, if any, and such derivative works, in source code and + object code form. + + b) Subject to the terms of this Agreement, each Contributor hereby + grants Recipient a non-exclusive, worldwide, royalty-free patent + license under Licensed Patents to make, use, sell, offer to sell, + import and otherwise transfer the Contribution of such Contributor, if + any, in source code and object code form. This patent license shall + apply to the combination of the Contribution and the Program if, at + the time the Contribution is added by the Contributor, such addition + of the Contribution causes such combination to be covered by the + Licensed Patents. The patent license shall not apply to any other + combinations which include the Contribution. No hardware per se is + licensed hereunder. + + c) Recipient understands that although each Contributor grants the + licenses to its Contributions set forth herein, no assurances are + provided by any Contributor that the Program does not infringe the + patent or other intellectual property rights of any other entity. Each + Contributor disclaims any liability to Recipient for claims brought by + any other entity based on infringement of intellectual property rights + or otherwise. As a condition to exercising the rights and licenses + granted hereunder, each Recipient hereby assumes sole responsibility + to secure any other intellectual property rights needed, if any. For + example, if a third party patent license is required to allow + Recipient to distribute the Program, it is Recipient's responsibility + to acquire that license before distributing the Program. + + d) Each Contributor represents that to its knowledge it has sufficient + copyright rights in its Contribution, if any, to grant the copyright + license set forth in this Agreement. + + 3. REQUIREMENTS + + A Contributor may choose to distribute the Program in object code form + under its own license agreement, provided that: + + a) it complies with the terms and conditions of this Agreement; and + + b) its license agreement: + + i) effectively disclaims on behalf of all Contributors all + warranties and conditions, express and implied, including warranties + or conditions of title and non-infringement, and implied warranties + or conditions of merchantability and fitness for a particular + purpose; + + ii) effectively excludes on behalf of all Contributors all liability + for damages, including direct, indirect, special, incidental and + consequential damages, such as lost profits; + + iii) states that any provisions which differ from this Agreement are + offered by that Contributor alone and not by any other party; and + + iv) states that source code for the Program is available from such + Contributor, and informs licensees how to obtain it in a reasonable + manner on or through a medium customarily used for software + exchange. + + When the Program is made available in source code form: + + a) it must be made available under this Agreement; and + + b) a copy of this Agreement must be included with each copy of the + Program. + + Each Contributor must include the following in a conspicuous location in + the Program: + + Copyright (c) 1999, International Business Machines Corporation and + others. All Rights Reserved. + + In addition, each Contributor must identify itself as the originator of + its Contribution, if any, in a manner that reasonably allows subsequent + Recipients to identify the originator of the Contribution. + + 4. COMMERCIAL DISTRIBUTION + + Commercial distributors of software may accept certain responsibilities + with respect to end users, business partners and the like. While this + license is intended to facilitate the commercial use of the Program, the + Contributor who includes the Program in a commercial product offering + should do so in a manner which does not create potential liability for + other Contributors. Therefore, if a Contributor includes the Program in a + commercial product offering, such Contributor ("Commercial Contributor") + hereby agrees to defend and indemnify every other Contributor + ("Indemnified Contributor") against any losses, damages and costs + (collectively "Losses") arising from claims, lawsuits and other legal + actions brought by a third party against the Indemnified Contributor to + the extent caused by the acts or omissions of such Commercial Contributor + in connection with its distribution of the Program in a commercial product + offering. The obligations in this section do not apply to any claims or + Losses relating to any actual or alleged intellectual property + infringement. In order to qualify, an Indemnified Contributor must: a) + promptly notify the Commercial Contributor in writing of such claim, and + b) allow the Commercial Contributor to control, and cooperate with the + Commercial Contributor in, the defense and any related settlement + negotiations. The Indemnified Contributor may participate in any such + claim at its own expense. + + For example, a Contributor might include the Program in a commercial + product offering, Product X. That Contributor is then a Commercial + Contributor. If that Commercial Contributor then makes performance claims, + or offers warranties related to Product X, those performance claims and + warranties are such Commercial Contributor's responsibility alone. Under + this section, the Commercial Contributor would have to defend claims + against the other Contributors related to those performance claims and + warranties, and if a court requires any other Contributor to pay any + damages as a result, the Commercial Contributor must pay those damages. + + 5. NO WARRANTY + + EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED + ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER + EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR + CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A + PARTICULAR PURPOSE. Each Recipient is solely responsible for determining + the appropriateness of using and distributing the Program and assumes all + risks associated with its exercise of rights under this Agreement, + including but not limited to the risks and costs of program errors, + compliance with applicable laws, damage to or loss of data, programs or + equipment, and unavailability or interruption of operations. + + 6. DISCLAIMER OF LIABILITY + + EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY + CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, + INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING + WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION + OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF + ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + + 7. GENERAL + + If any provision of this Agreement is invalid or unenforceable under + applicable law, it shall not affect the validity or enforceability of the + remainder of the terms of this Agreement, and without further action by + the parties hereto, such provision shall be reformed to the minimum extent + necessary to make such provision valid and enforceable. + + If Recipient institutes patent litigation against a Contributor with + respect to a patent applicable to software (including a cross-claim or + counterclaim in a lawsuit), then any patent licenses granted by that + Contributor to such Recipient under this Agreement shall terminate as of + the date such litigation is filed. In addition, If Recipient institutes + patent litigation against any entity (including a cross-claim or + counterclaim in a lawsuit) alleging that the Program itself (excluding + combinations of the Program with other software or hardware) infringes + such Recipient's patent(s), then such Recipient's rights granted under + Section 2(b) shall terminate as of the date such litigation is filed. + + All Recipient's rights under this Agreement shall terminate if it fails to + comply with any of the material terms or conditions of this Agreement and + does not cure such failure in a reasonable period of time after becoming + aware of such noncompliance. If all Recipient's rights under this + Agreement terminate, Recipient agrees to cease use and distribution of the + Program as soon as reasonably practicable. However, Recipient's + obligations under this Agreement and any licenses granted by Recipient + relating to the Program shall continue and survive. + + IBM may publish new versions (including revisions) of this Agreement from + time to time. Each new version of the Agreement will be given a + distinguishing version number. The Program (including Contributions) may + always be distributed subject to the version of the Agreement under which + it was received. In addition, after a new version of the Agreement is + published, Contributor may elect to distribute the Program (including its + Contributions) under the new version. No one other than IBM has the right + to modify this Agreement. Except as expressly stated in Sections 2(a) and + 2(b) above, Recipient receives no rights or licenses to the intellectual + property of any Contributor under this Agreement, whether expressly, by + implication, estoppel or otherwise. All rights in the Program not + expressly granted under this Agreement are reserved. + + This Agreement is governed by the laws of the State of New York and the + intellectual property laws of the United States of America. No party to + this Agreement will bring a legal action under this Agreement more than + one year after the cause of action arose. Each party waives its rights to + a jury trial in any resulting litigation. +---------- +============================================================================ + +Finally, iiimgcf is under the same license as GTK+, which is LGPL version 2 +or higher. See /usr/share/common-licenses/LGPL-2 on your Debian system. + --- im-sdk-12.3.91.orig/debian/iiimf-server.postrm +++ im-sdk-12.3.91/debian/iiimf-server.postrm @@ -0,0 +1,22 @@ +#!/bin/sh +# Post-installation script for the GTK+ input method module +# Shamelessly stolen from gucharmap package +# Copyright © 2003 Colin Walters +# Roger So + +set -e + +#DEBHELPER# + +case "$1" in + purge) + rm -rf /etc/iiim + ;; + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 +esac + +# vim:fileencoding=utf-8 --- im-sdk-12.3.91.orig/debian/im-sdk-docs.doc-base.iiim-whitepaper +++ im-sdk-12.3.91/debian/im-sdk-docs.doc-base.iiim-whitepaper @@ -0,0 +1,12 @@ +Document: iiim-whitepaper +Title: IIIM White Paper +Author: Hideki Hiura +Abstract: This document describes the high level architecture of + Internet/Intranet Input Method (IIIM), with its advantages of platform + neutrality, window system independence, implementation language + independence, and a multilingual distributed IM infrastructure. +Section: Apps/Programming + +Format: HTML +Index: /usr/share/doc/im-sdk-docs/IIIM/whitepaper/whitepaper.html +Files: /usr/share/doc/im-sdk-docs/IIIM/whitepaper/* --- im-sdk-12.3.91.orig/debian/iiimf-client-el.emacsen-remove +++ im-sdk-12.3.91/debian/iiimf-client-el.emacsen-remove @@ -0,0 +1,15 @@ +#!/bin/sh -e +# /usr/lib/emacsen-common/packages/remove/emacs-wget + +FLAVOR=$1 +PACKAGE=iiimf-el + +if [ ${FLAVOR} != emacs ]; then +# if test -x /usr/sbin/install-info-altdir; then +# echo remove/${PACKAGE}: removing Info links for ${FLAVOR} +# install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/info/emacs-wget.info.gz +# fi + + echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR} + rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE} +fi --- im-sdk-12.3.91.orig/debian/patches/060_implicit-pointer-conversions.patch +++ im-sdk-12.3.91/debian/patches/060_implicit-pointer-conversions.patch @@ -0,0 +1,421 @@ +diff -urpN iiimf-12.3.91-svn2814.orig/iiimxcf/xiiimp.so/iiimp/iiimpSwitcher.h iiimf-12.3.91-svn2814/iiimxcf/xiiimp.so/iiimp/iiimpSwitcher.h +--- iiimf-12.3.91-svn2814.orig/iiimxcf/xiiimp.so/iiimp/iiimpSwitcher.h 2005-08-11 22:38:14.000000000 -0600 ++++ iiimf-12.3.91-svn2814/iiimxcf/xiiimp.so/iiimp/iiimpSwitcher.h 2009-01-12 10:26:57.000000000 -0700 +@@ -45,6 +45,9 @@ Sun Microsystems, Inc. or its licensors + + #include "iiimpIM.h" + ++char **my_strsplit (const char *string, ++ const char *single_delimiter); ++ + Bool im_switcher_active (XimCommon im); + Bool im_switcher_new (XimCommon im); + void im_switcher_shutdown (XimCommon im); +diff -urpN iiimf-12.3.91-svn2814.orig/leif/newpy/xaux/gifalloc.c iiimf-12.3.91-svn2814/leif/newpy/xaux/gifalloc.c +--- iiimf-12.3.91-svn2814.orig/leif/newpy/xaux/gifalloc.c 2002-10-31 17:15:38.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/newpy/xaux/gifalloc.c 2009-01-12 10:27:01.000000000 -0700 +@@ -10,6 +10,7 @@ + * 15 Sep 92 - Version 1.0 by Eric Raymond. * + *****************************************************************************/ + #include ++#include + #include "gif_lib.h" + + #define MAX(x, y) (((x) > (y)) ? (x) : (y)) +diff -urpN iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/include/imbean.h iiimf-12.3.91-svn2814/leif/sch_le_sun/include/imbean.h +--- iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/include/imbean.h 2005-04-28 06:33:45.000000000 -0600 ++++ iiimf-12.3.91-svn2814/leif/sch_le_sun/include/imbean.h 2009-01-12 10:27:01.000000000 -0700 +@@ -67,4 +67,7 @@ typedef struct _IbmlData { + IbmlCategoryPtr *categories; + } IbmlData; + ++IbmlData *imbean_config_new_from_file(char *file_name); ++IbmlData *imbean_config_new_from_memory(char *buffer, int size); ++ + #endif /* _IBML_H_ */ +diff -urpN iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/auxiliary_windows/gtk2/palette_aux.c iiimf-12.3.91-svn2814/leif/sch_le_sun/src/auxiliary_windows/gtk2/palette_aux.c +--- iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/auxiliary_windows/gtk2/palette_aux.c 2005-06-27 21:16:37.000000000 -0600 ++++ iiimf-12.3.91-svn2814/leif/sch_le_sun/src/auxiliary_windows/gtk2/palette_aux.c 2009-01-12 10:27:02.000000000 -0700 +@@ -2,6 +2,7 @@ + #include "palette_pixmap.h" + #include "palette_messages.h" + #include "palette_aux.h" ++#include "palette_menu.h" + + enum { + BUTTON_STATE_NORMAL = 0, +diff -urpN iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/auxiliary_windows/gtk2/palette_aux.h iiimf-12.3.91-svn2814/leif/sch_le_sun/src/auxiliary_windows/gtk2/palette_aux.h +--- iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/auxiliary_windows/gtk2/palette_aux.h 2005-06-27 21:16:37.000000000 -0600 ++++ iiimf-12.3.91-svn2814/leif/sch_le_sun/src/auxiliary_windows/gtk2/palette_aux.h 2009-01-12 10:27:02.000000000 -0700 +@@ -134,4 +134,9 @@ typedef struct _palette_session_t { + char *ime_uuid; + } palette_session_t; + ++palette_window_t *palette_window_new(); ++palette_button_t *palette_window_get_button_from_pos(palette_window_t *palette_window, int x, int y); ++vkb_layout_t *palette_window_get_current_ime_vkb_layout(palette_window_t *palette_window); ++vkb_layout_t **palette_window_get_vkb_layout_list(palette_window_t *palette_window); ++ + #endif /* _PALETTE_AUX_H_ */ +diff -urpN iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/auxiliary_windows/gtk2/palette_menu.h iiimf-12.3.91-svn2814/leif/sch_le_sun/src/auxiliary_windows/gtk2/palette_menu.h +--- iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/auxiliary_windows/gtk2/palette_menu.h 1969-12-31 17:00:00.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/sch_le_sun/src/auxiliary_windows/gtk2/palette_menu.h 2009-01-12 10:27:02.000000000 -0700 +@@ -0,0 +1,18 @@ ++#ifndef _PALETTE_MENU_H_ ++#define _PALETTE_MENU_H_ ++ ++#include ++#include ++#include ++#include ++#include ++ ++#include "palette_messages.h" ++#include "palette_aux.h" ++#include "vkb_aux.h" ++ ++GtkWidget *palette_window_create_utility_list_menu(palette_window_t *palette_window); ++GtkWidget *palette_window_update_utility_list_menu(palette_window_t *palette_window); ++GtkWidget *palette_window_create_vkb_list_menu(palette_window_t *palette_window); ++GtkWidget *palette_window_update_vkb_list_menu(palette_window_t *palette_window); ++#endif +diff -urpN iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/auxiliary_windows/gtk2/property_data.h iiimf-12.3.91-svn2814/leif/sch_le_sun/src/auxiliary_windows/gtk2/property_data.h +--- iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/auxiliary_windows/gtk2/property_data.h 2005-06-27 21:16:37.000000000 -0600 ++++ iiimf-12.3.91-svn2814/leif/sch_le_sun/src/auxiliary_windows/gtk2/property_data.h 2009-01-12 10:27:02.000000000 -0700 +@@ -62,4 +62,6 @@ enum { + PROPERTY_DATA_FOR_ALL + }; + ++property_data_t *property_data_new(); ++ + #endif /* _PROPERTY_DATA_H_ */ +diff -urpN iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/auxiliary_windows/gtk2/property_window.h iiimf-12.3.91-svn2814/leif/sch_le_sun/src/auxiliary_windows/gtk2/property_window.h +--- iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/auxiliary_windows/gtk2/property_window.h 2005-02-28 03:10:03.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/sch_le_sun/src/auxiliary_windows/gtk2/property_window.h 2009-01-12 10:27:02.000000000 -0700 +@@ -50,4 +50,6 @@ typedef struct _property_window_t { + + } property_window_t; + ++property_window_t *property_window_new_with_property_data(property_data_t *property_data); ++ + #endif /* _PROPERTY_WINDOW_H_ */ +diff -urpN iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/auxiliary_windows/gtk2/vkb_aux.h iiimf-12.3.91-svn2814/leif/sch_le_sun/src/auxiliary_windows/gtk2/vkb_aux.h +--- iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/auxiliary_windows/gtk2/vkb_aux.h 2005-01-19 19:04:02.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/sch_le_sun/src/auxiliary_windows/gtk2/vkb_aux.h 2009-01-12 10:27:02.000000000 -0700 +@@ -56,4 +56,6 @@ typedef struct _vkb_session_t { + int status_capslockkey:2; + } vkb_session_t; + ++vkb_window_t *vkb_window_new(); ++ + #endif /* _VKB_AUX_H_ */ +diff -urpN iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/auxiliary_windows/gtk2/vkb_layout.h iiimf-12.3.91-svn2814/leif/sch_le_sun/src/auxiliary_windows/gtk2/vkb_layout.h +--- iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/auxiliary_windows/gtk2/vkb_layout.h 2005-01-19 19:04:02.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/sch_le_sun/src/auxiliary_windows/gtk2/vkb_layout.h 2009-01-12 10:27:02.000000000 -0700 +@@ -114,4 +114,8 @@ typedef struct _vkb_layout_t { + vkb_ctrlkey_label_t ctrlkey[MAX_CTRLKEY_NUM]; + } vkb_layout_t; + ++vkb_layout_t *vkb_layout_new(); ++vkb_layout_t **vkb_layout_list_read_from_layout_file(char *layout_file_name); ++vkb_layout_t *vkb_layout_new_for_pc_keyboard(); ++ + #endif /* _VKB_LAYOUT_H_ */ +diff -urpN iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/leif/ime_module.h iiimf-12.3.91-svn2814/leif/sch_le_sun/src/leif/ime_module.h +--- iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/leif/ime_module.h 2005-02-01 22:09:24.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/sch_le_sun/src/leif/ime_module.h 2009-01-12 10:27:03.000000000 -0700 +@@ -50,4 +50,7 @@ typedef struct _ImeModuleContextRec { + + } ImeModuleContextRec; + ++ImeModuleRec *ime_module_new(); ++ImeModuleContextRec *ime_module_context_new(); ++ + #endif /* _IME_MODULE_H_ */ +diff -urpN iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/leif/le_desktop.h iiimf-12.3.91-svn2814/leif/sch_le_sun/src/leif/le_desktop.h +--- iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/leif/le_desktop.h 2005-03-15 02:55:42.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/sch_le_sun/src/leif/le_desktop.h 2009-01-12 10:27:03.000000000 -0700 +@@ -38,4 +38,9 @@ typedef struct _LeDesktopContextRec { + + } LeDesktopContextRec; + ++LeDesktopContextRec *le_desktop_context_new(); ++iml_session_t *le_desktop_context_get_current_session(LeDesktopContextRec * ++ le_desktop_context); ++char *le_desktop_profile_write_to_memory(LeDesktopContextRec * dc); ++ + #endif /* _LE_DESKTOP_H_ */ +diff -urpN iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/leif/le_keybinding.h iiimf-12.3.91-svn2814/leif/sch_le_sun/src/leif/le_keybinding.h +--- iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/leif/le_keybinding.h 2005-01-19 19:04:02.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/sch_le_sun/src/leif/le_keybinding.h 2009-01-12 10:27:05.000000000 -0700 +@@ -18,4 +18,6 @@ typedef struct { + ImmKeyType defined_type; + } ImmKeybindingRec; + ++ImmKeybindingRec *imm_keybinding_new(); ++ + #endif /* _LE_KEYBINDING_H_ */ +diff -urpN iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/leif/le_keyevent.c iiimf-12.3.91-svn2814/leif/sch_le_sun/src/leif/le_keyevent.c +--- iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/leif/le_keyevent.c 2005-02-21 04:11:10.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/sch_le_sun/src/leif/le_keyevent.c 2009-01-12 10:27:05.000000000 -0700 +@@ -15,6 +15,9 @@ int le_session_process_key_event_for_ime + int le_session_process_key_event_for_ime_manager(iml_session_t * s, + IMKeyEventStruct * key_event); + ++char *get_qj_str(char ch); ++char *get_punct_str(char ch); ++ + /* process the keyboard event */ + LeResult le_session_process_key_event(iml_session_t * s, + IMKeyListEvent * keylistevent) +diff -urpN iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/leif/le_session.h iiimf-12.3.91-svn2814/leif/sch_le_sun/src/leif/le_session.h +--- iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/leif/le_session.h 2009-01-12 10:26:43.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/sch_le_sun/src/leif/le_session.h 2009-01-12 10:27:06.000000000 -0700 +@@ -49,4 +49,16 @@ typedef struct _LeSessionContextRec { + + IMText *le_session_reset(iml_session_t * s); + ++LeSessionContextRec *le_session_context_new(); ++IMText *le_session_reset(iml_session_t * s); ++TImePCAuxOption* ++session_get_pc_style(LeSessionContextRec* le_session_context); ++LeDesktopContextRec *le_session_get_desktop_context(iml_session_t * s); ++LeSessionContextRec *le_session_get_session_context(iml_session_t * s); ++ImeModuleRec *le_session_get_ime_module_by_uuid(iml_session_t * s, ++ char *uuid); ++ImeModuleRec *le_session_get_current_ime_module(iml_session_t * s); ++ImePropertyListRec *le_session_get_current_ime_module_property_list( ++ iml_session_t * s); ++ImeModuleRec *le_session_get_next_ime_module(iml_session_t * s); + #endif /* _LE_SESSION_H_ */ +diff -urpN iiimf-12.3.91-svn2814.orig/leif/sun_le_korea/auxwin_gtk/palette_method.c iiimf-12.3.91-svn2814/leif/sun_le_korea/auxwin_gtk/palette_method.c +--- iiimf-12.3.91-svn2814.orig/leif/sun_le_korea/auxwin_gtk/palette_method.c 2005-03-24 03:37:42.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/sun_le_korea/auxwin_gtk/palette_method.c 2009-01-12 10:27:06.000000000 -0700 +@@ -23,6 +23,7 @@ + #endif + + #include ++#include + #include + #include + #include +diff -urpN iiimf-12.3.91-svn2814.orig/leif/sun_le_korea/auxwin_gtk/vkb_aux.h iiimf-12.3.91-svn2814/leif/sun_le_korea/auxwin_gtk/vkb_aux.h +--- iiimf-12.3.91-svn2814.orig/leif/sun_le_korea/auxwin_gtk/vkb_aux.h 2005-03-24 03:37:42.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/sun_le_korea/auxwin_gtk/vkb_aux.h 2009-01-12 10:27:06.000000000 -0700 +@@ -59,4 +59,6 @@ typedef struct _vkb_session_t { + int status_capslockkey:2; + } vkb_session_t; + ++vkb_window_t *vkb_window_new(); ++ + #endif /* _VKB_AUX_H_ */ +diff -urpN iiimf-12.3.91-svn2814.orig/leif/sun_le_korea/auxwin_gtk/vkb_layout.h iiimf-12.3.91-svn2814/leif/sun_le_korea/auxwin_gtk/vkb_layout.h +--- iiimf-12.3.91-svn2814.orig/leif/sun_le_korea/auxwin_gtk/vkb_layout.h 2005-03-24 03:37:42.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/sun_le_korea/auxwin_gtk/vkb_layout.h 2009-01-12 10:27:06.000000000 -0700 +@@ -114,4 +114,7 @@ typedef struct _vkb_layout_t { + vkb_ctrlkey_label_t ctrlkey[MAX_CTRLKEY_NUM]; + } vkb_layout_t; + ++static vkb_layout_t *vkb_layout_new(); ++vkb_layout_t **vkb_layout_list_read_from_layout_file(char *layout_file_name); ++ + #endif /* _VKB_LAYOUT_H_ */ +diff -urpN iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/include/imbean.h iiimf-12.3.91-svn2814/leif/tch_le_sun/include/imbean.h +--- iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/include/imbean.h 2005-04-28 03:29:20.000000000 -0600 ++++ iiimf-12.3.91-svn2814/leif/tch_le_sun/include/imbean.h 2009-01-12 10:27:06.000000000 -0700 +@@ -67,4 +67,7 @@ typedef struct _IbmlData { + IbmlCategoryPtr *categories; + } IbmlData; + ++IbmlData *imbean_config_new_from_file(char *file_name); ++IbmlData *imbean_config_new_from_memory(char *buffer, int size); ++ + #endif /* _IBML_H_ */ +diff -urpN iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/auxiliary_windows/gtk2/palette_aux.c iiimf-12.3.91-svn2814/leif/tch_le_sun/src/auxiliary_windows/gtk2/palette_aux.c +--- iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/auxiliary_windows/gtk2/palette_aux.c 2005-06-27 21:10:59.000000000 -0600 ++++ iiimf-12.3.91-svn2814/leif/tch_le_sun/src/auxiliary_windows/gtk2/palette_aux.c 2009-01-12 10:27:07.000000000 -0700 +@@ -2,6 +2,7 @@ + #include "palette_pixmap.h" + #include "palette_messages.h" + #include "palette_aux.h" ++#include "palette_menu.h" + + enum { + BUTTON_STATE_NORMAL = 0, +diff -urpN iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/auxiliary_windows/gtk2/palette_aux.h iiimf-12.3.91-svn2814/leif/tch_le_sun/src/auxiliary_windows/gtk2/palette_aux.h +--- iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/auxiliary_windows/gtk2/palette_aux.h 2005-06-27 21:10:59.000000000 -0600 ++++ iiimf-12.3.91-svn2814/leif/tch_le_sun/src/auxiliary_windows/gtk2/palette_aux.h 2009-01-12 10:27:07.000000000 -0700 +@@ -134,4 +134,9 @@ typedef struct _palette_session_t { + char *ime_uuid; + } palette_session_t; + ++palette_window_t *palette_window_new(); ++palette_button_t *palette_window_get_button_from_pos(palette_window_t *palette_window, int x, int y); ++vkb_layout_t *palette_window_get_current_ime_vkb_layout(palette_window_t *palette_window); ++vkb_layout_t **palette_window_get_vkb_layout_list(palette_window_t *palette_window); ++ + #endif /* _PALETTE_AUX_H_ */ +diff -urpN iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/auxiliary_windows/gtk2/palette_menu.h iiimf-12.3.91-svn2814/leif/tch_le_sun/src/auxiliary_windows/gtk2/palette_menu.h +--- iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/auxiliary_windows/gtk2/palette_menu.h 1969-12-31 17:00:00.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/tch_le_sun/src/auxiliary_windows/gtk2/palette_menu.h 2009-01-12 10:27:07.000000000 -0700 +@@ -0,0 +1,18 @@ ++#ifndef _PALETTE_MENU_H_ ++#define _PALETTE_MENU_H_ ++ ++#include ++#include ++#include ++#include ++#include ++ ++#include "palette_messages.h" ++#include "palette_aux.h" ++#include "vkb_aux.h" ++ ++GtkWidget *palette_window_create_utility_list_menu(palette_window_t *palette_window); ++GtkWidget *palette_window_update_utility_list_menu(palette_window_t *palette_window); ++GtkWidget *palette_window_create_vkb_list_menu(palette_window_t *palette_window); ++GtkWidget *palette_window_update_vkb_list_menu(palette_window_t *palette_window); ++#endif +diff -urpN iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/auxiliary_windows/gtk2/property_data.h iiimf-12.3.91-svn2814/leif/tch_le_sun/src/auxiliary_windows/gtk2/property_data.h +--- iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/auxiliary_windows/gtk2/property_data.h 2005-06-27 21:10:59.000000000 -0600 ++++ iiimf-12.3.91-svn2814/leif/tch_le_sun/src/auxiliary_windows/gtk2/property_data.h 2009-01-12 10:27:07.000000000 -0700 +@@ -62,4 +62,6 @@ enum { + PROPERTY_DATA_FOR_ALL + }; + ++property_data_t *property_data_new(); ++ + #endif /* _PROPERTY_DATA_H_ */ +diff -urpN iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/auxiliary_windows/gtk2/property_window.h iiimf-12.3.91-svn2814/leif/tch_le_sun/src/auxiliary_windows/gtk2/property_window.h +--- iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/auxiliary_windows/gtk2/property_window.h 2005-02-28 03:08:47.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/tch_le_sun/src/auxiliary_windows/gtk2/property_window.h 2009-01-12 10:27:07.000000000 -0700 +@@ -50,4 +50,6 @@ typedef struct _property_window_t { + + } property_window_t; + ++property_window_t *property_window_new_with_property_data(property_data_t *property_data); ++ + #endif /* _PROPERTY_WINDOW_H_ */ +diff -urpN iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/auxiliary_windows/gtk2/vkb_aux.h iiimf-12.3.91-svn2814/leif/tch_le_sun/src/auxiliary_windows/gtk2/vkb_aux.h +--- iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/auxiliary_windows/gtk2/vkb_aux.h 2005-01-19 19:04:02.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/tch_le_sun/src/auxiliary_windows/gtk2/vkb_aux.h 2009-01-12 10:27:07.000000000 -0700 +@@ -56,4 +56,6 @@ typedef struct _vkb_session_t { + int status_capslockkey:2; + } vkb_session_t; + ++vkb_window_t *vkb_window_new(); ++ + #endif /* _VKB_AUX_H_ */ +diff -urpN iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/auxiliary_windows/gtk2/vkb_layout.h iiimf-12.3.91-svn2814/leif/tch_le_sun/src/auxiliary_windows/gtk2/vkb_layout.h +--- iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/auxiliary_windows/gtk2/vkb_layout.h 2005-01-19 19:04:02.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/tch_le_sun/src/auxiliary_windows/gtk2/vkb_layout.h 2009-01-12 10:27:07.000000000 -0700 +@@ -114,4 +114,8 @@ typedef struct _vkb_layout_t { + vkb_ctrlkey_label_t ctrlkey[MAX_CTRLKEY_NUM]; + } vkb_layout_t; + ++vkb_layout_t *vkb_layout_new(); ++vkb_layout_t **vkb_layout_list_read_from_layout_file(char *layout_file_name); ++vkb_layout_t *vkb_layout_new_for_pc_keyboard(); ++ + #endif /* _VKB_LAYOUT_H_ */ +diff -urpN iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/input_methods/zhuyin/zhuyin_standard.h iiimf-12.3.91-svn2814/leif/tch_le_sun/src/input_methods/zhuyin/zhuyin_standard.h +--- iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/input_methods/zhuyin/zhuyin_standard.h 2005-01-19 19:04:02.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/tch_le_sun/src/input_methods/zhuyin/zhuyin_standard.h 2009-01-12 10:27:07.000000000 -0700 +@@ -54,4 +54,7 @@ enum { + ZHUYIN_TYPE_NUM, + }; + ++unsigned char *ZhuyinKeyToZhuyinSymbol(char key); ++unsigned char *ZhuyinIndexToZhuyinSymbol(int idx); ++ + #endif /* _ZHUYIN_STANDARD_H_ */ +diff -urpN iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/leif/ime_module.h iiimf-12.3.91-svn2814/leif/tch_le_sun/src/leif/ime_module.h +--- iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/leif/ime_module.h 2005-02-01 22:44:49.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/tch_le_sun/src/leif/ime_module.h 2009-01-12 10:27:07.000000000 -0700 +@@ -50,4 +50,7 @@ typedef struct _ImeModuleContextRec { + + } ImeModuleContextRec; + ++ImeModuleRec *ime_module_new(); ++ImeModuleContextRec *ime_module_context_new(); ++ + #endif /* _IME_MODULE_H_ */ +diff -urpN iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/leif/le_desktop.h iiimf-12.3.91-svn2814/leif/tch_le_sun/src/leif/le_desktop.h +--- iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/leif/le_desktop.h 2005-03-15 02:53:32.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/tch_le_sun/src/leif/le_desktop.h 2009-01-12 10:27:07.000000000 -0700 +@@ -38,4 +38,9 @@ typedef struct _LeDesktopContextRec { + + } LeDesktopContextRec; + ++LeDesktopContextRec *le_desktop_context_new(); ++iml_session_t *le_desktop_context_get_current_session(LeDesktopContextRec * ++ le_desktop_context); ++char *le_desktop_profile_write_to_memory(LeDesktopContextRec * dc); ++ + #endif /* _LE_DESKTOP_H_ */ +diff -urpN iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/leif/le_keybinding.h iiimf-12.3.91-svn2814/leif/tch_le_sun/src/leif/le_keybinding.h +--- iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/leif/le_keybinding.h 2005-01-19 19:04:02.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/tch_le_sun/src/leif/le_keybinding.h 2009-01-12 10:27:09.000000000 -0700 +@@ -18,4 +18,6 @@ typedef struct { + ImmKeyType defined_type; + } ImmKeybindingRec; + ++ImmKeybindingRec *imm_keybinding_new(); ++ + #endif /* _LE_KEYBINDING_H_ */ +diff -urpN iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/leif/le_keyevent.c iiimf-12.3.91-svn2814/leif/tch_le_sun/src/leif/le_keyevent.c +--- iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/leif/le_keyevent.c 2005-02-21 04:13:44.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/tch_le_sun/src/leif/le_keyevent.c 2009-01-12 10:27:09.000000000 -0700 +@@ -15,6 +15,9 @@ int le_session_process_key_event_for_ime + int le_session_process_key_event_for_ime_manager(iml_session_t * s, + IMKeyEventStruct * key_event); + ++char *get_qj_str(char ch); ++char *get_punct_str(char ch); ++ + /* process the keyboard event */ + LeResult le_session_process_key_event(iml_session_t * s, + IMKeyListEvent * keylistevent) +diff -urpN iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/leif/le_session.h iiimf-12.3.91-svn2814/leif/tch_le_sun/src/leif/le_session.h +--- iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/leif/le_session.h 2009-01-12 10:26:43.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/tch_le_sun/src/leif/le_session.h 2009-01-12 10:27:10.000000000 -0700 +@@ -49,4 +49,16 @@ typedef struct _LeSessionContextRec { + + IMText *le_session_reset(iml_session_t * s); + ++LeSessionContextRec *le_session_context_new(); ++IMText *le_session_reset(iml_session_t * s); ++TImePCAuxOption* ++session_get_pc_style(LeSessionContextRec* le_session_context); ++LeDesktopContextRec *le_session_get_desktop_context(iml_session_t * s); ++LeSessionContextRec *le_session_get_session_context(iml_session_t * s); ++ImeModuleRec *le_session_get_ime_module_by_uuid(iml_session_t * s, ++ char *uuid); ++ImeModuleRec *le_session_get_current_ime_module(iml_session_t * s); ++ImePropertyListRec *le_session_get_current_ime_module_property_list( ++ iml_session_t * s); ++ImeModuleRec *le_session_get_next_ime_module(iml_session_t * s); + #endif /* _LE_SESSION_H_ */ +--- iiimf-12.3.91-svn2814/leif/testEIMIL/testEIMIL.c~ 2004-06-30 07:51:55.000000000 -0600 ++++ iiimf-12.3.91-svn2814/leif/testEIMIL/testEIMIL.c 2009-01-12 11:26:42.000000000 -0700 +@@ -61,6 +61,7 @@ + void if_testEIMIL_SetSCFocus(); + void if_testEIMIL_UnsetSCFocus(); + void if_testEIMIL_SendEvent(); ++void *EIMIL_get_private(EIMIL_handle eh); + + /* IF Method */ + if_methods_t testEIMIL_method_table = { +--- iiimf-12.3.91-svn2814/lib/EIMIL/EIMIL.c~ 2005-06-16 06:21:16.000000000 -0600 ++++ iiimf-12.3.91-svn2814/lib/EIMIL/EIMIL.c 2009-01-12 11:26:15.000000000 -0700 +@@ -3686,8 +3686,7 @@ + + void* + EIMIL_get_private( +- EIMIL_handle eh, +- void* private ++ EIMIL_handle eh + ) + { + EIMIL_data *ped = (EIMIL_data*) eh; --- im-sdk-12.3.91.orig/debian/patches/005_lex-gcc4.patch +++ im-sdk-12.3.91/debian/patches/005_lex-gcc4.patch @@ -0,0 +1,41 @@ +diff -Nru3 ./iiimf-12.3.91-svn2814/leif/unit/phonetic_im/mapfile/Makefile.am ../build-tree.new/iiimf-12.3.91-svn2814/leif/unit/phonetic_im/mapfile/Makefile.am +--- iiimf-12.3.91-svn2814/leif/unit/phonetic_im/mapfile/Makefile.am 2004-08-16 05:40:06.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/unit/phonetic_im/mapfile/Makefile.am 2005-09-01 02:31:25.496312826 -0700 +@@ -17,6 +17,9 @@ + -e "s/parse_small_token/parse_$*/g" \ + -e "s/^void yyunput/static void yyunput/g" \ + -e "s/^int yylen/static int yylen/g" \ ++ -e "/^extern int yylen/d" \ ++ -e "/^#undef YY_INPUT/i \ ++ static int loc_input (char *buf, int ms);" \ + -e "s/^YY_BUFFER_STATE yy_create_buffer/static YY_BUFFER_STATE yy_create_buffer/g" \ + -e "s/^void yy_load_buffer_state/static void yy_load_buffer_state/g" \ + -e "s/^void yyrestart/static void yyrestart/g" \ +@@ -43,23 +46,25 @@ + -e "s/^int yyprevious/static int yyprevious/g" \ + -e "s/^char \*yysptr/static char \*yysptr/g" \ + -e "s/^int yylineno/static int yylineno/g" \ ++ -e "/^extern int yylineno/d" \ + -e "s/^char yyextra/static char yyextra/g" \ + -e "s/^char yymatch/static char yymatch/g" \ + -e "s/^struct yywork \*yytop/static struct yywork \*yytop/g" \ + -e "s/^struct yywork { YYTYPE verify, advance; } yycrank/static struct yywork { YYTYPE verify, advance; } yycrank/g" \ + -e "s/^FILE \*yyin/static FILE \*yyin/g" \ ++ -e "/^extern FILE \*yyin/d" \ + -e "s/^struct yysvf \*yybgin/static struct yysvf \*yybgin/g" \ + -e "s/^int yyvstop/static int yyvstop/g" \ + -e "s/^int yylook/static int yylook/g" \ + -e "s/^struct yysvf yysvec/static struct yysvf yysvec/g" \ + -e "s/^int yylex/static int yylex/g" \ +- -e "s/^yylex/static int yylex/g" \ ++ -e "s/^extern int yywrap/static int yywrap/g" \ ++ -e "/^extern int yylex/d" \ + -e "s/^#define YY_DECL int yylex/#define YY_DECL static int yylex/g" \ + -e "s/^# define input().*/# define input() (\*global_ptr++)/g" \ + -e "s/^static int input().*/static int redef_input()/g" \ + -e "s/^# define unput(c).*/# define unput(c) (\*--global_ptr=c)/g" \ + -e "s/^#define unput(c).*/#define unput(c) (\*--global_ptr=c)/g" \ +- -e "/^#line/d" \ + -e "/^static char \*global_ptr\;/i\ + #define YY_NO_INPUT" -e "/^static char \*global_ptr\;/i\ + #define YY_NO_UNPUT" -e "/^static char \*global_ptr\;/i\ --- im-sdk-12.3.91.orig/debian/patches/006_static-decl.patch +++ im-sdk-12.3.91/debian/patches/006_static-decl.patch @@ -0,0 +1,33 @@ +diff -ru ../build-tree.old/iiimf-12.3.91-svn2814/leif/sampleja3/xaux_common/xaux_ext_common.c ../build-tree/iiimf-12.3.91-svn2814/leif/sampleja3/xaux_common/xaux_ext_common.c +--- iiimf-12.3.91-svn2814/leif/sampleja3/xaux_common/xaux_ext_common.c 2005-03-20 10:41:29.000000000 +0800 ++++ iiimf-12.3.91-svn2814/leif/sampleja3/xaux_common/xaux_ext_common.c 2007-03-14 13:12:47.000000000 +0800 +@@ -55,6 +55,15 @@ + #include "xaux_common.h" + #include "xaux_ext_common.h" + ++static Bool ++xaux_xs_send_message( ++ Display * display, ++ xaux_class_t * xc, ++ int im_id, ++ int ic_id, ++ aux_ext_data_type_t type, ++ Atom atom); ++ + /* from iiimpAux.c */ + size_t + utf16_mb( +diff -ru ../build-tree.old/iiimf-12.3.91-svn2814/leif/sampleja3/xaux_common/xaux_ext_common.h ../build-tree/iiimf-12.3.91-svn2814/leif/sampleja3/xaux_common/xaux_ext_common.h +--- iiimf-12.3.91-svn2814/leif/sampleja3/xaux_common/xaux_ext_common.h 2005-03-17 18:32:55.000000000 +0800 ++++ iiimf-12.3.91-svn2814/leif/sampleja3/xaux_common/xaux_ext_common.h 2007-03-14 13:11:30.000000000 +0800 +@@ -80,10 +80,6 @@ + extern Bool xaux_ext_Draw(xaux_class_t *, aux_ext_data_t *); + extern Bool xaux_ext_Done(xaux_class_t *, aux_ext_data_t *); + +-/* conversion utilities */ +-extern size_t utf16_mb(const char **, size_t *, char **, size_t *); +-extern size_t mb_utf16(const char **, size_t *, char **, size_t *); +- + #ifndef linux + #include + #endif --- im-sdk-12.3.91.orig/debian/patches/008_svn2840-iiimxcf-64bit-fixes.patch +++ im-sdk-12.3.91/debian/patches/008_svn2840-iiimxcf-64bit-fixes.patch @@ -0,0 +1,329 @@ +Index: xiiimp.so/iiimp/iiimpAux.c +=================================================================== +--- iiimf-12.3.91-svn2814/iiimxcf/xiiimp.so/iiimp/iiimpAux.c (revision 2814) ++++ iiimf-12.3.91-svn2814/iiimxcf/xiiimp.so/iiimp/iiimpAux.c (revision 2840) +@@ -291,6 +291,8 @@ + Bool useUnicode = False; /* default */ + IIIMF_status st; + const IIIMP_card16 *u16filename; ++ char *p; ++ int len; + + TRACE_MESSAGE('A', ("iiimpAux: download\n")); + +@@ -369,7 +371,6 @@ + + #if defined(IIIM_AUX_SO_BASE_ENV) + { +- char * p; + if (NULL != (p = getenv(IIIM_AUX_SO_BASE_ENV))) { + dir_name = p; + } +@@ -403,7 +404,6 @@ + memcpy(file_name + len, SPARCV9_DIR, SPARCV9_DIR_LEN); + len += SPARCV9_DIR_LEN; + memcpy(file_name + len, p, aux_file_name_len - (p - aux_file_name) + 1); +- + #else /* !__sparcv9 */ + + if (MAXPATHLEN <= (dir_name_len + 1 + aux_file_name_len + 1)) { +@@ -453,7 +453,7 @@ + int string_n = 0; + int *pstring_len; + +-#define ROUNDUP(n) ((n + sizeof(int) - 1) / sizeof(int) * sizeof(int)) ++#define ROUNDUP(n) ((n + sizeof(void *) - 1) / sizeof(void *) * sizeof(void *)) + + st = iiimcf_get_aux_event_value(ev, &aux_name, &class_idx, + &num_intvals, &pintvals, +@@ -551,7 +551,7 @@ + int integer_list_n, string_list_n; + int string_n; + +-#define ROUNDUP(n) ((n + sizeof(int) - 1) / sizeof(int) * sizeof(int)) ++#define ROUNDUP(n) ((n + sizeof(void *) - 1) / sizeof(void *) * sizeof(void *)) + + /* first of all, caliculate size. */ + n = ROUNDUP(sizeof(AUXComposed)); +Index: xiiimp.so/iiimp/iiimpSwitcher.c +=================================================================== +--- iiimf-12.3.91-svn2814/iiimxcf/xiiimp.so/iiimp/iiimpSwitcher.c (revision 2814) ++++ iiimf-12.3.91-svn2814/iiimxcf/xiiimp.so/iiimp/iiimpSwitcher.c (revision 2840) +@@ -491,19 +491,21 @@ + SwitcherInfo *sw_info = im->switcher_info; + IIIMF_status st; + int conversion_mode = CONV_OFF; ++ long conversion_mode_long; + + if (sw_info == NULL || sw_info->switcher_window == None) + return; + + st = iiimcf_get_current_conversion_mode (XIC_IIIMP(ic, context), + &conversion_mode); ++ conversion_mode_long = conversion_mode; + XChangeProperty (display, + sw_info->switcher_window, + sw_info->set_conversion_mode_atom, + sw_info->set_conversion_mode_atom, + 32, + PropModeReplace, +- (unsigned char *)&conversion_mode, ++ (unsigned char *)&conversion_mode_long, + 1); + } + +Index: xiiimp.so/iiimp/KeyMap.c +=================================================================== +--- iiimf-12.3.91-svn2814/iiimxcf/xiiimp.so/iiimp/KeyMap.c (revision 2814) ++++ iiimf-12.3.91-svn2814/iiimxcf/xiiimp.so/iiimp/KeyMap.c (revision 2840) +@@ -80,7 +80,7 @@ + + #ifdef linux + #include +-static int KanaMode = -1; ++static long KanaMode = -1; + static Atom kanawin_atom = 0; + static Atom kanaflag_atom = 0; + #endif /* linux */ +@@ -898,8 +898,7 @@ + if (kana_w == XGetSelectionOwner(disp, kanawin_atom)) { + XChangeProperty(disp, kana_w, kanaflag_atom, XA_WINDOW, 32, + PropModeReplace, +- (unsigned char*) &KanaMode, +- sizeof(KanaMode)); ++ (unsigned char*) &KanaMode, 1); + } + } + } +@@ -1215,8 +1214,7 @@ + XChangeProperty(ev->display, kana_w, kanaflag_atom, + XA_WINDOW, 32, + PropModeReplace, +- (unsigned char*) &KanaMode, +- sizeof(KanaMode)); ++ (unsigned char*) &KanaMode, 1); + } + + XSync(ev->display, False); +Index: htt_xbe/lib/IMdkit/ximp/XIMPInputContext.cpp +=================================================================== +--- iiimf-12.3.91-svn2814/iiimxcf/htt_xbe/lib/IMdkit/ximp/XIMPInputContext.cpp (revision 2814) ++++ iiimf-12.3.91-svn2814/iiimxcf/htt_xbe/lib/IMdkit/ximp/XIMPInputContext.cpp (revision 2840) +@@ -1436,9 +1436,9 @@ + preedit_draw_by_cm(draw); + } else { + Atom atom1, atom2, atom3; +- CARD32 l[3]; ++ long l[3]; + char *ctext; +- CARD32 *feedback; ++ unsigned long *feedback; + int n; + + l[0] = draw->caret; l[1] = draw->chg_first; l[2] = draw->chg_length; +@@ -1542,7 +1542,7 @@ + int input_context_id = ximp_protocol->getICID(this); + Atom atom1, atom2; + char *ctext; +- CARD32 *feedback; ++ unsigned long *feedback; + int len; + int n; + +Index: htt_xbe/src/watchdog.c +=================================================================== +--- iiimf-12.3.91-svn2814/iiimxcf/htt_xbe/src/watchdog.c (revision 2814) ++++ iiimf-12.3.91-svn2814/iiimxcf/htt_xbe/src/watchdog.c (revision 2840) +@@ -47,6 +47,9 @@ + #include + #include + #include ++#include ++#include ++#include + #include + #include + #include +@@ -83,9 +86,9 @@ + + #define IMDIR IIIMLIBDIR + +-static void start_htt_server(int *, char *argv[]); +-static void start_htt_props(int *, char *argv[]); +-static void start_iiimd(int *, char ** argv); ++static void start_htt_server(long *, char *argv[]); ++static void start_htt_props(long *, char *argv[]); ++static void start_iiimd(pid_t *, char ** argv); + static Bool build_dir(const char *, mode_t); + static char * build_uds_filename(Widget); + static char * build_vardir_dirname(void); +@@ -116,8 +120,8 @@ + #endif + #define nl_msg(msg_num, msg) (msg) + +-static int htt_server_pid, htt_props_pid; +-static int iiimd_pid; ++static long htt_server_pid, htt_props_pid; ++static pid_t iiimd_pid; + static Atom htt_atom, server_atom, props_atom, resource_atom; + static Atom cmdline_atom, htt_server_reset_atom, htt_watchdog_atom, + class_atom; +@@ -190,7 +194,7 @@ + XtAppContext app; + Widget toplevel; + Atom htt_save_atom[3]; +- int pid = getpid(); ++ long pid = getpid(); + Atom host_atom; + char hostname_prop[1024]; + Atom iiim_server_atom; +@@ -389,7 +413,7 @@ + * forked from htt + */ + XChangeProperty(display, httw_id, htt_watchdog_atom, XA_WINDOW, 32, +- PropModeReplace, (unsigned char *)&pid, sizeof(pid)); ++ PropModeReplace, (unsigned char *)&pid, 1); + + /* fork iiimd */ + if (True == my_rdb.start_iiimd) { +@@ -401,7 +425,7 @@ + + XChangeProperty(display, httw_id, server_atom, XA_WINDOW, 32, + PropModeReplace, +- (unsigned char *)&htt_server_pid, sizeof(htt_server_pid)); ++ (unsigned char *)&htt_server_pid, 1); + XFlush(display); + + +@@ -409,8 +433,7 @@ + if (my_rdb.start_props) { + start_htt_props(&htt_props_pid, htt_props_arg); + XChangeProperty(display, httw_id, props_atom, XA_WINDOW, 32, +- PropModeReplace, (unsigned char *)&htt_props_pid, +- sizeof(htt_props_pid)); ++ PropModeReplace, (unsigned char *)&htt_props_pid, 1); + XFlush(display); + } + for (;;) { +@@ -484,9 +507,9 @@ + XFree(cmdline_prop); + start_htt_server(&htt_server_pid, htt_server_arg); + XChangeProperty(display, httw_id, server_atom, +- XA_WINDOW, +- 32, PropModeReplace, (unsigned char *)&htt_server_pid, +- sizeof(htt_server_pid)); ++ XA_WINDOW, 32, ++ PropModeReplace, (unsigned char *)&htt_server_pid, ++ 1); + } else { + /* Kill the server */ + Server_Status = RmServerKilled; +@@ -597,7 +620,7 @@ + void + proc_exit(int unused) + { +- int pid; ++ pid_t pid; + int wstat; + + for (;;) { +@@ -690,6 +713,52 @@ + exit(1); + } + } ++ } else if (pid == iiimd_pid) { ++ if (WIFSTOPPED(wstat)) { ++ fprintf(stderr, ++ nl_msg(NL_IIIMD_SUSPENDED, ++ "iiim has been suspended \n") ++ ); ++ } else if (WIFEXITED(wstat)) { ++ kill(htt_server_pid, SIGTERM); ++ exit(0); ++ } else if (WIFSIGNALED(wstat)) { ++ switch (WTERMSIG(wstat)) { ++ case SIGTERM: ++ case SIGKILL: /* there must be a reason */ ++ kill(htt_server_pid, SIGTERM); ++ exit(0); ++ break; ++ case SIGQUIT: ++ case SIGILL: ++#ifndef linux ++ case SIGEMT: ++#endif ++ case SIGSEGV: ++ case SIGFPE: ++ case SIGTRAP: ++ case SIGBUS: ++#ifndef linux ++ case SIGSYS: ++#endif ++ case SIGIOT: ++ fprintf(stderr, ++ nl_msg(NL_IIIMD_DIED, ++ "iiimx : Warning - iiimd died and recovered\n") ++ ); ++ kill(htt_server_pid, SIGTERM); ++ start_iiimd(&iiimd_pid, iiimd_arg); ++ start_htt_server(&htt_server_pid, htt_server_arg); ++ break; ++ default: ++ fprintf(stderr, ++ nl_msg(NL_IIIMD_DIED_UNKNOWN, ++ "iiimx : Error - iiimd died. Don't know how to recover\n") ++ ); ++ kill(htt_server_pid, SIGTERM); ++ exit(1); ++ } ++ } + } else if ((my_rdb.start_props) && (pid == htt_props_pid)) { + /* + * printf("watchdog: htt_props has died, do +@@ -746,7 +815,7 @@ + + void + start_htt_server(htt_server_pid, argv) +- int *htt_server_pid; ++ long *htt_server_pid; + char *argv[]; + { + char pathname[MAXNAMELEN]; +@@ -794,7 +863,7 @@ + + void + start_htt_props(htt_props_pid, argv) +- int *htt_props_pid; ++ long *htt_props_pid; + char *argv[]; + { + char pathname[MAXNAMELEN]; +@@ -821,12 +890,12 @@ + + void + start_iiimd(iiimd_pid, argv) +- int * iiimd_pid; ++ pid_t * iiimd_pid; + char ** argv; + { + char * pathname; + extern int errno; +- int pid; ++ pid_t pid; + + pathname = "/usr/bin/iiimd"; + +@@ -950,11 +1019,12 @@ + char ** pargv; + char ** p; + +- pargv = (char **)malloc((sizeof (char *)) * (7)); ++ pargv = (char **)malloc((sizeof (char *)) * (8)); + p = pargv; + + *(p++) = "iiimd"; + *(p++) = "-nodaemon"; ++ *(p++) = "-desktop"; + if (NULL != udsf) { + *(p++) = "-udsfile"; + *(p++) = udsf; --- im-sdk-12.3.91.orig/debian/patches/009_upstream-2904.patch +++ im-sdk-12.3.91/debian/patches/009_upstream-2904.patch @@ -0,0 +1,54 @@ +Index: iiimxcf/xiiimp.so/iiimp/guiIM.c +=================================================================== +--- iiimf-12.3.91-svn2814/iiimxcf/xiiimp.so/iiimp/guiIM.c (revision 2903) ++++ iiimf-12.3.91-svn2814/iiimxcf/xiiimp.so/iiimp/guiIM.c (revision 2904) +@@ -216,7 +216,7 @@ + GetIMSettings (XicCommon ic) + { + Atom type; +- unsigned char *data = NULL; ++ unsigned long *data = NULL; + int format; + unsigned long length = 0, bytes_after; + Display *display = ic->core.im->core.display; +@@ -228,7 +228,10 @@ + &bytes_after, (unsigned char **)&data ) == Success && + data != NULL) + { +- memmove (¤t_setting, data, sizeof (IMSettings)); ++ current_setting.im_enabled = *(data + 0); ++ current_setting.status_enabled = *(data + 1); ++ current_setting.lookup_enabled = *(data + 2); ++ current_setting.status_placement = *(data + 3); + Xfree (data); + current_setting_enabled = True; + return True; +Index: iiimgcf/gtkimcontextiiim.c +=================================================================== +--- iiimf-12.3.91-svn2814/iiimgcf/gtkimcontextiiim.c (revision 2903) ++++ iiimf-12.3.91-svn2814/iiimgcf/gtkimcontextiiim.c (revision 2904) +@@ -803,7 +803,7 @@ + { + GdkWindow *root_window = gdk_get_default_root_window (); + GdkAtom type; +- guchar *data = NULL; ++ gulong *data = NULL; + gint format; + gint length = 0; + if (im_settings_atom == GDK_NONE) +@@ -814,10 +814,13 @@ + gdk_property_get (root_window, + im_settings_atom, im_settings_atom, + 0, INT_MAX, FALSE, +- &type, &format, &length, &data); ++ &type, &format, &length, (guchar **)&data); + if (data) + { +- g_memmove (¤t_setting, data, sizeof (IMSettings)); ++ current_setting.im_enabled = *(data + 0); ++ current_setting.status_enabled = *(data + 1); ++ current_setting.lookup_enabled = *(data + 2); ++ current_setting.status_placement = *(data + 3); + g_free (data); + current_setting_enabled = TRUE; + } --- im-sdk-12.3.91.orig/debian/patches/007_newpy-implicit-pointer.patch +++ im-sdk-12.3.91/debian/patches/007_newpy-implicit-pointer.patch @@ -0,0 +1,18 @@ +--- iiimf-12.3.91-svn2814/leif/newpy/NewPY.c 2005-03-22 10:51:10.000000000 +0800 ++++ iiimf-12.3.91-svn2814/leif/newpy/NewPY.c 2007-03-14 13:06:48.000000000 +0800 +@@ -57,6 +57,7 @@ + #include "SunIMCore.h" + #include "SunIMPub.h" + #include "NewPY.h" ++#include "NewPYLE.h" + + Bool if_newpy_OpenIF(iml_if_t *); + Bool if_newpy_CloseIF(iml_if_t *); +@@ -69,6 +70,7 @@ + Bool if_newpy_GetSCValue(iml_session_t *, IMArgList, int); + Bool if_newpy_SetSCValue(iml_session_t *, IMArgList, int); + IMText *if_newpy_ResetSC(iml_session_t *); ++ImToXSunChar* IM_trans(JINT nSesID, JINT nXKey, JINT nAsciiKey, JINT nSpecKeyState); + void if_newpy_SetSCFocus(iml_session_t *); + void if_newpy_UnsetSCFocus(iml_session_t *); + void if_newpy_SendEvent(iml_session_t *, IMInputEvent * ev); --- im-sdk-12.3.91.orig/debian/patches/052_stop-calling-scrollkeeper.patch +++ im-sdk-12.3.91/debian/patches/052_stop-calling-scrollkeeper.patch @@ -0,0 +1,42 @@ +diff -ruN iiimf-12.3.91-svn2814-old/gnome-im-switcher/help/C/Makefile.in iiimf-12.3.91-svn2814/gnome-im-switcher/help/C/Makefile.in +--- iiimf-12.3.91-svn2814-old/gnome-im-switcher/help/C/Makefile.in 2005-09-08 19:54:49.000000000 +0800 ++++ iiimf-12.3.91-svn2814/gnome-im-switcher/help/C/Makefile.in 2007-06-05 01:23:00.000000000 +0800 +@@ -470,7 +470,7 @@ + for file in $(omffile); do \ + $(INSTALL_DATA) $$file.out $(DESTDIR)$(omf_dest_dir)/$$file; \ + done +- -scrollkeeper-update -p $(scrollkeeper_localstate_dir) -o $(DESTDIR)$(omf_dest_dir) ++ #-scrollkeeper-update -p $(scrollkeeper_localstate_dir) -o $(DESTDIR)$(omf_dest_dir) + + uninstall-local-omf: + -for file in $(srcdir)/*.omf; do \ +@@ -478,7 +478,7 @@ + rm -f $(omf_dest_dir)/$$basefile; \ + done + -rmdir $(omf_dest_dir) +- -scrollkeeper-update -p $(scrollkeeper_localstate_dir) ++ #-scrollkeeper-update -p $(scrollkeeper_localstate_dir) + + clean-local-omf: + -for file in $(omffile); do \ +diff -ruN iiimf-12.3.91-svn2814-old/gnome-im-switcher/help/omf.make iiimf-12.3.91-svn2814/gnome-im-switcher/help/omf.make +--- iiimf-12.3.91-svn2814-old/gnome-im-switcher/help/omf.make 2004-09-23 05:31:15.000000000 +0800 ++++ iiimf-12.3.91-svn2814/gnome-im-switcher/help/omf.make 2007-06-05 00:54:20.000000000 +0800 +@@ -45,7 +45,7 @@ + for file in $(omffile); do \ + $(INSTALL_DATA) $$file.out $(DESTDIR)$(omf_dest_dir)/$$file; \ + done +- -scrollkeeper-update -p $(scrollkeeper_localstate_dir) -o $(DESTDIR)$(omf_dest_dir) ++ #-scrollkeeper-update -p $(scrollkeeper_localstate_dir) -o $(DESTDIR)$(omf_dest_dir) + + uninstall-local-omf: + -for file in $(srcdir)/*.omf; do \ +@@ -53,7 +53,7 @@ + rm -f $(omf_dest_dir)/$$basefile; \ + done + -rmdir $(omf_dest_dir) +- -scrollkeeper-update -p $(scrollkeeper_localstate_dir) ++ #-scrollkeeper-update -p $(scrollkeeper_localstate_dir) + + clean-local-omf: + -for file in $(omffile); do \ --- im-sdk-12.3.91.orig/debian/patches/003_gcc-4.1.patch +++ im-sdk-12.3.91/debian/patches/003_gcc-4.1.patch @@ -0,0 +1,12 @@ +diff -Nru3 ./iiimf-12.3.91-svn2814/iiimsf/src/IMSvrXMLConf.hh ../build-tree.new/iiimf-12.3.91-svn2814/iiimsf/src/IMSvrXMLConf.hh +--- iiimf-12.3.91-svn2814/iiimsf/src/IMSvrXMLConf.hh 2005-04-01 17:48:46.000000000 +0800 ++++ iiimf-12.3.91-svn2814/iiimsf/src/IMSvrXMLConf.hh 2006-09-20 17:20:46.000000000 +0800 +@@ -14,7 +14,7 @@ + + IMAuth::access_type get_access_type(xmlChar *key); + +- string IMSvrXMLConf::parse_text_node(xmlNodePtr &node); ++ string parse_text_node(xmlNodePtr &node); + string parse_hostname_node(xmlNodePtr &node); + string parse_port_node(xmlNodePtr &node); + string parse_file_node(xmlNodePtr &node); --- im-sdk-12.3.91.orig/debian/patches/010_more-64bit-fixes.patch +++ im-sdk-12.3.91/debian/patches/010_more-64bit-fixes.patch @@ -0,0 +1,21 @@ +diff -ruN iiimf-12.3.91-svn2814-old/iiimxcf/htt_xbe/lib/IMdkit/r6im/XInputContext.hh iiimf-12.3.91-svn2814/iiimxcf/htt_xbe/lib/IMdkit/r6im/XInputContext.hh +--- iiimf-12.3.91-svn2814-old/iiimxcf/htt_xbe/lib/IMdkit/r6im/XInputContext.hh 2001-03-22 05:56:39.000000000 +0800 ++++ iiimf-12.3.91-svn2814/iiimxcf/htt_xbe/lib/IMdkit/r6im/XInputContext.hh 2007-06-04 17:03:56.000000000 +0800 +@@ -148,7 +148,7 @@ + bg = preedit_attr4.background; + return True; + } +- int get_preedit_bg_pixmap(CARD32 &bg_pixmap) { ++ int get_preedit_bg_pixmap(Pixmap &bg_pixmap) { + if (!(attr_mask & XIMP_PRE_BGPIXMAP_MASK4)) return False; + bg_pixmap = preedit_attr4.bg_pixmap; + return True; +@@ -202,7 +202,7 @@ + bg = status_attr4.background; + return True; + } +- int get_status_bg_pixmap(CARD32 &bg_pixmap) { ++ int get_status_bg_pixmap(Pixmap &bg_pixmap) { + if (!(attr_mask & XIMP_STS_BGPIXMAP_MASK4)) return False; + bg_pixmap = status_attr4.bg_pixmap; + return True; --- im-sdk-12.3.91.orig/debian/patches/007_leif-implicit-pointer.patch +++ im-sdk-12.3.91/debian/patches/007_leif-implicit-pointer.patch @@ -0,0 +1,208 @@ +diff -urN iiimf-12.3.91-svn2814.orig/leif/m17n_le/src/leif/le_info.h iiimf-12.3.91-svn2814/leif/m17n_le/src/leif/le_info.h +--- iiimf-12.3.91-svn2814.orig/leif/m17n_le/src/leif/le_info.h 2005-04-26 22:08:10.000000000 -0600 ++++ iiimf-12.3.91-svn2814/leif/m17n_le/src/leif/le_info.h 2007-06-06 11:50:35.000000000 -0600 +@@ -46,4 +46,6 @@ + MConverter *converter; + } LeInfoRec; + ++LeInfoRec *le_info_new(); ++ + #endif /* _LE_INFO_H_ */ +diff -urN iiimf-12.3.91-svn2814.orig/leif/m17n_le/src/leif/le_interface.c iiimf-12.3.91-svn2814/leif/m17n_le/src/leif/le_interface.c +--- iiimf-12.3.91-svn2814.orig/leif/m17n_le/src/leif/le_interface.c 2005-04-18 08:21:22.000000000 -0600 ++++ iiimf-12.3.91-svn2814/leif/m17n_le/src/leif/le_interface.c 2007-06-06 11:50:35.000000000 -0600 +@@ -2,6 +2,7 @@ + + #include "le_object.h" + #include "le_info.h" ++#include "le_session.h" + + Bool if_le_OpenIF(iml_if_t *); + Bool if_le_CloseIF(iml_if_t *); +diff -urN iiimf-12.3.91-svn2814.orig/leif/m17n_le/src/leif/le_object.h iiimf-12.3.91-svn2814/leif/m17n_le/src/leif/le_object.h +--- iiimf-12.3.91-svn2814.orig/leif/m17n_le/src/leif/le_object.h 2005-03-07 23:17:13.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/m17n_le/src/leif/le_object.h 2007-06-06 11:50:35.000000000 -0600 +@@ -17,4 +17,6 @@ + + } LeObjectRec; + ++LeObjectRec *le_object_new(); ++ + #endif /* _LE_OBJECT_H_ */ +diff -urN iiimf-12.3.91-svn2814.orig/leif/m17n_le/src/leif/le_session.h iiimf-12.3.91-svn2814/leif/m17n_le/src/leif/le_session.h +--- iiimf-12.3.91-svn2814.orig/leif/m17n_le/src/leif/le_session.h 2005-04-26 22:08:10.000000000 -0600 ++++ iiimf-12.3.91-svn2814/leif/m17n_le/src/leif/le_session.h 2007-06-06 11:50:35.000000000 -0600 +@@ -16,4 +16,6 @@ + + } LeSessionContextRec; + ++IMText *le_session_reset(iml_session_t * s); ++ + #endif /* _LE_SESSION_H_ */ +diff -urN iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/auxiliary_windows/gtk2/gtkiiimwin.c iiimf-12.3.91-svn2814/leif/sch_le_sun/src/auxiliary_windows/gtk2/gtkiiimwin.c +--- iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/auxiliary_windows/gtk2/gtkiiimwin.c 2005-05-17 08:01:50.000000000 -0600 ++++ iiimf-12.3.91-svn2814/leif/sch_le_sun/src/auxiliary_windows/gtk2/gtkiiimwin.c 2007-06-06 11:39:19.000000000 -0600 +@@ -8,6 +8,7 @@ + #include "gtkiiimwin.h" + #include "gtkflatbutton.h" + #include "imlabel.h" ++#include "support.h" + + #define MAX_CANDIDATE_COUNT 32 + #define MAX_LABELSTRING_LEN (8*1024) +diff -urN iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/input_methods/codetable_im/utils/txt2bin.c iiimf-12.3.91-svn2814/leif/sch_le_sun/src/input_methods/codetable_im/utils/txt2bin.c +--- iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/input_methods/codetable_im/utils/txt2bin.c 2005-01-19 19:04:02.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/sch_le_sun/src/input_methods/codetable_im/utils/txt2bin.c 2007-06-05 14:43:01.000000000 -0600 +@@ -43,6 +43,7 @@ + /* txt2bin.c */ + + #include ++#include + #include "codetable.h" + #include "ctfile.h" + +diff -urN iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/leif/le_info.h iiimf-12.3.91-svn2814/leif/sch_le_sun/src/leif/le_info.h +--- iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/leif/le_info.h 2005-04-14 04:36:58.000000000 -0600 ++++ iiimf-12.3.91-svn2814/leif/sch_le_sun/src/leif/le_info.h 2007-06-06 11:49:48.000000000 -0600 +@@ -76,4 +76,6 @@ + + } LeInfoRec; + ++LeInfoRec *le_info_new(); ++ + #endif /* _LE_INFO_H_ */ +diff -urN iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/leif/le_interface.c iiimf-12.3.91-svn2814/leif/sch_le_sun/src/leif/le_interface.c +--- iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/leif/le_interface.c 2005-08-15 03:15:00.000000000 -0600 ++++ iiimf-12.3.91-svn2814/leif/sch_le_sun/src/leif/le_interface.c 2007-06-06 11:49:48.000000000 -0600 +@@ -3,6 +3,7 @@ + + #include "le_object.h" + #include "le_info.h" ++#include "le_session.h" + + Bool if_le_OpenIF(iml_if_t *); + Bool if_le_CloseIF(iml_if_t *); +diff -urN iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/leif/le_object.h iiimf-12.3.91-svn2814/leif/sch_le_sun/src/leif/le_object.h +--- iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/leif/le_object.h 2005-03-08 04:15:58.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/sch_le_sun/src/leif/le_object.h 2007-06-06 11:49:48.000000000 -0600 +@@ -17,4 +17,6 @@ + + } LeObjectRec; + ++LeObjectRec *le_object_new(); ++ + #endif /* _LE_OBJECT_H_ */ +diff -urN iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/leif/le_session.h iiimf-12.3.91-svn2814/leif/sch_le_sun/src/leif/le_session.h +--- iiimf-12.3.91-svn2814.orig/leif/sch_le_sun/src/leif/le_session.h 2005-02-01 22:09:24.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/sch_le_sun/src/leif/le_session.h 2007-06-06 11:49:48.000000000 -0600 +@@ -47,4 +47,6 @@ + //TImePCAuxOption *pc_aux_options; //preedit_candidates aux options + } LeSessionContextRec; + ++IMText *le_session_reset(iml_session_t * s); ++ + #endif /* _LE_SESSION_H_ */ +diff -urN iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/auxiliary_windows/gtk2/gtkiiimwin.c iiimf-12.3.91-svn2814/leif/tch_le_sun/src/auxiliary_windows/gtk2/gtkiiimwin.c +--- iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/auxiliary_windows/gtk2/gtkiiimwin.c 2005-05-17 08:01:50.000000000 -0600 ++++ iiimf-12.3.91-svn2814/leif/tch_le_sun/src/auxiliary_windows/gtk2/gtkiiimwin.c 2007-06-06 11:41:57.000000000 -0600 +@@ -8,6 +8,7 @@ + #include "gtkiiimwin.h" + #include "gtkflatbutton.h" + #include "imlabel.h" ++#include "support.h" + + #define MAX_CANDIDATE_COUNT 32 + #define MAX_LABELSTRING_LEN (8*1024) +diff -urN iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/input_methods/codetable_im/utils/txt2bin.c iiimf-12.3.91-svn2814/leif/tch_le_sun/src/input_methods/codetable_im/utils/txt2bin.c +--- iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/input_methods/codetable_im/utils/txt2bin.c 2005-01-19 19:04:02.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/tch_le_sun/src/input_methods/codetable_im/utils/txt2bin.c 2007-06-05 14:43:14.000000000 -0600 +@@ -43,6 +43,7 @@ + /* txt2bin.c */ + + #include ++#include + #include "codetable.h" + #include "ctfile.h" + +diff -urN iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/leif/le_info.h iiimf-12.3.91-svn2814/leif/tch_le_sun/src/leif/le_info.h +--- iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/leif/le_info.h 2005-04-14 04:34:33.000000000 -0600 ++++ iiimf-12.3.91-svn2814/leif/tch_le_sun/src/leif/le_info.h 2007-06-06 11:50:23.000000000 -0600 +@@ -76,4 +76,6 @@ + + } LeInfoRec; + ++LeInfoRec *le_info_new(); ++ + #endif /* _LE_INFO_H_ */ +diff -urN iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/leif/le_interface.c iiimf-12.3.91-svn2814/leif/tch_le_sun/src/leif/le_interface.c +--- iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/leif/le_interface.c 2005-08-15 03:15:00.000000000 -0600 ++++ iiimf-12.3.91-svn2814/leif/tch_le_sun/src/leif/le_interface.c 2007-06-06 11:50:23.000000000 -0600 +@@ -3,6 +3,7 @@ + + #include "le_object.h" + #include "le_info.h" ++#include "le_session.h" + + Bool if_le_OpenIF(iml_if_t *); + Bool if_le_CloseIF(iml_if_t *); +diff -urN iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/leif/le_object.h iiimf-12.3.91-svn2814/leif/tch_le_sun/src/leif/le_object.h +--- iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/leif/le_object.h 2005-03-08 04:14:22.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/tch_le_sun/src/leif/le_object.h 2007-06-06 11:50:23.000000000 -0600 +@@ -17,4 +17,6 @@ + + } LeObjectRec; + ++LeObjectRec *le_object_new(); ++ + #endif /* _LE_OBJECT_H_ */ +diff -urN iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/leif/le_session.h iiimf-12.3.91-svn2814/leif/tch_le_sun/src/leif/le_session.h +--- iiimf-12.3.91-svn2814.orig/leif/tch_le_sun/src/leif/le_session.h 2005-02-01 22:44:49.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/tch_le_sun/src/leif/le_session.h 2007-06-06 11:50:23.000000000 -0600 +@@ -47,4 +47,6 @@ + //TImePCAuxOption *pc_aux_options; //preedit_candidates aux options + } LeSessionContextRec; + ++IMText *le_session_reset(iml_session_t * s); ++ + #endif /* _LE_SESSION_H_ */ +diff -urN iiimf-12.3.91-svn2814.orig/leif/thai_le_sun/src/leif/le_info.h iiimf-12.3.91-svn2814/leif/thai_le_sun/src/leif/le_info.h +--- iiimf-12.3.91-svn2814.orig/leif/thai_le_sun/src/leif/le_info.h 2005-03-04 04:03:48.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/thai_le_sun/src/leif/le_info.h 2007-06-06 11:49:36.000000000 -0600 +@@ -28,4 +28,6 @@ + + } LeInfoRec; + ++LeInfoRec *le_info_new(); ++ + #endif /* _LE_INFO_H_ */ +diff -urN iiimf-12.3.91-svn2814.orig/leif/thai_le_sun/src/leif/le_interface.c iiimf-12.3.91-svn2814/leif/thai_le_sun/src/leif/le_interface.c +--- iiimf-12.3.91-svn2814.orig/leif/thai_le_sun/src/leif/le_interface.c 2005-03-04 04:03:48.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/thai_le_sun/src/leif/le_interface.c 2007-06-06 11:49:36.000000000 -0600 +@@ -2,6 +2,7 @@ + + #include "le_object.h" + #include "le_info.h" ++#include "le_session.h" + + Bool if_le_OpenIF(iml_if_t *); + Bool if_le_CloseIF(iml_if_t *); +diff -urN iiimf-12.3.91-svn2814.orig/leif/thai_le_sun/src/leif/le_object.h iiimf-12.3.91-svn2814/leif/thai_le_sun/src/leif/le_object.h +--- iiimf-12.3.91-svn2814.orig/leif/thai_le_sun/src/leif/le_object.h 2005-03-06 19:30:11.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/thai_le_sun/src/leif/le_object.h 2007-06-06 11:49:36.000000000 -0600 +@@ -17,4 +17,6 @@ + + } LeObjectRec; + ++LeObjectRec *le_object_new(); ++ + #endif /* _LE_OBJECT_H_ */ +diff -urN iiimf-12.3.91-svn2814.orig/leif/thai_le_sun/src/leif/le_session.h iiimf-12.3.91-svn2814/leif/thai_le_sun/src/leif/le_session.h +--- iiimf-12.3.91-svn2814.orig/leif/thai_le_sun/src/leif/le_session.h 2005-03-04 04:03:48.000000000 -0700 ++++ iiimf-12.3.91-svn2814/leif/thai_le_sun/src/leif/le_session.h 2007-06-06 11:49:36.000000000 -0600 +@@ -14,4 +14,6 @@ + + } LeSessionContextRec; + ++IMText *le_session_reset(iml_session_t * s); ++ + #endif /* _LE_SESSION_H_ */ --- im-sdk-12.3.91.orig/debian/patches/010_dont-use-0-as-null.patch +++ im-sdk-12.3.91/debian/patches/010_dont-use-0-as-null.patch @@ -0,0 +1,271 @@ +--- iiimf-12.3.91-svn2814/iiimxcf/htt_xbe/lib/IMdkit/r6im/XInputContext.cpp.orig 2007-07-31 16:07:59.000000000 +0800 ++++ iiimf-12.3.91-svn2814/iiimxcf/htt_xbe/lib/IMdkit/r6im/XInputContext.cpp 2007-07-31 16:17:26.000000000 +0800 +@@ -80,7 +80,7 @@ + if (xim) + xic = XCreateIC(xim, + XNInputStyle, inputstyle, +- 0); ++ (char*)0); + else + abort(); + +@@ -165,10 +165,10 @@ + XNPreeditDrawCallback, preedit_draw_cb, + XNPreeditCaretCallback, preedit_caret_cb, + XNPreeditDoneCallback, preedit_done_cb, +- 0); ++ (char*)0); + XSetICValues(xic, + XNPreeditAttributes, preedit_attr, +- 0); ++ (char*)0); + XFree(preedit_attr); + } + return; +@@ -182,10 +182,10 @@ + XNStatusStartCallback, status_start_cb, + XNStatusDrawCallback, status_draw_cb, + XNStatusDoneCallback, status_done_cb, +- 0); ++ (char*)0); + XSetICValues(xic, + XNStatusAttributes, status_attr, +- 0); ++ (char*)0); + XFree(status_attr); + } + } +@@ -199,7 +199,7 @@ + // private XIC attribute + "commitStringCallback", commit_string_cb, + "forwardEventCallback", forward_event_cb, +- 0); ++ (char*)0); + return; + } + +@@ -216,7 +216,7 @@ + // such cases, we allow to set client_win again. + XSetICValues(xic, + XNClientWindow, client_win, +- 0); ++ (char*)0); + filters &= ~FLT_DESTROY; + select_destroy_clientwin_emask(); + register_clientwin_destroy_filter(); +@@ -273,7 +273,7 @@ + if (xic) + XSetICValues(xic, + XNFocusWindow, focus_win, +- 0); ++ (char*)0); + } + return; + } +@@ -361,7 +361,7 @@ + if (reply_back && xic) { + XSetICValues(xic, + XNPreeditState, XIMPreeditEnable, +- 0); ++ (char*)0); + } + is_conv_on = 1; + } +@@ -371,7 +371,7 @@ + if (reply_back && xic) { + XSetICValues(xic, + XNPreeditState, XIMPreeditDisable, +- 0); ++ (char*)0); + } + is_conv_on = 0; + } +@@ -393,7 +393,7 @@ + if (xic) + XSetICValues(xic, + XNPreeditAttributes, preedit_attr, +- 0); ++ (char*)0); + XFree(preedit_attr); + return; + } +@@ -417,7 +417,7 @@ + if (xic) + XSetICValues(xic, + XNPreeditAttributes, preedit_attr, +- 0); ++ (char*)0); + XFree(preedit_attr); + return; + } +@@ -439,7 +439,7 @@ + if (xic) + XSetICValues(xic, + XNPreeditAttributes, preedit_attr, +- 0); ++ (char*)0); + XFree(preedit_attr); + if (width == 0 || height == 0) { + // do geometry negotiation +@@ -450,7 +450,7 @@ + if (xic) + XGetICValues(xic, + XNPreeditAttributes, preedit_attr, +- 0); ++ (char*)0); + XFree(preedit_attr); + if (area2) { + if (width == 0) { +@@ -491,7 +491,7 @@ + if (xic) + XSetICValues(xic, + XNPreeditAttributes, preedit_attr, +- 0); ++ (char*)0); + XFree(preedit_attr); + return; + } +@@ -509,7 +509,7 @@ + if (xic) + XSetICValues(xic, + XNPreeditAttributes, preedit_attr, +- 0); ++ (char*)0); + XFree(preedit_attr); + } + void +@@ -526,7 +526,7 @@ + if (xic) + XSetICValues(xic, + XNPreeditAttributes, preedit_attr, +- 0); ++ (char*)0); + XFree(preedit_attr); + } + void +@@ -543,7 +543,7 @@ + if (xic) + XSetICValues(xic, + XNPreeditAttributes, preedit_attr, +- 0); ++ (char*)0); + XFree(preedit_attr); + } + void +@@ -560,7 +560,7 @@ + if (xic) + XSetICValues(xic, + XNPreeditAttributes, preedit_attr, +- 0); ++ (char*)0); + XFree(preedit_attr); + } + void +@@ -576,7 +576,7 @@ + if (xic) + XSetICValues(xic, + XNPreeditAttributes, preedit_attr, +- 0); ++ (char*)0); + XFree(preedit_attr); + } + void +@@ -593,7 +593,7 @@ + if (xic) + XSetICValues(xic, + XNPreeditAttributes, preedit_attr, +- 0); ++ (char*)0); + XFree(preedit_attr); + } + +@@ -617,7 +617,7 @@ + if (xic) + XSetICValues(xic, + XNStatusAttributes, status_attr, +- 0); ++ (char*)0); + XFree(status_attr); + return; + } +@@ -639,7 +639,7 @@ + if (xic) + XSetICValues(xic, + XNStatusAttributes, status_attr, +- 0); ++ (char*)0); + XFree(status_attr); + if (width == 0 || height == 0) { + // do geometry negotiation +@@ -650,7 +650,7 @@ + if (xic) + XGetICValues(xic, + XNStatusAttributes, status_attr, +- 0); ++ (char*)0); + XFree(status_attr); + if (area2) { + if (width == 0 || +@@ -693,7 +693,7 @@ + if (xic) + XSetICValues(xic, + XNStatusAttributes, status_attr, +- 0); ++ (char*)0); + XFree(status_attr); + return; + } +@@ -711,7 +711,7 @@ + if (xic) + XSetICValues(xic, + XNStatusAttributes, status_attr, +- 0); ++ (char*)0); + XFree(status_attr); + } + void +@@ -728,7 +728,7 @@ + if (xic) + XSetICValues(xic, + XNStatusAttributes, status_attr, +- 0); ++ (char*)0); + XFree(status_attr); + } + void +@@ -745,7 +745,7 @@ + if (xic) + XSetICValues(xic, + XNStatusAttributes, status_attr, +- 0); ++ (char*)0); + XFree(status_attr); + } + void +@@ -762,7 +762,7 @@ + if (xic) + XSetICValues(xic, + XNStatusAttributes, status_attr, +- 0); ++ (char*)0); + XFree(status_attr); + } + void +@@ -779,7 +779,7 @@ + if (xic) + XSetICValues(xic, + XNStatusAttributes, status_attr, +- 0); ++ (char*)0); + XFree(status_attr); + } + void +@@ -796,7 +796,7 @@ + if (xic) + XSetICValues(xic, + XNStatusAttributes, status_attr, +- 0); ++ (char*)0); + XFree(status_attr); + } + --- im-sdk-12.3.91.orig/debian/patches/051_use-docbook-xsl.patch +++ im-sdk-12.3.91/debian/patches/051_use-docbook-xsl.patch @@ -0,0 +1,24 @@ +diff -ruN iiimf-12.3.91-svn2814-old/doc/iiimcf/Makefile iiimf-12.3.91-svn2814/doc/iiimcf/Makefile +--- iiimf-12.3.91-svn2814-old/doc/iiimcf/Makefile 2003-03-17 00:43:30.000000000 +0800 ++++ iiimf-12.3.91-svn2814/doc/iiimcf/Makefile 2007-06-05 00:40:09.000000000 +0800 +@@ -4,7 +4,7 @@ + DOCBOOK_SSDIR = /usr/share/sgml/docbook/stylesheet/dsssl/modular + TORTF = jade -t rtf -d $(DOCBOOK_SSDIR)/print/docbook.dsl $(XML_DECL) + TOTEX = jade -t tex -d $(DOCBOOK_SSDIR)/print/docbook.dsl $(XML_DECL) +-TOHTML = jade -t sgml -d $(DOCBOOK_SSDIR)/html/docbook.dsl $(XML_DECL) ++TOHTML = xsltproc /usr/share/xml/docbook/stylesheet/nwalsh/html/chunk.xsl + + .SUFFIXES: .xml .rtf .html .txt .dvi .ps + +diff -ruN iiimf-12.3.91-svn2814-old/doc/iiimsf/Makefile iiimf-12.3.91-svn2814/doc/iiimsf/Makefile +--- iiimf-12.3.91-svn2814-old/doc/iiimsf/Makefile 2003-09-30 20:54:30.000000000 +0800 ++++ iiimf-12.3.91-svn2814/doc/iiimsf/Makefile 2007-06-05 00:39:41.000000000 +0800 +@@ -4,7 +4,7 @@ + DOCBOOK_SSDIR = /usr/share/sgml/docbook/stylesheet/dsssl/modular + TORTF = jade -t rtf -d $(DOCBOOK_SSDIR)/print/docbook.dsl $(XML_DECL) + TOTEX = jade -t tex -d $(DOCBOOK_SSDIR)/print/docbook.dsl $(XML_DECL) +-TOHTML = jade -t sgml -d $(DOCBOOK_SSDIR)/html/docbook.dsl $(XML_DECL) ++TOHTML = xsltproc /usr/share/xml/docbook/stylesheet/nwalsh/html/chunk.xsl + + .SUFFIXES: .xml .rtf .html .txt .dvi .ps + --- im-sdk-12.3.91.orig/debian/patches/009_upstream-2841.patch +++ im-sdk-12.3.91/debian/patches/009_upstream-2841.patch @@ -0,0 +1,62 @@ +Index: iiimgcf/imswitcher.c +=================================================================== +--- iiimf-12.3.91-svn2814/iiimgcf/imswitcher.c (revision 2840) ++++ iiimf-12.3.91-svn2814/iiimgcf/imswitcher.c (revision 2841) +@@ -249,6 +249,7 @@ + SwitcherInfo *sw_info = im_info_get_switcher_info (info); + IIIMF_status st; + gint conversion_mode = FALSE; ++ long conversion_mode_long; + + if (sw_info == NULL) + return; +@@ -256,6 +257,8 @@ + st = iiimcf_get_current_conversion_mode (context_iiim->context, + &conversion_mode); + ++ conversion_mode_long = conversion_mode; ++ + if (sw_info->switcher) + { + gdk_property_change (sw_info->switcher, +@@ -263,7 +266,7 @@ + sw_info->set_conversion_mode_atom, + 32, + GDK_PROP_MODE_REPLACE, +- (unsigned char*)&conversion_mode, ++ (unsigned char*)&conversion_mode_long, + 1); + } + else if (sw_info->switcher_x_window) +@@ -279,7 +282,7 @@ + x_atom, + 32, + PropModeReplace, +- (guchar *)&conversion_mode, ++ (guchar *)&conversion_mode_long, + 1); + } + } +Index: iiimgcf/IIIMGdkEventKey.c +=================================================================== +--- iiimf-12.3.91-svn2814/iiimgcf/IIIMGdkEventKey.c (revision 2840) ++++ iiimf-12.3.91-svn2814/iiimgcf/IIIMGdkEventKey.c (revision 2841) +@@ -284,7 +284,7 @@ + toggle_kana_flag (GdkEventKey *e) + { + int (*oldhandler)(Display *, XErrorEvent *) = NULL; +- int kanamode; ++ long kanamode; + Window kana_w; + GdkDisplay *gdkdisplay; + Display *xdisplay; +@@ -310,8 +310,7 @@ + { + XChangeProperty(xdisplay, kana_w, kanaflag_atom, XA_WINDOW, 32, + PropModeReplace, +- (unsigned char*) &kanamode, +- sizeof(kanamode)); ++ (unsigned char*) &kanamode, 1); + } + + XSync(xdisplay, False); --- im-sdk-12.3.91.orig/debian/patches/041_fix-gnome-im-switcher.patch +++ im-sdk-12.3.91/debian/patches/041_fix-gnome-im-switcher.patch @@ -0,0 +1,40 @@ +--- iiimf-12.3.91-svn2814/gnome-im-switcher/src/iiim-interface.c.old 2005-11-15 13:37:32.000000000 +0800 ++++ iiimf-12.3.91-svn2814/gnome-im-switcher/src/iiim-interface.c 2005-11-15 13:37:45.000000000 +0800 +@@ -324,7 +324,7 @@ + strlen (conversion_mode) + 1); /* including last NULL */ + } + +-static void ++void + process_hotkey (GimletWindow *gimlet, + gpointer data, int length) + { +@@ -360,7 +360,7 @@ + g_free (hotkey); + } + +-static char * ++char * + change_hotkey_with_trigger (char *s, char *trigger) + { + char *label_delimiter = ":"; +--- iiimf-12.3.91-svn2814/gnome-im-switcher/src/language.c.old 2005-11-15 14:13:36.000000000 +0800 ++++ iiimf-12.3.91-svn2814/gnome-im-switcher/src/language.c 2005-11-15 14:12:47.000000000 +0800 +@@ -950,7 +950,7 @@ + g_free (language); + } + +-static void ++void + gconf_set_conversion_keys (GtkWidget *gimlet_applet, + GSList *strings) + { +@@ -965,7 +965,7 @@ + g_free (key); + } + +-static char * ++char * + gconf_get_conversion_keys (GimletWindow *gimlet) + { + gchar *key; --- im-sdk-12.3.91.orig/debian/patches/011_fix-iiimp-no-F_UNLKSYS-on-linux.patch +++ im-sdk-12.3.91/debian/patches/011_fix-iiimp-no-F_UNLKSYS-on-linux.patch @@ -0,0 +1,35 @@ +--- iiimf-12.3.91-svn2814/lib/iiimp/data/comp-file-operation.c.old 2005-11-15 14:54:18.000000000 +0800 ++++ iiimf-12.3.91-svn2814/lib/iiimp/data/comp-file-operation.c 2005-11-15 14:55:31.000000000 +0800 +@@ -134,8 +134,10 @@ + return F_WRLCK; + case IIIMP_FILE_OPERATION_FCNTL_FLOCK_TYPE_F_UNLCK: + return F_UNLCK; ++#if !defined(__linux__) + case IIIMP_FILE_OPERATION_FCNTL_FLOCK_TYPE_F_UNLKSYS: + return F_UNLKSYS; ++#endif + default: + return -1; + } +@@ -153,8 +155,10 @@ + return IIIMP_FILE_OPERATION_FCNTL_FLOCK_TYPE_F_WRLCK; + case F_UNLCK: + return IIIMP_FILE_OPERATION_FCNTL_FLOCK_TYPE_F_UNLCK; ++#if !defined(__linux__) + case F_UNLKSYS: + return IIIMP_FILE_OPERATION_FCNTL_FLOCK_TYPE_F_UNLKSYS; ++#endif + default: + return -1; + } +@@ -7319,8 +7323,10 @@ + return "F_WRLCK"; + case F_UNLCK: + return "F_UNLCK"; ++#if !defined(__linux__) + case F_UNLKSYS: + return "F_UNLKSYS"; ++#endif + default: + return "UNKNOWN"; + } --- im-sdk-12.3.91.orig/debian/patches/012_libiiimp-additional-headers.patch +++ im-sdk-12.3.91/debian/patches/012_libiiimp-additional-headers.patch @@ -0,0 +1,24 @@ +--- iiimf-12.3.91-svn2814/lib/iiimp/Makefile.am 2005-06-21 11:24:57.000000000 +0800 ++++ iiimf-12.3.91-svn2814/lib/iiimp/Makefile.am 2007-03-14 12:47:48.000000000 +0800 +@@ -55,7 +55,8 @@ + $(IM_INCLUDEDIR)/iiimp/iiimp-opcode.h \ + $(IM_INCLUDEDIR)/iiimp/iiimp-keycode.h \ + $(IM_INCLUDEDIR)/iiimp/iiimp-data.h \ +- $(IM_INCLUDEDIR)/iiimp/iiimp-character-subsets.h ++ $(IM_INCLUDEDIR)/iiimp/iiimp-character-subsets.h \ ++ $(IM_INCLUDEDIR)/iiimp/iiimp-file-operation.h + + pkgconfigdir = $(libdir)/pkgconfig + pkgconfig_DATA = $(PACKAGE).pc +--- iiimf-12.3.91-svn2814/lib/iiimp/Makefile.in 2007-03-14 17:02:44.000000000 +0800 ++++ iiimf-12.3.91-svn2814/lib/iiimp/Makefile.in 2007-03-14 17:03:10.000000000 +0800 +@@ -339,7 +339,8 @@ + $(IM_INCLUDEDIR)/iiimp/iiimp-opcode.h \ + $(IM_INCLUDEDIR)/iiimp/iiimp-keycode.h \ + $(IM_INCLUDEDIR)/iiimp/iiimp-data.h \ +- $(IM_INCLUDEDIR)/iiimp/iiimp-character-subsets.h ++ $(IM_INCLUDEDIR)/iiimp/iiimp-character-subsets.h \ ++ $(IM_INCLUDEDIR)/iiimp/iiimp-file-operation.h + + pkgconfigdir = $(libdir)/pkgconfig + pkgconfig_DATA = $(PACKAGE).pc --- im-sdk-12.3.91.orig/debian/patches/009_upstream-3123.patch +++ im-sdk-12.3.91/debian/patches/009_upstream-3123.patch @@ -0,0 +1,35 @@ +Index: iiimxcf/xiiimp.so/iiimp/iiimcfFun.c +=================================================================== +--- iiimf-12.3.91-svn2814/iiimxcf/xiiimp.so/iiimp/iiimcfFun.c (revision 3122) ++++ iiimf-12.3.91-svn2814/iiimxcf/xiiimp.so/iiimp/iiimcfFun.c (revision 3123) +@@ -1231,12 +1231,12 @@ + char * + format_iiimcf_string (const IIIMP_card16 *u16str) + { +- iconv_t *cd; ++ iconv_t cd; + char *inbuf, *outbuf; +- int inbytesleft, outbytesleft; ++ size_t inbytesleft, outbytesleft; + IIIMP_card16 *pu; + char *utf8str; +- int buflen; ++ size_t buflen; + + if (!u16str) return NULL; + +@@ -1266,11 +1266,11 @@ + static IIIMP_card16 * + format_utf8_string (char *utf8str) + { +- iconv_t *cd; ++ iconv_t cd; + char *inbuf, *outbuf; +- int inbytesleft, outbytesleft; ++ size_t inbytesleft, outbytesleft; + IIIMP_card16 *u16str; +- int buflen; ++ size_t buflen; + + if (!utf8str) return NULL; + --- im-sdk-12.3.91.orig/debian/patches/009_upstream-2921.patch +++ im-sdk-12.3.91/debian/patches/009_upstream-2921.patch @@ -0,0 +1,13 @@ +Index: iiimxcf/xiiimp.so/iiimp/iiimpConv.c +=================================================================== +--- iiimf-12.3.91-svn2814/iiimxcf/xiiimp.so/iiimp/iiimpConv.c (revision 2920) ++++ iiimf-12.3.91-svn2814/iiimxcf/xiiimp.so/iiimp/iiimpConv.c (revision 2921) +@@ -559,7 +559,7 @@ + + return IIIMF_STATUS_SUCCESS; + } else { +- int dst_len, dst_len_orig, src_len; ++ size_t dst_len, dst_len_orig, src_len; + char *str; + const char *src; + --- im-sdk-12.3.91.orig/debian/patches/021_xiiimp.so-invalid-ic.patch +++ im-sdk-12.3.91/debian/patches/021_xiiimp.so-invalid-ic.patch @@ -0,0 +1,11 @@ +--- iiimf-12.3.91-svn2814/iiimxcf/xiiimp.so/iiimp/iiimcfFun.c.orig 2006-09-28 20:17:24.000000000 +0800 ++++ iiimf-12.3.91-svn2814/iiimxcf/xiiimp.so/iiimp/iiimcfFun.c 2006-09-28 20:07:32.000000000 +0800 +@@ -919,6 +919,8 @@ + ) + { + if (!ic) return False; ++ if (!((XicCommon)ic)->iiimp_icpart) return False; ++ if (!XIC_IIIMP(ic, context)) return False; + + if (iiimcf_forward_event(XIC_IIIMP(ic, context), ev) + != IIIMF_STATUS_SUCCESS) return False;