Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-i18n/zhcon/files: zhcon-0.2.5.make-fix.patch zhcon-0.2.6-curses.patch zhcon-0.2.6+linux-headers-2.6.26.patch zhcon-0.2.6-amd64.patch
Date: Sat, 25 Oct 2008 11:29:38
Message-Id: E1KthKq-0000Ok-BR@stork.gentoo.org
1 flameeyes 08/10/25 11:29:36
2
3 Modified: zhcon-0.2.5.make-fix.patch
4 Added: zhcon-0.2.6-curses.patch
5 zhcon-0.2.6+linux-headers-2.6.26.patch
6 zhcon-0.2.6-amd64.patch
7 Log:
8 Add patches by Zhang Le for fixing bug #240024 (fix curses/gpm search, fix amd64, fix building with new linux-headers).
9 (Portage version: 2.2_rc12/cvs/Linux 2.6.27-gentoo x86_64)
10
11 Revision Changes Path
12 1.2 app-i18n/zhcon/files/zhcon-0.2.5.make-fix.patch
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/zhcon/files/zhcon-0.2.5.make-fix.patch?rev=1.2&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/zhcon/files/zhcon-0.2.5.make-fix.patch?rev=1.2&content-type=text/plain
16 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/zhcon/files/zhcon-0.2.5.make-fix.patch?r1=1.1&r2=1.2
17
18 Index: zhcon-0.2.5.make-fix.patch
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/app-i18n/zhcon/files/zhcon-0.2.5.make-fix.patch,v
21 retrieving revision 1.1
22 retrieving revision 1.2
23 diff -u -r1.1 -r1.2
24 --- zhcon-0.2.5.make-fix.patch 22 Oct 2006 20:49:17 -0000 1.1
25 +++ zhcon-0.2.5.make-fix.patch 25 Oct 2008 11:29:36 -0000 1.2
26 @@ -13,24 +13,6 @@
27 uninstall-local:
28 - -rm -f $(mandir)/man1/zhcon.1
29 + -rm -f $(DESTDIR)$(mandir)/man1/zhcon.1
30 -diff -Nur zhcon-0.2.5.orig/doc/Makefile.in zhcon-0.2.5/doc/Makefile.in
31 ---- zhcon-0.2.5.orig/doc/Makefile.in 2006-06-21 18:02:23.000000000 +0800
32 -+++ zhcon-0.2.5/doc/Makefile.in 2006-06-21 18:13:30.000000000 +0800
33 -@@ -326,11 +326,11 @@
34 -
35 -
36 - install-data-local:
37 -- $(mkinstalldirs) $(mandir)/man1/
38 -- $(INSTALL_DATA) $(top_builddir)/doc/zhcon.1 $(mandir)/man1/zhcon.1
39 -+ $(mkinstalldirs) $(DESTDIR)$(mandir)/man1/
40 -+ $(INSTALL_DATA) $(top_builddir)/doc/zhcon.1 $(DESTDIR)$(mandir)/man1/zhcon.1
41 -
42 - uninstall-local:
43 -- -rm -f $(mandir)/man1/zhcon.1
44 -+ -rm -f $(DESTDIR)$(mandir)/man1/zhcon.1
45 - # Tell versions [3.59,3.63) of GNU make to not export all variables.
46 - # Otherwise a system limit (for SysV at least) may be exceeded.
47 - .NOEXPORT:
48 diff -Nur zhcon-0.2.5.orig/font/Makefile.am zhcon-0.2.5/font/Makefile.am
49 --- zhcon-0.2.5.orig/font/Makefile.am 2006-06-21 18:02:23.000000000 +0800
50 +++ zhcon-0.2.5/font/Makefile.am 2006-06-21 18:14:30.000000000 +0800
51 @@ -46,24 +28,6 @@
52 uninstall-local:
53 - -rm -f $(libdir)/zhcon/font/*.bpsf
54 + -rm -f $(DESTDIR)$(libdir)/zhcon/font/*.bpsf
55 -diff -Nur zhcon-0.2.5.orig/font/Makefile.in zhcon-0.2.5/font/Makefile.in
56 ---- zhcon-0.2.5.orig/font/Makefile.in 2006-06-21 18:02:23.000000000 +0800
57 -+++ zhcon-0.2.5/font/Makefile.in 2006-06-21 18:15:02.000000000 +0800
58 -@@ -321,11 +321,11 @@
59 -
60 -
61 - install-data-local:
62 -- $(mkinstalldirs) $(libdir)/zhcon/font/
63 -- $(INSTALL_DATA) $(srcdir)/*.bpsf $(libdir)/zhcon/font/
64 -+ $(mkinstalldirs) $(DESTDIR)$(libdir)/zhcon/font/
65 -+ $(INSTALL_DATA) $(srcdir)/*.bpsf $(DESTDIR)$(libdir)/zhcon/font/
66 -
67 - uninstall-local:
68 -- -rm -f $(libdir)/zhcon/font/*.bpsf
69 -+ -rm -f $(DESTDIR)$(libdir)/zhcon/font/*.bpsf
70 - # Tell versions [3.59,3.63) of GNU make to not export all variables.
71 - # Otherwise a system limit (for SysV at least) may be exceeded.
72 - .NOEXPORT:
73 diff -Nur zhcon-0.2.5.orig/input/Makefile.am zhcon-0.2.5/input/Makefile.am
74 --- zhcon-0.2.5.orig/input/Makefile.am 2006-06-21 18:02:23.000000000 +0800
75 +++ zhcon-0.2.5/input/Makefile.am 2006-06-21 18:15:35.000000000 +0800
76 @@ -79,24 +43,6 @@
77 uninstall-local:
78 - -rm -f $(libdir)/zhcon/input/*.mb
79 + -rm -f $(DESTDIR)$(libdir)/zhcon/input/*.mb
80 -diff -Nur zhcon-0.2.5.orig/input/Makefile.in zhcon-0.2.5/input/Makefile.in
81 ---- zhcon-0.2.5.orig/input/Makefile.in 2006-06-21 18:02:23.000000000 +0800
82 -+++ zhcon-0.2.5/input/Makefile.in 2006-06-21 18:16:02.000000000 +0800
83 -@@ -321,11 +321,11 @@
84 -
85 -
86 - install-data-local:
87 -- $(mkinstalldirs) $(libdir)/zhcon/input/
88 -- $(INSTALL_DATA) $(srcdir)/*.mb $(libdir)/zhcon/input/
89 -+ $(mkinstalldirs) $(DESTDIR)$(libdir)/zhcon/input/
90 -+ $(INSTALL_DATA) $(srcdir)/*.mb $(DESTDIR)$(libdir)/zhcon/input/
91 -
92 - uninstall-local:
93 -- -rm -f $(libdir)/zhcon/input/*.mb
94 -+ -rm -f $(DESTDIR)$(libdir)/zhcon/input/*.mb
95 - # Tell versions [3.59,3.63) of GNU make to not export all variables.
96 - # Otherwise a system limit (for SysV at least) may be exceeded.
97 - .NOEXPORT:
98 diff -Nur zhcon-0.2.5.orig/src/Makefile.am zhcon-0.2.5/src/Makefile.am
99 --- zhcon-0.2.5.orig/src/Makefile.am 2006-06-21 18:02:23.000000000 +0800
100 +++ zhcon-0.2.5/src/Makefile.am 2006-06-22 08:35:42.000000000 +0800
101 @@ -119,25 +65,3 @@
102
103 # set the include path found by configure
104 INCLUDES= $(all_includes)
105 -diff -Nur zhcon-0.2.5.orig/src/Makefile.in zhcon-0.2.5/src/Makefile.in
106 ---- zhcon-0.2.5.orig/src/Makefile.in 2006-06-21 18:02:23.000000000 +0800
107 -+++ zhcon-0.2.5/src/Makefile.in 2006-06-22 08:36:05.000000000 +0800
108 -@@ -602,14 +602,14 @@
109 -
110 -
111 - install-exec-local:
112 -- chmod 4755 $(bindir)/zhcon
113 -+ chmod 4755 $(DESTDIR)$(bindir)/zhcon
114 -
115 - install-data-local:
116 -- $(mkinstalldirs) $(prefix)/etc
117 -- $(INSTALL_DATA) $(srcdir)/zhcon.conf $(prefix)/etc/zhcon.conf
118 -+ $(mkinstalldirs) $(DESTDIR)/etc
119 -+ $(INSTALL_DATA) $(srcdir)/zhcon.conf $(DESTDIR)/etc/zhcon.conf
120 -
121 - uninstall-local:
122 -- -rm -f $(prefix)/etc/zhcon.conf
123 -+ -rm -f $(DESTDIR)/etc/zhcon.conf
124 -
125 - # the library search path.
126 - #zhcon_LDFLAGS = $(all_libraries) -L/usr/lib/unicon
127
128
129
130 1.1 app-i18n/zhcon/files/zhcon-0.2.6-curses.patch
131
132 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/zhcon/files/zhcon-0.2.6-curses.patch?rev=1.1&view=markup
133 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/zhcon/files/zhcon-0.2.6-curses.patch?rev=1.1&content-type=text/plain
134
135 Index: zhcon-0.2.6-curses.patch
136 ===================================================================
137 diff --git a/configure.in b/configure.in
138 index 63172e4..6c2afcc 100644
139 --- a/configure.in
140 +++ b/configure.in
141 @@ -132,7 +132,7 @@ fi
142 AC_SUBST(ZHCON_LOCALE_DIR)
143
144 AC_CHECK_LIB(util, forkpty)
145 -AC_CHECK_LIB(curses, main)
146 +AC_SEARCH_LIBS([tgetent], [cursesw curses ncursesw ncurses], [break;])
147
148 dnl for freebsd
149 dnl AC_CHECK_LIB(c, i386_set_ioperm)
150 @@ -172,7 +172,7 @@ dnl Checks for gpm
151 dnl-----------------------------------------------------------------------
152 usegpm="yes"
153 AC_CHECK_HEADERS(gpm.h,,usegpm="no")
154 -AC_CHECK_LIB(gpm,main,,usegpm="no")
155 +AC_CHECK_LIB(gpm,Gpm_Open,,usegpm="no")
156
157 dnl-----------------------------------------------------------------------
158 dnl Checks for libggi
159
160
161
162 1.1 app-i18n/zhcon/files/zhcon-0.2.6+linux-headers-2.6.26.patch
163
164 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/zhcon/files/zhcon-0.2.6+linux-headers-2.6.26.patch?rev=1.1&view=markup
165 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/zhcon/files/zhcon-0.2.6+linux-headers-2.6.26.patch?rev=1.1&content-type=text/plain
166
167 Index: zhcon-0.2.6+linux-headers-2.6.26.patch
168 ===================================================================
169 diff --git a/src/display/lrmi.c b/src/display/lrmi.c
170 index 85c6fe6..5c74260 100644
171 --- a/src/display/lrmi.c
172 +++ b/src/display/lrmi.c
173 @@ -33,6 +33,13 @@ This software has NO WARRANTY. Use it at your own risk.
174
175 #include "lrmi.h"
176
177 +#if defined(__linux__) && !defined(TF_MASK)
178 + #define TF_MASK X86_EFLAGS_TF
179 + #define IF_MASK X86_EFLAGS_IF
180 + #define VIF_MASK X86_EFLAGS_VIF
181 + #define IOPL_MASK X86_EFLAGS_IOPL
182 +#endif
183 +
184 #define REAL_MEM_BASE ((void *)0x10000)
185 #define REAL_MEM_SIZE 0x10000
186 #define REAL_MEM_BLOCKS 0x100
187
188
189
190 1.1 app-i18n/zhcon/files/zhcon-0.2.6-amd64.patch
191
192 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/zhcon/files/zhcon-0.2.6-amd64.patch?rev=1.1&view=markup
193 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-i18n/zhcon/files/zhcon-0.2.6-amd64.patch?rev=1.1&content-type=text/plain
194
195 Index: zhcon-0.2.6-amd64.patch
196 ===================================================================
197 diff --git a/src/winime.cpp b/src/winime.cpp
198 index 0c52393..85729a3 100644
199 --- a/src/winime.cpp
200 +++ b/src/winime.cpp
201 @@ -56,10 +56,10 @@ mCandilistBufLen(0)
202
203 memcpy(&mHead, mpBuf, sizeof(mHead));
204 int len = strlen(mHead.mCodeSet);
205 - mpIndex1 = (char **) (mpBuf + sizeof(mHead));
206 - mpIndex2 = (char **) (mpBuf + sizeof(mHead) + len * sizeof(char *));
207 - mpText = mpBuf + sizeof(mHead) + len * sizeof(char *) +
208 - len * len * sizeof(char *);
209 + mpIndex1 = (int *) (mpBuf + sizeof(mHead));
210 + mpIndex2 = (int *) (mpBuf + sizeof(mHead) + len * sizeof(int));
211 + mpText = mpBuf + sizeof(mHead) + len * sizeof(int) +
212 + len * len * sizeof(int);
213 }
214
215 WinIme::~WinIme() {
216 @@ -246,32 +246,33 @@ int WinIme::Search(char c) {
217 // p = *t;
218 }
219 else
220 - p = mpIndex1[Index(c)];
221 + p = (char *)mpIndex1[Index(c)];
222
223 if (p == (char *) 0xffffffff)
224 found = false;
225 - p = (unsigned int) p + mpText;
226 + p = (unsigned long) p + mpText;
227 } //2nd level index
228 else if (mNum == 1) {
229 int l = strlen(mHead.mCodeSet);
230 if (c == mHead.mWildChar) {
231 char **t;
232 t =
233 - find_if(mpIndex2 + Index(mInput[0]) * l,
234 - mpIndex2 + (Index(mInput[0]) + 1) * l,
235 + find_if((char **)(mpIndex2 + Index(mInput[0]) * l),
236 + (char **)(mpIndex2 + (Index(mInput[0]) + 1) * l),
237 bind2nd(not_equal_to < char *>(),
238 (char *) 0xffffffff));
239 - if (t == mpIndex2 + (Index(mInput[0]) + 1) * l)
240 + if (t == ((char **)mpIndex2) + (Index(mInput[0]) + 1) * l)
241 p = (char *) 0xffffffff;
242 else
243 p = *t;
244 - } else
245 - p = mpIndex2[Index(mInput[0]) * l + Index(c)];
246 + } else {
247 + int dd = Index(mInput[0]) * l + Index(c);
248 + p = (char *)(mpIndex2[Index(mInput[0]) * l + Index(c)]);
249 + }
250
251 if (p == (char *) 0xffffffff)
252 found = false;
253 -
254 - p = (unsigned int) p + mpText;
255 + p = (unsigned long) p + mpText;
256 } else if (mNum < mHead.mMaxCodes) {
257 p = mpOffset[mNum - 1];
258 if (p == (char *) 0xffffffff)
259 diff --git a/src/winime.h b/src/winime.h
260 index c2f51ab..816a270 100644
261 --- a/src/winime.h
262 +++ b/src/winime.h
263 @@ -83,8 +83,8 @@ class WinIme {
264 char* mpOffset[12];
265 int mFd;
266 char* mpBuf;
267 - char** mpIndex1;
268 - char** mpIndex2;
269 + int *mpIndex1;
270 + int *mpIndex2;
271 char* mpText;
272 char* mpCur; //current search position
273 unsigned int mBufSize;