762
|
1 |
diff -ur scim-1.4.7.orig/bootstrap scim-1.4.7/bootstrap
|
|
2 |
--- scim-1.4.7.orig/bootstrap 2007-10-09 00:43:58.000000000 +0800
|
|
3 |
+++ scim-1.4.7/bootstrap 2008-01-04 15:04:20.379692893 +0800
|
|
4 |
@@ -20,7 +20,7 @@
|
|
5 |
#! /bin/sh
|
|
6 |
|
|
7 |
set -x
|
|
8 |
-aclocal -I m4
|
|
9 |
+aclocal
|
|
10 |
autoheader
|
|
11 |
libtoolize -c --automake
|
|
12 |
automake --add-missing --copy --include-deps
|
|
13 |
diff -ur scim-1.4.7.orig/configure.ac scim-1.4.7/configure.ac
|
|
14 |
--- scim-1.4.7.orig/configure.ac 2007-10-09 00:43:58.000000000 +0800
|
|
15 |
+++ scim-1.4.7/configure.ac 2008-01-04 15:04:20.377310166 +0800
|
|
16 |
@@ -66,7 +66,9 @@
|
|
17 |
|
|
18 |
# Init gettext
|
|
19 |
ALL_LINGUAS="zh_CN zh_TW ja ko de fr it cs pa fi sv nl"
|
|
20 |
-AM_GNU_GETTEXT
|
|
21 |
+AM_GLIB_GNU_GETTEXT
|
|
22 |
+LTLIBINTL=
|
|
23 |
+AC_SUBST(LTLIBINTL)
|
|
24 |
|
|
25 |
# Init libtool
|
|
26 |
AC_LIBTOOL_DLOPEN
|
|
27 |
diff -ur scim-1.4.7.orig/extras/gtk2_immodule/Makefile.am scim-1.4.7/extras/gtk2_immodule/Makefile.am
|
|
28 |
--- scim-1.4.7.orig/extras/gtk2_immodule/Makefile.am 2007-10-09 00:43:22.000000000 +0800
|
|
29 |
+++ scim-1.4.7/extras/gtk2_immodule/Makefile.am 2008-01-04 15:04:20.378042640 +0800
|
|
30 |
@@ -38,13 +38,13 @@
|
|
31 |
|
|
32 |
im_scim_la_SOURCES = gtkimcontextscim.cpp imscim.cpp
|
|
33 |
|
|
34 |
-im_scim_la_CXXFLAGS=@GTK2_CFLAGS@
|
|
35 |
+im_scim_la_CXXFLAGS=@GTK2_CFLAGS@ \
|
|
36 |
+ -instlib=$(top_builddir)/src/.libs/libscim-1.0.so
|
|
37 |
im_scim_la_CFLAGS =@GTK2_CFLAGS@
|
|
38 |
|
|
39 |
im_scim_la_LDFLAGS = -rpath $(moduledir) \
|
|
40 |
-avoid-version \
|
|
41 |
-module \
|
|
42 |
- -lstdc++ \
|
|
43 |
$(LD_VERSION_SCRIPT_OPTION) \
|
|
44 |
@GTK2_LIBS@
|
|
45 |
|
|
46 |
diff -ur scim-1.4.7.orig/extras/setup/Makefile.am scim-1.4.7/extras/setup/Makefile.am
|
|
47 |
--- scim-1.4.7.orig/extras/setup/Makefile.am 2007-10-09 00:43:20.000000000 +0800
|
|
48 |
+++ scim-1.4.7/extras/setup/Makefile.am 2008-01-04 15:04:20.377675411 +0800
|
|
49 |
@@ -55,7 +55,6 @@
|
|
50 |
setup_la_LDFLAGS = -avoid-version \
|
|
51 |
-rpath $(moduledir) \
|
|
52 |
-module \
|
|
53 |
- -lstdc++ \
|
|
54 |
@LIBTOOL_EXPORT_OPTIONS@ \
|
|
55 |
@GTK2_LIBS@ \
|
|
56 |
@LTLIBINTL@
|
|
57 |
diff -ur scim-1.4.7.orig/Makefile.am scim-1.4.7/Makefile.am
|
|
58 |
--- scim-1.4.7.orig/Makefile.am 2007-10-09 00:43:58.000000000 +0800
|
|
59 |
+++ scim-1.4.7/Makefile.am 2008-01-04 15:04:20.380120473 +0800
|
353
|
60 |
@@ -33,7 +33,7 @@
|
|
61 |
intltool-update.in
|
|
62 |
|
|
63 |
AUTOMAKE_OPTIONS = gnu
|
|
64 |
-SUBDIRS = m4 intl src utils modules configs docs po extras data tests
|
|
65 |
+SUBDIRS = src utils modules configs docs po extras data tests
|
|
66 |
|
|
67 |
MAINTAINERCLEANFILES = Makefile.in \
|
|
68 |
aclocal.m4 \
|
|
69 |
@@ -61,7 +61,7 @@
|
|
70 |
$(GTK_UTILS_PKGCONFIG) \
|
|
71 |
$(X11_UTILS_PKGCONFIG)
|
|
72 |
|
|
73 |
-ACLOCAL_AMFLAGS = -I m4
|
|
74 |
+ACLOCAL_AMFLAGS =
|
|
75 |
|
|
76 |
.PHONY: update-ChangeLog
|
|
77 |
|
762
|
78 |
diff -ur scim-1.4.7.orig/modules/FrontEnd/scim_x11_frontend.cpp scim-1.4.7/modules/FrontEnd/scim_x11_frontend.cpp
|
|
79 |
--- scim-1.4.7.orig/modules/FrontEnd/scim_x11_frontend.cpp 2007-10-09 00:43:28.000000000 +0800
|
|
80 |
+++ scim-1.4.7/modules/FrontEnd/scim_x11_frontend.cpp 2008-01-04 15:04:20.379279064 +0800
|
353
|
81 |
@@ -46,6 +46,7 @@
|
|
82 |
#include <X11/Xlib.h>
|
|
83 |
#include <X11/keysym.h>
|
|
84 |
#include <X11/Xutil.h>
|
|
85 |
+#include <locale.h>
|
|
86 |
#include "IMdkit/IMdkit.h"
|
|
87 |
#include "IMdkit/Xi18n.h"
|
|
88 |
|
762
|
89 |
diff -ur scim-1.4.7.orig/src/ltdl.cpp scim-1.4.7/src/ltdl.cpp
|
|
90 |
--- scim-1.4.7.orig/src/ltdl.cpp 2007-10-09 00:42:09.000000000 +0800
|
|
91 |
+++ scim-1.4.7/src/ltdl.cpp 2008-01-04 15:04:20.372382842 +0800
|
|
92 |
@@ -3372,7 +3372,7 @@
|
|
93 |
assert (filename);
|
|
94 |
|
|
95 |
len = LT_STRLEN (filename);
|
|
96 |
- ext = strrchr (filename, '.');
|
|
97 |
+ ext = strrchr ((char*)filename, '.');
|
|
98 |
|
|
99 |
/* If FILENAME already bears a suitable extension, there is no need
|
|
100 |
to try appending additional extensions. */
|
|
101 |
diff -ur scim-1.4.7.orig/src/Makefile.am scim-1.4.7/src/Makefile.am
|
|
102 |
--- scim-1.4.7.orig/src/Makefile.am 2007-10-09 00:42:09.000000000 +0800
|
|
103 |
+++ scim-1.4.7/src/Makefile.am 2008-01-04 15:04:20.376383412 +0800
|
353
|
104 |
@@ -134,8 +134,7 @@
|
|
105 |
$(LD_VERSION_SCRIPT_OPTION) \
|
|
106 |
@LIBTOOL_EXPORT_OPTIONS@ \
|
|
107 |
@LIBICONV@ \
|
|
108 |
- @LTLIBINTL@ \
|
|
109 |
- -lstdc++
|
|
110 |
+ @LTLIBINTL@
|
|
111 |
|
|
112 |
libscim@SCIM_EPOCH@_la_LIBADD = libltdlc.la
|
|
113 |
|
762
|
114 |
diff -ur scim-1.4.7.orig/src/scim.h scim-1.4.7/src/scim.h
|
|
115 |
--- scim-1.4.7.orig/src/scim.h 2007-10-09 00:42:09.000000000 +0800
|
|
116 |
+++ scim-1.4.7/src/scim.h 2008-01-04 15:04:20.369805270 +0800
|
353
|
117 |
@@ -298,14 +298,14 @@
|
|
118 |
#include <scim_global_config.h>
|
|
119 |
#endif
|
|
120 |
|
|
121 |
-#ifdef Uses_SCIM_OBJECT
|
|
122 |
- #include <scim_object.h>
|
|
123 |
-#endif
|
|
124 |
-
|
|
125 |
#ifdef Uses_SCIM_POINTER
|
|
126 |
#include <scim_pointer.h>
|
|
127 |
#endif
|
|
128 |
|
|
129 |
+#ifdef Uses_SCIM_OBJECT
|
|
130 |
+ #include <scim_object.h>
|
|
131 |
+#endif
|
|
132 |
+
|
|
133 |
#ifdef Uses_SCIM_SLOT
|
|
134 |
#include <scim_slot.h>
|
|
135 |
#endif
|
762
|
136 |
diff -ur scim-1.4.7.orig/src/scim_pointer.h scim-1.4.7/src/scim_pointer.h
|
|
137 |
--- scim-1.4.7.orig/src/scim_pointer.h 2007-10-09 00:42:09.000000000 +0800
|
|
138 |
+++ scim-1.4.7/src/scim_pointer.h 2008-01-04 15:04:20.375588994 +0800
|
353
|
139 |
@@ -84,7 +84,7 @@
|
|
140 |
//!<
|
|
141 |
//!< <BR>Initialize a new Pointer with any dumb pointer.
|
|
142 |
|
|
143 |
- Pointer(Pointer& src) : t(0)
|
|
144 |
+ Pointer(const Pointer& src) : t(0)
|
|
145 |
{
|
|
146 |
set(src.get());
|
|
147 |
}
|
762
|
148 |
diff -ur scim-1.4.7.orig/src/scim_socket.cpp scim-1.4.7/src/scim_socket.cpp
|
|
149 |
--- scim-1.4.7.orig/src/scim_socket.cpp 2007-10-09 00:42:09.000000000 +0800
|
|
150 |
+++ scim-1.4.7/src/scim_socket.cpp 2008-01-04 15:04:20.373401972 +0800
|
|
151 |
@@ -50,6 +50,10 @@
|
|
152 |
#include "scim_private.h"
|
|
153 |
#include "scim.h"
|
353
|
154 |
|
|
155 |
+#if defined(sun) && !defined(SUN_LEN)
|
|
156 |
+#define SUN_LEN(su) (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))
|
|
157 |
+#endif
|
|
158 |
+
|
762
|
159 |
#define SCIM_SOCKET_SERVER_MAX_CLIENTS 256
|
353
|
160 |
|
762
|
161 |
namespace scim {
|
|
162 |
diff -ur scim-1.4.7.orig/src/scim_transaction.cpp scim-1.4.7/src/scim_transaction.cpp
|
|
163 |
--- scim-1.4.7.orig/src/scim_transaction.cpp 2007-10-09 00:42:09.000000000 +0800
|
|
164 |
+++ scim-1.4.7/src/scim_transaction.cpp 2008-01-04 15:04:20.375108353 +0800
|
353
|
165 |
@@ -792,7 +792,8 @@
|
|
166 |
}
|
|
167 |
|
|
168 |
if (len)
|
|
169 |
- str = String (m_impl->m_holder->m_buffer + m_impl->m_read_pos, m_impl->m_holder->m_buffer + m_impl->m_read_pos + len);
|
|
170 |
+ str = String ((const char*)(m_impl->m_holder->m_buffer + m_impl->m_read_pos),
|
|
171 |
+ (const char*)m_impl->m_holder->m_buffer + m_impl->m_read_pos + len);
|
|
172 |
else
|
|
173 |
str = String ("");
|
|
174 |
|
|
175 |
@@ -828,7 +829,8 @@
|
|
176 |
}
|
|
177 |
|
|
178 |
if (len)
|
|
179 |
- mbs = String (m_impl->m_holder->m_buffer + m_impl->m_read_pos, m_impl->m_holder->m_buffer + m_impl->m_read_pos + len);
|
|
180 |
+ mbs = String ((const char*)(m_impl->m_holder->m_buffer + m_impl->m_read_pos),
|
|
181 |
+ (const char*)m_impl->m_holder->m_buffer + m_impl->m_read_pos + len);
|
|
182 |
else
|
|
183 |
mbs = String ("");
|
|
184 |
|
762
|
185 |
diff -ur scim-1.4.7.orig/src/scim_types.h.in scim-1.4.7/src/scim_types.h.in
|
|
186 |
--- scim-1.4.7.orig/src/scim_types.h.in 2007-10-09 00:42:09.000000000 +0800
|
|
187 |
+++ scim-1.4.7/src/scim_types.h.in 2008-01-04 15:04:20.375978401 +0800
|
|
188 |
@@ -32,6 +32,10 @@
|
|
189 |
|
|
190 |
@INCLUDE_STDINT@
|
|
191 |
|
|
192 |
+#if defined (sun) && defined (_WCHAR_T)
|
|
193 |
+# define __STDC_ISO_10646__
|
|
194 |
+#endif
|
|
195 |
+
|
|
196 |
#ifdef __FreeBSD__
|
|
197 |
# include <osreldate.h>
|
|
198 |
# if __FreeBSD_version > 500035
|
|
199 |
diff -ur scim-1.4.7.orig/src/scim_utility.cpp scim-1.4.7/src/scim_utility.cpp
|
|
200 |
--- scim-1.4.7.orig/src/scim_utility.cpp 2007-10-09 00:42:09.000000000 +0800
|
|
201 |
+++ scim-1.4.7/src/scim_utility.cpp 2008-01-04 15:04:20.374162591 +0800
|
353
|
202 |
@@ -40,6 +40,7 @@
|
|
203 |
#include <stdio.h>
|
|
204 |
#include <time.h>
|
|
205 |
#include <errno.h>
|
|
206 |
+#include <locale.h>
|
|
207 |
|
|
208 |
#include "scim_private.h"
|
|
209 |
#include "scim.h"
|
762
|
210 |
diff -ur scim-1.4.7.orig/tests/Makefile.am scim-1.4.7/tests/Makefile.am
|
|
211 |
--- scim-1.4.7.orig/tests/Makefile.am 2007-10-09 00:42:47.000000000 +0800
|
|
212 |
+++ scim-1.4.7/tests/Makefile.am 2008-01-04 15:04:20.376737902 +0800
|
353
|
213 |
@@ -49,7 +49,6 @@
|
|
214 |
test_helper_la_LDFLAGS = -avoid-version \
|
|
215 |
-rpath $(helpermoduledir) \
|
|
216 |
-module \
|
|
217 |
- -lstdc++ \
|
|
218 |
@LIBTOOL_EXPORT_OPTIONS@ \
|
|
219 |
@GTK2_LIBS@ \
|
|
220 |
@LTLIBINTL@
|