Gentoo Archives: gentoo-commits

From: Yixun Lan <dlan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/w3m/, www-client/w3m/files/
Date: Mon, 02 Jan 2017 07:44:57
Message-Id: 1483343090.e93356f2a082efc77909d75820aba87dacd20e0b.dlan@gentoo
1 commit: e93356f2a082efc77909d75820aba87dacd20e0b
2 Author: Yixun Lan <dlan <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 2 07:42:48 2017 +0000
4 Commit: Yixun Lan <dlan <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 2 07:44:50 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e93356f2
7
8 www-client/w3m: drop old vulnerables
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 www-client/w3m/Manifest | 1 -
13 www-client/w3m/files/w3m-0.5.2-ambwidth.patch | 425 --------------------
14 www-client/w3m/files/w3m-0.5.2-form.patch | 11 -
15 www-client/w3m/files/w3m-0.5.2-gc72.patch | 27 --
16 www-client/w3m/files/w3m-0.5.3-button.patch | 439 ---------------------
17 www-client/w3m/files/w3m-0.5.3-gdk-pixbuf.patch | 46 ---
18 www-client/w3m/files/w3m-0.5.3-gettext.patch | 12 -
19 www-client/w3m/files/w3m-0.5.3-glibc214.patch | 58 ---
20 .../w3m/files/w3m-0.5.3-input-type-default.patch | 13 -
21 www-client/w3m/files/w3m-0.5.3-parallel-make.patch | 22 --
22 www-client/w3m/files/w3m-0.5.3-remove-EGD.patch | 11 -
23 www-client/w3m/files/w3m-0.5.3-tinfo.patch | 15 -
24 www-client/w3m/files/w3m-0.5.3-url-schema.patch | 91 -----
25 www-client/w3m/files/w3m-CVE-2010-2074.patch | 55 ---
26 www-client/w3m/w3m-0.5.3-r5.ebuild | 130 ------
27 www-client/w3m/w3m-0.5.3-r8.ebuild | 128 ------
28 16 files changed, 1484 deletions(-)
29
30 diff --git a/www-client/w3m/Manifest b/www-client/w3m/Manifest
31 index 3545845..7b1be92 100644
32 --- a/www-client/w3m/Manifest
33 +++ b/www-client/w3m/Manifest
34 @@ -1,2 +1 @@
35 DIST w3m-0.5.3.git20161120.tar.gz 2177917 SHA256 62a5b066aaf5e23afec6decd962b966f333352150f8072193cba98320676f060 SHA512 81ecf9e5d9067a82efa5464e5f9396327a6333f9e414458a972b2b7bff138bd17c490b5258e34cb1e338c7a6c0dd6105a1bfd1e0d02edfadead79caa39106a5c WHIRLPOOL 1b0dbad59433f1ceb0ed566ba05f79e7f75f2a164592dbc6425c775d0f2d111955c1259478d96087b405b6d0c62694d7af49f589149a7ec02b5482dd05eed9e1
36 -DIST w3m-0.5.3.tar.gz 2202328 SHA256 e994d263f2fd2c22febfbe45103526e00145a7674a0fda79c822b97c2770a9e3 SHA512 43508c76d07b4d8f19c19f975c0b870aeb94abf0744b6128ee01c759d4e409a8b57bc866baeaf990f309ff73e9a7b02ca455d272b1dd0a93fafb8c72b1fe6d14 WHIRLPOOL 8f7dcaca362091227e29d7a6583ed796711904681a60e01d5838e45de003d60a9d88361d39b4d04056b67a14e51fe09e9d5b39fc8da18e83086484c974010cfe
37
38 diff --git a/www-client/w3m/files/w3m-0.5.2-ambwidth.patch b/www-client/w3m/files/w3m-0.5.2-ambwidth.patch
39 deleted file mode 100644
40 index 4039982..00000000
41 --- a/www-client/w3m/files/w3m-0.5.2-ambwidth.patch
42 +++ /dev/null
43 @@ -1,425 +0,0 @@
44 -diff -Naur w3m-0.5.2.orig/libwc/Makefile.in w3m-0.5.2/libwc/Makefile.in
45 ---- w3m-0.5.2.orig/libwc/Makefile.in 2004-05-03 01:44:08.000000000 +0900
46 -+++ w3m-0.5.2/libwc/Makefile.in 2007-09-27 17:34:58.000000000 +0900
47 -@@ -154,7 +154,7 @@
48 - map/hkscs_ucs_p2.map map/gb12345_ucs.map map/johab_ucs.map \
49 - map/sjis_ext_ucs.map map/gbk_ucs.map map/uhc_ucs.map map/ucs_wide.map \
50 - map/ucs_combining.map map/ucs_precompose.map map/ucs_hangul.map \
51 -- map/ucs_fullwidth.map
52 -+ map/ucs_fullwidth.map map/ucs_ambwidth.map
53 - uhc.o: wc.h wc_types.h ces.h ccs.h iso2022.h priv.h uhc.h wtf.h ucs.h
54 - utf7.o: wc.h wc_types.h ces.h ccs.h iso2022.h priv.h ucs.h utf7.h wtf.h
55 - utf8.o: wc.h wc_types.h ces.h ccs.h iso2022.h priv.h ucs.h utf8.h wtf.h
56 -diff -Naur w3m-0.5.2.orig/libwc/map/ucs_ambwidth.map w3m-0.5.2/libwc/map/ucs_ambwidth.map
57 ---- w3m-0.5.2.orig/libwc/map/ucs_ambwidth.map 1970-01-01 09:00:00.000000000 +0900
58 -+++ w3m-0.5.2/libwc/map/ucs_ambwidth.map 2007-09-27 17:34:58.000000000 +0900
59 -@@ -0,0 +1,167 @@
60 -+/*
61 -+ * Based on Markus Kuhn's wcwidth.c: 2003-05-20 (Unicode 4.0)
62 -+ * Latest version: http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c
63 -+ *
64 -+ * { 0xF0000, 0xFFFFD } and { 0x100000, 0x10FFFD } is not contained in this
65 -+ * map because wc_map_range_search takes wc_uint16 argument.
66 -+ */
67 -+
68 -+#define N_ucs_ambwidth_map 154
69 -+
70 -+static wc_map ucs_ambwidth_map[ N_ucs_ambwidth_map ] = {
71 -+ { 0x00A1, 0x00A1 },
72 -+ { 0x00A4, 0x00A4 },
73 -+ { 0x00A7, 0x00A8 },
74 -+ { 0x00AA, 0x00AA },
75 -+ { 0x00AE, 0x00AE },
76 -+ { 0x00B0, 0x00B4 },
77 -+ { 0x00B6, 0x00BA },
78 -+ { 0x00BC, 0x00BF },
79 -+ { 0x00C6, 0x00C6 },
80 -+ { 0x00D0, 0x00D0 },
81 -+ { 0x00D7, 0x00D8 },
82 -+ { 0x00DE, 0x00E1 },
83 -+ { 0x00E6, 0x00E6 },
84 -+ { 0x00E8, 0x00EA },
85 -+ { 0x00EC, 0x00ED },
86 -+ { 0x00F0, 0x00F0 },
87 -+ { 0x00F2, 0x00F3 },
88 -+ { 0x00F7, 0x00FA },
89 -+ { 0x00FC, 0x00FC },
90 -+ { 0x00FE, 0x00FE },
91 -+ { 0x0101, 0x0101 },
92 -+ { 0x0111, 0x0111 },
93 -+ { 0x0113, 0x0113 },
94 -+ { 0x011B, 0x011B },
95 -+ { 0x0126, 0x0127 },
96 -+ { 0x012B, 0x012B },
97 -+ { 0x0131, 0x0133 },
98 -+ { 0x0138, 0x0138 },
99 -+ { 0x013F, 0x0142 },
100 -+ { 0x0144, 0x0144 },
101 -+ { 0x0148, 0x014B },
102 -+ { 0x014D, 0x014D },
103 -+ { 0x0152, 0x0153 },
104 -+ { 0x0166, 0x0167 },
105 -+ { 0x016B, 0x016B },
106 -+ { 0x01CE, 0x01CE },
107 -+ { 0x01D0, 0x01D0 },
108 -+ { 0x01D2, 0x01D2 },
109 -+ { 0x01D4, 0x01D4 },
110 -+ { 0x01D6, 0x01D6 },
111 -+ { 0x01D8, 0x01D8 },
112 -+ { 0x01DA, 0x01DA },
113 -+ { 0x01DC, 0x01DC },
114 -+ { 0x0251, 0x0251 },
115 -+ { 0x0261, 0x0261 },
116 -+ { 0x02C4, 0x02C4 },
117 -+ { 0x02C7, 0x02C7 },
118 -+ { 0x02C9, 0x02CB },
119 -+ { 0x02CD, 0x02CD },
120 -+ { 0x02D0, 0x02D0 },
121 -+ { 0x02D8, 0x02DB },
122 -+ { 0x02DD, 0x02DD },
123 -+ { 0x02DF, 0x02DF },
124 -+ { 0x0391, 0x03A1 },
125 -+ { 0x03A3, 0x03A9 },
126 -+ { 0x03B1, 0x03C1 },
127 -+ { 0x03C3, 0x03C9 },
128 -+ { 0x0401, 0x0401 },
129 -+ { 0x0410, 0x044F },
130 -+ { 0x0451, 0x0451 },
131 -+ { 0x2010, 0x2010 },
132 -+ { 0x2013, 0x2016 },
133 -+ { 0x2018, 0x2019 },
134 -+ { 0x201C, 0x201D },
135 -+ { 0x2020, 0x2022 },
136 -+ { 0x2024, 0x2027 },
137 -+ { 0x2030, 0x2030 },
138 -+ { 0x2032, 0x2033 },
139 -+ { 0x2035, 0x2035 },
140 -+ { 0x203B, 0x203B },
141 -+ { 0x203E, 0x203E },
142 -+ { 0x2074, 0x2074 },
143 -+ { 0x207F, 0x207F },
144 -+ { 0x2081, 0x2084 },
145 -+ { 0x20AC, 0x20AC },
146 -+ { 0x2103, 0x2103 },
147 -+ { 0x2105, 0x2105 },
148 -+ { 0x2109, 0x2109 },
149 -+ { 0x2113, 0x2113 },
150 -+ { 0x2116, 0x2116 },
151 -+ { 0x2121, 0x2122 },
152 -+ { 0x2126, 0x2126 },
153 -+ { 0x212B, 0x212B },
154 -+ { 0x2153, 0x2154 },
155 -+ { 0x215B, 0x215E },
156 -+ { 0x2160, 0x216B },
157 -+ { 0x2170, 0x2179 },
158 -+ { 0x2190, 0x2199 },
159 -+ { 0x21B8, 0x21B9 },
160 -+ { 0x21D2, 0x21D2 },
161 -+ { 0x21D4, 0x21D4 },
162 -+ { 0x21E7, 0x21E7 },
163 -+ { 0x2200, 0x2200 },
164 -+ { 0x2202, 0x2203 },
165 -+ { 0x2207, 0x2208 },
166 -+ { 0x220B, 0x220B },
167 -+ { 0x220F, 0x220F },
168 -+ { 0x2211, 0x2211 },
169 -+ { 0x2215, 0x2215 },
170 -+ { 0x221A, 0x221A },
171 -+ { 0x221D, 0x2220 },
172 -+ { 0x2223, 0x2223 },
173 -+ { 0x2225, 0x2225 },
174 -+ { 0x2227, 0x222C },
175 -+ { 0x222E, 0x222E },
176 -+ { 0x2234, 0x2237 },
177 -+ { 0x223C, 0x223D },
178 -+ { 0x2248, 0x2248 },
179 -+ { 0x224C, 0x224C },
180 -+ { 0x2252, 0x2252 },
181 -+ { 0x2260, 0x2261 },
182 -+ { 0x2264, 0x2267 },
183 -+ { 0x226A, 0x226B },
184 -+ { 0x226E, 0x226F },
185 -+ { 0x2282, 0x2283 },
186 -+ { 0x2286, 0x2287 },
187 -+ { 0x2295, 0x2295 },
188 -+ { 0x2299, 0x2299 },
189 -+ { 0x22A5, 0x22A5 },
190 -+ { 0x22BF, 0x22BF },
191 -+ { 0x2312, 0x2312 },
192 -+ { 0x2460, 0x24E9 },
193 -+ { 0x24EB, 0x254B },
194 -+ { 0x2550, 0x2573 },
195 -+ { 0x2580, 0x258F },
196 -+ { 0x2592, 0x2595 },
197 -+ { 0x25A0, 0x25A1 },
198 -+ { 0x25A3, 0x25A9 },
199 -+ { 0x25B2, 0x25B3 },
200 -+ { 0x25B6, 0x25B7 },
201 -+ { 0x25BC, 0x25BD },
202 -+ { 0x25C0, 0x25C1 },
203 -+ { 0x25C6, 0x25C8 },
204 -+ { 0x25CB, 0x25CB },
205 -+ { 0x25CE, 0x25D1 },
206 -+ { 0x25E2, 0x25E5 },
207 -+ { 0x25EF, 0x25EF },
208 -+ { 0x2605, 0x2606 },
209 -+ { 0x2609, 0x2609 },
210 -+ { 0x260E, 0x260F },
211 -+ { 0x2614, 0x2615 },
212 -+ { 0x261C, 0x261C },
213 -+ { 0x261E, 0x261E },
214 -+ { 0x2640, 0x2640 },
215 -+ { 0x2642, 0x2642 },
216 -+ { 0x2660, 0x2661 },
217 -+ { 0x2663, 0x2665 },
218 -+ { 0x2667, 0x266A },
219 -+ { 0x266C, 0x266D },
220 -+ { 0x266F, 0x266F },
221 -+ { 0x273D, 0x273D },
222 -+ { 0x2776, 0x277F },
223 -+ { 0xE000, 0xF8FF },
224 -+ { 0xFFFD, 0xFFFD },
225 -+};
226 -+
227 -diff -Naur w3m-0.5.2.orig/libwc/status.c w3m-0.5.2/libwc/status.c
228 ---- w3m-0.5.2.orig/libwc/status.c 2003-09-23 06:02:23.000000000 +0900
229 -+++ w3m-0.5.2/libwc/status.c 2007-09-27 17:34:58.000000000 +0900
230 -@@ -25,6 +25,7 @@
231 - WC_FALSE, /* gb18030_as_ucs */
232 - WC_FALSE, /* no_replace */
233 - WC_TRUE, /* use_wide */
234 -+ WC_FALSE, /* east_asian_width */
235 - };
236 -
237 - static wc_status output_st;
238 -diff -Naur w3m-0.5.2.orig/libwc/ucs.c w3m-0.5.2/libwc/ucs.c
239 ---- w3m-0.5.2.orig/libwc/ucs.c 2007-05-23 20:34:09.000000000 +0900
240 -+++ w3m-0.5.2/libwc/ucs.c 2007-09-27 17:34:58.000000000 +0900
241 -@@ -17,6 +17,7 @@
242 -
243 - #include "ucs.map"
244 -
245 -+#include "map/ucs_ambwidth.map"
246 - #include "map/ucs_wide.map"
247 - #include "map/ucs_combining.map"
248 - #include "map/ucs_precompose.map"
249 -@@ -511,11 +512,26 @@
250 - if (0x80 <= ucs && ucs <= 0x9F)
251 - return WC_CCS_C1;
252 - return ((ucs <= WC_C_UCS2_END) ? WC_CCS_UCS2 : WC_CCS_UCS4)
253 -+ | ((WcOption.east_asian_width && wc_is_ucs_ambiguous_width(ucs))
254 -+ ? WC_CCS_A_WIDE : 0)
255 - | (wc_is_ucs_wide(ucs) ? WC_CCS_A_WIDE : 0)
256 - | (wc_is_ucs_combining(ucs) ? WC_CCS_A_COMB : 0);
257 - }
258 -
259 - wc_bool
260 -+wc_is_ucs_ambiguous_width(wc_uint32 ucs)
261 -+{
262 -+ if (0xa1 <= ucs && ucs <= 0xfe && WcOption.use_jisx0213)
263 -+ return 1;
264 -+ else if (ucs <= WC_C_UCS2_END)
265 -+ return (wc_map_range_search((wc_uint16)ucs,
266 -+ ucs_ambwidth_map, N_ucs_ambwidth_map) != NULL);
267 -+ else
268 -+ return ((0xF0000 <= ucs && ucs <= 0xFFFFD)
269 -+ || (0x100000 <= ucs && ucs <= 0x10FFFD));
270 -+}
271 -+
272 -+wc_bool
273 - wc_is_ucs_wide(wc_uint32 ucs)
274 - {
275 - if (ucs <= WC_C_UCS2_END)
276 -diff -Naur w3m-0.5.2.orig/libwc/ucs.h w3m-0.5.2/libwc/ucs.h
277 ---- w3m-0.5.2.orig/libwc/ucs.h 2007-05-23 20:34:09.000000000 +0900
278 -+++ w3m-0.5.2/libwc/ucs.h 2007-09-27 17:34:58.000000000 +0900
279 -@@ -44,6 +44,7 @@
280 - extern wc_wchar_t wc_ucs_to_iso2022(wc_uint32 ucs);
281 - extern wc_wchar_t wc_ucs_to_iso2022w(wc_uint32 ucs);
282 - extern wc_ccs wc_ucs_to_ccs(wc_uint32 ucs);
283 -+extern wc_bool wc_is_ucs_ambiguous_width(wc_uint32 ucs);
284 - extern wc_bool wc_is_ucs_wide(wc_uint32 ucs);
285 - extern wc_bool wc_is_ucs_combining(wc_uint32 ucs);
286 - extern wc_bool wc_is_ucs_hangul(wc_uint32 ucs);
287 -diff -Naur w3m-0.5.2.orig/libwc/wc_types.h w3m-0.5.2/libwc/wc_types.h
288 ---- w3m-0.5.2.orig/libwc/wc_types.h 2004-04-05 01:47:20.000000000 +0900
289 -+++ w3m-0.5.2/libwc/wc_types.h 2007-09-27 17:34:58.000000000 +0900
290 -@@ -91,6 +91,7 @@
291 - wc_bool gb18030_as_ucs; /* treat 4 bytes char. of GB18030 as Unicode */
292 - wc_bool no_replace; /* don't output replace character */
293 - wc_bool use_wide; /* use wide characters */
294 -+ wc_bool east_asian_width; /* East Asian Ambiguous characters are wide */
295 - } wc_option;
296 -
297 - typedef struct {
298 -diff -Naur w3m-0.5.2.orig/po/ja.po w3m-0.5.2/po/ja.po
299 ---- w3m-0.5.2.orig/po/ja.po 2007-05-31 21:17:05.000000000 +0900
300 -+++ w3m-0.5.2/po/ja.po 2007-09-27 17:36:36.000000000 +0900
301 -@@ -614,6 +614,10 @@
302 - msgstr "結合文字を使う"
303 -
304 - #: rc.c:219
305 -+msgid "Use double width for some Unicode characters"
306 -+msgstr "ある種のUnicode文字を全角にする"
307 -+
308 -+#: rc.c:219
309 - msgid "Use Unicode language tags"
310 - msgstr "Unicode の言語タグを使う"
311 -
312 -diff -Naur w3m-0.5.2.orig/po/w3m.pot w3m-0.5.2/po/w3m.pot
313 ---- w3m-0.5.2.orig/po/w3m.pot 2007-05-31 21:17:05.000000000 +0900
314 -+++ w3m-0.5.2/po/w3m.pot 2007-09-27 17:37:12.000000000 +0900
315 -@@ -613,6 +613,10 @@
316 - msgstr ""
317 -
318 - #: rc.c:219
319 -+msgid "Use double width for some Unicode characters"
320 -+msgstr ""
321 -+
322 -+#: rc.c:219
323 - msgid "Use Unicode language tags"
324 - msgstr ""
325 -
326 -diff -Naur w3m-0.5.2.orig/proto.h w3m-0.5.2/proto.h
327 ---- w3m-0.5.2.orig/proto.h 2006-04-07 22:21:12.000000000 +0900
328 -+++ w3m-0.5.2/proto.h 2007-09-27 17:34:58.000000000 +0900
329 -@@ -176,6 +176,9 @@
330 - #define convertLine(uf,line,mode,charset,dcharset) convertLine0(uf,line,mode)
331 - #endif
332 - extern void push_symbol(Str str, char symbol, int width, int n);
333 -+#ifdef USE_UNICODE
334 -+extern void update_utf8_symbol(void);
335 -+#endif
336 - extern Buffer *loadFile(char *path);
337 - extern Buffer *loadGeneralFile(char *path, ParsedURL *current, char *referer,
338 - int flag, FormList *request);
339 -diff -Naur w3m-0.5.2.orig/rc.c w3m-0.5.2/rc.c
340 ---- w3m-0.5.2.orig/rc.c 2007-05-24 00:06:06.000000000 +0900
341 -+++ w3m-0.5.2/rc.c 2007-09-27 17:34:58.000000000 +0900
342 -@@ -216,6 +216,7 @@
343 - #define CMT_EXT_HALFDUMP N_("Output halfdump with display charset")
344 - #define CMT_USE_WIDE N_("Use multi column characters")
345 - #define CMT_USE_COMBINING N_("Use combining characters")
346 -+#define CMT_EAST_ASIAN_WIDTH N_("Use double width for some Unicode characters")
347 - #define CMT_USE_LANGUAGE_TAG N_("Use Unicode language tags")
348 - #define CMT_UCS_CONV N_("Charset conversion using Unicode map")
349 - #define CMT_PRE_CONV N_("Charset conversion when loading")
350 -@@ -640,6 +641,8 @@
351 - {"use_combining", P_CHARINT, PI_ONOFF, (void *)&WcOption.use_combining,
352 - CMT_USE_COMBINING, NULL},
353 - #ifdef USE_UNICODE
354 -+ {"east_asian_width", P_CHARINT, PI_ONOFF,
355 -+ (void *)&WcOption.east_asian_width, CMT_EAST_ASIAN_WIDTH, NULL},
356 - {"use_language_tag", P_CHARINT, PI_ONOFF,
357 - (void *)&WcOption.use_language_tag, CMT_USE_LANGUAGE_TAG, NULL},
358 - {"ucs_conv", P_CHARINT, PI_ONOFF, (void *)&WcOption.ucs_conv, CMT_UCS_CONV,
359 -@@ -1172,6 +1175,9 @@
360 - AcceptEncoding = acceptableEncoding();
361 - if (AcceptMedia == NULL || *AcceptMedia == '\0')
362 - AcceptMedia = acceptableMimeTypes();
363 -+#ifdef USE_UNICODE
364 -+ update_utf8_symbol();
365 -+#endif
366 - if (fmInitialized) {
367 - initKeymap(FALSE);
368 - #ifdef USE_MOUSE
369 -diff -Naur w3m-0.5.2.orig/symbol.c w3m-0.5.2/symbol.c
370 ---- w3m-0.5.2.orig/symbol.c 2003-09-23 06:02:21.000000000 +0900
371 -+++ w3m-0.5.2/symbol.c 2007-09-27 17:34:58.000000000 +0900
372 -@@ -18,7 +18,7 @@
373 - wc_ces ces;
374 - char width;
375 - char **item;
376 -- char encode;
377 -+ char **conved_item;
378 - } symbol_set;
379 -
380 - typedef struct {
381 -@@ -27,17 +27,17 @@
382 - } charset_symbol_set;
383 -
384 - /* *INDENT-OFF* */
385 --static symbol_set alt_symbol_set = { WC_CES_US_ASCII, 1, alt_symbol, 1 };
386 --static symbol_set alt2_symbol_set = { WC_CES_US_ASCII, 2, alt2_symbol, 1 };
387 --static symbol_set eucjp_symbol_set = { WC_CES_EUC_JP, 2, eucjp_symbol, 0 };
388 --static symbol_set euckr_symbol_set = { WC_CES_EUC_KR, 2, euckr_symbol, 0 };
389 --static symbol_set euccn_symbol_set = { WC_CES_EUC_CN, 2, euccn_symbol, 0 };
390 --static symbol_set euctw_symbol_set = { WC_CES_EUC_TW, 2, euctw_symbol, 0 };
391 --static symbol_set big5_symbol_set = { WC_CES_BIG5, 2, big5_symbol, 0 };
392 -+static symbol_set alt_symbol_set = { WC_CES_US_ASCII, 1, alt_symbol, alt_symbol };
393 -+static symbol_set alt2_symbol_set = { WC_CES_US_ASCII, 2, alt2_symbol, alt2_symbol };
394 -+static symbol_set eucjp_symbol_set = { WC_CES_EUC_JP, 2, eucjp_symbol, NULL };
395 -+static symbol_set euckr_symbol_set = { WC_CES_EUC_KR, 2, euckr_symbol, NULL };
396 -+static symbol_set euccn_symbol_set = { WC_CES_EUC_CN, 2, euccn_symbol, NULL };
397 -+static symbol_set euctw_symbol_set = { WC_CES_EUC_TW, 2, euctw_symbol, NULL };
398 -+static symbol_set big5_symbol_set = { WC_CES_BIG5, 2, big5_symbol, NULL };
399 - #ifdef USE_UNICODE
400 --static symbol_set utf8_symbol_set = { WC_CES_UTF_8, 1, utf8_symbol, 0 };
401 -+static symbol_set utf8_symbol_set = { WC_CES_UTF_8, 1, utf8_symbol, NULL };
402 - #endif
403 --static symbol_set cp850_symbol_set = { WC_CES_CP850, 1, cp850_symbol, 0 };
404 -+static symbol_set cp850_symbol_set = { WC_CES_CP850, 1, cp850_symbol, NULL };
405 -
406 - static charset_symbol_set charset_symbol_list[] = {
407 - { WC_CES_EUC_JP, &eucjp_symbol_set },
408 -@@ -73,11 +73,12 @@
409 - {
410 - int i;
411 -
412 -+ for (i = 0; s->item[i]; i++) ;
413 -+ s->conved_item = New_N(char *, i);
414 - for (i = 0; s->item[i]; i++) {
415 - if (*(s->item[i]))
416 -- s->item[i] = wc_conv(s->item[i], s->ces, InnerCharset)->ptr;
417 -+ s->conved_item[i] = wc_conv(s->item[i], s->ces, InnerCharset)->ptr;
418 - }
419 -- s->encode = 1;
420 - }
421 -
422 - char **
423 -@@ -89,7 +90,7 @@
424 - if (charset == save_charset && save_symbol != NULL &&
425 - *width == save_symbol->width) {
426 - *width = save_symbol->width;
427 -- return save_symbol->item;
428 -+ return save_symbol->conved_item;
429 - }
430 - save_charset = charset;
431 - for (p = charset_symbol_list; p->charset; p++) {
432 -@@ -102,12 +103,12 @@
433 - if (s == NULL)
434 - s = (*width == 2) ? &alt2_symbol_set : &alt_symbol_set;
435 - if (s != save_symbol) {
436 -- if (!s->encode)
437 -+ if (!s->conved_item)
438 - encode_symbol(s);
439 - save_symbol = s;
440 - }
441 - *width = s->width;
442 -- return s->item;
443 -+ return s->conved_item;
444 - }
445 -
446 - char **
447 -@@ -137,6 +138,21 @@
448 - return symbol_buf;
449 - }
450 -
451 -+#ifdef USE_UNICODE
452 -+void
453 -+update_utf8_symbol(void)
454 -+{
455 -+ charset_symbol_set *p;
456 -+ utf8_symbol_set.width = WcOption.east_asian_width ? 2 : 1;
457 -+ for (p = charset_symbol_list; p->charset; p++) {
458 -+ if (p->charset == WC_CES_UTF_8) {
459 -+ encode_symbol(p->symbol);
460 -+ break;
461 -+ }
462 -+ }
463 -+}
464 -+#endif
465 -+
466 - #else
467 -
468 - char **
469
470 diff --git a/www-client/w3m/files/w3m-0.5.2-form.patch b/www-client/w3m/files/w3m-0.5.2-form.patch
471 deleted file mode 100644
472 index 6616319..00000000
473 --- a/www-client/w3m/files/w3m-0.5.2-form.patch
474 +++ /dev/null
475 @@ -1,11 +0,0 @@
476 -diff -Naur w3m-0.5.2.orig/form.c w3m-0.5.2/form.c
477 ---- w3m-0.5.2.orig/form.c 2004-02-06 02:23:07.000000000 +0900
478 -+++ w3m-0.5.2/form.c 2008-05-16 08:34:48.000000000 +0900
479 -@@ -403,6 +403,7 @@
480 - line->lineBuf = buf;
481 - line->propBuf = prop;
482 - line->len = len;
483 -+ line->size = len;
484 -
485 - return pos;
486 - }
487
488 diff --git a/www-client/w3m/files/w3m-0.5.2-gc72.patch b/www-client/w3m/files/w3m-0.5.2-gc72.patch
489 deleted file mode 100644
490 index f2df44f..00000000
491 --- a/www-client/w3m/files/w3m-0.5.2-gc72.patch
492 +++ /dev/null
493 @@ -1,27 +0,0 @@
494 -diff -Naurb w3m-0.5.2.orig/main.c w3m-0.5.2/main.c
495 ---- w3m-0.5.2.orig/main.c 2007-05-31 10:19:50.000000000 +0900
496 -+++ w3m-0.5.2/main.c 2009-11-09 08:20:02.184953443 +0900
497 -@@ -312,7 +312,11 @@
498 - lock = 0;
499 - }
500 - }
501 -+#if GC_VERSION_MAJOR >= 7 && GC_VERSION_MINOR >= 2
502 -+ else if (orig_GC_warn_proc = GC_get_warn_proc())
503 -+#else
504 - else if (orig_GC_warn_proc)
505 -+#endif
506 - orig_GC_warn_proc(msg, arg);
507 - else
508 - fprintf(stderr, msg, (unsigned long)arg);
509 -@@ -842,7 +846,11 @@
510 - mySignal(SIGPIPE, SigPipe);
511 - #endif
512 -
513 -+#if GC_VERSION_MAJOR >= 7 && GC_VERSION_MINOR >= 2
514 -+ GC_set_warn_proc(wrap_GC_warn_proc);
515 -+#else
516 - orig_GC_warn_proc = GC_set_warn_proc(wrap_GC_warn_proc);
517 -+#endif
518 - err_msg = Strnew();
519 - if (load_argc == 0) {
520 - /* no URL specified */
521
522 diff --git a/www-client/w3m/files/w3m-0.5.3-button.patch b/www-client/w3m/files/w3m-0.5.3-button.patch
523 deleted file mode 100644
524 index a645e25..00000000
525 --- a/www-client/w3m/files/w3m-0.5.3-button.patch
526 +++ /dev/null
527 @@ -1,439 +0,0 @@
528 -Description: Support the button element as defined in HTML 4.01
529 -Origin: upstream, http://www.sic.med.tohoku.ac.jp/~satodai/w3m-dev/201009.month/4411.html
530 -Bug-Debian: http://bugs.debian.org/136810
531 -
532 -Index: file.c
533 -===================================================================
534 -RCS file: /cvsroot/w3m/w3m/file.c,v
535 -retrieving revision 1.264
536 -diff -u -r1.264 file.c
537 ---- w3m.orig/file.c 3 Aug 2010 10:02:16 -0000 1.264
538 -+++ w3m/file.c 17 Sep 2010 12:18:55 -0000
539 -@@ -2467,6 +2467,7 @@
540 - bcopy((void *)&obuf->anchor, (void *)&obuf->bp.anchor,
541 - sizeof(obuf->anchor));
542 - obuf->bp.img_alt = obuf->img_alt;
543 -+ obuf->bp.input_alt = obuf->input_alt;
544 - obuf->bp.in_bold = obuf->in_bold;
545 - obuf->bp.in_italic = obuf->in_italic;
546 - obuf->bp.in_under = obuf->in_under;
547 -@@ -2484,6 +2485,7 @@
548 - bcopy((void *)&obuf->bp.anchor, (void *)&obuf->anchor,
549 - sizeof(obuf->anchor));
550 - obuf->img_alt = obuf->bp.img_alt;
551 -+ obuf->input_alt = obuf->bp.input_alt;
552 - obuf->in_bold = obuf->bp.in_bold;
553 - obuf->in_italic = obuf->bp.in_italic;
554 - obuf->in_under = obuf->bp.in_under;
555 -@@ -2727,7 +2729,7 @@
556 - Str line = obuf->line, pass = NULL;
557 - char *hidden_anchor = NULL, *hidden_img = NULL, *hidden_bold = NULL,
558 - *hidden_under = NULL, *hidden_italic = NULL, *hidden_strike = NULL,
559 -- *hidden_ins = NULL, *hidden = NULL;
560 -+ *hidden_ins = NULL, *hidden_input, *hidden = NULL;
561 -
562 - #ifdef DEBUG
563 - if (w3m_debug) {
564 -@@ -2759,6 +2761,12 @@
565 - hidden = hidden_img;
566 - }
567 - }
568 -+ if (obuf->input_alt.in) {
569 -+ if ((hidden_input = has_hidden_link(obuf, HTML_INPUT_ALT)) != NULL) {
570 -+ if (!hidden || hidden_input < hidden)
571 -+ hidden = hidden_input;
572 -+ }
573 -+ }
574 - if (obuf->in_bold) {
575 - if ((hidden_bold = has_hidden_link(obuf, HTML_B)) != NULL) {
576 - if (!hidden || hidden_bold < hidden)
577 -@@ -2810,6 +2818,8 @@
578 - Strcat_charp(line, "</a>");
579 - if (obuf->img_alt && !hidden_img)
580 - Strcat_charp(line, "</img_alt>");
581 -+ if (obuf->input_alt.in && !hidden_input)
582 -+ Strcat_charp(line, "</input_alt>");
583 - if (obuf->in_bold && !hidden_bold)
584 - Strcat_charp(line, "</b>");
585 - if (obuf->in_italic && !hidden_italic)
586 -@@ -3020,6 +3030,18 @@
587 - Strcat_charp(tmp, "\">");
588 - push_tag(obuf, tmp->ptr, HTML_IMG_ALT);
589 - }
590 -+ if (!hidden_input && obuf->input_alt.in) {
591 -+ Str tmp;
592 -+ if (obuf->input_alt.hseq > 0)
593 -+ obuf->input_alt.hseq = - obuf->input_alt.hseq;
594 -+ tmp = Sprintf("<INPUT_ALT hseq=\"%d\" fid=\"%d\" name=\"%s\" type=\"%s\" value=\"%s\">",
595 -+ obuf->input_alt.hseq,
596 -+ obuf->input_alt.fid,
597 -+ obuf->input_alt.name->ptr,
598 -+ obuf->input_alt.type->ptr,
599 -+ obuf->input_alt.value->ptr);
600 -+ push_tag(obuf, tmp->ptr, HTML_INPUT_ALT);
601 -+ }
602 - if (!hidden_bold && obuf->in_bold)
603 - push_tag(obuf, "<B>", HTML_B);
604 - if (!hidden_italic && obuf->in_italic)
605 -@@ -3730,6 +3752,63 @@
606 - }
607 -
608 - Str
609 -+process_button(struct parsed_tag *tag)
610 -+{
611 -+ Str tmp = NULL;
612 -+ char *p, *q, *r, *qq = NULL;
613 -+ int qlen, v;
614 -+
615 -+ if (cur_form_id < 0) {
616 -+ char *s = "<form_int method=internal action=none>";
617 -+ tmp = process_form(parse_tag(&s, TRUE));
618 -+ }
619 -+ if (tmp == NULL)
620 -+ tmp = Strnew();
621 -+
622 -+ p = "submit";
623 -+ parsedtag_get_value(tag, ATTR_TYPE, &p);
624 -+ q = NULL;
625 -+ parsedtag_get_value(tag, ATTR_VALUE, &q);
626 -+ r = "";
627 -+ parsedtag_get_value(tag, ATTR_NAME, &r);
628 -+
629 -+ v = formtype(p);
630 -+ if (v == FORM_UNKNOWN)
631 -+ return NULL;
632 -+
633 -+ if (!q) {
634 -+ switch (v) {
635 -+ case FORM_INPUT_SUBMIT:
636 -+ case FORM_INPUT_BUTTON:
637 -+ q = "SUBMIT";
638 -+ break;
639 -+ case FORM_INPUT_RESET:
640 -+ q = "RESET";
641 -+ break;
642 -+ }
643 -+ }
644 -+ if (q) {
645 -+ qq = html_quote(q);
646 -+ qlen = strlen(q);
647 -+ }
648 -+
649 -+ // Strcat_charp(tmp, "<pre_int>");
650 -+ Strcat(tmp, Sprintf("<input_alt hseq=\"%d\" fid=\"%d\" type=%s "
651 -+ "name=\"%s\" value=\"%s\">",
652 -+ cur_hseq++, cur_form_id, p, html_quote(r), qq));
653 -+ return tmp;
654 -+}
655 -+
656 -+Str
657 -+process_n_button(void)
658 -+{
659 -+ Str tmp = Strnew();
660 -+ Strcat_charp(tmp, "</input_alt>");
661 -+ // Strcat_charp(tmp, "</pre_int>");
662 -+ return tmp;
663 -+}
664 -+
665 -+Str
666 - process_select(struct parsed_tag *tag)
667 - {
668 - Str tmp = NULL;
669 -@@ -4859,7 +4938,35 @@
670 - if (i > obuf->bottom_margin)
671 - obuf->bottom_margin = i;
672 - }
673 -+ if (parsedtag_get_value(tag, ATTR_HSEQ, &hseq)) {
674 -+ obuf->input_alt.hseq = hseq;
675 -+ }
676 -+ if (parsedtag_get_value(tag, ATTR_FID, &i)) {
677 -+ obuf->input_alt.fid = i;
678 -+ }
679 -+ if (parsedtag_get_value(tag, ATTR_TYPE, &p)) {
680 -+ obuf->input_alt.type = Strnew_charp(p);
681 -+ }
682 -+ if (parsedtag_get_value(tag, ATTR_VALUE, &p)) {
683 -+ obuf->input_alt.value = Strnew_charp(p);
684 -+ }
685 -+ if (parsedtag_get_value(tag, ATTR_NAME, &p)) {
686 -+ obuf->input_alt.name = Strnew_charp(p);
687 -+ }
688 -+ obuf->input_alt.in = 1;
689 - return 0;
690 -+ case HTML_N_INPUT_ALT:
691 -+ if (obuf->input_alt.in) {
692 -+ if (!close_effect0(obuf, HTML_INPUT_ALT))
693 -+ push_tag(obuf, "</input_alt>", HTML_N_INPUT_ALT);
694 -+ obuf->input_alt.hseq = 0;
695 -+ obuf->input_alt.fid = -1;
696 -+ obuf->input_alt.in = 0;
697 -+ obuf->input_alt.type = NULL;
698 -+ obuf->input_alt.name = NULL;
699 -+ obuf->input_alt.value = NULL;
700 -+ }
701 -+ return 1;
702 - case HTML_TABLE:
703 - close_anchor(h_env, obuf);
704 - obuf->table_level++;
705 -@@ -4968,6 +5075,16 @@
706 - case HTML_INPUT:
707 - close_anchor(h_env, obuf);
708 - tmp = process_input(tag);
709 -+ if (tmp)
710 -+ HTMLlineproc1(tmp->ptr, h_env);
711 -+ return 1;
712 -+ case HTML_BUTTON:
713 -+ tmp = process_button(tag);
714 -+ if (tmp)
715 -+ HTMLlineproc1(tmp->ptr, h_env);
716 -+ return 1;
717 -+ case HTML_N_BUTTON:
718 -+ tmp = process_n_button();
719 - if (tmp)
720 - HTMLlineproc1(tmp->ptr, h_env);
721 - return 1;
722 -@@ -5680,6 +5797,21 @@
723 - putHmarker(buf->hmarklist, currentLn(buf),
724 - hpos, hseq - 1);
725 - }
726 -+ else if (hseq < 0) {
727 -+ int h = -hseq - 1;
728 -+ int hpos = pos;
729 -+ if (*str == '[')
730 -+ hpos++;
731 -+ if (buf->hmarklist &&
732 -+ h < buf->hmarklist->nmark &&
733 -+ buf->hmarklist->marks[h].invalid) {
734 -+ buf->hmarklist->marks[h].pos = hpos;
735 -+ buf->hmarklist->marks[h].line = currentLn(buf);
736 -+ buf->hmarklist->marks[h].invalid = 0;
737 -+ hseq = -hseq;
738 -+ }
739 -+ }
740 -+
741 - if (!form->target)
742 - form->target = buf->baseTarget;
743 - if (a_textarea &&
744 -@@ -6747,6 +6879,12 @@
745 - obuf->nobr_level = 0;
746 - bzero((void *)&obuf->anchor, sizeof(obuf->anchor));
747 - obuf->img_alt = 0;
748 -+ obuf->input_alt.hseq = 0;
749 -+ obuf->input_alt.fid = -1;
750 -+ obuf->input_alt.in = 0;
751 -+ obuf->input_alt.type = NULL;
752 -+ obuf->input_alt.name = NULL;
753 -+ obuf->input_alt.value = NULL;
754 - obuf->in_bold = 0;
755 - obuf->in_italic = 0;
756 - obuf->in_under = 0;
757 -@@ -6782,6 +6920,15 @@
758 - push_tag(obuf, "</img_alt>", HTML_N_IMG_ALT);
759 - obuf->img_alt = NULL;
760 - }
761 -+ if (obuf->input_alt.in) {
762 -+ push_tag(obuf, "</input_alt>", HTML_N_INPUT_ALT);
763 -+ obuf->input_alt.hseq = 0;
764 -+ obuf->input_alt.fid = -1;
765 -+ obuf->input_alt.in = 0;
766 -+ obuf->input_alt.type = NULL;
767 -+ obuf->input_alt.name = NULL;
768 -+ obuf->input_alt.value = NULL;
769 -+ }
770 - if (obuf->in_bold) {
771 - push_tag(obuf, "</b>", HTML_N_B);
772 - obuf->in_bold = 0;
773 -Index: fm.h
774 -===================================================================
775 -RCS file: /cvsroot/w3m/w3m/fm.h,v
776 -retrieving revision 1.149
777 -diff -u -r1.149 fm.h
778 ---- w3m.orig/fm.h 20 Aug 2010 09:47:09 -0000 1.149
779 -+++ w3m/fm.h 17 Sep 2010 12:18:55 -0000
780 -@@ -562,6 +562,13 @@
781 - #define INIT_BUFFER_WIDTH ((_INIT_BUFFER_WIDTH > 0) ? _INIT_BUFFER_WIDTH : 0)
782 - #define FOLD_BUFFER_WIDTH (FoldLine ? (INIT_BUFFER_WIDTH + 1) : -1)
783 -
784 -+struct input_alt_attr {
785 -+ int hseq;
786 -+ int fid;
787 -+ int in;
788 -+ Str type, name, value;
789 -+};
790 -+
791 - typedef struct {
792 - int pos;
793 - int len;
794 -@@ -569,6 +576,7 @@
795 - long flag;
796 - Anchor anchor;
797 - Str img_alt;
798 -+ struct input_alt_attr input_alt;
799 - char fontstat[FONTSTAT_SIZE];
800 - short nobr_level;
801 - Lineprop prev_ctype;
802 -@@ -591,6 +599,7 @@
803 - short nobr_level;
804 - Anchor anchor;
805 - Str img_alt;
806 -+ struct input_alt_attr input_alt;
807 - char fontstat[FONTSTAT_SIZE];
808 - char fontstat_stack[FONT_STACK_SIZE][FONTSTAT_SIZE];
809 - int fontstat_sp;
810 -Index: html.c
811 -===================================================================
812 -RCS file: /cvsroot/w3m/w3m/html.c,v
813 -retrieving revision 1.32
814 -diff -u -r1.32 html.c
815 ---- w3m.orig/html.c 14 Aug 2010 01:29:40 -0000 1.32
816 -+++ w3m/html.c 17 Sep 2010 12:18:55 -0000
817 -@@ -56,6 +56,9 @@
818 - ATTR_CORE
819 - };
820 - #define MAXA_INPUT MAXA_CORE + 12
821 -+unsigned char ALST_BUTTON[] =
822 -+ { ATTR_TYPE, ATTR_VALUE, ATTR_NAME, ATTR_CORE };
823 -+#define MAXA_BUTTON MAXA_CORE + 3
824 - unsigned char ALST_TEXTAREA[] =
825 - { ATTR_COLS, ATTR_ROWS, ATTR_NAME, ATTR_READONLY, ATTR_CORE };
826 - #define MAXA_TEXTAREA MAXA_CORE + 4
827 -@@ -247,24 +250,24 @@
828 - {"/bdo", NULL, 0, TFLG_END}, /* 121 HTML_N_BDO */
829 - {"big", ALST_NOP, MAXA_NOP, 0}, /* 122 HTML_BIG */
830 - {"/big", NULL, 0, TFLG_END}, /* 123 HTML_N_BIG */
831 -- {"button", ALST_NOP, MAXA_NOP, 0}, /* 124 HTML_BUTTON */
832 -- {"fieldset", ALST_NOP, MAXA_NOP, 0}, /* 125 HTML_FIELDSET */
833 -- {"/fieldset", NULL, 0, TFLG_END}, /* 126 HTML_N_FIELDSET */
834 -- {"iframe", ALST_NOP, MAXA_NOP, 0}, /* 127 HTML_IFRAME */
835 -- {"label", ALST_NOP, MAXA_NOP, 0}, /* 128 HTML_LABEL */
836 -- {"/label", NULL, 0, TFLG_END}, /* 129 HTML_N_LABEL */
837 -- {"legend", ALST_NOP, MAXA_NOP, 0}, /* 130 HTML_LEGEND */
838 -- {"/legend", NULL, 0, TFLG_END}, /* 131 HTML_N_LEGEND */
839 -- {"noscript", ALST_NOP, MAXA_NOP, 0}, /* 132 HTML_NOSCRIPT */
840 -- {"/noscript", NULL, 0, TFLG_END}, /* 133 HTML_N_NOSCRIPT */
841 -- {"object", ALST_NOP, MAXA_NOP, 0}, /* 134 HTML_OBJECT */
842 -- {"optgroup", ALST_NOP, MAXA_NOP, 0}, /* 135 HTML_OPTGROUP */
843 -- {"/optgroup", NULL, 0, TFLG_END}, /* 136 HTML_N_OPTGROUP */
844 -- {"param", ALST_NOP, MAXA_NOP, 0}, /* 137 HTML_PARAM */
845 -- {"small", ALST_NOP, MAXA_NOP, 0}, /* 138 HTML_SMALL */
846 -- {"/small", NULL, 0, TFLG_END}, /* 139 HTML_N_SMALL */
847 -+ {"button", ALST_BUTTON, MAXA_BUTTON, 0}, /* 124 HTML_BUTTON */
848 -+ {"/button", NULL, 0, TFLG_END}, /* 125 HTML_N_BUTTON */
849 -+ {"fieldset", ALST_NOP, MAXA_NOP, 0}, /* 126 HTML_FIELDSET */
850 -+ {"/fieldset", NULL, 0, TFLG_END}, /* 127 HTML_N_FIELDSET */
851 -+ {"iframe", ALST_NOP, MAXA_NOP, 0}, /* 128 HTML_IFRAME */
852 -+ {"label", ALST_NOP, MAXA_NOP, 0}, /* 129 HTML_LABEL */
853 -+ {"/label", NULL, 0, TFLG_END}, /* 130 HTML_N_LABEL */
854 -+ {"legend", ALST_NOP, MAXA_NOP, 0}, /* 131 HTML_LEGEND */
855 -+ {"/legend", NULL, 0, TFLG_END}, /* 132 HTML_N_LEGEND */
856 -+ {"noscript", ALST_NOP, MAXA_NOP, 0}, /* 133 HTML_NOSCRIPT */
857 -+ {"/noscript", NULL, 0, TFLG_END}, /* 134 HTML_N_NOSCRIPT */
858 -+ {"object", ALST_NOP, MAXA_NOP, 0}, /* 135 HTML_OBJECT */
859 -+ {"optgroup", ALST_NOP, MAXA_NOP, 0}, /* 136 HTML_OPTGROUP */
860 -+ {"/optgroup", NULL, 0, TFLG_END}, /* 137 HTML_N_OPTGROUP */
861 -+ {"param", ALST_NOP, MAXA_NOP, 0}, /* 138 HTML_PARAM */
862 -+ {"small", ALST_NOP, MAXA_NOP, 0}, /* 139 HTML_SMALL */
863 -+ {"/small", NULL, 0, TFLG_END}, /* 140 HTML_N_SMALL */
864 -
865 -- {NULL, NULL, 0, 0}, /* 140 Undefined */
866 - {NULL, NULL, 0, 0}, /* 141 Undefined */
867 - {NULL, NULL, 0, 0}, /* 142 Undefined */
868 - {NULL, NULL, 0, 0}, /* 143 Undefined */
869 -Index: html.h
870 -===================================================================
871 -RCS file: /cvsroot/w3m/w3m/html.h,v
872 -retrieving revision 1.31
873 -diff -u -r1.31 html.h
874 ---- w3m.orig/html.h 14 Aug 2010 01:29:40 -0000 1.31
875 -+++ w3m/html.h 17 Sep 2010 12:18:55 -0000
876 -@@ -214,21 +214,22 @@
877 - #define HTML_BIG 122
878 - #define HTML_N_BIG 123
879 - #define HTML_BUTTON 124
880 --#define HTML_FIELDSET 125
881 --#define HTML_N_FIELDSET 126
882 --#define HTML_IFRAME 127
883 --#define HTML_LABEL 128
884 --#define HTML_N_LABEL 129
885 --#define HTML_LEGEND 130
886 --#define HTML_N_LEGEND 131
887 --#define HTML_NOSCRIPT 132
888 --#define HTML_N_NOSCRIPT 133
889 --#define HTML_OBJECT 134
890 --#define HTML_OPTGROUP 135
891 --#define HTML_N_OPTGROUP 136
892 --#define HTML_PARAM 137
893 --#define HTML_SMALL 138
894 --#define HTML_N_SMALL 139
895 -+#define HTML_N_BUTTON 125
896 -+#define HTML_FIELDSET 126
897 -+#define HTML_N_FIELDSET 127
898 -+#define HTML_IFRAME 128
899 -+#define HTML_LABEL 129
900 -+#define HTML_N_LABEL 130
901 -+#define HTML_LEGEND 131
902 -+#define HTML_N_LEGEND 132
903 -+#define HTML_NOSCRIPT 133
904 -+#define HTML_N_NOSCRIPT 134
905 -+#define HTML_OBJECT 135
906 -+#define HTML_OPTGROUP 136
907 -+#define HTML_N_OPTGROUP 137
908 -+#define HTML_PARAM 138
909 -+#define HTML_SMALL 139
910 -+#define HTML_N_SMALL 140
911 -
912 - /* pseudo tag */
913 - #define HTML_SELECT_INT 160
914 -Index: proto.h
915 -===================================================================
916 -RCS file: /cvsroot/w3m/w3m/proto.h,v
917 -retrieving revision 1.104
918 -diff -u -r1.104 proto.h
919 ---- w3m.orig/proto.h 25 Jul 2010 09:55:05 -0000 1.104
920 -+++ w3m/proto.h 17 Sep 2010 12:18:55 -0000
921 -@@ -207,6 +207,8 @@
922 - extern Str process_img(struct parsed_tag *tag, int width);
923 - extern Str process_anchor(struct parsed_tag *tag, char *tagbuf);
924 - extern Str process_input(struct parsed_tag *tag);
925 -+extern Str process_button(struct parsed_tag *tag);
926 -+extern Str process_n_button(void);
927 - extern Str process_select(struct parsed_tag *tag);
928 - extern Str process_n_select(void);
929 - extern void feed_select(char *str);
930 -Index: table.c
931 -===================================================================
932 -RCS file: /cvsroot/w3m/w3m/table.c,v
933 -retrieving revision 1.58
934 -diff -u -r1.58 table.c
935 ---- w3m.orig/table.c 9 Aug 2010 11:59:19 -0000 1.58
936 -+++ w3m/table.c 17 Sep 2010 12:18:55 -0000
937 -@@ -2878,6 +2878,14 @@
938 - tmp = process_input(tag);
939 - feed_table1(tbl, tmp, mode, width);
940 - break;
941 -+ case HTML_BUTTON:
942 -+ tmp = process_button(tag);
943 -+ feed_table1(tbl, tmp, mode, width);
944 -+ break;
945 -+ case HTML_N_BUTTON:
946 -+ tmp = process_n_button();
947 -+ feed_table1(tbl, tmp, mode, width);
948 -+ break;
949 - case HTML_SELECT:
950 - tmp = process_select(tag);
951 - if (tmp)
952 -Index: tagtable.tab
953 -===================================================================
954 -RCS file: /cvsroot/w3m/w3m/tagtable.tab,v
955 -retrieving revision 1.14
956 -diff -u -r1.14 tagtable.tab
957 ---- w3m.orig/tagtable.tab 14 Aug 2010 01:29:40 -0000 1.14
958 -+++ w3m/tagtable.tab 17 Sep 2010 12:18:55 -0000
959 -@@ -176,6 +176,7 @@
960 - big HTML_BIG
961 - /big HTML_N_BIG
962 - button HTML_BUTTON
963 -+/button HTML_N_BUTTON
964 - fieldset HTML_FIELDSET
965 - /fieldset HTML_N_FIELDSET
966 - iframe HTML_IFRAME
967
968 diff --git a/www-client/w3m/files/w3m-0.5.3-gdk-pixbuf.patch b/www-client/w3m/files/w3m-0.5.3-gdk-pixbuf.patch
969 deleted file mode 100644
970 index acb1000..00000000
971 --- a/www-client/w3m/files/w3m-0.5.3-gdk-pixbuf.patch
972 +++ /dev/null
973 @@ -1,46 +0,0 @@
974 ---- w3mimg/x11/x11_w3mimg.c 2004-11-08 18:14:06.000000000 +0100
975 -+++ w3mimg/x11/x11_w3mimg.c 2012-05-19 06:31:08.908783927 +0200
976 -@@ -14,7 +14,7 @@
977 - #elif defined(USE_GDKPIXBUF)
978 - #if defined(USE_GTK2)
979 - #include <glib-object.h>
980 --#include <gdk/gdk.h>
981 -+#include <gdk-pixbuf/gdk-pixbuf.h>
982 - #include <gdk-pixbuf-xlib/gdk-pixbuf-xlib.h>
983 - #else
984 - #include <gdk-pixbuf/gdk-pixbuf-xlib.h>
985 ---- w3mimg/fb/fb_gdkpixbuf.c 2004-11-08 18:14:06.000000000 +0100
986 -+++ w3mimg/fb/fb_gdkpixbuf.c 2012-05-20 05:06:07.744816661 +0200
987 -@@ -6,7 +6,7 @@
988 - #include "config.h"
989 - #if defined(USE_GTK2)
990 - #include <glib-object.h>
991 --#include <gdk/gdk.h>
992 -+#include <gdk-pixbuf/gdk-pixbuf.h>
993 - #endif
994 - #include <gdk-pixbuf/gdk-pixbuf.h>
995 - #include "fb.h"
996 ---- acinclude.m4 2011-01-04 10:22:18.000000000 +0100
997 -+++ acinclude.m4 2012-05-20 05:15:36.158981506 +0200
998 -@@ -705,8 +705,8 @@ AC_DEFUN([AC_W3M_IMAGE],
999 - IMGTARGETS="x11"
1000 - AC_DEFINE(USE_GDKPIXBUF)
1001 - AC_DEFINE(USE_GTK2)
1002 -- IMGX11CFLAGS="`${PKG_CONFIG} --cflags gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0 gtk+-2.0`"
1003 -- IMGX11LDFLAGS="`${PKG_CONFIG} --libs gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0 gtk+-2.0`"
1004 -+ IMGX11CFLAGS="`${PKG_CONFIG} --cflags gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0`"
1005 -+ IMGX11LDFLAGS="`${PKG_CONFIG} --libs gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0`"
1006 - elif test x"$have_gdkpixbuf" = xyes; then
1007 - AC_DEFINE(USE_W3MIMG_X11)
1008 - IMGOBJS="$IMGOBJS x11/x11_w3mimg.o"
1009 -@@ -740,8 +740,8 @@ AC_DEFUN([AC_W3M_IMAGE],
1010 - IMGTARGETS="${IMGTARGETS} fb"
1011 - AC_DEFINE(USE_GDKPIXBUF)
1012 - AC_DEFINE(USE_GTK2)
1013 -- IMGFBCFLAGS="`${PKG_CONFIG} --cflags gdk-pixbuf-2.0 gtk+-2.0`"
1014 -- IMGFBLDFLAGS="`${PKG_CONFIG} --libs gdk-pixbuf-2.0 gtk+-2.0`"
1015 -+ IMGFBCFLAGS="`${PKG_CONFIG} --cflags gdk-pixbuf-2.0`"
1016 -+ IMGFBLDFLAGS="`${PKG_CONFIG} --libs gdk-pixbuf-2.0`"
1017 - elif test x"$have_gdkpixbuf" = xyes; then
1018 - AC_DEFINE(USE_W3MIMG_FB)
1019 - IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o"
1020
1021 diff --git a/www-client/w3m/files/w3m-0.5.3-gettext.patch b/www-client/w3m/files/w3m-0.5.3-gettext.patch
1022 deleted file mode 100644
1023 index 3f330cc..00000000
1024 --- a/www-client/w3m/files/w3m-0.5.3-gettext.patch
1025 +++ /dev/null
1026 @@ -1,12 +0,0 @@
1027 -diff -ur w3m-0.5.3.orig/po/ja.po w3m-0.5.3/po/ja.po
1028 ---- w3m-0.5.3.orig/po/ja.po 2014-06-08 11:17:13.791260502 +0200
1029 -+++ w3m-0.5.3/po/ja.po 2014-06-08 11:24:27.887365926 +0200
1030 -@@ -12,7 +12,7 @@
1031 - "PO-Revision-Date: 2010-08-20 18:45+0900\n"
1032 - "Last-Translator: Fumitoshi UKAI <ukai@×××××××××.jp>\n"
1033 - "Language-Team: Japanese\n"
1034 --"Language: \n"
1035 -+"Language: ja\n"
1036 - "MIME-Version: 1.0\n"
1037 - "Content-Type: text/plain; charset=UTF-8\n"
1038 - "Content-Transfer-Encoding: 8bit\n"
1039
1040 diff --git a/www-client/w3m/files/w3m-0.5.3-glibc214.patch b/www-client/w3m/files/w3m-0.5.3-glibc214.patch
1041 deleted file mode 100644
1042 index 2b18a8d..00000000
1043 --- a/www-client/w3m/files/w3m-0.5.3-glibc214.patch
1044 +++ /dev/null
1045 @@ -1,58 +0,0 @@
1046 ---- istream.c.~1.27.~ 2011-01-04 18:22:22.000000000 +0900
1047 -+++ istream.c 2011-06-24 08:15:23.522990618 +0900
1048 -@@ -22,8 +22,8 @@
1049 - static void basic_close(int *handle);
1050 - static int basic_read(int *handle, char *buf, int len);
1051 -
1052 --static void file_close(struct file_handle *handle);
1053 --static int file_read(struct file_handle *handle, char *buf, int len);
1054 -+static void file_close(struct afile_handle *handle);
1055 -+static int file_read(struct afile_handle *handle, char *buf, int len);
1056 -
1057 - static int str_read(Str handle, char *buf, int len);
1058 -
1059 -@@ -114,7 +114,7 @@
1060 - stream = New(union input_stream);
1061 - init_base_stream(&stream->base, STREAM_BUF_SIZE);
1062 - stream->file.type = IST_FILE;
1063 -- stream->file.handle = New(struct file_handle);
1064 -+ stream->file.handle = New(struct afile_handle);
1065 - stream->file.handle->f = f;
1066 - if (closep)
1067 - stream->file.handle->close = closep;
1068 -@@ -658,13 +658,13 @@
1069 - }
1070 -
1071 - static void
1072 --file_close(struct file_handle *handle)
1073 -+file_close(struct afile_handle *handle)
1074 - {
1075 - handle->close(handle->f);
1076 - }
1077 -
1078 - static int
1079 --file_read(struct file_handle *handle, char *buf, int len)
1080 -+file_read(struct afile_handle *handle, char *buf, int len)
1081 - {
1082 - return fread(buf, 1, len, handle->f);
1083 - }
1084 ---- istream.h.~1.12.~ 2003-10-21 01:41:56.000000000 +0900
1085 -+++ istream.h 2011-06-24 08:15:54.392991144 +0900
1086 -@@ -20,7 +20,7 @@
1087 -
1088 - typedef struct stream_buffer *StreamBuffer;
1089 -
1090 --struct file_handle {
1091 -+struct afile_handle {
1092 - FILE *f;
1093 - void (*close) ();
1094 - };
1095 -@@ -53,7 +53,7 @@
1096 -
1097 - struct file_stream {
1098 - struct stream_buffer stream;
1099 -- struct file_handle *handle;
1100 -+ struct afile_handle *handle;
1101 - char type;
1102 - char iseos;
1103 - int (*read) ();
1104
1105 diff --git a/www-client/w3m/files/w3m-0.5.3-input-type-default.patch b/www-client/w3m/files/w3m-0.5.3-input-type-default.patch
1106 deleted file mode 100644
1107 index 016d2a5..00000000
1108 --- a/www-client/w3m/files/w3m-0.5.3-input-type-default.patch
1109 +++ /dev/null
1110 @@ -1,13 +0,0 @@
1111 -Index: w3m-git/form.c
1112 -===================================================================
1113 ---- w3m-git.orig/form.c 2011-02-28 15:03:36.000000000 +0100
1114 -+++ w3m-git/form.c 2011-02-28 15:32:33.000000000 +0100
1115 -@@ -196,7 +196,7 @@
1116 - if (!strcasecmp(typestr, _formtypetbl[i]))
1117 - return i;
1118 - }
1119 -- return FORM_UNKNOWN;
1120 -+ return FORM_INPUT_TEXT;
1121 - }
1122 -
1123 - void
1124
1125 diff --git a/www-client/w3m/files/w3m-0.5.3-parallel-make.patch b/www-client/w3m/files/w3m-0.5.3-parallel-make.patch
1126 deleted file mode 100644
1127 index 427e3be..00000000
1128 --- a/www-client/w3m/files/w3m-0.5.3-parallel-make.patch
1129 +++ /dev/null
1130 @@ -1,22 +0,0 @@
1131 ---- a/w3mimg/Makefile.in
1132 -+++ b/w3mimg/Makefile.in
1133 -@@ -22,6 +22,8 @@
1134 - $(AR) rv $@ $(IMGOBJS)
1135 - $(RANLIB) $@
1136 -
1137 -+$(IMGOBJS): @IMGTARGETS@
1138 -+
1139 - w3mimg.o: w3mimg.c
1140 - $(CC) $(CFLAGS) -c $<
1141 -
1142 ---- a/Makefile.in
1143 -+++ b/Makefile.in
1144 -@@ -250,7 +250,7 @@
1145 - (cd $$subdir && $(MAKE) install); \
1146 - done
1147 -
1148 --all-scripts:
1149 -+all-scripts: funcname.tab
1150 - for dir in $(SCRIPTSUBDIRS); \
1151 - do \
1152 - (cd $$dir && $(MAKE) $(MAKE_ARGS)); \
1153
1154 diff --git a/www-client/w3m/files/w3m-0.5.3-remove-EGD.patch b/www-client/w3m/files/w3m-0.5.3-remove-EGD.patch
1155 deleted file mode 100644
1156 index 67ca6c2..00000000
1157 --- a/www-client/w3m/files/w3m-0.5.3-remove-EGD.patch
1158 +++ /dev/null
1159 @@ -1,11 +0,0 @@
1160 -diff -Naur w3m-0.5.3.orig/config.h.in w3m-0.5.3/config.h.in
1161 ---- w3m-0.5.3.orig/config.h.in 2011-01-04 04:22:19.000000000 -0500
1162 -+++ w3m-0.5.3/config.h.in 2016-05-11 18:23:00.195439897 -0400
1163 -@@ -84,7 +84,6 @@
1164 - #undef INET6
1165 - #undef HAVE_SOCKLEN_T
1166 - #undef HAVE_OLD_SS_FAMILY
1167 --#define USE_EGD
1168 - #define ENABLE_REMOVE_TRAILINGSPACES
1169 - #undef MENU_THIN_FRAME
1170 - #undef USE_RAW_SCROLL
1171
1172 diff --git a/www-client/w3m/files/w3m-0.5.3-tinfo.patch b/www-client/w3m/files/w3m-0.5.3-tinfo.patch
1173 deleted file mode 100644
1174 index 512f2cb..00000000
1175 --- a/www-client/w3m/files/w3m-0.5.3-tinfo.patch
1176 +++ /dev/null
1177 @@ -1,15 +0,0 @@
1178 ---- a/acinclude.m4
1179 -+++ b/acinclude.m4
1180 -@@ -400,10 +400,10 @@
1181 - AC_ARG_WITH(termlib,
1182 - [ --with-termlib[=LIBS] terminal library
1183 - LIBS is space separated list of:
1184 -- terminfo mytinfo termcap ncurses curses],,
1185 -+ terminfo mytinfo termcap tinfo ncurses curses],,
1186 - [with_termlib="yes"])
1187 - AC_MSG_RESULT($with_termlib)
1188 -- test x"$with_termlib" = xyes && with_termlib="terminfo mytinfo termlib termcap ncurses curses"
1189 -+ test x"$with_termlib" = xyes && with_termlib="terminfo mytinfo termlib termcap tinfo ncurses curses"
1190 - for lib in $with_termlib; do
1191 - AC_CHECK_LIB($lib, tgetent, [W3M_LIBS="$W3M_LIBS -l$lib"; break])
1192 - done
1193
1194 diff --git a/www-client/w3m/files/w3m-0.5.3-url-schema.patch b/www-client/w3m/files/w3m-0.5.3-url-schema.patch
1195 deleted file mode 100644
1196 index 759e7c2..00000000
1197 --- a/www-client/w3m/files/w3m-0.5.3-url-schema.patch
1198 +++ /dev/null
1199 @@ -1,91 +0,0 @@
1200 -X-Git-Url: http://anonscm.debian.org/gitweb/?p=collab-maint%2Fw3m.git;a=blobdiff_plain;f=url.c;h=6dbd5d3a43c51d96adca5ce5076b72a58c9d65fe;hp=ed6062ef3cb9e60a7e712ec054bcd46b49fd504d;hb=c155b93830b353a68468fb063df67987ed284142;hpb=dbd52ac2ca59d404bdcc29c5c90bda822f2c9334
1201 -
1202 -diff --git a/url.c b/url.c
1203 -index ed6062e..6dbd5d3 100644
1204 ---- a/url.c
1205 -+++ b/url.c
1206 -@@ -121,6 +121,7 @@ static struct table2 DefaultGuess[] = {
1207 - };
1208 -
1209 - static void add_index_file(ParsedURL *pu, URLFile *uf);
1210 -+static char * schemeNumToName(int scheme);
1211 -
1212 - /* #define HTTP_DEFAULT_FILE "/index.html" */
1213 -
1214 -@@ -1280,6 +1281,18 @@ getURLScheme(char **url)
1215 - }
1216 -
1217 - static char *
1218 -+schemeNumToName(int scheme)
1219 -+{
1220 -+ int i;
1221 -+
1222 -+ for (i = 0; schemetable[i].cmdname != NULL; i++) {
1223 -+ if (schemetable[i].cmd == scheme)
1224 -+ return schemetable[i].cmdname;
1225 -+ }
1226 -+ return NULL;
1227 -+}
1228 -+
1229 -+static char *
1230 - otherinfo(ParsedURL *target, ParsedURL *current, char *referer)
1231 - {
1232 - Str s = Strnew();
1233 -@@ -1603,7 +1616,7 @@ openURL(char *url, ParsedURL *pu, ParsedURL *current,
1234 - pu->host != NULL && !check_no_proxy(pu->host)) {
1235 - hr->flag |= HR_FLAG_PROXY;
1236 - sock = openSocket(FTP_proxy_parsed.host,
1237 -- schemetable[FTP_proxy_parsed.scheme].cmdname,
1238 -+ schemeNumToName(FTP_proxy_parsed.scheme),
1239 - FTP_proxy_parsed.port);
1240 - if (sock < 0)
1241 - return uf;
1242 -@@ -1645,15 +1658,15 @@ openURL(char *url, ParsedURL *pu, ParsedURL *current,
1243 - }
1244 - else if (pu->scheme == SCM_HTTPS) {
1245 - sock = openSocket(HTTPS_proxy_parsed.host,
1246 -- schemetable[HTTPS_proxy_parsed.scheme].
1247 -- cmdname, HTTPS_proxy_parsed.port);
1248 -+ schemeNumToName(HTTPS_proxy_parsed.scheme),
1249 -+ HTTPS_proxy_parsed.port);
1250 - sslh = NULL;
1251 - }
1252 - else {
1253 - #endif /* USE_SSL */
1254 - sock = openSocket(HTTP_proxy_parsed.host,
1255 -- schemetable[HTTP_proxy_parsed.scheme].
1256 -- cmdname, HTTP_proxy_parsed.port);
1257 -+ schemeNumToName(HTTP_proxy_parsed.scheme),
1258 -+ HTTP_proxy_parsed.port);
1259 - #ifdef USE_SSL
1260 - sslh = NULL;
1261 - }
1262 -@@ -1685,8 +1698,7 @@ openURL(char *url, ParsedURL *pu, ParsedURL *current,
1263 - }
1264 - }
1265 - else {
1266 -- sock = openSocket(pu->host,
1267 -- schemetable[pu->scheme].cmdname, pu->port);
1268 -+ sock = openSocket(pu->host, schemeNumToName(pu->scheme), pu->port);
1269 - if (sock < 0) {
1270 - *status = HTST_MISSING;
1271 - return uf;
1272 -@@ -1750,7 +1762,7 @@ openURL(char *url, ParsedURL *pu, ParsedURL *current,
1273 - pu->host != NULL && !check_no_proxy(pu->host)) {
1274 - hr->flag |= HR_FLAG_PROXY;
1275 - sock = openSocket(GOPHER_proxy_parsed.host,
1276 -- schemetable[GOPHER_proxy_parsed.scheme].cmdname,
1277 -+ schemeNumToName(GOPHER_proxy_parsed.scheme),
1278 - GOPHER_proxy_parsed.port);
1279 - if (sock < 0)
1280 - return uf;
1281 -@@ -1758,8 +1770,7 @@ openURL(char *url, ParsedURL *pu, ParsedURL *current,
1282 - tmp = HTTPrequest(pu, current, hr, extra_header);
1283 - }
1284 - else {
1285 -- sock = openSocket(pu->host,
1286 -- schemetable[pu->scheme].cmdname, pu->port);
1287 -+ sock = openSocket(pu->host, schemeNumToName(pu->scheme), pu->port);
1288 - if (sock < 0)
1289 - return uf;
1290 - if (pu->file == NULL)
1291
1292 diff --git a/www-client/w3m/files/w3m-CVE-2010-2074.patch b/www-client/w3m/files/w3m-CVE-2010-2074.patch
1293 deleted file mode 100644
1294 index 2863932..00000000
1295 --- a/www-client/w3m/files/w3m-CVE-2010-2074.patch
1296 +++ /dev/null
1297 @@ -1,55 +0,0 @@
1298 -Index: istream.c
1299 -===================================================================
1300 ---- istream.c
1301 -+++ istream.c
1302 -@@ -447,8 +447,17 @@ ssl_check_cert_ident(X509 * x, char *hos
1303 -
1304 - if (!seen_dnsname)
1305 - seen_dnsname = Strnew();
1306 -+ /* replace \0 to make full string visible to user */
1307 -+ if (sl != strlen(sn)) {
1308 -+ int i;
1309 -+ for (i = 0; i < sl; ++i) {
1310 -+ if (!sn[i])
1311 -+ sn[i] = '!';
1312 -+ }
1313 -+ }
1314 - Strcat_m_charp(seen_dnsname, sn, " ", NULL);
1315 -- if (ssl_match_cert_ident(sn, sl, hostname))
1316 -+ if (sl == strlen(sn) /* catch \0 in SAN */
1317 -+ && ssl_match_cert_ident(sn, sl, hostname))
1318 - break;
1319 - }
1320 - }
1321 -@@ -466,16 +475,27 @@ ssl_check_cert_ident(X509 * x, char *hos
1322 - if (match_ident == FALSE && ret == NULL) {
1323 - X509_NAME *xn;
1324 - char buf[2048];
1325 -+ int slen;
1326 -
1327 - xn = X509_get_subject_name(x);
1328 -
1329 -- if (X509_NAME_get_text_by_NID(xn, NID_commonName,
1330 -- buf, sizeof(buf)) == -1)
1331 -+ slen = X509_NAME_get_text_by_NID(xn, NID_commonName, buf, sizeof(buf));
1332 -+ if ( slen == -1)
1333 - /* FIXME: gettextize? */
1334 - ret = Strnew_charp("Unable to get common name from peer cert");
1335 -- else if (!ssl_match_cert_ident(buf, strlen(buf), hostname))
1336 -+ else if (slen != strlen(buf)
1337 -+ || !ssl_match_cert_ident(buf, strlen(buf), hostname)) {
1338 -+ /* replace \0 to make full string visible to user */
1339 -+ if (slen != strlen(buf)) {
1340 -+ int i;
1341 -+ for (i = 0; i < slen; ++i) {
1342 -+ if (!buf[i])
1343 -+ buf[i] = '!';
1344 -+ }
1345 -+ }
1346 - /* FIXME: gettextize? */
1347 - ret = Sprintf("Bad cert ident %s from %s", buf, hostname);
1348 -+ }
1349 - else
1350 - match_ident = TRUE;
1351 - }
1352 -
1353
1354 diff --git a/www-client/w3m/w3m-0.5.3-r5.ebuild b/www-client/w3m/w3m-0.5.3-r5.ebuild
1355 deleted file mode 100644
1356 index 2b2599a..00000000
1357 --- a/www-client/w3m/w3m-0.5.3-r5.ebuild
1358 +++ /dev/null
1359 @@ -1,130 +0,0 @@
1360 -# Copyright 1999-2016 Gentoo Foundation
1361 -# Distributed under the terms of the GNU General Public License v2
1362 -# $Id$
1363 -
1364 -EAPI=5
1365 -inherit autotools eutils
1366 -
1367 -DESCRIPTION="Text based WWW browser, supports tables and frames"
1368 -HOMEPAGE="http://w3m.sourceforge.net/"
1369 -SRC_URI="mirror://sourceforge/w3m/${P}.tar.gz"
1370 -
1371 -LICENSE="w3m"
1372 -SLOT="0"
1373 -KEYWORDS="alpha amd64 ~arm ~arm64 ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris"
1374 -IUSE="X fbcon gpm gtk imlib lynxkeymap migemo nls nntp ssl unicode vanilla xface l10n_ja"
1375 -
1376 -# We cannot build w3m with gtk+2 w/o X because gtk+2 ebuild doesn't
1377 -# allow us to build w/o X, so we have to give up framebuffer w3mimg....
1378 -RDEPEND=">=sys-libs/ncurses-5.2-r3:0=
1379 - >=sys-libs/zlib-1.1.3-r2
1380 - >=dev-libs/boehm-gc-6.2
1381 - X? ( x11-libs/libXext x11-libs/libXdmcp )
1382 - gtk? (
1383 - vanilla? ( x11-libs/gtk+:2 )
1384 - !vanilla? ( x11-libs/gdk-pixbuf ) )
1385 - !gtk? ( imlib? ( >=media-libs/imlib2-1.1.0[X] ) )
1386 - xface? ( media-libs/compface )
1387 - gpm? ( >=sys-libs/gpm-1.19.3-r5 )
1388 - migemo? ( >=app-text/migemo-0.40 )
1389 - ssl? ( >=dev-libs/openssl-0.9.6b:0= )"
1390 -DEPEND="${RDEPEND}
1391 - virtual/pkgconfig"
1392 -
1393 -src_prepare() {
1394 - epatch \
1395 - "${FILESDIR}/${PN}-0.5.2-gc72.patch" \
1396 - "${FILESDIR}/${PN}-0.5.3-parallel-make.patch" \
1397 - "${FILESDIR}/${PN}-0.5.3-glibc214.patch" \
1398 - "${FILESDIR}/${PN}-0.5.3-underlinking.patch" \
1399 - "${FILESDIR}/${PN}-0.5.3-tinfo.patch" \
1400 - "${FILESDIR}/${PN}-0.5.3-gettext.patch"
1401 - use vanilla || \
1402 - epatch "${FILESDIR}"/${PN}-0.5.3-button.patch \
1403 - "${FILESDIR}"/${P}-gdk-pixbuf.patch \
1404 - "${FILESDIR}"/${P}-input-type-default.patch \
1405 - "${FILESDIR}"/${P}-url-schema.patch
1406 - ecvs_clean
1407 - sed -i -e "/^AR=/s/ar/$(tc-getAR)/" {.,w3mimg,libwc}/Makefile.in || die
1408 - eautoconf
1409 -}
1410 -
1411 -src_configure() {
1412 - local myconf migemo_command imagelibval imageval
1413 -
1414 - if use gtk ; then
1415 - imagelibval="gtk2"
1416 - elif use imlib ; then
1417 - imagelibval="imlib2"
1418 - fi
1419 -
1420 - if [ ! -z "${imagelibval}" ] ; then
1421 - use X && imageval="${imageval}${imageval:+,}x11"
1422 - use X && use fbcon && imageval="${imageval}${imageval:+,}fb"
1423 - fi
1424 -
1425 - if use migemo ; then
1426 - migemo_command="migemo -t egrep ${EPREFIX}/usr/share/migemo/migemo-dict"
1427 - else
1428 - migemo_command="no"
1429 - fi
1430 -
1431 - # emacs-w3m doesn't like "--enable-m17n --disable-unicode,"
1432 - # so we better enable or disable both. Default to enable
1433 - # m17n and unicode, see bug #47046.
1434 - if use l10n_ja ; then
1435 - if use unicode ; then
1436 - myconf="${myconf} --enable-japanese=U"
1437 - else
1438 - myconf="${myconf} --enable-japanese=E"
1439 - fi
1440 - elif use unicode ; then
1441 - myconf="${myconf} --with-charset=UTF-8"
1442 - else
1443 - myconf="${myconf} --with-charset=US-ASCII"
1444 - fi
1445 -
1446 - # lynxkeymap IUSE flag. bug #49397
1447 - if use lynxkeymap ; then
1448 - myconf="${myconf} --enable-keymap=lynx"
1449 - else
1450 - myconf="${myconf} --enable-keymap=w3m"
1451 - fi
1452 -
1453 - econf \
1454 - --with-editor="${EPREFIX}/usr/bin/vi" \
1455 - --with-mailer="${EPREFIX}/bin/mail" \
1456 - --with-browser="${EPREFIX}/usr/bin/xdg-open" \
1457 - --with-termlib=yes \
1458 - --enable-image=${imageval:-no} \
1459 - --with-imagelib="${imagelibval:-no}" \
1460 - --with-migemo="${migemo_command}" \
1461 - --enable-m17n \
1462 - --enable-unicode \
1463 - $(use_enable gpm mouse) \
1464 - $(use_enable nls) \
1465 - $(use_enable nntp) \
1466 - $(use_enable ssl digest-auth) \
1467 - $(use_with ssl) \
1468 - $(use_enable xface) \
1469 - ${myconf}
1470 -}
1471 -
1472 -src_install() {
1473 -
1474 - emake DESTDIR="${D}" install
1475 -
1476 - # http://www.sic.med.tohoku.ac.jp/~satodai/w3m-dev/200307.month/3944.html
1477 - insinto /etc/${PN}
1478 - newins "${FILESDIR}/${PN}.mailcap" mailcap
1479 -
1480 - insinto /usr/share/${PN}/Bonus
1481 - doins Bonus/*
1482 - dodoc README NEWS TODO ChangeLog
1483 - docinto doc-en ; dodoc doc/*
1484 - if use l10n_ja ; then
1485 - docinto doc-jp ; dodoc doc-jp/*
1486 - else
1487 - rm -rf "${ED}"/usr/share/man/ja || die
1488 - fi
1489 -}
1490
1491 diff --git a/www-client/w3m/w3m-0.5.3-r8.ebuild b/www-client/w3m/w3m-0.5.3-r8.ebuild
1492 deleted file mode 100644
1493 index 90c4518..00000000
1494 --- a/www-client/w3m/w3m-0.5.3-r8.ebuild
1495 +++ /dev/null
1496 @@ -1,128 +0,0 @@
1497 -# Copyright 1999-2016 Gentoo Foundation
1498 -# Distributed under the terms of the GNU General Public License v2
1499 -# $Id$
1500 -
1501 -EAPI=5
1502 -inherit autotools eutils prefix
1503 -
1504 -DESCRIPTION="Text based WWW browser, supports tables and frames"
1505 -HOMEPAGE="http://w3m.sourceforge.net/"
1506 -SRC_URI="mirror://sourceforge/w3m/${P}.tar.gz"
1507 -
1508 -LICENSE="w3m"
1509 -SLOT="0"
1510 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris"
1511 -IUSE="X fbcon gpm gtk imlib libressl lynxkeymap nls nntp ssl unicode vanilla xface l10n_ja"
1512 -
1513 -# We cannot build w3m with gtk+2 w/o X because gtk+2 ebuild doesn't
1514 -# allow us to build w/o X, so we have to give up framebuffer w3mimg....
1515 -RDEPEND=">=sys-libs/ncurses-5.2-r3:0=
1516 - >=sys-libs/zlib-1.1.3-r2
1517 - >=dev-libs/boehm-gc-6.2
1518 - X? ( x11-libs/libXext x11-libs/libXdmcp )
1519 - gtk? (
1520 - vanilla? ( x11-libs/gtk+:2 )
1521 - !vanilla? ( x11-libs/gdk-pixbuf ) )
1522 - !gtk? ( imlib? ( >=media-libs/imlib2-1.1.0[X] ) )
1523 - xface? ( media-libs/compface )
1524 - gpm? ( >=sys-libs/gpm-1.19.3-r5 )
1525 - ssl? (
1526 - !libressl? ( dev-libs/openssl:0= )
1527 - libressl? ( dev-libs/libressl:0= )
1528 - )"
1529 -DEPEND="${RDEPEND}
1530 - virtual/pkgconfig"
1531 -
1532 -src_prepare() {
1533 - epatch \
1534 - "${FILESDIR}/${PN}-0.5.2-gc72.patch" \
1535 - "${FILESDIR}/${PN}-0.5.3-parallel-make.patch" \
1536 - "${FILESDIR}/${PN}-0.5.3-glibc214.patch" \
1537 - "${FILESDIR}/${PN}-0.5.3-underlinking.patch" \
1538 - "${FILESDIR}/${PN}-0.5.3-tinfo.patch" \
1539 - "${FILESDIR}/${PN}-0.5.3-gettext.patch" \
1540 - "${FILESDIR}/${PN}-0.5.3-remove-EGD.patch"
1541 - use vanilla || \
1542 - epatch "${FILESDIR}"/${PN}-0.5.3-button.patch \
1543 - "${FILESDIR}"/${P}-gdk-pixbuf.patch \
1544 - "${FILESDIR}"/${P}-input-type-default.patch \
1545 - "${FILESDIR}"/${P}-url-schema.patch
1546 - ecvs_clean
1547 - sed -i -e "/^AR=/s/ar/$(tc-getAR)/" {.,w3mimg,libwc}/Makefile.in || die
1548 - hprefixify acinclude.m4
1549 - eautoconf
1550 -}
1551 -
1552 -src_configure() {
1553 - local myconf imagelibval imageval
1554 -
1555 - if use gtk ; then
1556 - imagelibval="gtk2"
1557 - elif use imlib ; then
1558 - imagelibval="imlib2"
1559 - fi
1560 -
1561 - if [ ! -z "${imagelibval}" ] ; then
1562 - use X && imageval="${imageval}${imageval:+,}x11"
1563 - use X && use fbcon && imageval="${imageval}${imageval:+,}fb"
1564 - fi
1565 -
1566 - # emacs-w3m doesn't like "--enable-m17n --disable-unicode,"
1567 - # so we better enable or disable both. Default to enable
1568 - # m17n and unicode, see bug #47046.
1569 - if use l10n_ja ; then
1570 - if use unicode ; then
1571 - myconf="${myconf} --enable-japanese=U"
1572 - else
1573 - myconf="${myconf} --enable-japanese=E"
1574 - fi
1575 - elif use unicode ; then
1576 - myconf="${myconf} --with-charset=UTF-8"
1577 - else
1578 - myconf="${myconf} --with-charset=US-ASCII"
1579 - fi
1580 -
1581 - # lynxkeymap IUSE flag. bug #49397
1582 - if use lynxkeymap ; then
1583 - myconf="${myconf} --enable-keymap=lynx"
1584 - else
1585 - myconf="${myconf} --enable-keymap=w3m"
1586 - fi
1587 -
1588 - econf \
1589 - --with-editor="${EPREFIX}/usr/bin/vi" \
1590 - --with-mailer="${EPREFIX}/bin/mail" \
1591 - --with-browser="${EPREFIX}/usr/bin/xdg-open" \
1592 - --with-termlib=yes \
1593 - --enable-image=${imageval:-no} \
1594 - --with-imagelib="${imagelibval:-no}" \
1595 - --without-migemo \
1596 - --enable-m17n \
1597 - --enable-unicode \
1598 - $(use_enable gpm mouse) \
1599 - $(use_enable nls) \
1600 - $(use_enable nntp) \
1601 - $(use_enable ssl digest-auth) \
1602 - $(use_with ssl) \
1603 - $(use_enable xface) \
1604 - ${myconf}
1605 -}
1606 -
1607 -src_install() {
1608 -
1609 - emake DESTDIR="${D}" install
1610 -
1611 - # http://www.sic.med.tohoku.ac.jp/~satodai/w3m-dev/200307.month/3944.html
1612 - insinto /etc/${PN}
1613 - newins "${FILESDIR}/${PN}.mailcap" mailcap
1614 -
1615 - insinto /usr/share/${PN}/Bonus
1616 - doins Bonus/*
1617 - dodoc README NEWS TODO ChangeLog
1618 - docinto doc-en ; dodoc doc/*
1619 - if use l10n_ja ; then
1620 - docinto doc-jp ; dodoc doc-jp/*
1621 - else
1622 - rm -rf "${ED}"/usr/share/man/ja || die
1623 - fi
1624 -}