1 |
matsuu 11/01/05 11:17:11 |
2 |
|
3 |
Added: uim-1.6.0-gettext.patch uim-1.6.0-linker.patch |
4 |
uim-1.6.0-xcompose.patch |
5 |
Removed: uim-1.5.6-toplevel-delete-event.patch |
6 |
uim-disable-notify.diff |
7 |
Log: |
8 |
Fixed Qt4 issue, bug #349859. Fixed gtk issue, bug #350207. These patches are submitted by Muneyuki Noguchi. Respect CXX and LDFLAGS, bug #349689. |
9 |
|
10 |
(Portage version: 2.1.9.28/cvs/Linux x86_64) |
11 |
|
12 |
Revision Changes Path |
13 |
1.1 app-i18n/uim/files/uim-1.6.0-gettext.patch |
14 |
|
15 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/uim/files/uim-1.6.0-gettext.patch?rev=1.1&view=markup |
16 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/uim/files/uim-1.6.0-gettext.patch?rev=1.1&content-type=text/plain |
17 |
|
18 |
Index: uim-1.6.0-gettext.patch |
19 |
=================================================================== |
20 |
Index: qt4/qtgettext.h |
21 |
=================================================================== |
22 |
--- qt4/qtgettext.h (revision 6847) |
23 |
+++ qt4/qtgettext.h (revision 6848) |
24 |
@@ -61,6 +61,11 @@ |
25 |
#else /* ENABLE_NLS */ |
26 |
|
27 |
#define mygettext(String) QString::fromLocal8Bit(String) |
28 |
+/* undef original _(String) macro to use QString */ |
29 |
+#ifdef _ |
30 |
+#undef _ |
31 |
+#endif |
32 |
+#define _(String) mygettext(String) |
33 |
#define UIC_(String, dummy) (String) |
34 |
#endif /* ENABLE_NLS */ |
35 |
|
36 |
|
37 |
|
38 |
|
39 |
1.1 app-i18n/uim/files/uim-1.6.0-linker.patch |
40 |
|
41 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/uim/files/uim-1.6.0-linker.patch?rev=1.1&view=markup |
42 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/uim/files/uim-1.6.0-linker.patch?rev=1.1&content-type=text/plain |
43 |
|
44 |
Index: uim-1.6.0-linker.patch |
45 |
=================================================================== |
46 |
diff -Naur uim-1.6.0.orig/configure.ac uim-1.6.0/configure.ac |
47 |
--- uim-1.6.0.orig/configure.ac 2010-08-02 09:30:14.000000000 +0900 |
48 |
+++ uim-1.6.0/configure.ac 2011-01-03 11:43:06.375239564 +0900 |
49 |
@@ -1826,6 +1826,7 @@ |
50 |
qt4/chardict/uim-chardict-qt4.pro |
51 |
qt4/chardict/po/Makefile.in |
52 |
qt4/edittest/Makefile |
53 |
+ qt4/edittest/edittest.pro |
54 |
qt4/immodule/quiminputcontextplugin.pro |
55 |
qt4/immodule/Makefile |
56 |
qt4/pref/uim-pref-qt4.pro |
57 |
diff -Naur uim-1.6.0.orig/qt4/candwin/uim-candwin-qt4.pro.in uim-1.6.0/qt4/candwin/uim-candwin-qt4.pro.in |
58 |
--- uim-1.6.0.orig/qt4/candwin/uim-candwin-qt4.pro.in 2010-08-09 13:09:35.000000000 +0900 |
59 |
+++ uim-1.6.0/qt4/candwin/uim-candwin-qt4.pro.in 2011-01-05 09:27:14.905438175 +0900 |
60 |
@@ -16,6 +16,9 @@ |
61 |
QMAKE_CXX = @CXX@ |
62 |
QMAKE_CXXFLAGS_DEBUG += @CXXFLAGS@ @X_CFLAGS@ |
63 |
QMAKE_CXXFLAGS_RELEASE += @CXXFLAGS@ @X_CFLAGS@ |
64 |
+QMAKE_LINK = @CXX@ |
65 |
+QMAKE_LFLAGS_DEBUG += @LDFLAGS@ |
66 |
+QMAKE_LFLAGS_RELEASE += @LDFLAGS@ |
67 |
|
68 |
QMAKE_STRIP = |
69 |
|
70 |
diff -Naur uim-1.6.0.orig/qt4/chardict/uim-chardict-qt4.pro.in uim-1.6.0/qt4/chardict/uim-chardict-qt4.pro.in |
71 |
--- uim-1.6.0.orig/qt4/chardict/uim-chardict-qt4.pro.in 2010-08-09 13:09:35.000000000 +0900 |
72 |
+++ uim-1.6.0/qt4/chardict/uim-chardict-qt4.pro.in 2011-01-05 09:27:14.905438175 +0900 |
73 |
@@ -16,6 +16,9 @@ |
74 |
QMAKE_CXX = @CXX@ |
75 |
QMAKE_CXXFLAGS_DEBUG += @CXXFLAGS@ @X_CFLAGS@ |
76 |
QMAKE_CXXFLAGS_RELEASE += @CXXFLAGS@ @X_CFLAGS@ |
77 |
+QMAKE_LINK = @CXX@ |
78 |
+QMAKE_LFLAGS_DEBUG += @LDFLAGS@ |
79 |
+QMAKE_LFLAGS_RELEASE += @LDFLAGS@ |
80 |
|
81 |
QMAKE_STRIP = |
82 |
|
83 |
diff -Naur uim-1.6.0.orig/qt4/edittest/Makefile.am uim-1.6.0/qt4/edittest/Makefile.am |
84 |
--- uim-1.6.0.orig/qt4/edittest/Makefile.am 2010-03-30 13:24:26.000000000 +0900 |
85 |
+++ uim-1.6.0/qt4/edittest/Makefile.am 2011-01-03 11:41:06.643957761 +0900 |
86 |
@@ -12,8 +12,8 @@ |
87 |
$(MAKE) $(AM_MAKEFLAGS) -f Makefile.qmake $@ |
88 |
$(MAKE) $(AM_MAKEFLAGS) distclean-am |
89 |
endif |
90 |
- -rm -f Makefile |
91 |
+ -rm -f Makefile edittest.pro |
92 |
|
93 |
FORCE: |
94 |
|
95 |
-EXTRA_DIST = README edittest.pro main.cpp |
96 |
+EXTRA_DIST = README edittest.pro.in main.cpp |
97 |
diff -Naur uim-1.6.0.orig/qt4/edittest/edittest.pro uim-1.6.0/qt4/edittest/edittest.pro |
98 |
--- uim-1.6.0.orig/qt4/edittest/edittest.pro 2010-08-09 13:09:35.000000000 +0900 |
99 |
+++ uim-1.6.0/qt4/edittest/edittest.pro 1970-01-01 09:00:00.000000000 +0900 |
100 |
@@ -1,14 +0,0 @@ |
101 |
-###################################################################### |
102 |
-# Automatically generated by qmake (1.08a) Tue Aug 24 01:02:27 2004 |
103 |
-###################################################################### |
104 |
- |
105 |
-TEMPLATE = app |
106 |
-CONFIG -= moc |
107 |
-DEPENDPATH += . |
108 |
-INCLUDEPATH += . |
109 |
-CONFIG += qt warn_on debug |
110 |
- |
111 |
-QMAKE_STRIP = |
112 |
- |
113 |
-# Input |
114 |
-SOURCES += main.cpp |
115 |
diff -Naur uim-1.6.0.orig/qt4/edittest/edittest.pro.in uim-1.6.0/qt4/edittest/edittest.pro.in |
116 |
--- uim-1.6.0.orig/qt4/edittest/edittest.pro.in 1970-01-01 09:00:00.000000000 +0900 |
117 |
+++ uim-1.6.0/qt4/edittest/edittest.pro.in 2011-01-05 09:27:14.909438151 +0900 |
118 |
@@ -0,0 +1,24 @@ |
119 |
+###################################################################### |
120 |
+# Automatically generated by qmake (1.08a) Tue Aug 24 01:02:27 2004 |
121 |
+###################################################################### |
122 |
+ |
123 |
+TEMPLATE = app |
124 |
+CONFIG -= moc |
125 |
+DEPENDPATH += . |
126 |
+INCLUDEPATH += . |
127 |
+CONFIG += qt warn_on debug |
128 |
+ |
129 |
+QMAKE_CC = @CC@ |
130 |
+QMAKE_CFLAGS_DEBUG += @CFLAGS@ @X_CFLAGS@ |
131 |
+QMAKE_CFLAGS_RELEASE += @CFLAGS@ @X_CFLAGS@ |
132 |
+QMAKE_CXX = @CXX@ |
133 |
+QMAKE_CXXFLAGS_DEBUG += @CXXFLAGS@ @X_CFLAGS@ |
134 |
+QMAKE_CXXFLAGS_RELEASE += @CXXFLAGS@ @X_CFLAGS@ |
135 |
+QMAKE_LINK = @CXX@ |
136 |
+QMAKE_LFLAGS_DEBUG += @LDFLAGS@ |
137 |
+QMAKE_LFLAGS_RELEASE += @LDFLAGS@ |
138 |
+ |
139 |
+QMAKE_STRIP = |
140 |
+ |
141 |
+# Input |
142 |
+SOURCES += main.cpp |
143 |
diff -Naur uim-1.6.0.orig/qt4/immodule/quiminputcontextplugin.pro.in uim-1.6.0/qt4/immodule/quiminputcontextplugin.pro.in |
144 |
--- uim-1.6.0.orig/qt4/immodule/quiminputcontextplugin.pro.in 2010-08-09 13:09:35.000000000 +0900 |
145 |
+++ uim-1.6.0/qt4/immodule/quiminputcontextplugin.pro.in 2011-01-05 09:27:14.913438127 +0900 |
146 |
@@ -22,6 +22,9 @@ |
147 |
QMAKE_CXX = @CXX@ |
148 |
QMAKE_CXXFLAGS_DEBUG += @CXXFLAGS@ @X_CFLAGS@ |
149 |
QMAKE_CXXFLAGS_RELEASE += @CXXFLAGS@ @X_CFLAGS@ |
150 |
+QMAKE_LINK = @CXX@ |
151 |
+QMAKE_LFLAGS_DEBUG += @LDFLAGS@ |
152 |
+QMAKE_LFLAGS_RELEASE += @LDFLAGS@ |
153 |
|
154 |
QMAKE_STRIP = |
155 |
|
156 |
diff -Naur uim-1.6.0.orig/qt4/pref/uim-pref-qt4.pro.in uim-1.6.0/qt4/pref/uim-pref-qt4.pro.in |
157 |
--- uim-1.6.0.orig/qt4/pref/uim-pref-qt4.pro.in 2010-08-09 13:09:35.000000000 +0900 |
158 |
+++ uim-1.6.0/qt4/pref/uim-pref-qt4.pro.in 2011-01-05 09:27:14.913438127 +0900 |
159 |
@@ -16,6 +16,9 @@ |
160 |
QMAKE_CXX = @CXX@ |
161 |
QMAKE_CXXFLAGS_DEBUG += @CXXFLAGS@ @X_CFLAGS@ |
162 |
QMAKE_CXXFLAGS_RELEASE += @CXXFLAGS@ @X_CFLAGS@ |
163 |
+QMAKE_LINK = @CXX@ |
164 |
+QMAKE_LFLAGS_DEBUG += @LDFLAGS@ |
165 |
+QMAKE_LFLAGS_RELEASE += @LDFLAGS@ |
166 |
|
167 |
QMAKE_STRIP = |
168 |
QMAKE_UIC = $$QMAKE_UIC -tr UIC_ |
169 |
diff -Naur uim-1.6.0.orig/qt4/switcher/uim-im-switcher-qt4.pro.in uim-1.6.0/qt4/switcher/uim-im-switcher-qt4.pro.in |
170 |
--- uim-1.6.0.orig/qt4/switcher/uim-im-switcher-qt4.pro.in 2010-08-09 13:09:35.000000000 +0900 |
171 |
+++ uim-1.6.0/qt4/switcher/uim-im-switcher-qt4.pro.in 2011-01-05 09:27:14.917438104 +0900 |
172 |
@@ -16,6 +16,9 @@ |
173 |
QMAKE_CXX = @CXX@ |
174 |
QMAKE_CXXFLAGS_DEBUG += @CXXFLAGS@ @X_CFLAGS@ |
175 |
QMAKE_CXXFLAGS_RELEASE += @CXXFLAGS@ @X_CFLAGS@ |
176 |
+QMAKE_LINK = @CXX@ |
177 |
+QMAKE_LFLAGS_DEBUG += @LDFLAGS@ |
178 |
+QMAKE_LFLAGS_RELEASE += @LDFLAGS@ |
179 |
|
180 |
QMAKE_STRIP = |
181 |
|
182 |
diff -Naur uim-1.6.0.orig/qt4/toolbar/uim-toolbar-qt4.pro.in uim-1.6.0/qt4/toolbar/uim-toolbar-qt4.pro.in |
183 |
--- uim-1.6.0.orig/qt4/toolbar/uim-toolbar-qt4.pro.in 2010-08-09 13:09:35.000000000 +0900 |
184 |
+++ uim-1.6.0/qt4/toolbar/uim-toolbar-qt4.pro.in 2011-01-05 09:27:14.917438104 +0900 |
185 |
@@ -16,6 +16,9 @@ |
186 |
QMAKE_CXX = @CXX@ |
187 |
QMAKE_CXXFLAGS_DEBUG += @CXXFLAGS@ @X_CFLAGS@ |
188 |
QMAKE_CXXFLAGS_RELEASE += @CXXFLAGS@ @X_CFLAGS@ |
189 |
+QMAKE_LINK = @CXX@ |
190 |
+QMAKE_LFLAGS_DEBUG += @LDFLAGS@ |
191 |
+QMAKE_LFLAGS_RELEASE += @LDFLAGS@ |
192 |
|
193 |
QMAKE_STRIP = |
194 |
|
195 |
|
196 |
|
197 |
|
198 |
1.1 app-i18n/uim/files/uim-1.6.0-xcompose.patch |
199 |
|
200 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/uim/files/uim-1.6.0-xcompose.patch?rev=1.1&view=markup |
201 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/uim/files/uim-1.6.0-xcompose.patch?rev=1.1&content-type=text/plain |
202 |
|
203 |
Index: uim-1.6.0-xcompose.patch |
204 |
=================================================================== |
205 |
Index: gtk/compose.c |
206 |
=================================================================== |
207 |
--- gtk/compose.c (revision 6879) |
208 |
+++ gtk/compose.c (revision 6880) |
209 |
@@ -621,7 +621,10 @@ |
210 |
{ |
211 |
char *result; |
212 |
result = g_locale_to_utf8(rhs_string_mb, -1, NULL, NULL, NULL); |
213 |
- rhs_string_utf8 = strdup(result); |
214 |
+ if (!result) |
215 |
+ rhs_string_utf8 = strdup(""); |
216 |
+ else |
217 |
+ rhs_string_utf8 = strdup(result); |
218 |
g_free(result); |
219 |
} |