Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/emacs-tools:patchsets commit in: emacs/22.3/, emacs/21.4/
Date: Sat, 07 Jun 2014 11:49:28
Message-Id: 1402141779.1665a4db54d762a80602d96b5e94c512ebc3c0f4.ulm@gentoo
1 commit: 1665a4db54d762a80602d96b5e94c512ebc3c0f4
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 7 11:49:39 2014 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 7 11:49:39 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/emacs-tools.git;a=commit;h=1665a4db
7
8 Remove 21.4 and 22.3 patchsets.
9
10 ---
11 emacs/21.4/01_all_xorg.patch | 12 --
12 emacs/21.4/02_all_amd64.patch | 238 ----------------------------
13 emacs/21.4/03_all_hppa.patch | 98 ------------
14 emacs/21.4/04_all_sh.patch | 175 --------------------
15 emacs/21.4/05_all_libungif-gif-gentoo.patch | 34 ----
16 emacs/21.4/06_ppc64_ppc64.patch | 51 ------
17 emacs/21.4/07_ppc64_fix-unexelf.patch | 67 --------
18 emacs/21.4/08_all_autosave-tmp.patch | 12 --
19 emacs/21.4/09_all_blessmail-build.patch | 22 ---
20 emacs/21.4/10_all_qa.patch | 92 -----------
21 emacs/21.4/11_all_Xaw3d-headers.patch | 72 ---------
22 emacs/21.4/12_all_freebsd-terminfo.patch | 16 --
23 emacs/21.4/13_all_oldxmenu-malloc.patch | 11 --
24 emacs/21.4/14_all_gif-image-size.patch | 34 ----
25 emacs/21.4/15_all_format-int.patch | 11 --
26 emacs/21.4/16_all_vcdiff-tmp-race.patch | 25 ---
27 emacs/21.4/17_all_bss-heap-gap.patch | 95 -----------
28 emacs/21.4/18_all_fast-lock.patch | 45 ------
29 emacs/21.4/19_all_autoconf-2.61.patch | 50 ------
30 emacs/21.4/20_all_manpage-install.patch | 13 --
31 emacs/21.4/21_all_libpng14.patch | 22 ---
32 emacs/21.4/22_all_cpp-4.5.patch | 25 ---
33 emacs/21.4/23_all_libpng15.patch | 22 ---
34 emacs/21.4/24_all_libXaw3d-1.6.patch | 12 --
35 emacs/22.3/01_all_Xaw3d-headers.patch | 150 ------------------
36 emacs/22.3/02_all_freebsd-sparc.patch | 17 --
37 emacs/22.3/03_all_sh.patch | 26 ---
38 emacs/22.3/04_all_linux-random-heap.patch | 15 --
39 emacs/22.3/05_all_gtk-menu.patch | 168 --------------------
40 emacs/22.3/06_all_libpng14.patch | 49 ------
41 emacs/22.3/07_all_cpp-4.5.patch | 25 ---
42 emacs/22.3/08_all_gameuser.patch | 18 ---
43 emacs/22.3/09_all_info-dir.patch | 48 ------
44 emacs/22.3/10_all_libpng15.patch | 22 ---
45 34 files changed, 1792 deletions(-)
46
47 diff --git a/emacs/21.4/01_all_xorg.patch b/emacs/21.4/01_all_xorg.patch
48 deleted file mode 100644
49 index a97bb10..0000000
50 --- a/emacs/21.4/01_all_xorg.patch
51 +++ /dev/null
52 @@ -1,12 +0,0 @@
53 -diff -Naur emacs-21.3-old/src/xterm.h emacs-21.3/src/xterm.h
54 ---- emacs-21.3-old/src/xterm.h 2002-02-22 11:41:44.000000000 +0100
55 -+++ emacs-21.3/src/xterm.h 2004-10-30 12:33:12.000000000 +0200
56 -@@ -21,8 +21,8 @@
57 -
58 - #include <X11/Xlib.h>
59 - #include <X11/cursorfont.h>
60 --#include <X11/Xutil.h>
61 - #include <X11/keysym.h>
62 -+#include <X11/Xutil.h>
63 - #include <X11/Xatom.h>
64 - #include <X11/Xresource.h>
65
66 diff --git a/emacs/21.4/02_all_amd64.patch b/emacs/21.4/02_all_amd64.patch
67 deleted file mode 100644
68 index 9c5f5e2..0000000
69 --- a/emacs/21.4/02_all_amd64.patch
70 +++ /dev/null
71 @@ -1,238 +0,0 @@
72 -diff -Naur emacs-21.3-old/configure emacs-21.3/configure
73 ---- emacs-21.3-old/configure 2003-12-14 03:34:27.000000000 +0000
74 -+++ emacs-21.3/configure 2003-12-14 03:35:13.000000000 +0000
75 -@@ -1632,6 +1632,11 @@
76 - machine=ia64 opsys=gnu-linux
77 - ;;
78 -
79 -+ ## X86-64
80 -+ x86_64*-*-linux* )
81 -+ machine=x86_64 opsys=gnu-linux
82 -+ ;;
83 -+
84 - ## Intel 386 machines where we don't care about the manufacturer
85 - i[3456]86-*-* )
86 - machine=intel386
87 -diff -Naur emacs-21.3-old/configure.in emacs-21.3/configure.in
88 ---- emacs-21.3-old/configure.in 2003-12-14 03:34:27.000000000 +0000
89 -+++ emacs-21.3/configure.in 2003-12-14 03:35:04.000000000 +0000
90 -@@ -1006,6 +1006,11 @@
91 - machine=ia64 opsys=gnu-linux
92 - ;;
93 -
94 -+ ## X86-64
95 -+ x86_64*-*-linux* )
96 -+ machine=x86_64 opsys=gnu-linux
97 -+ ;;
98 -+
99 - ## Intel 386 machines where we don't care about the manufacturer
100 - i[3456]86-*-* )
101 - machine=intel386
102 -diff -Naur emacs-21.3-old/src/m/x86_64.h emacs-21.3/src/m/x86_64.h
103 ---- emacs-21.3-old/src/m/x86_64.h 1970-01-01 00:00:00.000000000 +0000
104 -+++ emacs-21.3/src/m/x86_64.h 2003-12-14 03:35:04.000000000 +0000
105 -@@ -0,0 +1,175 @@
106 -+/* machine description file for the X86-64 architecture.
107 -+ Copyright (C) 2000 Free Software Foundation, Inc.
108 -+
109 -+This file is part of GNU Emacs.
110 -+
111 -+GNU Emacs is free software; you can redistribute it and/or modify
112 -+it under the terms of the GNU General Public License as published by
113 -+the Free Software Foundation; either version 1, or (at your option)
114 -+any later version.
115 -+
116 -+GNU Emacs is distributed in the hope that it will be useful,
117 -+but WITHOUT ANY WARRANTY; without even the implied warranty of
118 -+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
119 -+GNU General Public License for more details.
120 -+
121 -+You should have received a copy of the GNU General Public License
122 -+along with GNU Emacs; see the file COPYING. If not, write to
123 -+the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
124 -+Boston, MA 02111-1307, USA. */
125 -+
126 -+#define BITS_PER_LONG 64
127 -+#define BITS_PER_EMACS_INT 64
128 -+
129 -+/* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word
130 -+ is the most significant byte. */
131 -+
132 -+#undef WORDS_BIG_ENDIAN
133 -+
134 -+/* Define NO_ARG_ARRAY if you cannot take the address of the first of a
135 -+ group of arguments and treat it as an array of the arguments. */
136 -+
137 -+#define NO_ARG_ARRAY
138 -+
139 -+/* Define WORD_MACHINE if addresses and such have
140 -+ to be corrected before they can be used as byte counts. */
141 -+
142 -+/* #define WORD_MACHINE */
143 -+
144 -+/* Now define a symbol for the cpu type, if your compiler
145 -+ does not define it automatically:
146 -+ Ones defined so far include vax, m68000, ns16000, pyramid,
147 -+ orion, tahoe, APOLLO and many others */
148 -+
149 -+/* __x86_64__ defined automatically */
150 -+
151 -+
152 -+/* Use type EMACS_INT rather than a union, to represent Lisp_Object */
153 -+/* This is desirable for most machines. */
154 -+
155 -+#define NO_UNION_TYPE
156 -+
157 -+/* Define the type to use. */
158 -+#define EMACS_INT long
159 -+#define EMACS_UINT unsigned long
160 -+#define SPECIAL_EMACS_INT
161 -+
162 -+/* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
163 -+ the 24-bit bit field into an int. In other words, if bit fields
164 -+ are always unsigned.
165 -+
166 -+ If you use NO_UNION_TYPE, this flag does not matter. */
167 -+
168 -+#define EXPLICIT_SIGN_EXTEND
169 -+
170 -+/* Data type of load average, as read out of kmem. */
171 -+
172 -+#define LOAD_AVE_TYPE long
173 -+
174 -+/* Convert that into an integer that is 100 for a load average of 1.0 */
175 -+
176 -+#define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
177 -+
178 -+/* Define CANNOT_DUMP on machines where unexec does not work.
179 -+ Then the function dump-emacs will not be defined
180 -+ and temacs will do (load "loadup") automatically unless told otherwise. */
181 -+#if 0
182 -+#define CANNOT_DUMP
183 -+#endif
184 -+
185 -+/* Define VIRT_ADDR_VARIES if the virtual addresses of
186 -+ pure and impure space as loaded can vary, and even their
187 -+ relative order cannot be relied on.
188 -+
189 -+ Otherwise Emacs assumes that text space precedes data space,
190 -+ numerically. */
191 -+
192 -+/* #define VIRT_ADDR_VARIES */
193 -+
194 -+/* Define C_ALLOCA if this machine does not support a true alloca
195 -+ and the one written in C should be used instead.
196 -+ Define HAVE_ALLOCA to say that the system provides a properly
197 -+ working alloca function and it should be used.
198 -+ Define neither one if an assembler-language alloca
199 -+ in the file alloca.s should be used. */
200 -+
201 -+#define HAVE_ALLOCA
202 -+
203 -+/* Define the following if GNU malloc and the relocating allocator do
204 -+ not work together with X. */
205 -+
206 -+/* #define SYSTEM_MALLOC */
207 -+
208 -+/* Define NO_REMAP if memory segmentation makes it not work well
209 -+ to change the boundary between the text section and data section
210 -+ when Emacs is dumped. If you define this, the preloaded Lisp
211 -+ code will not be sharable; but that's better than failing completely. */
212 -+
213 -+/* #define NO_REMAP */
214 -+
215 -+/* Some really obscure 4.2-based systems (like Sequent DYNIX) do not
216 -+ support asynchronous I/O (using SIGIO) on sockets, even though it
217 -+ works fine on tty's. If you have one of these systems, define the
218 -+ following, and then use it in config.h (or elsewhere) to decide
219 -+ when (not) to use SIGIO.
220 -+
221 -+ You'd think this would go in an operating-system description file,
222 -+ but since it only occurs on some, but not all, BSD systems, the
223 -+ reasonable place to select for it is in the machine description
224 -+ file. */
225 -+
226 -+/* #define NO_SOCK_SIGIO */
227 -+
228 -+#ifdef __ELF__
229 -+#undef UNEXEC
230 -+#define UNEXEC unexelf.o
231 -+#endif
232 -+
233 -+#define PNTR_COMPARISON_TYPE unsigned long
234 -+
235 -+/* On the 64 bit architecture, we can use 60 bits for addresses */
236 -+
237 -+#define VALBITS 60
238 -+
239 -+/* Define XINT and XUINT so that they can take arguments of type int */
240 -+
241 -+#define XINT(a) (((long) (a) << (BITS_PER_LONG - VALBITS)) >> (BITS_PER_LONG - VALBITS))
242 -+#define XUINT(a) ((long) (a) & VALMASK)
243 -+
244 -+/* Declare malloc and realloc in a way that is clean.
245 -+ But not in makefiles! */
246 -+
247 -+#ifndef NOT_C_CODE
248 -+/* We need these because pointers are larger than the default ints. */
249 -+# if !defined(__NetBSD__) && !defined(__OpenBSD__)
250 -+# include <alloca.h>
251 -+# else
252 -+# include <stdlib.h>
253 -+# endif
254 -+
255 -+/* We need to prototype these for the lib-src programs even if we don't
256 -+ use the system malloc for the Emacs proper. */
257 -+#ifdef _MALLOC_INTERNAL
258 -+/* These declarations are designed to match the ones in gmalloc.c. */
259 -+#if defined (__STDC__) && __STDC__
260 -+extern void *malloc (), *realloc (), *calloc ();
261 -+#else
262 -+extern char *malloc (), *realloc (), *calloc ();
263 -+#endif
264 -+#else /* not _MALLOC_INTERNAL */
265 -+extern void *malloc (), *realloc (), *calloc ();
266 -+#endif /* not _MALLOC_INTERNAL */
267 -+
268 -+#ifdef REL_ALLOC
269 -+#ifndef _MALLOC_INTERNAL
270 -+/* "char *" because ralloc.c defines it that way. gmalloc.c thinks it
271 -+ is allowed to prototype these as "void *" so we don't prototype in
272 -+ that case. You're right: it stinks! */
273 -+extern char *r_alloc (), *r_re_alloc ();
274 -+extern void r_alloc_free ();
275 -+#endif /* not _MALLOC_INTERNAL */
276 -+#endif /* REL_ALLOC */
277 -+
278 -+#endif /* not NOT_C_CODE */
279 -+
280 -+#define HAVE_TEXT_START
281 -diff -Naur emacs-21.3-old/src/s/gnu-linux.h emacs-21.3/src/s/gnu-linux.h
282 ---- emacs-21.3-old/src/s/gnu-linux.h 2003-12-14 03:34:28.000000000 +0000
283 -+++ emacs-21.3/src/s/gnu-linux.h 2003-12-14 03:35:04.000000000 +0000
284 -@@ -173,8 +173,12 @@
285 - /* GNU/Linux usually has crt0.o in a non-standard place */
286 - #define START_FILES pre-crt0.o /usr/lib/crt0.o
287 - #else
288 -+#if defined(__x86_64)
289 -+#define START_FILES pre-crt0.o /usr/lib64/crt1.o /usr/lib64/crti.o
290 -+#else
291 - #define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o
292 - #endif
293 -+#endif
294 -
295 - #ifdef __ELF__
296 - /* Here is how to find X Windows. LD_SWITCH_X_SITE_AUX gives an -R option
297 -@@ -225,8 +229,12 @@
298 - #else
299 - #undef LIB_GCC
300 - #define LIB_GCC
301 -+#if defined(__x86_64)
302 -+#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib64/crtn.o
303 -+#else
304 - #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtn.o
305 - #endif
306 -+#endif
307 -
308 - /* Don't use -g in test compiles in configure.
309 - This is so we will use the same shared libs for that linking
310
311 diff --git a/emacs/21.4/03_all_hppa.patch b/emacs/21.4/03_all_hppa.patch
312 deleted file mode 100644
313 index 6955f93..0000000
314 --- a/emacs/21.4/03_all_hppa.patch
315 +++ /dev/null
316 @@ -1,98 +0,0 @@
317 -diff -uNr emacs-21.3.orig/configure emacs-21.3/configure
318 ---- emacs-21.3.orig/configure 2003-12-20 15:03:19.622159984 +0000
319 -+++ emacs-21.3/configure 2003-12-20 15:13:56.550332184 +0000
320 -@@ -1179,6 +1179,10 @@
321 - machine=hp800 opsys=nextstep
322 - ;;
323 -
324 -+ hppa*-*-linux-gnu* )
325 -+ machine=hp800 psys=gnu-linux
326 -+ ;;
327 -+
328 - ## Orion machines
329 - orion-orion-bsd* )
330 - machine=orion opsys=bsd4-2
331 -diff -uNr emacs-21.3.orig/configure.in emacs-21.3/configure.in
332 ---- emacs-21.3.orig/configure.in 2003-12-20 15:03:19.624159680 +0000
333 -+++ emacs-21.3/configure.in 2003-12-20 15:15:22.825216408 +0000
334 -@@ -553,6 +553,10 @@
335 - machine=hp800 opsys=nextstep
336 - ;;
337 -
338 -+ hppa*-*-linux-gnu* )
339 -+ machine=hp800 opsys=gnu-linux
340 -+ ;;
341 -+
342 - ## Orion machines
343 - orion-orion-bsd* )
344 - machine=orion opsys=bsd4-2
345 ---- emacs21-21.2.orig/src/m/hp800.h
346 -+++ emacs21-21.2/src/m/hp800.h
347 -@@ -85,7 +85,7 @@
348 - #define bcmp memcmp
349 - #endif
350 -
351 --#ifdef __hpux
352 -+#if defined(__hpux) || defined(__linux__)
353 - /* Now define a symbol for the cpu type, if your compiler
354 - does not define it automatically:
355 - Ones defined so far include vax, m68000, ns16000, pyramid,
356 -@@ -94,6 +94,15 @@
357 - # define hp9000s800
358 - #endif
359 -
360 -+#ifdef __linux__
361 -+/* Data type of load average, as read out of kmem. */
362 -+
363 -+#define LOAD_AVE_TYPE long
364 -+
365 -+/* Convert that into an integer that is 100 for a load average of 1.0 */
366 -+
367 -+#define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
368 -+#else
369 - /* Data type of load average, as read out of kmem. */
370 -
371 - #define LOAD_AVE_TYPE double
372 -@@ -101,7 +110,7 @@
373 - /* Convert that into an integer that is 100 for a load average of 1.0 */
374 -
375 - #define LOAD_AVE_CVT(x) ((int) (x * 100.0))
376 --
377 -+#endif
378 -
379 - /* Define CANNOT_DUMP on machines where unexec does not work.
380 - Then the function dump-emacs will not be defined
381 -@@ -116,6 +125,7 @@
382 - Otherwise Emacs assumes that text space precedes data space,
383 - numerically. */
384 -
385 -+#ifdef __hpux
386 - #define VIRT_ADDR_VARIES
387 -
388 - /* Define C_ALLOCA if this machine does not support a true alloca
389 -@@ -134,6 +144,9 @@
390 -
391 - #define DATA_START 0x40000000
392 - #define TEXT_START 0x00000000
393 -+#else
394 -+#define HAVE_ALLOCA
395 -+#endif
396 -
397 - #define STACK_DIRECTION 1
398 -
399 -@@ -147,6 +160,7 @@
400 - /* This machine requires completely different unexec code
401 - which lives in a separate file. Specify the file name. */
402 -
403 -+#ifdef __hpux
404 - #define UNEXEC unexhp9k800.o
405 -
406 - #define LIBS_MACHINE
407 -@@ -179,5 +193,5 @@
408 -
409 - #define index strchr
410 - #define rindex strrchr
411 --
412 --#endif /* __hpux */
413 -+#endif
414 -+#endif
415
416 diff --git a/emacs/21.4/04_all_sh.patch b/emacs/21.4/04_all_sh.patch
417 deleted file mode 100644
418 index 254db24..0000000
419 --- a/emacs/21.4/04_all_sh.patch
420 +++ /dev/null
421 @@ -1,175 +0,0 @@
422 ---- emacs21-21.2.orig/configure.in
423 -+++ emacs21-21.2/configure.in
424 -@@ -1055,6 +1055,16 @@
425 - machine=mipsel opsys=gnu-linux
426 - ;;
427 -
428 -+ ## SuperH (little endian) Linux-based GNU system
429 -+ sh[34]-*-linux-gnu* )
430 -+ machine=sh opsys=gnu-linux
431 -+ ;;
432 -+
433 -+ ## SuperH (big endian) Linux-based GNU system
434 -+ sh[34]eb-*-linux-gnu* )
435 -+ machine=sheb opsys=gnu-linux
436 -+ ;;
437 -+
438 - ## UXP/DS
439 - sparc-fujitsu-sysv4* )
440 - machine=sparc opsys=uxpds
441 ---- emacs21-21.2.orig/src/m/sh.h
442 -+++ emacs21-21.2/src/m/sh.h
443 -@@ -0,0 +1,122 @@
444 -+/* machine description file for Hitach SuperH.
445 -+ Copyright (C) 2000 Free Software Foundation, Inc.
446 -+
447 -+This file is part of GNU Emacs.
448 -+
449 -+GNU Emacs is free software; you can redistribute it and/or modify
450 -+it under the terms of the GNU General Public License as published by
451 -+the Free Software Foundation; either version 2, or (at your option)
452 -+any later version.
453 -+
454 -+GNU Emacs is distributed in the hope that it will be useful,
455 -+but WITHOUT ANY WARRANTY; without even the implied warranty of
456 -+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
457 -+GNU General Public License for more details.
458 -+
459 -+You should have received a copy of the GNU General Public License
460 -+along with GNU Emacs; see the file COPYING. If not, write to
461 -+the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
462 -+Boston, MA 02111-1307, USA. */
463 -+
464 -+
465 -+/* The following line tells the configuration script what sort of
466 -+ operating system this machine is likely to run.
467 -+ USUAL-OPSYS="<name of system .h file here, without the s- or .h>" */
468 -+
469 -+/* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word
470 -+ is the most significant byte. */
471 -+
472 -+#undef WORDS_BIG_ENDIAN
473 -+
474 -+/* Define NO_ARG_ARRAY if you cannot take the address of the first of a
475 -+ * group of arguments and treat it as an array of the arguments. */
476 -+
477 -+#define NO_ARG_ARRAY
478 -+
479 -+/* Define WORD_MACHINE if addresses and such have
480 -+ * to be corrected before they can be used as byte counts. */
481 -+
482 -+#undef WORD_MACHINE
483 -+
484 -+/* Now define a symbol for the cpu type, if your compiler
485 -+ does not define it automatically:
486 -+ Ones defined so far include vax, m68000, ns16000, pyramid,
487 -+ orion, tahoe, APOLLO and many others */
488 -+#define SUPERH
489 -+
490 -+/* Use type int rather than a union, to represent Lisp_Object */
491 -+/* This is desirable for most machines. */
492 -+
493 -+#define NO_UNION_TYPE
494 -+
495 -+/* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
496 -+ the 24-bit bit field into an int. In other words, if bit fields
497 -+ are always unsigned.
498 -+
499 -+ If you use NO_UNION_TYPE, this flag does not matter. */
500 -+
501 -+#define EXPLICIT_SIGN_EXTEND
502 -+
503 -+/* Data type of load average, as read out of kmem. */
504 -+
505 -+#define LOAD_AVE_TYPE long
506 -+
507 -+/* Convert that into an integer that is 100 for a load average of 1.0 */
508 -+
509 -+#define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
510 -+
511 -+/* Define CANNOT_DUMP on machines where unexec does not work.
512 -+ Then the function dump-emacs will not be defined
513 -+ and temacs will do (load "loadup") automatically unless told otherwise. */
514 -+
515 -+#undef CANNOT_DUMP
516 -+
517 -+/* Define VIRT_ADDR_VARIES if the virtual addresses of
518 -+ pure and impure space as loaded can vary, and even their
519 -+ relative order cannot be relied on.
520 -+
521 -+ Otherwise Emacs assumes that text space precedes data space,
522 -+ numerically. */
523 -+
524 -+#undef VIRT_ADDR_VARIES
525 -+
526 -+/* Define C_ALLOCA if this machine does not support a true alloca
527 -+ and the one written in C should be used instead.
528 -+ Define HAVE_ALLOCA to say that the system provides a properly
529 -+ working alloca function and it should be used.
530 -+ Define neither one if an assembler-language alloca
531 -+ in the file alloca.s should be used. */
532 -+
533 -+#undef C_ALLOCA
534 -+#define HAVE_ALLOCA
535 -+
536 -+/* Define NO_REMAP if memory segmentation makes it not work well
537 -+ to change the boundary between the text section and data section
538 -+ when Emacs is dumped. If you define this, the preloaded Lisp
539 -+ code will not be sharable; but that's better than failing completely. */
540 -+
541 -+#undef NO_REMAP
542 -+
543 -+/* Some really obscure 4.2-based systems (like Sequent DYNIX)
544 -+ * do not support asynchronous I/O (using SIGIO) on sockets,
545 -+ * even though it works fine on tty's. If you have one of
546 -+ * these systems, define the following, and then use it in
547 -+ * config.h (or elsewhere) to decide when (not) to use SIGIO.
548 -+ *
549 -+ * You'd think this would go in an operating-system description file,
550 -+ * but since it only occurs on some, but not all, BSD systems, the
551 -+ * reasonable place to select for it is in the machine description
552 -+ * file.
553 -+ */
554 -+
555 -+#undef NO_SOCK_SIGIO
556 -+
557 -+
558 -+/* After adding support for a new system, modify the large case
559 -+ statement in the `configure' script to recognize reasonable
560 -+ configuration names, and add a description of the system to
561 -+ `etc/MACHINES'.
562 -+
563 -+ If you've just fixed a problem in an existing configuration file,
564 -+ you should also check `etc/MACHINES' to make sure its descriptions
565 -+ of known problems in that configuration should be updated. */
566 -only in patch2:
567 ---- emacs21-21.2.orig/src/m/sheb.h
568 -+++ emacs21-21.2/src/m/sheb.h
569 -@@ -0,0 +1,8 @@
570 -+/* machine description file for sheb (SuperH big endian). */
571 -+
572 -+#include "sh.h"
573 -+
574 -+/* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word
575 -+ is the most significant byte. */
576 -+
577 -+#define WORDS_BIG_ENDIAN
578 ---- emacs-21.2.orig/configure Fri Mar 15 21:46:09 2002
579 -+++ emacs-21.2/configure Mon Nov 25 16:30:19 2002
580 -@@ -1666,6 +1666,16 @@
581 - machine=mips opsys=gnu-linux
582 - ;;
583 -
584 -+ ## SuperH (little endian) Linux-based GNU system
585 -+ sh[34]-*-linux-gnu* )
586 -+ machine=sh opsys=gnu-linux
587 -+ ;;
588 -+
589 -+ ## SuperH (big endian) Linux-based GNU system
590 -+ sh[34]eb-*-linux-gnu* )
591 -+ machine=sheb opsys=gnu-linux
592 -+ ;;
593 -+
594 - ## UXP/DS
595 - sparc-fujitsu-sysv4* )
596 - machine=sparc opsys=uxpds
597
598 diff --git a/emacs/21.4/05_all_libungif-gif-gentoo.patch b/emacs/21.4/05_all_libungif-gif-gentoo.patch
599 deleted file mode 100644
600 index abae185..0000000
601 --- a/emacs/21.4/05_all_libungif-gif-gentoo.patch
602 +++ /dev/null
603 @@ -1,34 +0,0 @@
604 -diff -ur emacs-21.4.orig/configure.in emacs-21.4/configure.in
605 ---- emacs-21.4.orig/configure.in 2003-03-16 16:06:05.000000000 -0600
606 -+++ emacs-21.4/configure.in 2006-08-12 17:15:44.000000000 -0500
607 -@@ -1927,7 +1927,7 @@
608 - AC_CHECK_HEADER(gif_lib.h,
609 - # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
610 - # Earlier versions can crash Emacs.
611 -- AC_CHECK_LIB(ungif, EGifPutExtensionLast, HAVE_GIF=yes))
612 -+ AC_CHECK_LIB(gif, EGifPutExtensionLast, HAVE_GIF=yes))
613 - fi
614 -
615 - if test "${HAVE_GIF}" = "yes"; then
616 -@@ -2283,7 +2283,7 @@
617 - echo " Does Emacs use -lXpm? ${HAVE_XPM}"
618 - echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
619 - echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
620 --echo " Does Emacs use -lungif? ${HAVE_GIF}"
621 -+echo " Does Emacs use -lgif? ${HAVE_GIF}"
622 - echo " Does Emacs use -lpng? ${HAVE_PNG}"
623 - echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
624 - echo
625 -diff -ur emacs-21.4.orig/src/Makefile.in emacs-21.4/src/Makefile.in
626 ---- emacs-21.4.orig/src/Makefile.in 2003-01-23 04:34:06.000000000 -0600
627 -+++ emacs-21.4/src/Makefile.in 2006-08-12 17:23:30.000000000 -0500
628 -@@ -402,7 +402,7 @@
629 -
630 - #if HAVE_GIF
631 - #ifndef LIBGIF
632 --#define LIBGIF -lungif
633 -+#define LIBGIF -lgif
634 - #endif /* not defined LIBGIF */
635 - #else /* not HAVE_GIF */
636 - #define LIBGIF
637 -Only in emacs-21.4/src: Makefile.in~
638
639 diff --git a/emacs/21.4/06_ppc64_ppc64.patch b/emacs/21.4/06_ppc64_ppc64.patch
640 deleted file mode 100644
641 index 7572137..0000000
642 --- a/emacs/21.4/06_ppc64_ppc64.patch
643 +++ /dev/null
644 @@ -1,51 +0,0 @@
645 ---- emacs-21.3/src/m/macppc.h.sopwith 2001-10-23 02:43:33.000000000 -0400
646 -+++ emacs-21.3/src/m/macppc.h 2003-05-02 09:17:37.000000000 -0400
647 -@@ -95,11 +95,47 @@
648 -
649 - #ifdef LINUX
650 - #define LINKER $(CC) -nostdlib
651 --#define LD_SWITCH_MACHINE -Xlinker -m -Xlinker elf32ppc
652 -+#ifdef __powerpc64__
653 -+#define LD_SWITCH_MACHINE -m64 -Xlinker -m -Xlinker elf64ppc
654 -+#else
655 -+#define LD_SWITCH_MACHINE -m32 -Xlinker -m -Xlinker elf32ppc
656 -+#endif
657 - /* s/gnu-linux.h defines this to `-z nocombreloc' which does not work here
658 - because prefix-args is not used. */
659 - #undef LD_SWITCH_SYSTEM_TEMACS
660 - #define LD_SWITCH_MACHINE_TEMACS -Xlinker -znocombreloc
661 -+
662 -+#ifdef __powerpc64__
663 -+/* Misc 64-bit fixups, patterned after the x86_64 file */
664 -+#undef BITS_PER_LONG
665 -+#undef BITS_PER_EMACS_INT
666 -+#undef VALBITS
667 -+#undef PNTR_COMPARISON_TYPE
668 -+#undef MARKBIT
669 -+#undef XINT
670 -+#undef XUINT
671 -+#undef XPNTR
672 -+#undef START_FILES
673 -+#undef LIB_STANDARD
674 -+#undef EMACS_INT
675 -+#undef EMACS_UINT
676 -+#undef SPECIAL_EMACS_INT
677 -+
678 -+#define BITS_PER_LONG 64
679 -+#define BITS_PER_EMACS_INT 64
680 -+#define VALBITS 60
681 -+#define PNTR_COMPARISON_TYPE unsigned long
682 -+#define MARKBIT 0x8000000000000000L
683 -+
684 -+#define XINT(a) (((long) (a) << (BITS_PER_LONG - VALBITS)) >> (BITS_PER_LONG - VALBITS))
685 -+#define XUINT(a) ((long) (a) & VALMASK)
686 -+#define XPNTR(a) XUINT (a)
687 -+#define START_FILES pre-crt0.o /usr/lib64/crt1.o /usr/lib64/crti.o
688 -+#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib64/crtn.o
689 -+#define EMACS_INT long
690 -+#define EMACS_UINT unsigned long
691 -+#define SPECIAL_EMACS_INT
692 -+#endif
693 - #endif
694 -
695 - #if 0 /* This breaks things on PPC GNU/Linux ecept for Yellowdog,
696
697 diff --git a/emacs/21.4/07_ppc64_fix-unexelf.patch b/emacs/21.4/07_ppc64_fix-unexelf.patch
698 deleted file mode 100644
699 index 5a812a9..0000000
700 --- a/emacs/21.4/07_ppc64_fix-unexelf.patch
701 +++ /dev/null
702 @@ -1,67 +0,0 @@
703 -Fix unexelf.c (unexec) on ppc64, backported from Emacs 22 by Chip Coldwell,
704 -see <http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=183304>
705 ---- emacs-21.4/src/unexelf.c 2002-10-15 10:21:44.000000000 -0400
706 -+++ emacs-21.4.works/src/unexelf.c 2006-07-26 11:08:05.000000000 -0400
707 -@@ -697,7 +697,7 @@ unexec (new_name, old_name, data_start,
708 - ElfW(Addr) new_data2_addr;
709 -
710 - int n, nn;
711 -- int old_bss_index, old_sbss_index;
712 -+ int old_bss_index, old_sbss_index, old_plt_index;
713 - int old_data_index, new_data2_index;
714 - int old_mdebug_index;
715 - struct stat stat_buf;
716 -@@ -759,12 +759,31 @@ unexec (new_name, old_name, data_start,
717 - if (OLD_SECTION_H (old_sbss_index).sh_type == SHT_PROGBITS)
718 - old_sbss_index = -1;
719 -
720 -- if (old_sbss_index == -1)
721 -+ /* PowerPC64 has .plt in the BSS section. */
722 -+ old_plt_index = find_section (".plt", old_section_names,
723 -+ old_name, old_file_h, old_section_h, 1);
724 -+ if (old_plt_index != -1)
725 -+ if (OLD_SECTION_H (old_plt_index).sh_type != SHT_NOBITS)
726 -+ old_plt_index = -1;
727 -+
728 -+ if (old_sbss_index == -1 && old_plt_index == -1)
729 - {
730 - old_bss_addr = OLD_SECTION_H (old_bss_index).sh_addr;
731 - old_bss_size = OLD_SECTION_H (old_bss_index).sh_size;
732 - new_data2_index = old_bss_index;
733 - }
734 -+ else if (old_plt_index != -1
735 -+ && (old_sbss_index == -1
736 -+ || (OLD_SECTION_H (old_sbss_index).sh_addr
737 -+ > OLD_SECTION_H (old_plt_index).sh_addr)))
738 -+ {
739 -+ old_bss_addr = OLD_SECTION_H (old_plt_index).sh_addr;
740 -+ old_bss_size = OLD_SECTION_H (old_bss_index).sh_size
741 -+ + OLD_SECTION_H (old_plt_index).sh_size;
742 -+ if (old_sbss_index != -1)
743 -+ old_bss_size += OLD_SECTION_H (old_sbss_index).sh_size;
744 -+ new_data2_index = old_plt_index;
745 -+ }
746 - else
747 - {
748 - old_bss_addr = OLD_SECTION_H (old_sbss_index).sh_addr;
749 -@@ -955,7 +974,7 @@ unexec (new_name, old_name, data_start,
750 - if (n == old_bss_index
751 - /* The new bss and sbss section's size is zero, and its file offset
752 - and virtual address should be off by NEW_DATA2_SIZE. */
753 -- || n == old_sbss_index
754 -+ || n == old_sbss_index || n == old_plt_index
755 - )
756 - {
757 - /* NN should be `old_s?bss_index + 1' at this point. */
758 -@@ -986,9 +1005,8 @@ unexec (new_name, old_name, data_start,
759 - >= OLD_SECTION_H (old_bss_index-1).sh_offset)
760 - NEW_SECTION_H (nn).sh_offset += new_data2_size;
761 - #else
762 -- if (round_up (NEW_SECTION_H (nn).sh_offset,
763 -- OLD_SECTION_H (old_bss_index).sh_addralign)
764 -- >= new_data2_offset)
765 -+ if (NEW_SECTION_H (nn).sh_offset + NEW_SECTION_H (nn).sh_size
766 -+ > new_data2_offset)
767 - NEW_SECTION_H (nn).sh_offset += new_data2_size;
768 - #endif
769 - /* Any section that was originally placed after the section
770
771 diff --git a/emacs/21.4/08_all_autosave-tmp.patch b/emacs/21.4/08_all_autosave-tmp.patch
772 deleted file mode 100644
773 index 240439d..0000000
774 --- a/emacs/21.4/08_all_autosave-tmp.patch
775 +++ /dev/null
776 @@ -1,12 +0,0 @@
777 ---- emacs-21.4/lisp/startup.el~ 2003-03-16 23:05:59.000000000 +0100
778 -+++ emacs-21.4/lisp/startup.el 2007-02-16 11:21:18.000000000 +0100
779 -@@ -629,6 +629,9 @@
780 - (setq small-temporary-file-directory
781 - (if (eq system-type 'ms-dos)
782 - (getenv "TMPDIR")))
783 -+ (setq auto-save-file-name-transforms
784 -+ (list (list (caar auto-save-file-name-transforms)
785 -+ (expand-file-name "\\2" temporary-file-directory))))
786 -
787 - ;; See if we should import version-control from the environment variable.
788 - (let ((vc (getenv "VERSION_CONTROL")))
789
790 diff --git a/emacs/21.4/09_all_blessmail-build.patch b/emacs/21.4/09_all_blessmail-build.patch
791 deleted file mode 100644
792 index 03b0723..0000000
793 --- a/emacs/21.4/09_all_blessmail-build.patch
794 +++ /dev/null
795 @@ -1,22 +0,0 @@
796 ---- emacs-22.0.93/lib-src/Makefile.in~ 2007-01-17 16:53:20.000000000 +0100
797 -+++ emacs-22.0.93/lib-src/Makefile.in 2007-02-17 11:29:06.000000000 +0100
798 -@@ -23,6 +23,10 @@
799 - # inherited from the environment.
800 - SHELL = /bin/sh
801 -
802 -+# following two lines taken from ../lisp/Makefile.in
803 -+EMACS = ../src/emacs
804 -+EMACSOPT = -batch --no-site-file --multibyte
805 -+
806 - # ==================== Things `configure' will edit ====================
807 -
808 - CC=@CC@
809 -@@ -279,7 +283,7 @@
810 -
811 - #ifdef MOVEMAIL_NEEDS_BLESSING
812 - blessmail:
813 -- ../src/emacs -batch -l $(srcdir)/../lisp/mail/blessmail.el
814 -+ $(EMACS) $(EMACSOPT) -l $(srcdir)/../lisp/mail/blessmail.el
815 - chmod +x blessmail
816 - #endif
817 -
818
819 diff --git a/emacs/21.4/10_all_qa.patch b/emacs/21.4/10_all_qa.patch
820 deleted file mode 100644
821 index d44ddc4..0000000
822 --- a/emacs/21.4/10_all_qa.patch
823 +++ /dev/null
824 @@ -1,92 +0,0 @@
825 -diff -ur emacs-21.4-orig/lib-src/cvtmail.c emacs-21.4/lib-src/cvtmail.c
826 ---- emacs-21.4-orig/lib-src/cvtmail.c 2002-02-15 13:06:48.000000000 +0100
827 -+++ emacs-21.4/lib-src/cvtmail.c 2007-03-19 09:02:08.000000000 +0100
828 -@@ -33,12 +33,15 @@
829 - * Author: Larry Kolodney, 1985
830 - */
831 -
832 -+#ifdef HAVE_CONFIG_H
833 -+#include <config.h>
834 -+#endif
835 -
836 - #include <stdio.h>
837 -
838 --char *malloc ();
839 --char *realloc ();
840 -+#ifndef HAVE_STDLIB_H
841 - char *getenv ();
842 -+#endif
843 -
844 - char *xmalloc ();
845 - char *xrealloc ();
846 -diff -ur emacs-21.4-orig/lib-src/yow.c emacs-21.4/lib-src/yow.c
847 ---- emacs-21.4-orig/lib-src/yow.c 1999-02-26 12:37:05.000000000 +0100
848 -+++ emacs-21.4/lib-src/yow.c 2007-03-19 09:03:50.000000000 +0100
849 -@@ -10,6 +10,10 @@
850 - * With dynamic memory allocation.
851 - */
852 -
853 -+#ifdef HAVE_CONFIG_H
854 -+#include <config.h>
855 -+#endif
856 -+
857 - #include <stdio.h>
858 - #include <ctype.h>
859 - #include <../src/epaths.h> /* For PATH_DATA. */
860 -@@ -33,8 +37,6 @@
861 - &res;})
862 - #endif
863 -
864 --char *malloc(), *realloc();
865 --
866 - void yow();
867 - void setup_yow();
868 -
869 -diff -ur emacs-21.4-orig/src/prefix-args.c emacs-21.4/src/prefix-args.c
870 ---- emacs-21.4-orig/src/prefix-args.c 2001-02-22 02:49:37.000000000 +0100
871 -+++ emacs-21.4/src/prefix-args.c 2007-03-19 09:20:27.000000000 +0100
872 -@@ -43,6 +43,10 @@
873 - If I can't write a completely portable program to do this in C,
874 - I'm quitting and taking up gardening. */
875 -
876 -+#ifdef HAVE_CONFIG_H
877 -+# include <config.h>
878 -+#endif
879 -+
880 - #include <stdio.h>
881 -
882 - int
883 -diff -ur emacs-21.4-orig/src/xterm.c emacs-21.4/src/xterm.c
884 ---- emacs-21.4-orig/src/xterm.c 2002-10-15 16:21:45.000000000 +0200
885 -+++ emacs-21.4/src/xterm.c 2007-03-19 09:13:01.000000000 +0100
886 -@@ -10899,7 +10899,7 @@
887 - if (!tool_bar_p)
888 - if (!dpyinfo->x_focus_frame
889 - || f == dpyinfo->x_focus_frame)
890 -- construct_mouse_click (&emacs_event, &event, f);
891 -+ construct_mouse_click (&emacs_event, &event.xbutton, f);
892 - }
893 - else
894 - {
895 -diff -ur emacs-21.4-orig/oldXMenu/ChgPane.c emacs-21.4/oldXMenu/ChgPane.c
896 ---- emacs-21.4-orig/oldXMenu/ChgPane.c 1999-10-03 21:34:53.000000000 +0200
897 -+++ emacs-21.4/oldXMenu/ChgPane.c 2007-03-19 15:10:00.000000000 +0100
898 -@@ -13,6 +13,7 @@
899 - *
900 - */
901 -
902 -+#include <config.h>
903 - #include "XMenuInt.h"
904 -
905 - int
906 -diff -ur emacs-21.4-orig/oldXMenu/ChgSel.c emacs-21.4/oldXMenu/ChgSel.c
907 ---- emacs-21.4-orig/oldXMenu/ChgSel.c 1999-10-03 21:34:54.000000000 +0200
908 -+++ emacs-21.4/oldXMenu/ChgSel.c 2007-03-19 15:10:02.000000000 +0100
909 -@@ -13,6 +13,7 @@
910 - *
911 - */
912 -
913 -+#include <config.h>
914 - #include "XMenuInt.h"
915 -
916 - int
917
918 diff --git a/emacs/21.4/11_all_Xaw3d-headers.patch b/emacs/21.4/11_all_Xaw3d-headers.patch
919 deleted file mode 100644
920 index 26d7a85..0000000
921 --- a/emacs/21.4/11_all_Xaw3d-headers.patch
922 +++ /dev/null
923 @@ -1,72 +0,0 @@
924 -diff -ur emacs-21.4-orig/src/xfns.c emacs-21.4/src/xfns.c
925 ---- emacs-21.4-orig/src/xfns.c 2002-12-06 18:05:35.000000000 +0100
926 -+++ emacs-21.4/src/xfns.c 2007-04-19 01:56:40.000000000 +0200
927 -@@ -69,8 +69,13 @@
928 - #include <X11/Shell.h>
929 -
930 - #ifndef USE_MOTIF
931 -+#ifdef HAVE_XAW3D
932 -+#include <X11/Xaw3d/Paned.h>
933 -+#include <X11/Xaw3d/Label.h>
934 -+#else /* !HAVE_XAW3D */
935 - #include <X11/Xaw/Paned.h>
936 - #include <X11/Xaw/Label.h>
937 -+#endif /* HAVE_XAW3D */
938 - #endif /* USE_MOTIF */
939 -
940 - #ifdef USG
941 -diff -ur emacs-21.4-orig/src/xmenu.c emacs-21.4/src/xmenu.c
942 ---- emacs-21.4-orig/src/xmenu.c 2002-01-06 07:18:19.000000000 +0100
943 -+++ emacs-21.4/src/xmenu.c 2007-04-19 01:56:40.000000000 +0200
944 -@@ -73,7 +73,11 @@
945 - #include <X11/StringDefs.h>
946 - #include <X11/Shell.h>
947 - #ifdef USE_LUCID
948 -+#ifdef HAVE_XAW3D
949 -+#include <X11/Xaw3d/Paned.h>
950 -+#else /* !HAVE_XAW3D */
951 - #include <X11/Xaw/Paned.h>
952 -+#endif /* HAVE_XAW3D */
953 - #endif /* USE_LUCID */
954 - #include "../lwlib/lwlib.h"
955 - #else /* not USE_X_TOOLKIT */
956 -diff -ur emacs-21.4-orig/lwlib/lwlib.c emacs-21.4/lwlib/lwlib.c
957 ---- emacs-21.4-orig/lwlib/lwlib.c 2000-09-30 19:03:27.000000000 +0200
958 -+++ emacs-21.4/lwlib/lwlib.c 2007-04-19 01:56:40.000000000 +0200
959 -@@ -49,7 +49,11 @@
960 - #include "lwlib-Xol.h"
961 - #endif
962 - #if defined (USE_XAW)
963 -+#ifdef HAVE_XAW3D
964 -+#include <X11/Xaw3d/Paned.h>
965 -+#else /* !HAVE_XAW3D */
966 - #include <X11/Xaw/Paned.h>
967 -+#endif /* HAVE_XAW3D */
968 - #include "lwlib-Xaw.h"
969 - #endif
970 -
971 -diff -ur emacs-21.4-orig/lwlib/lwlib-Xaw.c emacs-21.4/lwlib/lwlib-Xaw.c
972 ---- emacs-21.4-orig/lwlib/lwlib-Xaw.c 2001-02-28 15:55:17.000000000 +0100
973 -+++ emacs-21.4/lwlib/lwlib-Xaw.c 2007-04-19 01:56:40.000000000 +0200
974 -@@ -31,12 +31,21 @@
975 - #include <X11/CoreP.h>
976 - #include <X11/Shell.h>
977 -
978 -+#ifdef HAVE_XAW3D
979 -+#include <X11/Xaw3d/Scrollbar.h>
980 -+#include <X11/Xaw3d/Paned.h>
981 -+#include <X11/Xaw3d/Dialog.h>
982 -+#include <X11/Xaw3d/Form.h>
983 -+#include <X11/Xaw3d/Command.h>
984 -+#include <X11/Xaw3d/Label.h>
985 -+#else /* !HAVE_XAW3D */
986 - #include <X11/Xaw/Scrollbar.h>
987 - #include <X11/Xaw/Paned.h>
988 - #include <X11/Xaw/Dialog.h>
989 - #include <X11/Xaw/Form.h>
990 - #include <X11/Xaw/Command.h>
991 - #include <X11/Xaw/Label.h>
992 -+#endif /* HAVE_XAW3D */
993 -
994 - #include <X11/Xatom.h>
995 -
996
997 diff --git a/emacs/21.4/12_all_freebsd-terminfo.patch b/emacs/21.4/12_all_freebsd-terminfo.patch
998 deleted file mode 100644
999 index 0741dbe..0000000
1000 --- a/emacs/21.4/12_all_freebsd-terminfo.patch
1001 +++ /dev/null
1002 @@ -1,16 +0,0 @@
1003 -Taken from FreeBSD Ports
1004 -
1005 ---- src/s/freebsd.h.orig Tue Feb 20 19:52:17 2001
1006 -+++ src/s/freebsd.h Mon Feb 18 11:51:50 2002
1007 -@@ -68,6 +68,11 @@
1008 - #define LIBS_SYSTEM -lutil
1009 - #if __FreeBSD_version < 400000
1010 - #define LIBS_TERMCAP -ltermcap
1011 -+#else
1012 -+#ifdef HAVE_LIBNCURSES
1013 -+#define TERMINFO
1014 -+#define LIBS_TERMCAP -lncurses
1015 -+#endif
1016 - #endif
1017 -
1018 - #define SYSV_SYSTEM_DIR
1019
1020 diff --git a/emacs/21.4/13_all_oldxmenu-malloc.patch b/emacs/21.4/13_all_oldxmenu-malloc.patch
1021 deleted file mode 100644
1022 index c7d45e6..0000000
1023 --- a/emacs/21.4/13_all_oldxmenu-malloc.patch
1024 +++ /dev/null
1025 @@ -1,11 +0,0 @@
1026 ---- emacs-21.4/oldXMenu/XMakeAssoc.c~ 1999-10-03 21:35:22.000000000 +0200
1027 -+++ emacs-21.4/oldXMenu/XMakeAssoc.c 2007-05-28 22:21:57.000000000 +0200
1028 -@@ -91,7 +91,7 @@
1029 - /* If we are here then the new entry should be inserted just */
1030 - /* before the current value of "Entry". */
1031 - /* Create a new XAssoc and load it with new provided data. */
1032 -- new_entry = (XAssoc *) xmalloc(sizeof(XAssoc));
1033 -+ new_entry = (XAssoc *) malloc(sizeof(XAssoc));
1034 - new_entry->display = dpy;
1035 - new_entry->x_id = x_id;
1036 - new_entry->data = data;
1037
1038 diff --git a/emacs/21.4/14_all_gif-image-size.patch b/emacs/21.4/14_all_gif-image-size.patch
1039 deleted file mode 100644
1040 index 506e310..0000000
1041 --- a/emacs/21.4/14_all_gif-image-size.patch
1042 +++ /dev/null
1043 @@ -1,34 +0,0 @@
1044 ---- emacs21-21.4a+1.orig/src/xfns.c
1045 -+++ emacs21-21.4a+1/src/xfns.c
1046 -@@ -9805,8 +9805,17 @@
1047 - return 0;
1048 - }
1049 -
1050 -- width = img->width = max (gif->SWidth, gif->Image.Left + gif->Image.Width);
1051 -- height = img->height = max (gif->SHeight, gif->Image.Top + gif->Image.Height);
1052 -+ image_top = gif->SavedImages[ino].ImageDesc.Top;
1053 -+ image_left = gif->SavedImages[ino].ImageDesc.Left;
1054 -+ image_width = gif->SavedImages[ino].ImageDesc.Width;
1055 -+ image_height = gif->SavedImages[ino].ImageDesc.Height;
1056 -+
1057 -+ width = img->width = max (gif->SWidth,
1058 -+ max (gif->Image.Left + gif->Image.Width,
1059 -+ image_left + image_width));
1060 -+ height = img->height = max (gif->SHeight,
1061 -+ max (gif->Image.Top + gif->Image.Height,
1062 -+ image_top + image_height));
1063 -
1064 - /* Create the X image and pixmap. */
1065 - if (!x_create_x_image_and_pixmap (f, width, height, 0, &ximg, &img->pixmap))
1066 -@@ -9839,11 +9848,6 @@
1067 - requires more than can be done here (see the gif89 spec,
1068 - disposal methods). Let's simply assume that the part
1069 - not covered by a sub-image is in the frame's background color. */
1070 -- image_top = gif->SavedImages[ino].ImageDesc.Top;
1071 -- image_left = gif->SavedImages[ino].ImageDesc.Left;
1072 -- image_width = gif->SavedImages[ino].ImageDesc.Width;
1073 -- image_height = gif->SavedImages[ino].ImageDesc.Height;
1074 --
1075 - for (y = 0; y < image_top; ++y)
1076 - for (x = 0; x < width; ++x)
1077 - XPutPixel (ximg, x, y, FRAME_BACKGROUND_PIXEL (f));
1078
1079 diff --git a/emacs/21.4/15_all_format-int.patch b/emacs/21.4/15_all_format-int.patch
1080 deleted file mode 100644
1081 index b825031..0000000
1082 --- a/emacs/21.4/15_all_format-int.patch
1083 +++ /dev/null
1084 @@ -1,11 +0,0 @@
1085 ---- emacs-21.4-orig/src/editfns.c 2003-01-20 12:03:33.000000000 +0100
1086 -+++ emacs-21.4/src/editfns.c 2007-11-25 17:02:54.000000000 +0100
1087 -@@ -3266,7 +3266,7 @@
1088 - && *format != 'i' && *format != 'X' && *format != 'c')
1089 - error ("Invalid format operation %%%c", *format);
1090 -
1091 -- thissize = 30;
1092 -+ thissize = 30 + (precision > 0 ? precision : 0);
1093 - if (*format == 'c'
1094 - && (! SINGLE_BYTE_CHAR_P (XINT (args[n]))
1095 - || XINT (args[n]) == 0))
1096
1097 diff --git a/emacs/21.4/16_all_vcdiff-tmp-race.patch b/emacs/21.4/16_all_vcdiff-tmp-race.patch
1098 deleted file mode 100644
1099 index 7f59d6a..0000000
1100 --- a/emacs/21.4/16_all_vcdiff-tmp-race.patch
1101 +++ /dev/null
1102 @@ -1,25 +0,0 @@
1103 -Steve Grubb of Red Hat discovered that vcdiff script as shipped with Emacs
1104 -(confirmed in versions 20.7 to 22.1.50) uses temporary files insecurely,
1105 -which makes it possible for local attacker to conduct a symlink attack and
1106 -make the victim overwrite arbitrary file.
1107 -
1108 -diff -ur emacs-21.4.orig/lib-src/vcdiff emacs-21.4/lib-src/vcdiff
1109 ---- emacs-21.4.orig/lib-src/vcdiff 2006-09-28 12:07:51.000000000 -0400
1110 -+++ emacs-21.4/lib-src/vcdiff 2006-09-28 15:58:53.000000000 -0400
1111 -@@ -86,14 +86,14 @@
1112 - case $f in
1113 - s.* | */s.*)
1114 - if
1115 -- rev1=/tmp/geta$$
1116 -+ rev1=`mktemp /tmp/geta.XXXXXXXX`
1117 - get -s -p -k $sid1 "$f" > $rev1 &&
1118 - case $sid2 in
1119 - '')
1120 - workfile=`expr " /$f" : '.*/s.\(.*\)'`
1121 - ;;
1122 - *)
1123 -- rev2=/tmp/getb$$
1124 -+ rev2=`mktemp /tmp/getb.XXXXXXXX`
1125 - get -s -p -k $sid2 "$f" > $rev2
1126 - workfile=$rev2
1127 - esac
1128
1129 diff --git a/emacs/21.4/17_all_bss-heap-gap.patch b/emacs/21.4/17_all_bss-heap-gap.patch
1130 deleted file mode 100644
1131 index c2e0ebc..0000000
1132 --- a/emacs/21.4/17_all_bss-heap-gap.patch
1133 +++ /dev/null
1134 @@ -1,95 +0,0 @@
1135 -http://bugs.gentoo.org/221281
1136 -temacs segfaults in dump-emacs under Linux 2.6.25
1137 -Patch backported from Emacs 22 and upstream bug 900.
1138 -It comprises parts of the following changes:
1139 -
1140 -2008-10-21 Jan Djärv <jan.h.d@×××××××.se>
1141 -
1142 - * emacs.c (main): Unconditionally set PER_LINUX32 and exec
1143 - temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined
1144 -
1145 -2005-07-01 Masatake YAMATO <jet@××××.org>
1146 -
1147 - * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
1148 -
1149 -2004-10-20 Jan Djärv <jan.h.d@×××××××.se>
1150 -
1151 - * configure.in (HAVE_PERSONALITY_LINUX32): New test if PER_LINUX32
1152 - can be set.
1153 -
1154 ---- emacs-21.4-orig/configure.in 2008-05-11 00:02:58.000000000 +0200
1155 -+++ emacs-21.4/configure.in 2008-05-11 00:29:23.000000000 +0200
1156 -@@ -1358,6 +1358,18 @@
1157 - AC_CHECK_HEADERS(sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
1158 - linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
1159 - termcap.h stdio_ext.h fcntl.h term.h strings.h)
1160 -+
1161 -+AC_MSG_CHECKING(if personality LINUX32 can be set)
1162 -+AC_TRY_COMPILE([#include <sys/personality.h>], [personality (PER_LINUX32)],
1163 -+ emacs_cv_personality_linux32=yes,
1164 -+ emacs_cv_personality_linux32=no)
1165 -+AC_MSG_RESULT($emacs_cv_personality_linux32)
1166 -+
1167 -+if test $emacs_cv_personality_linux32 = yes; then
1168 -+ AC_DEFINE(HAVE_PERSONALITY_LINUX32, 1,
1169 -+ [Define to 1 if personality LINUX32 can be set.])
1170 -+fi
1171 -+
1172 - AC_HEADER_STDC
1173 - AC_HEADER_TIME
1174 - AC_DECL_SYS_SIGLIST
1175 ---- emacs-21.4-orig/src/config.in 2002-07-09 00:23:31.000000000 +0200
1176 -+++ emacs-21.4/src/config.in 2008-05-11 00:13:38.000000000 +0200
1177 -@@ -183,6 +183,7 @@
1178 - #undef HAVE_UALARM
1179 - #undef HAVE_SYS_WAIT_H
1180 - #undef HAVE_STRINGS_H
1181 -+#undef HAVE_PERSONALITY_LINUX32
1182 -
1183 - #undef HAVE_LIBDNET
1184 - #undef HAVE_LIBPTHREADS
1185 ---- emacs-21.4-orig/src/emacs.c 2002-08-29 21:27:07.000000000 +0200
1186 -+++ emacs-21.4/src/emacs.c 2008-05-11 00:26:38.000000000 +0200
1187 -@@ -61,6 +61,13 @@
1188 - #include <sys/resource.h>
1189 - #endif
1190 -
1191 -+#ifdef HAVE_PERSONALITY_LINUX32
1192 -+#include <sys/personality.h>
1193 -+#ifndef ADDR_NO_RANDOMIZE
1194 -+#define ADDR_NO_RANDOMIZE 0x0040000
1195 -+#endif
1196 -+#endif
1197 -+
1198 - #ifndef O_RDWR
1199 - #define O_RDWR 2
1200 - #endif
1201 -@@ -763,6 +770,28 @@
1202 - }
1203 - }
1204 -
1205 -+#ifdef HAVE_PERSONALITY_LINUX32
1206 -+ /* See if there is a gap between the end of BSS and the heap.
1207 -+ In that case, set personality and exec ourself again. */
1208 -+ if (!initialized
1209 -+ && (strcmp (argv[argc-1], "dump") == 0
1210 -+ || strcmp (argv[argc-1], "bootstrap") == 0)
1211 -+ && !getenv ("EMACS_HEAP_EXEC"))
1212 -+ {
1213 -+ /* Set this so we only do this once. */
1214 -+ putenv ("EMACS_HEAP_EXEC=true");
1215 -+
1216 -+ /* A flag to turn off address randomization which is introduced
1217 -+ in linux kernel shipped with fedora core 4 */
1218 -+ personality (PER_LINUX32 | ADDR_NO_RANDOMIZE);
1219 -+
1220 -+ execvp (argv[0], argv);
1221 -+
1222 -+ /* If the exec fails, try to dump anyway. */
1223 -+ perror ("execvp");
1224 -+ }
1225 -+#endif /* HAVE_PERSONALITY_LINUX32 */
1226 -+
1227 - /* Map in shared memory, if we are using that. */
1228 - #ifdef HAVE_SHM
1229 - if (argmatch (argv, argc, "-nl", "--no-shared-memory", 6, NULL, &skip_args))
1230
1231 diff --git a/emacs/21.4/18_all_fast-lock.patch b/emacs/21.4/18_all_fast-lock.patch
1232 deleted file mode 100644
1233 index 84ba996..0000000
1234 --- a/emacs/21.4/18_all_fast-lock.patch
1235 +++ /dev/null
1236 @@ -1,45 +0,0 @@
1237 -http://bugs.gentoo.org/221197
1238 -CVE-2008-2142
1239 -
1240 ---- emacs-21.4-orig/lisp/fast-lock.el 2001-07-15 18:15:34.000000000 +0200
1241 -+++ emacs-21.4/lisp/fast-lock.el 2008-05-12 22:43:07.000000000 +0200
1242 -@@ -278,7 +278,7 @@
1243 - (integer :tag "size")))))
1244 - :group 'fast-lock)
1245 -
1246 --(defcustom fast-lock-cache-directories '("." "~/.emacs-flc")
1247 -+(defcustom fast-lock-cache-directories '("~/.emacs-flc")
1248 - ; - `internal', keep each file's Font Lock cache file in the same file.
1249 - ; - `external', keep each file's Font Lock cache file in the same directory.
1250 - "*Directories in which Font Lock cache files are saved and read.
1251 -@@ -296,13 +296,18 @@
1252 - ((\"^/your/true/home/directory/\" . \".\") \"~/.emacs-flc\")
1253 -
1254 - would cause a file's current directory to be used if the file is under your
1255 --home directory hierarchy, or otherwise the absolute directory `~/.emacs-flc'."
1256 -+home directory hierarchy, or otherwise the absolute directory `~/.emacs-flc'.
1257 -+For security reasons, it is not advisable to use the file's current directory
1258 -+to avoid the possibility of using the cache of another user."
1259 - :type '(repeat (radio (directory :tag "directory")
1260 - (cons :tag "Matching"
1261 - (regexp :tag "regexp")
1262 - (directory :tag "directory"))))
1263 - :group 'fast-lock)
1264 -
1265 -+;;;###autoload
1266 -+(put 'fast-lock-cache-directories 'risky-local-variable t)
1267 -+
1268 - (defcustom fast-lock-save-events '(kill-buffer kill-emacs)
1269 - "*Events under which caches will be saved.
1270 - Valid events are `save-buffer', `kill-buffer' and `kill-emacs'.
1271 ---- emacs-21.4-orig/lisp/loaddefs.el 2003-03-18 15:36:18.000000000 +0100
1272 -+++ emacs-21.4/lisp/loaddefs.el 2008-05-12 22:47:58.000000000 +0200
1273 -@@ -6963,6 +6963,8 @@
1274 - ;;;;;; "fast-lock.el" (15611 31344))
1275 - ;;; Generated autoloads from fast-lock.el
1276 -
1277 -+(put (quote fast-lock-cache-directories) (quote risky-local-variable) t)
1278 -+
1279 - (autoload (quote fast-lock-mode) "fast-lock" "\
1280 - Toggle Fast Lock mode.
1281 - With arg, turn Fast Lock mode on if and only if arg is positive and the buffer
1282
1283 diff --git a/emacs/21.4/19_all_autoconf-2.61.patch b/emacs/21.4/19_all_autoconf-2.61.patch
1284 deleted file mode 100644
1285 index 4877d86..0000000
1286 --- a/emacs/21.4/19_all_autoconf-2.61.patch
1287 +++ /dev/null
1288 @@ -1,50 +0,0 @@
1289 -Update configure.in to work with autoconf 2.61.
1290 -
1291 ---- emacs-21.4-orig/Makefile.in
1292 -+++ emacs-21.4/Makefile.in
1293 -@@ -273,7 +273,7 @@
1294 - config.status: ${srcdir}/configure
1295 - ./config.status --recheck
1296 -
1297 --${srcdir}/configure: configure.in aclocal.m4
1298 -+${srcdir}/configure: configure.in
1299 - cd ${srcdir} && autoconf
1300 -
1301 - src/Makefile: $(srcdir)/src/Makefile.in config.status
1302 ---- emacs-21.4-orig/configure.in
1303 -+++ emacs-21.4/configure.in
1304 -@@ -23,7 +23,7 @@
1305 - dnl Free Software Foundation, Inc., 59 Temple Place - Suite 330,
1306 - dnl Boston, MA 02111-1307, USA.
1307 -
1308 --AC_PREREQ(2.8)dnl
1309 -+AC_PREREQ(2.61)dnl
1310 - AC_INIT(src/lisp.h)
1311 - AC_CONFIG_HEADER(src/config.h:src/config.in)
1312 -
1313 -@@ -1345,6 +1345,9 @@
1314 - CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
1315 - fi
1316 -
1317 -+dnl For AC_FUNC_GETLOADAVG, at least:
1318 -+AC_CONFIG_LIBOBJ_DIR(src)
1319 -+
1320 - dnl Do this early because it can frob feature test macros for Unix-98 &c.
1321 - AC_SYS_LARGEFILE
1322 -
1323 -@@ -2069,11 +2072,11 @@
1324 - AC_CHECK_HEADERS(krb5.h)
1325 - else
1326 - AC_CHECK_HEADERS(des.h,,
1327 -- AC_CHECK_HEADERS(kerberosIV/des.h,,
1328 -- AC_CHECK_HEADERS(kerberos/des.h)))
1329 -+ [AC_CHECK_HEADERS(kerberosIV/des.h,,
1330 -+ [AC_CHECK_HEADERS(kerberos/des.h)])])
1331 - AC_CHECK_HEADERS(krb.h,,
1332 -- AC_CHECK_HEADERS(kerberosIV/krb.h,,
1333 -- AC_CHECK_HEADERS(kerberos/krb.h)))
1334 -+ [AC_CHECK_HEADERS(kerberosIV/krb.h,,
1335 -+ [AC_CHECK_HEADERS(kerberos/krb.h)])])
1336 - fi
1337 - AC_CHECK_HEADERS(com_err.h)
1338 - fi
1339
1340 diff --git a/emacs/21.4/20_all_manpage-install.patch b/emacs/21.4/20_all_manpage-install.patch
1341 deleted file mode 100644
1342 index 590ace6..0000000
1343 --- a/emacs/21.4/20_all_manpage-install.patch
1344 +++ /dev/null
1345 @@ -1,13 +0,0 @@
1346 -http://bugs.gentoo.org/165466
1347 -
1348 ---- emacs-21.4-orig/Makefile.in
1349 -+++ emacs-21.4/Makefile.in
1350 -@@ -448,7 +448,7 @@
1351 - -chmod -R a+r ${datadir}/emacs ${COPYDESTS} ${infodir}
1352 - thisdir=`/bin/pwd`; \
1353 - cd ${srcdir}/etc; \
1354 -- for page in emacs etags ctags gfdl ; do \
1355 -+ for page in emacs emacsclient etags ctags ; do \
1356 - (cd $${thisdir}; \
1357 - ${INSTALL_DATA} ${srcdir}/etc/$${page}.1 ${man1dir}/$${page}${manext}; \
1358 - chmod a+r ${man1dir}/$${page}${manext}); \
1359
1360 diff --git a/emacs/21.4/21_all_libpng14.patch b/emacs/21.4/21_all_libpng14.patch
1361 deleted file mode 100644
1362 index cf16275..0000000
1363 --- a/emacs/21.4/21_all_libpng14.patch
1364 +++ /dev/null
1365 @@ -1,22 +0,0 @@
1366 -Fix building with libpng-1.4.
1367 -
1368 ---- emacs-21.4-orig/src/xfns.c
1369 -+++ emacs-21.4/src/xfns.c
1370 -@@ -8641,7 +8641,7 @@
1371 -
1372 - /* Check PNG signature. */
1373 - if (fread (sig, 1, sizeof sig, fp) != sizeof sig
1374 -- || !png_check_sig (sig, sizeof sig))
1375 -+ || png_sig_cmp (sig, 0, sizeof sig))
1376 - {
1377 - image_error ("Not a PNG file: `%s'", file, Qnil);
1378 - UNGCPRO;
1379 -@@ -8658,7 +8658,7 @@
1380 -
1381 - /* Check PNG signature. */
1382 - if (tbr.len < sizeof sig
1383 -- || !png_check_sig (tbr.bytes, sizeof sig))
1384 -+ || png_sig_cmp (tbr.bytes, 0, sizeof sig))
1385 - {
1386 - image_error ("Not a PNG image: `%s'", img->spec, Qnil);
1387 - UNGCPRO;
1388
1389 diff --git a/emacs/21.4/22_all_cpp-4.5.patch b/emacs/21.4/22_all_cpp-4.5.patch
1390 deleted file mode 100644
1391 index 9a09909..0000000
1392 --- a/emacs/21.4/22_all_cpp-4.5.patch
1393 +++ /dev/null
1394 @@ -1,25 +0,0 @@
1395 -http://bugs.gentoo.org/308653
1396 -http://debbugs.gnu.org/5047
1397 -http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41748
1398 -Fix building with GNU CPP 4.5, patch backported from upstream CVS.
1399 -
1400 ---- emacs-21.4-orig/configure.in
1401 -+++ emacs-21.4/configure.in
1402 -@@ -2350,7 +2350,7 @@
1403 - sed -e '1,/start of cpp stuff/d'\
1404 - -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
1405 - < Makefile.c > junk.c
1406 -- $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \
1407 -+ $CPP -P $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \
1408 - sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c
1409 - cat junk1.c junk2.c > Makefile.new
1410 - rm -f junk.c junk1.c junk2.c
1411 -@@ -2366,7 +2366,7 @@
1412 - sed -e '1,/start of cpp stuff/d'\
1413 - -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
1414 - < Makefile.c > junk.c
1415 -- $CPP $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \
1416 -+ $CPP -P $undefs -I. -I$top_srcdir/src $CPPFLAGS junk.c | \
1417 - sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c
1418 - cat junk1.c junk2.c > Makefile.new
1419 - rm -f junk.c junk1.c junk2.c
1420
1421 diff --git a/emacs/21.4/23_all_libpng15.patch b/emacs/21.4/23_all_libpng15.patch
1422 deleted file mode 100644
1423 index 4516b19..0000000
1424 --- a/emacs/21.4/23_all_libpng15.patch
1425 +++ /dev/null
1426 @@ -1,22 +0,0 @@
1427 -https://bugs.gentoo.org/384553
1428 -
1429 ---- emacs-21.4-orig/src/xfns.c
1430 -+++ emacs-21.4/src/xfns.c
1431 -@@ -8546,7 +8546,7 @@
1432 - {
1433 - xassert (png_ptr != NULL);
1434 - image_error ("PNG error: %s", build_string (msg), Qnil);
1435 -- longjmp (png_ptr->jmpbuf, 1);
1436 -+ longjmp (png_jmpbuf (png_ptr), 1);
1437 - }
1438 -
1439 -
1440 -@@ -8704,7 +8704,7 @@
1441 -
1442 - /* Set error jump-back. We come back here when the PNG library
1443 - detects an error. */
1444 -- if (setjmp (png_ptr->jmpbuf))
1445 -+ if (setjmp (png_jmpbuf (png_ptr)))
1446 - {
1447 - error:
1448 - if (png_ptr)
1449
1450 diff --git a/emacs/21.4/24_all_libXaw3d-1.6.patch b/emacs/21.4/24_all_libXaw3d-1.6.patch
1451 deleted file mode 100644
1452 index b8fdf3b..0000000
1453 --- a/emacs/21.4/24_all_libXaw3d-1.6.patch
1454 +++ /dev/null
1455 @@ -1,12 +0,0 @@
1456 -Fix compilation with libXaw3d-1.6.
1457 -
1458 ---- emacs-21.4-orig/src/xterm.c 2012-06-11 23:35:23.000000000 +0200
1459 -+++ emacs-21.4/src/xterm.c 2012-06-11 23:37:13.000000000 +0200
1460 -@@ -119,6 +119,7 @@
1461 - #include <X11/Xaw3d/Simple.h>
1462 - #include <X11/Xaw3d/Scrollbar.h>
1463 - #define ARROW_SCROLLBAR
1464 -+#define XAW_ARROW_SCROLLBARS
1465 - #include <X11/Xaw3d/ScrollbarP.h>
1466 - #else /* !HAVE_XAW3D */
1467 - #include <X11/Xaw/Simple.h>
1468
1469 diff --git a/emacs/22.3/01_all_Xaw3d-headers.patch b/emacs/22.3/01_all_Xaw3d-headers.patch
1470 deleted file mode 100644
1471 index 8b4f332..0000000
1472 --- a/emacs/22.3/01_all_Xaw3d-headers.patch
1473 +++ /dev/null
1474 @@ -1,150 +0,0 @@
1475 ---- emacs-22.1-orig/src/xfns.c 2007-06-02 06:00:11.000000000 +0200
1476 -+++ emacs-22.1/src/xfns.c 2007-07-01 17:19:35.000000000 +0200
1477 -@@ -72,8 +72,13 @@
1478 - #include <X11/Shell.h>
1479 -
1480 - #ifndef USE_MOTIF
1481 -+#ifdef HAVE_XAW3D
1482 -+#include <X11/Xaw3d/Paned.h>
1483 -+#include <X11/Xaw3d/Label.h>
1484 -+#else /* !HAVE_XAW3D */
1485 - #include <X11/Xaw/Paned.h>
1486 - #include <X11/Xaw/Label.h>
1487 -+#endif /* HAVE_XAW3D */
1488 - #endif /* USE_MOTIF */
1489 -
1490 - #ifdef USG
1491 ---- emacs-22.1-orig/src/xmenu.c 2007-05-14 16:56:31.000000000 +0200
1492 -+++ emacs-22.1/src/xmenu.c 2007-07-01 17:19:35.000000000 +0200
1493 -@@ -82,7 +82,11 @@
1494 - #include <X11/StringDefs.h>
1495 - #include <X11/Shell.h>
1496 - #ifdef USE_LUCID
1497 -+#ifdef HAVE_XAW3D
1498 -+#include <X11/Xaw3d/Paned.h>
1499 -+#else /* !HAVE_XAW3D */
1500 - #include <X11/Xaw/Paned.h>
1501 -+#endif /* HAVE_XAW3D */
1502 - #endif /* USE_LUCID */
1503 - #include "../lwlib/lwlib.h"
1504 - #else /* not USE_X_TOOLKIT */
1505 ---- emacs-22.1-orig/lwlib/lwlib.c 2007-04-20 15:27:29.000000000 +0200
1506 -+++ emacs-22.1/lwlib/lwlib.c 2007-07-01 17:19:35.000000000 +0200
1507 -@@ -48,7 +48,11 @@
1508 - #endif /* not USE_MOTIF && USE_LUCID */
1509 - #endif
1510 - #if defined (USE_XAW)
1511 -+#ifdef HAVE_XAW3D
1512 -+#include <X11/Xaw3d/Paned.h>
1513 -+#else /* !HAVE_XAW3D */
1514 - #include <X11/Xaw/Paned.h>
1515 -+#endif /* HAVE_XAW3D */
1516 - #include "lwlib-Xaw.h"
1517 - #endif
1518 -
1519 ---- emacs-22.1-orig/lwlib/lwlib-Xaw.c 2007-04-20 15:27:29.000000000 +0200
1520 -+++ emacs-22.1/lwlib/lwlib-Xaw.c 2007-07-01 17:19:35.000000000 +0200
1521 -@@ -35,12 +35,21 @@
1522 - #include <X11/CoreP.h>
1523 - #include <X11/Shell.h>
1524 -
1525 -+#ifdef HAVE_XAW3D
1526 -+#include <X11/Xaw3d/Scrollbar.h>
1527 -+#include <X11/Xaw3d/Paned.h>
1528 -+#include <X11/Xaw3d/Dialog.h>
1529 -+#include <X11/Xaw3d/Form.h>
1530 -+#include <X11/Xaw3d/Command.h>
1531 -+#include <X11/Xaw3d/Label.h>
1532 -+#else /* !HAVE_XAW3D */
1533 - #include <X11/Xaw/Scrollbar.h>
1534 - #include <X11/Xaw/Paned.h>
1535 - #include <X11/Xaw/Dialog.h>
1536 - #include <X11/Xaw/Form.h>
1537 - #include <X11/Xaw/Command.h>
1538 - #include <X11/Xaw/Label.h>
1539 -+#endif /* HAVE_XAW3D */
1540 -
1541 - #include <X11/Xatom.h>
1542 -
1543 ---- emacs-22.1-orig/configure.in 2007-05-25 14:43:29.000000000 +0200
1544 -+++ emacs-22.1/configure.in 2007-07-01 17:19:35.000000000 +0200
1545 -@@ -2205,29 +2205,45 @@
1546 -
1547 - dnl Do not put whitespace before the #include statements below.
1548 - dnl Older compilers (eg sunos4 cc) choke on it.
1549 -+HAVE_XAW3D=no
1550 - if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
1551 -- if test x"${HAVE_X11R5}" = xyes; then
1552 -- AC_MSG_CHECKING(X11 version 5 with Xaw)
1553 -- AC_CACHE_VAL(emacs_cv_x11_version_5_with_xaw,
1554 -+ if test x"${HAVE_X11R5}" != xyes; then
1555 -+ USE_X_TOOLKIT=none
1556 -+ else
1557 -+ AC_MSG_CHECKING(for xaw3d)
1558 -+ AC_CACHE_VAL(emacs_cv_xaw3d,
1559 - [AC_TRY_LINK([
1560 - #include <X11/Intrinsic.h>
1561 --#include <X11/Xaw/Simple.h>],
1562 -+#include <X11/Xaw3d/Simple.h>],
1563 - [],
1564 -- emacs_cv_x11_version_5_with_xaw=yes,
1565 -- emacs_cv_x11_version_5_with_xaw=no)])
1566 -- if test $emacs_cv_x11_version_5_with_xaw = yes; then
1567 -- AC_MSG_RESULT([5 or newer, with Xaw; use toolkit by default])
1568 -+ emacs_cv_xaw3d=yes,
1569 -+ emacs_cv_xaw3d=no)])
1570 -+ if test $emacs_cv_xaw3d = yes; then
1571 -+ AC_MSG_RESULT([yes; using Lucid toolkit])
1572 - USE_X_TOOLKIT=LUCID
1573 -+ HAVE_XAW3D=yes
1574 -+ AC_DEFINE(HAVE_XAW3D, 1,
1575 -+ [Define to 1 if you have the Xaw3d library (-lXaw3d).])
1576 - else
1577 -- if test x"${USE_X_TOOLKIT}" = xLUCID; then
1578 -+ AC_MSG_RESULT(no)
1579 -+ AC_MSG_CHECKING(for libXaw)
1580 -+ AC_CACHE_VAL(emacs_cv_xaw,
1581 -+ [AC_TRY_LINK([
1582 -+#include <X11/Intrinsic.h>
1583 -+#include <X11/Xaw/Simple.h>],
1584 -+ [],
1585 -+ emacs_cv_xaw=yes,
1586 -+ emacs_cv_xaw=no)])
1587 -+ if test $emacs_cv_xaw = yes; then
1588 -+ AC_MSG_RESULT([yes; using Lucid toolkit])
1589 -+ USE_X_TOOLKIT=LUCID
1590 -+ elif test x"${USE_X_TOOLKIT}" = xLUCID; then
1591 - AC_MSG_ERROR([Lucid toolkit requires X11/Xaw include files])
1592 - else
1593 -- AC_MSG_RESULT(before 5 or no Xaw; do not use toolkit by default)
1594 -+ AC_MSG_RESULT([no; do not use toolkit by default])
1595 - USE_X_TOOLKIT=none
1596 - fi
1597 - fi
1598 -- else
1599 -- USE_X_TOOLKIT=none
1600 - fi
1601 - fi
1602 -
1603 -@@ -2315,21 +2331,6 @@
1604 - fi
1605 - fi
1606 -
1607 --### Is -lXaw3d available?
1608 --HAVE_XAW3D=no
1609 --if test "${HAVE_X11}" = "yes"; then
1610 -- if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
1611 -- dnl Fixme: determine what Scrollbar.h needs to avoid compilation
1612 -- dnl errors from the test without the `-'.
1613 -- AC_CHECK_HEADER(X11/Xaw3d/Scrollbar.h,
1614 -- [AC_CHECK_LIB(Xaw3d, XawScrollbarSetThumb, HAVE_XAW3D=yes)], , -)
1615 -- if test "${HAVE_XAW3D}" = "yes"; then
1616 -- AC_DEFINE(HAVE_XAW3D, 1,
1617 -- [Define to 1 if you have the Xaw3d library (-lXaw3d).])
1618 -- fi
1619 -- fi
1620 --fi
1621 --
1622 - dnl Use toolkit scroll bars if configured for GTK or X toolkit and either
1623 - dnl using Motif or Xaw3d is available, and unless
1624 - dnl --with-toolkit-scroll-bars=no was specified.
1625
1626 diff --git a/emacs/22.3/02_all_freebsd-sparc.patch b/emacs/22.3/02_all_freebsd-sparc.patch
1627 deleted file mode 100644
1628 index de206e7..0000000
1629 --- a/emacs/22.3/02_all_freebsd-sparc.patch
1630 +++ /dev/null
1631 @@ -1,17 +0,0 @@
1632 -http://bugs.gentoo.org/159584
1633 -Patch taken from FreeBSD ports, by Giorgos Keramidas <keramida@×××××××.org>
1634 -
1635 ---- emacs-orig/src/alloc.c
1636 -+++ emacs/src/alloc.c
1637 -@@ -4573,7 +4573,11 @@
1638 - needed on ia64 too. See mach_dep.c, where it also says inline
1639 - assembler doesn't work with relevant proprietary compilers. */
1640 - #ifdef __sparc__
1641 -+#ifdef __sparc64__
1642 -+ asm ("flushw");
1643 -+#else
1644 - asm ("ta 3");
1645 -+#endif
1646 - #endif
1647 -
1648 - /* Save registers that we need to see on the stack. We need to see
1649
1650 diff --git a/emacs/22.3/03_all_sh.patch b/emacs/22.3/03_all_sh.patch
1651 deleted file mode 100644
1652 index c4a6469..0000000
1653 --- a/emacs/22.3/03_all_sh.patch
1654 +++ /dev/null
1655 @@ -1,26 +0,0 @@
1656 ---- emacs-22.2-orig/configure.in 2008-09-26 07:20:44.000000000 +0200
1657 -+++ emacs-22.2/configure.in 2008-09-30 12:57:06.000000000 +0200
1658 -@@ -1192,6 +1192,16 @@
1659 - machine=mips opsys=gnu-linux
1660 - ;;
1661 -
1662 -+ ## SuperH (little endian) Linux-based GNU system
1663 -+ sh[34]-*-linux-gnu* )
1664 -+ machine=sh3el opsys=gnu-linux
1665 -+ ;;
1666 -+
1667 -+ ## SuperH (big endian) Linux-based GNU system
1668 -+ sh[34]eb-*-linux-gnu* )
1669 -+ machine=sh3eb opsys=gnu-linux
1670 -+ ;;
1671 -+
1672 - ## UXP/DS
1673 - sparc-fujitsu-sysv4* )
1674 - machine=sparc opsys=uxpds
1675 ---- emacs-22.2-orig/src/m/sh3eb.h 1970-01-01 01:00:00.000000000 +0100
1676 -+++ emacs-22.2/src/m/sh3eb.h 2008-09-30 12:59:44.000000000 +0200
1677 -@@ -0,0 +1,4 @@
1678 -+/* machine description file for big-endian SuperH. */
1679 -+
1680 -+#include "sh3el.h"
1681 -+#define WORDS_BIG_ENDIAN
1682
1683 diff --git a/emacs/22.3/04_all_linux-random-heap.patch b/emacs/22.3/04_all_linux-random-heap.patch
1684 deleted file mode 100644
1685 index 37bee82..0000000
1686 --- a/emacs/22.3/04_all_linux-random-heap.patch
1687 +++ /dev/null
1688 @@ -1,15 +0,0 @@
1689 -http://bugs.gentoo.org/236579
1690 -http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=900
1691 -Fixes sporadic segmentation faults in unexec.
1692 -
1693 ---- emacs-22.3-orig/src/emacs.c 2008-05-12 10:30:13.000000000 +0200
1694 -+++ emacs-22.3/src/emacs.c 2008-10-21 16:45:50.000000000 +0200
1695 -@@ -883,7 +883,7 @@
1696 - if (!initialized
1697 - && (strcmp (argv[argc-1], "dump") == 0
1698 - || strcmp (argv[argc-1], "bootstrap") == 0)
1699 -- && heap_bss_diff > MAX_HEAP_BSS_DIFF)
1700 -+ /*&& heap_bss_diff > MAX_HEAP_BSS_DIFF*/)
1701 - {
1702 - if (! getenv ("EMACS_HEAP_EXEC"))
1703 - {
1704
1705 diff --git a/emacs/22.3/05_all_gtk-menu.patch b/emacs/22.3/05_all_gtk-menu.patch
1706 deleted file mode 100644
1707 index 09b7c46..0000000
1708 --- a/emacs/22.3/05_all_gtk-menu.patch
1709 +++ /dev/null
1710 @@ -1,168 +0,0 @@
1711 -http://bugs.gentoo.org/292007
1712 -http://emacsbugs.donarmstrong.com/4122
1713 -http://bugs.gentoo.org/292492
1714 -http://emacsbugs.donarmstrong.com/4336
1715 -Fix updating of menus with GTK+ 2.18
1716 -Patch by Jan Djärv <jan.h.d@×××××××.se>, backported from upstream CVS
1717 -
1718 ---- emacs-22.3-orig/src/xfns.c
1719 -+++ emacs-22.3/src/xfns.c
1720 -@@ -374,10 +374,7 @@
1721 - #ifdef USE_GTK
1722 - GtkWidget *gwdesc = xg_win_to_widget (dpyinfo->display, wdesc);
1723 - if (gwdesc != 0
1724 -- && (gwdesc == x->widget
1725 -- || gwdesc == x->edit_widget
1726 -- || gwdesc == x->vbox_widget
1727 -- || gwdesc == x->menubar_widget))
1728 -+ && gtk_widget_get_toplevel (gwdesc) == x->widget)
1729 - found = f;
1730 - #else
1731 - if (wdesc == XtWindow (x->widget)
1732 -@@ -398,54 +395,6 @@
1733 - return found;
1734 - }
1735 -
1736 --/* Likewise, but exclude the menu bar widget. */
1737 --
1738 --struct frame *
1739 --x_non_menubar_window_to_frame (dpyinfo, wdesc)
1740 -- struct x_display_info *dpyinfo;
1741 -- int wdesc;
1742 --{
1743 -- Lisp_Object tail, frame;
1744 -- struct frame *f;
1745 -- struct x_output *x;
1746 --
1747 -- if (wdesc == None) return 0;
1748 --
1749 -- for (tail = Vframe_list; GC_CONSP (tail); tail = XCDR (tail))
1750 -- {
1751 -- frame = XCAR (tail);
1752 -- if (!GC_FRAMEP (frame))
1753 -- continue;
1754 -- f = XFRAME (frame);
1755 -- if (!FRAME_X_P (f) || FRAME_X_DISPLAY_INFO (f) != dpyinfo)
1756 -- continue;
1757 -- x = f->output_data.x;
1758 -- /* This frame matches if the window is any of its widgets. */
1759 -- if (x->hourglass_window == wdesc)
1760 -- return f;
1761 -- else if (x->widget)
1762 -- {
1763 --#ifdef USE_GTK
1764 -- GtkWidget *gwdesc = xg_win_to_widget (dpyinfo->display, wdesc);
1765 -- if (gwdesc != 0
1766 -- && (gwdesc == x->widget
1767 -- || gwdesc == x->edit_widget
1768 -- || gwdesc == x->vbox_widget))
1769 -- return f;
1770 --#else
1771 -- if (wdesc == XtWindow (x->widget)
1772 -- || wdesc == XtWindow (x->column_widget)
1773 -- || wdesc == XtWindow (x->edit_widget))
1774 -- return f;
1775 --#endif
1776 -- }
1777 -- else if (FRAME_X_WINDOW (f) == wdesc)
1778 -- /* A tooltip frame. */
1779 -- return f;
1780 -- }
1781 -- return 0;
1782 --}
1783 --
1784 - /* Likewise, but consider only the menu bar widget. */
1785 -
1786 - struct frame *
1787 -@@ -473,15 +422,14 @@
1788 - if (x->menubar_widget)
1789 - {
1790 - GtkWidget *gwdesc = xg_win_to_widget (dpyinfo->display, wdesc);
1791 -- int found = 0;
1792 -
1793 -- BLOCK_INPUT;
1794 -+ /* This gives false positives, but the rectangle check in xterm.c
1795 -+ where this is called takes care of that. */
1796 - if (gwdesc != 0
1797 - && (gwdesc == x->menubar_widget
1798 -- || gtk_widget_get_parent (gwdesc) == x->menubar_widget))
1799 -- found = 1;
1800 -- UNBLOCK_INPUT;
1801 -- if (found) return f;
1802 -+ || gtk_widget_is_ancestor (x->menubar_widget, gwdesc)
1803 -+ || gtk_widget_is_ancestor (gwdesc, x->menubar_widget)))
1804 -+ return f;
1805 - }
1806 - #else
1807 - if (x->menubar_widget
1808 ---- emacs-22.3-orig/src/xterm.c
1809 -+++ emacs-22.3/src/xterm.c
1810 -@@ -110,8 +110,6 @@
1811 - #if defined (USE_X_TOOLKIT) || defined (USE_GTK)
1812 -
1813 - extern void free_frame_menubar P_ ((struct frame *));
1814 --extern struct frame *x_menubar_window_to_frame P_ ((struct x_display_info *,
1815 -- int));
1816 - #endif
1817 -
1818 - #ifdef USE_X_TOOLKIT
1819 -@@ -144,11 +142,6 @@
1820 -
1821 - #endif /* USE_X_TOOLKIT */
1822 -
1823 --#if ! defined (USE_X_TOOLKIT) && ! defined (USE_GTK)
1824 --#define x_any_window_to_frame x_window_to_frame
1825 --#define x_top_window_to_frame x_window_to_frame
1826 --#endif
1827 --
1828 - #ifdef USE_X_TOOLKIT
1829 - #include "widget.h"
1830 - #ifndef XtNinitialState
1831 -@@ -3789,6 +3782,14 @@
1832 - if (child == None || child == win)
1833 - break;
1834 -
1835 -+#ifdef USE_GTK
1836 -+ /* We don't wan't to know the innermost window. We
1837 -+ want the edit window. For non-Gtk+ the innermost
1838 -+ window is the edit window. For Gtk+ it might not
1839 -+ be. It might be the tool bar for example. */
1840 -+ if (x_window_to_frame (FRAME_X_DISPLAY_INFO (*fp), win))
1841 -+ break;
1842 -+#endif
1843 - win = child;
1844 - parent_x = win_x;
1845 - parent_y = win_y;
1846 -@@ -3805,8 +3806,14 @@
1847 - parent_{x,y} are invalid, but that's okay, because we'll
1848 - never use them in that case.) */
1849 -
1850 -+#ifdef USE_GTK
1851 -+ /* We don't wan't to know the innermost window. We
1852 -+ want the edit window. */
1853 -+ f1 = x_window_to_frame (FRAME_X_DISPLAY_INFO (*fp), win);
1854 -+#else
1855 - /* Is win one of our frames? */
1856 - f1 = x_any_window_to_frame (FRAME_X_DISPLAY_INFO (*fp), win);
1857 -+#endif
1858 -
1859 - #ifdef USE_X_TOOLKIT
1860 - /* If we end up with the menu bar window, say it's not
1861 ---- emacs-22.3-orig/src/xterm.h
1862 -+++ emacs-22.3/src/xterm.h
1863 -@@ -412,10 +412,13 @@
1864 -
1865 - extern struct frame *x_window_to_frame P_ ((struct x_display_info *, int));
1866 -
1867 --#if defined (USE_X_TOOLKIT) || defined (USE_GTK)
1868 - extern struct frame *x_any_window_to_frame P_ ((struct x_display_info *, int));
1869 --extern struct frame *x_non_menubar_window_to_frame P_ ((struct x_display_info *, int));
1870 -+extern struct frame *x_menubar_window_to_frame P_ ((struct x_display_info *, int));
1871 - extern struct frame *x_top_window_to_frame P_ ((struct x_display_info *, int));
1872 -+
1873 -+#if ! defined (USE_X_TOOLKIT) && ! defined (USE_GTK)
1874 -+#define x_any_window_to_frame x_window_to_frame
1875 -+#define x_top_window_to_frame x_window_to_frame
1876 - #endif
1877 -
1878 - /* This is a chain of structures for all the X displays currently in use. */
1879
1880 diff --git a/emacs/22.3/06_all_libpng14.patch b/emacs/22.3/06_all_libpng14.patch
1881 deleted file mode 100644
1882 index 53c5b73..0000000
1883 --- a/emacs/22.3/06_all_libpng14.patch
1884 +++ /dev/null
1885 @@ -1,49 +0,0 @@
1886 -http://repos.archlinux.org/wsvn/packages/emacs/trunk/libpng14.patch
1887 -
1888 ---- emacs-22.3-orig/src/image.c
1889 -+++ emacs-22.3/src/image.c
1890 -@@ -6338,7 +6338,7 @@
1891 - /* PNG library details. */
1892 -
1893 - DEF_IMGLIB_FN (png_get_io_ptr);
1894 --DEF_IMGLIB_FN (png_check_sig);
1895 -+DEF_IMGLIB_FN (png_sig_cmp);
1896 - DEF_IMGLIB_FN (png_create_read_struct);
1897 - DEF_IMGLIB_FN (png_create_info_struct);
1898 - DEF_IMGLIB_FN (png_destroy_read_struct);
1899 -@@ -6369,7 +6369,7 @@
1900 - return 0;
1901 -
1902 - LOAD_IMGLIB_FN (library, png_get_io_ptr);
1903 -- LOAD_IMGLIB_FN (library, png_check_sig);
1904 -+ LOAD_IMGLIB_FN (library, png_sig_cmp);
1905 - LOAD_IMGLIB_FN (library, png_create_read_struct);
1906 - LOAD_IMGLIB_FN (library, png_create_info_struct);
1907 - LOAD_IMGLIB_FN (library, png_destroy_read_struct);
1908 -@@ -6394,7 +6394,7 @@
1909 - #else
1910 -
1911 - #define fn_png_get_io_ptr png_get_io_ptr
1912 --#define fn_png_check_sig png_check_sig
1913 -+#define fn_png_sig_cmp png_sig_cmp
1914 - #define fn_png_create_read_struct png_create_read_struct
1915 - #define fn_png_create_info_struct png_create_info_struct
1916 - #define fn_png_destroy_read_struct png_destroy_read_struct
1917 -@@ -6541,7 +6541,7 @@
1918 -
1919 - /* Check PNG signature. */
1920 - if (fread (sig, 1, sizeof sig, fp) != sizeof sig
1921 -- || !fn_png_check_sig (sig, sizeof sig))
1922 -+ || fn_png_sig_cmp (sig, 0, sizeof sig))
1923 - {
1924 - image_error ("Not a PNG file: `%s'", file, Qnil);
1925 - UNGCPRO;
1926 -@@ -6558,7 +6558,7 @@
1927 -
1928 - /* Check PNG signature. */
1929 - if (tbr.len < sizeof sig
1930 -- || !fn_png_check_sig (tbr.bytes, sizeof sig))
1931 -+ || fn_png_sig_cmp (tbr.bytes, 0, sizeof sig))
1932 - {
1933 - image_error ("Not a PNG image: `%s'", img->spec, Qnil);
1934 - UNGCPRO;
1935
1936 diff --git a/emacs/22.3/07_all_cpp-4.5.patch b/emacs/22.3/07_all_cpp-4.5.patch
1937 deleted file mode 100644
1938 index 7cc391f..0000000
1939 --- a/emacs/22.3/07_all_cpp-4.5.patch
1940 +++ /dev/null
1941 @@ -1,25 +0,0 @@
1942 -http://bugs.gentoo.org/308653
1943 -http://debbugs.gnu.org/5047
1944 -http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41748
1945 -Fix building with GNU CPP 4.5, patch from upstream CVS.
1946 -
1947 ---- emacs-22.3-orig/configure.in
1948 -+++ emacs-22.3/configure.in
1949 -@@ -3388,7 +3388,7 @@
1950 - sed -e '1,/start of cpp stuff/d'\
1951 - -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
1952 - < Makefile.c > junk.c
1953 -- $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
1954 -+ $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
1955 - sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c
1956 - cat junk1.c junk2.c > Makefile.new
1957 - rm -f junk.c junk1.c junk2.c
1958 -@@ -3404,7 +3404,7 @@
1959 - sed -e '1,/start of cpp stuff/d'\
1960 - -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
1961 - < Makefile.c > junk.c
1962 -- $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
1963 -+ $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
1964 - sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c
1965 - cat junk1.c junk2.c > Makefile.new
1966 - rm -f junk.c junk1.c junk2.c
1967
1968 diff --git a/emacs/22.3/08_all_gameuser.patch b/emacs/22.3/08_all_gameuser.patch
1969 deleted file mode 100644
1970 index 4a6ba5e..0000000
1971 --- a/emacs/22.3/08_all_gameuser.patch
1972 +++ /dev/null
1973 @@ -1,18 +0,0 @@
1974 -http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7717
1975 -Patch backported to Emacs 22.
1976 -
1977 ---- emacs-22.3-orig/configure.in
1978 -+++ emacs-22.3/configure.in
1979 -@@ -156,6 +156,12 @@
1980 - locallisppath=${enableval}
1981 - fi)
1982 -
1983 -+AC_ARG_WITH(gameuser,
1984 -+[ --with-gameuser=USER user for shared game score files])
1985 -+test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
1986 -+ && gameuser="${with_gameuser}"
1987 -+test "X$gameuser" = X && gameuser=games
1988 -+
1989 - #### Make srcdir absolute, if it isn't already. It's important to
1990 - #### avoid running the path through pwd unnecessarily, since pwd can
1991 - #### give you automounter prefixes, which can go away. We do all this
1992
1993 diff --git a/emacs/22.3/09_all_info-dir.patch b/emacs/22.3/09_all_info-dir.patch
1994 deleted file mode 100644
1995 index 992c105..0000000
1996 --- a/emacs/22.3/09_all_info-dir.patch
1997 +++ /dev/null
1998 @@ -1,48 +0,0 @@
1999 -http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7942
2000 -Backported to Emacs 22.
2001 -
2002 ---- emacs-22.3-orig/Makefile.in
2003 -+++ emacs-22.3/Makefile.in
2004 -@@ -504,29 +504,24 @@
2005 - thisdir=`/bin/pwd`; \
2006 - if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd $(DESTDIR)${infodir} && /bin/pwd)` ]; \
2007 - then \
2008 -- (cd $(DESTDIR)${infodir}; \
2009 -- if [ -f dir ]; then true; \
2010 -- else \
2011 -- (cd $${thisdir}; \
2012 -- ${INSTALL_DATA} ${srcdir}/info/dir $(DESTDIR)${infodir}/dir; \
2013 -- chmod a+r $(DESTDIR)${infodir}/dir); \
2014 -- fi; \
2015 -- cd ${srcdir}/info ; \
2016 -+ (cd ${srcdir}/info ; \
2017 - for elt in $(INFO_FILES); do \
2018 - for f in `ls $$elt $$elt-[1-9] $$elt-[1-9][0-9] 2>/dev/null`; do \
2019 - ${INSTALL_DATA} $$f $(DESTDIR)${infodir}/$$f; \
2020 - chmod a+r $(DESTDIR)${infodir}/$$f; \
2021 - done; \
2022 -- done); \
2023 -- else true; fi
2024 -- -unset CDPATH; \
2025 -- thisdir=`/bin/pwd`; \
2026 -- if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd $(DESTDIR)${infodir} && /bin/pwd)` ]; \
2027 -- then \
2028 -- for elt in $(INFO_FILES); do \
2029 -- (cd $${thisdir}; \
2030 -- ${INSTALL_INFO} --info-dir=$(DESTDIR)${infodir} $(DESTDIR)${infodir}/$$elt); \
2031 -- done; \
2032 -+ done; \
2033 -+ cd $(DESTDIR)${infodir}; \
2034 -+ if [ -f dir ]; then \
2035 -+ for elt in $(INFO_FILES); do \
2036 -+ (cd $${thisdir}; \
2037 -+ ${INSTALL_INFO} --info-dir=$(DESTDIR)${infodir} $(DESTDIR)${infodir}/$$elt); \
2038 -+ done; \
2039 -+ else \
2040 -+ (cd $${thisdir}; \
2041 -+ ${INSTALL_DATA} ${srcdir}/info/dir $(DESTDIR)${infodir}/dir; \
2042 -+ chmod a+r $(DESTDIR)${infodir}/dir); \
2043 -+ fi); \
2044 - else true; fi
2045 - -chmod -R a+r $(DESTDIR)${datadir}/emacs/${version} $(DESTDIR)${datadir}/emacs/site-lisp ${COPYDESTS} $(DESTDIR)${infodir}
2046 - thisdir=`/bin/pwd`; \
2047
2048 diff --git a/emacs/22.3/10_all_libpng15.patch b/emacs/22.3/10_all_libpng15.patch
2049 deleted file mode 100644
2050 index d16a7da..0000000
2051 --- a/emacs/22.3/10_all_libpng15.patch
2052 +++ /dev/null
2053 @@ -1,22 +0,0 @@
2054 -https://bugs.gentoo.org/384553
2055 -
2056 ---- emacs-22.3-orig/src/image.c
2057 -+++ emacs-22.3/src/image.c
2058 -@@ -6427,7 +6427,7 @@
2059 - {
2060 - xassert (png_ptr != NULL);
2061 - image_error ("PNG error: %s", build_string (msg), Qnil);
2062 -- longjmp (png_ptr->jmpbuf, 1);
2063 -+ longjmp (png_jmpbuf (png_ptr), 1);
2064 - }
2065 -
2066 -
2067 -@@ -6603,7 +6603,7 @@
2068 -
2069 - /* Set error jump-back. We come back here when the PNG library
2070 - detects an error. */
2071 -- if (setjmp (png_ptr->jmpbuf))
2072 -+ if (setjmp (png_jmpbuf (png_ptr)))
2073 - {
2074 - error:
2075 - if (png_ptr)