Gentoo Archives: gentoo-commits

From: "Ulrich Mueller (ulm)" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in src/patchsets/emacs/21.4: 01_all_xorg.patch 02_all_amd64.patch 03_all_hppa.patch 04_all_sh.patch 05_all_libungif-gif-gentoo.patch 06_ppc64_ppc64.patch 07_ppc64_fix-unexelf.patch 08_all_autosave-tmp.patch 09_all_blessmail-build.patch 10_all_qa.patch 11_all_Xaw3d-headers.patch 12_all_freebsd-terminfo.patch 13_all_oldxmenu-malloc.patch 14_all_gif-image-size.patch 15_all_format-int.patch
Date: Fri, 21 Dec 2007 21:08:08
Message-Id: E1J5p64-00042d-0H@stork.gentoo.org
1 ulm 07/12/21 21:07:55
2
3 Added: 01_all_xorg.patch 02_all_amd64.patch
4 03_all_hppa.patch 04_all_sh.patch
5 05_all_libungif-gif-gentoo.patch
6 06_ppc64_ppc64.patch 07_ppc64_fix-unexelf.patch
7 08_all_autosave-tmp.patch
8 09_all_blessmail-build.patch 10_all_qa.patch
9 11_all_Xaw3d-headers.patch
10 12_all_freebsd-terminfo.patch
11 13_all_oldxmenu-malloc.patch
12 14_all_gif-image-size.patch 15_all_format-int.patch
13 Log:
14 Add patchset for emacs-21.4
15
16 Revision Changes Path
17 1.1 src/patchsets/emacs/21.4/01_all_xorg.patch
18
19 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/emacs/21.4/01_all_xorg.patch?rev=1.1&view=markup
20 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/emacs/21.4/01_all_xorg.patch?rev=1.1&content-type=text/plain
21
22 Index: 01_all_xorg.patch
23 ===================================================================
24 diff -Naur emacs-21.3-old/src/xterm.h emacs-21.3/src/xterm.h
25 --- emacs-21.3-old/src/xterm.h 2002-02-22 11:41:44.000000000 +0100
26 +++ emacs-21.3/src/xterm.h 2004-10-30 12:33:12.000000000 +0200
27 @@ -21,8 +21,8 @@
28
29 #include <X11/Xlib.h>
30 #include <X11/cursorfont.h>
31 -#include <X11/Xutil.h>
32 #include <X11/keysym.h>
33 +#include <X11/Xutil.h>
34 #include <X11/Xatom.h>
35 #include <X11/Xresource.h>
36
37
38
39 1.1 src/patchsets/emacs/21.4/02_all_amd64.patch
40
41 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/emacs/21.4/02_all_amd64.patch?rev=1.1&view=markup
42 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/emacs/21.4/02_all_amd64.patch?rev=1.1&content-type=text/plain
43
44 Index: 02_all_amd64.patch
45 ===================================================================
46 diff -Naur emacs-21.3-old/configure emacs-21.3/configure
47 --- emacs-21.3-old/configure 2003-12-14 03:34:27.000000000 +0000
48 +++ emacs-21.3/configure 2003-12-14 03:35:13.000000000 +0000
49 @@ -1632,6 +1632,11 @@
50 machine=ia64 opsys=gnu-linux
51 ;;
52
53 + ## X86-64
54 + x86_64*-*-linux* )
55 + machine=x86_64 opsys=gnu-linux
56 + ;;
57 +
58 ## Intel 386 machines where we don't care about the manufacturer
59 i[3456]86-*-* )
60 machine=intel386
61 diff -Naur emacs-21.3-old/configure.in emacs-21.3/configure.in
62 --- emacs-21.3-old/configure.in 2003-12-14 03:34:27.000000000 +0000
63 +++ emacs-21.3/configure.in 2003-12-14 03:35:04.000000000 +0000
64 @@ -1006,6 +1006,11 @@
65 machine=ia64 opsys=gnu-linux
66 ;;
67
68 + ## X86-64
69 + x86_64*-*-linux* )
70 + machine=x86_64 opsys=gnu-linux
71 + ;;
72 +
73 ## Intel 386 machines where we don't care about the manufacturer
74 i[3456]86-*-* )
75 machine=intel386
76 diff -Naur emacs-21.3-old/src/m/x86_64.h emacs-21.3/src/m/x86_64.h
77 --- emacs-21.3-old/src/m/x86_64.h 1970-01-01 00:00:00.000000000 +0000
78 +++ emacs-21.3/src/m/x86_64.h 2003-12-14 03:35:04.000000000 +0000
79 @@ -0,0 +1,175 @@
80 +/* machine description file for the X86-64 architecture.
81 + Copyright (C) 2000 Free Software Foundation, Inc.
82 +
83 +This file is part of GNU Emacs.
84 +
85 +GNU Emacs is free software; you can redistribute it and/or modify
86 +it under the terms of the GNU General Public License as published by
87 +the Free Software Foundation; either version 1, or (at your option)
88 +any later version.
89 +
90 +GNU Emacs is distributed in the hope that it will be useful,
91 +but WITHOUT ANY WARRANTY; without even the implied warranty of
92 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
93 +GNU General Public License for more details.
94 +
95 +You should have received a copy of the GNU General Public License
96 +along with GNU Emacs; see the file COPYING. If not, write to
97 +the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
98 +Boston, MA 02111-1307, USA. */
99 +
100 +#define BITS_PER_LONG 64
101 +#define BITS_PER_EMACS_INT 64
102 +
103 +/* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word
104 + is the most significant byte. */
105 +
106 +#undef WORDS_BIG_ENDIAN
107 +
108 +/* Define NO_ARG_ARRAY if you cannot take the address of the first of a
109 + group of arguments and treat it as an array of the arguments. */
110 +
111 +#define NO_ARG_ARRAY
112 +
113 +/* Define WORD_MACHINE if addresses and such have
114 + to be corrected before they can be used as byte counts. */
115 +
116 +/* #define WORD_MACHINE */
117 +
118 +/* Now define a symbol for the cpu type, if your compiler
119 + does not define it automatically:
120 + Ones defined so far include vax, m68000, ns16000, pyramid,
121 + orion, tahoe, APOLLO and many others */
122 +
123 +/* __x86_64__ defined automatically */
124 +
125 +
126 +/* Use type EMACS_INT rather than a union, to represent Lisp_Object */
127 +/* This is desirable for most machines. */
128 +
129 +#define NO_UNION_TYPE
130 +
131 +/* Define the type to use. */
132 +#define EMACS_INT long
133 +#define EMACS_UINT unsigned long
134 +#define SPECIAL_EMACS_INT
135 +
136 +/* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
137 + the 24-bit bit field into an int. In other words, if bit fields
138 + are always unsigned.
139 +
140 + If you use NO_UNION_TYPE, this flag does not matter. */
141 +
142 +#define EXPLICIT_SIGN_EXTEND
143 +
144 +/* Data type of load average, as read out of kmem. */
145 +
146 +#define LOAD_AVE_TYPE long
147 +
148 +/* Convert that into an integer that is 100 for a load average of 1.0 */
149 +
150 +#define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
151 +
152 +/* Define CANNOT_DUMP on machines where unexec does not work.
153 + Then the function dump-emacs will not be defined
154 + and temacs will do (load "loadup") automatically unless told otherwise. */
155 +#if 0
156 +#define CANNOT_DUMP
157 +#endif
158 +
159 +/* Define VIRT_ADDR_VARIES if the virtual addresses of
160 + pure and impure space as loaded can vary, and even their
161 + relative order cannot be relied on.
162 +
163 + Otherwise Emacs assumes that text space precedes data space,
164 + numerically. */
165 +
166 +/* #define VIRT_ADDR_VARIES */
167 +
168 +/* Define C_ALLOCA if this machine does not support a true alloca
169 + and the one written in C should be used instead.
170 + Define HAVE_ALLOCA to say that the system provides a properly
171 + working alloca function and it should be used.
172 + Define neither one if an assembler-language alloca
173 + in the file alloca.s should be used. */
174 +
175 +#define HAVE_ALLOCA
176 +
177 +/* Define the following if GNU malloc and the relocating allocator do
178 + not work together with X. */
179 +
180 +/* #define SYSTEM_MALLOC */
181 +
182 +/* Define NO_REMAP if memory segmentation makes it not work well
183 + to change the boundary between the text section and data section
184 + when Emacs is dumped. If you define this, the preloaded Lisp
185 + code will not be sharable; but that's better than failing completely. */
186 +
187 +/* #define NO_REMAP */
188 +
189 +/* Some really obscure 4.2-based systems (like Sequent DYNIX) do not
190 + support asynchronous I/O (using SIGIO) on sockets, even though it
191 + works fine on tty's. If you have one of these systems, define the
192 + following, and then use it in config.h (or elsewhere) to decide
193 + when (not) to use SIGIO.
194 +
195 + You'd think this would go in an operating-system description file,
196 + but since it only occurs on some, but not all, BSD systems, the
197 + reasonable place to select for it is in the machine description
198 + file. */
199 +
200 +/* #define NO_SOCK_SIGIO */
201 +
202 +#ifdef __ELF__
203 +#undef UNEXEC
204 +#define UNEXEC unexelf.o
205 +#endif
206 +
207 +#define PNTR_COMPARISON_TYPE unsigned long
208 +
209 +/* On the 64 bit architecture, we can use 60 bits for addresses */
210 +
211 +#define VALBITS 60
212 +
213 +/* Define XINT and XUINT so that they can take arguments of type int */
214 +
215 +#define XINT(a) (((long) (a) << (BITS_PER_LONG - VALBITS)) >> (BITS_PER_LONG - VALBITS))
216 +#define XUINT(a) ((long) (a) & VALMASK)
217 +
218 +/* Declare malloc and realloc in a way that is clean.
219 + But not in makefiles! */
220 +
221 +#ifndef NOT_C_CODE
222 +/* We need these because pointers are larger than the default ints. */
223 +# if !defined(__NetBSD__) && !defined(__OpenBSD__)
224 +# include <alloca.h>
225 +# else
226 +# include <stdlib.h>
227 +# endif
228 +
229 +/* We need to prototype these for the lib-src programs even if we don't
230 + use the system malloc for the Emacs proper. */
231 +#ifdef _MALLOC_INTERNAL
232 +/* These declarations are designed to match the ones in gmalloc.c. */
233 +#if defined (__STDC__) && __STDC__
234 +extern void *malloc (), *realloc (), *calloc ();
235 +#else
236 +extern char *malloc (), *realloc (), *calloc ();
237 +#endif
238 +#else /* not _MALLOC_INTERNAL */
239 +extern void *malloc (), *realloc (), *calloc ();
240 +#endif /* not _MALLOC_INTERNAL */
241 +
242 +#ifdef REL_ALLOC
243 +#ifndef _MALLOC_INTERNAL
244 +/* "char *" because ralloc.c defines it that way. gmalloc.c thinks it
245 + is allowed to prototype these as "void *" so we don't prototype in
246 + that case. You're right: it stinks! */
247 +extern char *r_alloc (), *r_re_alloc ();
248 +extern void r_alloc_free ();
249 +#endif /* not _MALLOC_INTERNAL */
250 +#endif /* REL_ALLOC */
251 +
252 +#endif /* not NOT_C_CODE */
253 +
254 +#define HAVE_TEXT_START
255 diff -Naur emacs-21.3-old/src/s/gnu-linux.h emacs-21.3/src/s/gnu-linux.h
256 --- emacs-21.3-old/src/s/gnu-linux.h 2003-12-14 03:34:28.000000000 +0000
257 +++ emacs-21.3/src/s/gnu-linux.h 2003-12-14 03:35:04.000000000 +0000
258 @@ -173,8 +173,12 @@
259 /* GNU/Linux usually has crt0.o in a non-standard place */
260 #define START_FILES pre-crt0.o /usr/lib/crt0.o
261 #else
262 +#if defined(__x86_64)
263 +#define START_FILES pre-crt0.o /usr/lib64/crt1.o /usr/lib64/crti.o
264 +#else
265 #define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o
266 #endif
267 +#endif
268
269 #ifdef __ELF__
270 /* Here is how to find X Windows. LD_SWITCH_X_SITE_AUX gives an -R option
271 @@ -225,8 +229,12 @@
272 #else
273 #undef LIB_GCC
274 #define LIB_GCC
275 +#if defined(__x86_64)
276 +#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib64/crtn.o
277 +#else
278 #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtn.o
279 #endif
280 +#endif
281
282 /* Don't use -g in test compiles in configure.
283 This is so we will use the same shared libs for that linking
284
285
286
287 1.1 src/patchsets/emacs/21.4/03_all_hppa.patch
288
289 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/emacs/21.4/03_all_hppa.patch?rev=1.1&view=markup
290 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/emacs/21.4/03_all_hppa.patch?rev=1.1&content-type=text/plain
291
292 Index: 03_all_hppa.patch
293 ===================================================================
294 diff -uNr emacs-21.3.orig/configure emacs-21.3/configure
295 --- emacs-21.3.orig/configure 2003-12-20 15:03:19.622159984 +0000
296 +++ emacs-21.3/configure 2003-12-20 15:13:56.550332184 +0000
297 @@ -1179,6 +1179,10 @@
298 machine=hp800 opsys=nextstep
299 ;;
300
301 + hppa*-*-linux-gnu* )
302 + machine=hp800 psys=gnu-linux
303 + ;;
304 +
305 ## Orion machines
306 orion-orion-bsd* )
307 machine=orion opsys=bsd4-2
308 diff -uNr emacs-21.3.orig/configure.in emacs-21.3/configure.in
309 --- emacs-21.3.orig/configure.in 2003-12-20 15:03:19.624159680 +0000
310 +++ emacs-21.3/configure.in 2003-12-20 15:15:22.825216408 +0000
311 @@ -553,6 +553,10 @@
312 machine=hp800 opsys=nextstep
313 ;;
314
315 + hppa*-*-linux-gnu* )
316 + machine=hp800 opsys=gnu-linux
317 + ;;
318 +
319 ## Orion machines
320 orion-orion-bsd* )
321 machine=orion opsys=bsd4-2
322 --- emacs21-21.2.orig/src/m/hp800.h
323 +++ emacs21-21.2/src/m/hp800.h
324 @@ -85,7 +85,7 @@
325 #define bcmp memcmp
326 #endif
327
328 -#ifdef __hpux
329 +#if defined(__hpux) || defined(__linux__)
330 /* Now define a symbol for the cpu type, if your compiler
331 does not define it automatically:
332 Ones defined so far include vax, m68000, ns16000, pyramid,
333 @@ -94,6 +94,15 @@
334 # define hp9000s800
335 #endif
336
337 +#ifdef __linux__
338 +/* Data type of load average, as read out of kmem. */
339 +
340 +#define LOAD_AVE_TYPE long
341 +
342 +/* Convert that into an integer that is 100 for a load average of 1.0 */
343 +
344 +#define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
345 +#else
346 /* Data type of load average, as read out of kmem. */
347
348 #define LOAD_AVE_TYPE double
349 @@ -101,7 +110,7 @@
350 /* Convert that into an integer that is 100 for a load average of 1.0 */
351
352 #define LOAD_AVE_CVT(x) ((int) (x * 100.0))
353 -
354 +#endif
355
356 /* Define CANNOT_DUMP on machines where unexec does not work.
357 Then the function dump-emacs will not be defined
358 @@ -116,6 +125,7 @@
359 Otherwise Emacs assumes that text space precedes data space,
360 numerically. */
361
362 +#ifdef __hpux
363 #define VIRT_ADDR_VARIES
364
365 /* Define C_ALLOCA if this machine does not support a true alloca
366 @@ -134,6 +144,9 @@
367
368 #define DATA_START 0x40000000
369 #define TEXT_START 0x00000000
370 +#else
371 +#define HAVE_ALLOCA
372 +#endif
373
374 #define STACK_DIRECTION 1
375
376 @@ -147,6 +160,7 @@
377 /* This machine requires completely different unexec code
378 which lives in a separate file. Specify the file name. */
379
380 +#ifdef __hpux
381 #define UNEXEC unexhp9k800.o
382
383 #define LIBS_MACHINE
384 @@ -179,5 +193,5 @@
385
386 #define index strchr
387 #define rindex strrchr
388 -
389 -#endif /* __hpux */
390 +#endif
391 +#endif
392
393
394
395 1.1 src/patchsets/emacs/21.4/04_all_sh.patch
396
397 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/emacs/21.4/04_all_sh.patch?rev=1.1&view=markup
398 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/emacs/21.4/04_all_sh.patch?rev=1.1&content-type=text/plain
399
400 Index: 04_all_sh.patch
401 ===================================================================
402 --- emacs21-21.2.orig/configure.in
403 +++ emacs21-21.2/configure.in
404 @@ -1055,6 +1055,16 @@
405 machine=mipsel opsys=gnu-linux
406 ;;
407
408 + ## SuperH (little endian) Linux-based GNU system
409 + sh[34]-*-linux-gnu* )
410 + machine=sh opsys=gnu-linux
411 + ;;
412 +
413 + ## SuperH (big endian) Linux-based GNU system
414 + sh[34]eb-*-linux-gnu* )
415 + machine=sheb opsys=gnu-linux
416 + ;;
417 +
418 ## UXP/DS
419 sparc-fujitsu-sysv4* )
420 machine=sparc opsys=uxpds
421 --- emacs21-21.2.orig/src/m/sh.h
422 +++ emacs21-21.2/src/m/sh.h
423 @@ -0,0 +1,122 @@
424 +/* machine description file for Hitach SuperH.
425 + Copyright (C) 2000 Free Software Foundation, Inc.
426 +
427 +This file is part of GNU Emacs.
428 +
429 +GNU Emacs is free software; you can redistribute it and/or modify
430 +it under the terms of the GNU General Public License as published by
431 +the Free Software Foundation; either version 2, or (at your option)
432 +any later version.
433 +
434 +GNU Emacs is distributed in the hope that it will be useful,
435 +but WITHOUT ANY WARRANTY; without even the implied warranty of
436 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
437 +GNU General Public License for more details.
438 +
439 +You should have received a copy of the GNU General Public License
440 +along with GNU Emacs; see the file COPYING. If not, write to
441 +the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
442 +Boston, MA 02111-1307, USA. */
443 +
444 +
445 +/* The following line tells the configuration script what sort of
446 + operating system this machine is likely to run.
447 + USUAL-OPSYS="<name of system .h file here, without the s- or .h>" */
448 +
449 +/* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word
450 + is the most significant byte. */
451 +
452 +#undef WORDS_BIG_ENDIAN
453 +
454 +/* Define NO_ARG_ARRAY if you cannot take the address of the first of a
455 + * group of arguments and treat it as an array of the arguments. */
456 +
457 +#define NO_ARG_ARRAY
458 +
459 +/* Define WORD_MACHINE if addresses and such have
460 + * to be corrected before they can be used as byte counts. */
461 +
462 +#undef WORD_MACHINE
463 +
464 +/* Now define a symbol for the cpu type, if your compiler
465 + does not define it automatically:
466 + Ones defined so far include vax, m68000, ns16000, pyramid,
467 + orion, tahoe, APOLLO and many others */
468 +#define SUPERH
469 +
470 +/* Use type int rather than a union, to represent Lisp_Object */
471 +/* This is desirable for most machines. */
472 +
473 +#define NO_UNION_TYPE
474 +
475 +/* Define EXPLICIT_SIGN_EXTEND if XINT must explicitly sign-extend
476 + the 24-bit bit field into an int. In other words, if bit fields
477 + are always unsigned.
478 +
479 + If you use NO_UNION_TYPE, this flag does not matter. */
480 +
481 +#define EXPLICIT_SIGN_EXTEND
482 +
483 +/* Data type of load average, as read out of kmem. */
484 +
485 +#define LOAD_AVE_TYPE long
486 +
487 +/* Convert that into an integer that is 100 for a load average of 1.0 */
488 +
489 +#define LOAD_AVE_CVT(x) (int) (((double) (x)) * 100.0 / FSCALE)
490 +
491 +/* Define CANNOT_DUMP on machines where unexec does not work.
492 + Then the function dump-emacs will not be defined
493 + and temacs will do (load "loadup") automatically unless told otherwise. */
494 +
495 +#undef CANNOT_DUMP
496 +
497 +/* Define VIRT_ADDR_VARIES if the virtual addresses of
498 + pure and impure space as loaded can vary, and even their
499 + relative order cannot be relied on.
500 +
501 + Otherwise Emacs assumes that text space precedes data space,
502 + numerically. */
503 +
504 +#undef VIRT_ADDR_VARIES
505 +
506 +/* Define C_ALLOCA if this machine does not support a true alloca
507 + and the one written in C should be used instead.
508 + Define HAVE_ALLOCA to say that the system provides a properly
509 + working alloca function and it should be used.
510 + Define neither one if an assembler-language alloca
511 + in the file alloca.s should be used. */
512 +
513 +#undef C_ALLOCA
514 +#define HAVE_ALLOCA
515 +
516 +/* Define NO_REMAP if memory segmentation makes it not work well
517 + to change the boundary between the text section and data section
518 + when Emacs is dumped. If you define this, the preloaded Lisp
519 + code will not be sharable; but that's better than failing completely. */
520 +
521 +#undef NO_REMAP
522 +
523 +/* Some really obscure 4.2-based systems (like Sequent DYNIX)
524 + * do not support asynchronous I/O (using SIGIO) on sockets,
525 + * even though it works fine on tty's. If you have one of
526 + * these systems, define the following, and then use it in
527 + * config.h (or elsewhere) to decide when (not) to use SIGIO.
528 + *
529 + * You'd think this would go in an operating-system description file,
530 + * but since it only occurs on some, but not all, BSD systems, the
531 + * reasonable place to select for it is in the machine description
532 + * file.
533 + */
534 +
535 +#undef NO_SOCK_SIGIO
536 +
537 +
538 +/* After adding support for a new system, modify the large case
539 + statement in the `configure' script to recognize reasonable
540 + configuration names, and add a description of the system to
541 + `etc/MACHINES'.
542 +
543 + If you've just fixed a problem in an existing configuration file,
544 + you should also check `etc/MACHINES' to make sure its descriptions
545 + of known problems in that configuration should be updated. */
546 only in patch2:
547 --- emacs21-21.2.orig/src/m/sheb.h
548 +++ emacs21-21.2/src/m/sheb.h
549 @@ -0,0 +1,8 @@
550 +/* machine description file for sheb (SuperH big endian). */
551 +
552 +#include "sh.h"
553 +
554 +/* Define WORDS_BIG_ENDIAN iff lowest-numbered byte in a word
555 + is the most significant byte. */
556 +
557 +#define WORDS_BIG_ENDIAN
558 --- emacs-21.2.orig/configure Fri Mar 15 21:46:09 2002
559 +++ emacs-21.2/configure Mon Nov 25 16:30:19 2002
560 @@ -1666,6 +1666,16 @@
561 machine=mips opsys=gnu-linux
562 ;;
563
564 + ## SuperH (little endian) Linux-based GNU system
565 + sh[34]-*-linux-gnu* )
566 + machine=sh opsys=gnu-linux
567 + ;;
568 +
569 + ## SuperH (big endian) Linux-based GNU system
570 + sh[34]eb-*-linux-gnu* )
571 + machine=sheb opsys=gnu-linux
572 + ;;
573 +
574 ## UXP/DS
575 sparc-fujitsu-sysv4* )
576 machine=sparc opsys=uxpds
577
578
579
580 1.1 src/patchsets/emacs/21.4/05_all_libungif-gif-gentoo.patch
581
582 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/emacs/21.4/05_all_libungif-gif-gentoo.patch?rev=1.1&view=markup
583 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/emacs/21.4/05_all_libungif-gif-gentoo.patch?rev=1.1&content-type=text/plain
584
585 Index: 05_all_libungif-gif-gentoo.patch
586 ===================================================================
587 diff -ur emacs-21.4.orig/configure.in emacs-21.4/configure.in
588 --- emacs-21.4.orig/configure.in 2003-03-16 16:06:05.000000000 -0600
589 +++ emacs-21.4/configure.in 2006-08-12 17:15:44.000000000 -0500
590 @@ -1927,7 +1927,7 @@
591 AC_CHECK_HEADER(gif_lib.h,
592 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
593 # Earlier versions can crash Emacs.
594 - AC_CHECK_LIB(ungif, EGifPutExtensionLast, HAVE_GIF=yes))
595 + AC_CHECK_LIB(gif, EGifPutExtensionLast, HAVE_GIF=yes))
596 fi
597
598 if test "${HAVE_GIF}" = "yes"; then
599 @@ -2283,7 +2283,7 @@
600 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
601 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
602 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
603 -echo " Does Emacs use -lungif? ${HAVE_GIF}"
604 +echo " Does Emacs use -lgif? ${HAVE_GIF}"
605 echo " Does Emacs use -lpng? ${HAVE_PNG}"
606 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
607 echo
608 diff -ur emacs-21.4.orig/src/Makefile.in emacs-21.4/src/Makefile.in
609 --- emacs-21.4.orig/src/Makefile.in 2003-01-23 04:34:06.000000000 -0600
610 +++ emacs-21.4/src/Makefile.in 2006-08-12 17:23:30.000000000 -0500
611 @@ -402,7 +402,7 @@
612
613 #if HAVE_GIF
614 #ifndef LIBGIF
615 -#define LIBGIF -lungif
616 +#define LIBGIF -lgif
617 #endif /* not defined LIBGIF */
618 #else /* not HAVE_GIF */
619 #define LIBGIF
620 Only in emacs-21.4/src: Makefile.in~
621
622
623
624 1.1 src/patchsets/emacs/21.4/06_ppc64_ppc64.patch
625
626 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/emacs/21.4/06_ppc64_ppc64.patch?rev=1.1&view=markup
627 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/emacs/21.4/06_ppc64_ppc64.patch?rev=1.1&content-type=text/plain
628
629 Index: 06_ppc64_ppc64.patch
630 ===================================================================
631 --- emacs-21.3/src/m/macppc.h.sopwith 2001-10-23 02:43:33.000000000 -0400
632 +++ emacs-21.3/src/m/macppc.h 2003-05-02 09:17:37.000000000 -0400
633 @@ -95,11 +95,47 @@
634
635 #ifdef LINUX
636 #define LINKER $(CC) -nostdlib
637 -#define LD_SWITCH_MACHINE -Xlinker -m -Xlinker elf32ppc
638 +#ifdef __powerpc64__
639 +#define LD_SWITCH_MACHINE -m64 -Xlinker -m -Xlinker elf64ppc
640 +#else
641 +#define LD_SWITCH_MACHINE -m32 -Xlinker -m -Xlinker elf32ppc
642 +#endif
643 /* s/gnu-linux.h defines this to `-z nocombreloc' which does not work here
644 because prefix-args is not used. */
645 #undef LD_SWITCH_SYSTEM_TEMACS
646 #define LD_SWITCH_MACHINE_TEMACS -Xlinker -znocombreloc
647 +
648 +#ifdef __powerpc64__
649 +/* Misc 64-bit fixups, patterned after the x86_64 file */
650 +#undef BITS_PER_LONG
651 +#undef BITS_PER_EMACS_INT
652 +#undef VALBITS
653 +#undef PNTR_COMPARISON_TYPE
654 +#undef MARKBIT
655 +#undef XINT
656 +#undef XUINT
657 +#undef XPNTR
658 +#undef START_FILES
659 +#undef LIB_STANDARD
660 +#undef EMACS_INT
661 +#undef EMACS_UINT
662 +#undef SPECIAL_EMACS_INT
663 +
664 +#define BITS_PER_LONG 64
665 +#define BITS_PER_EMACS_INT 64
666 +#define VALBITS 60
667 +#define PNTR_COMPARISON_TYPE unsigned long
668 +#define MARKBIT 0x8000000000000000L
669 +
670 +#define XINT(a) (((long) (a) << (BITS_PER_LONG - VALBITS)) >> (BITS_PER_LONG - VALBITS))
671 +#define XUINT(a) ((long) (a) & VALMASK)
672 +#define XPNTR(a) XUINT (a)
673 +#define START_FILES pre-crt0.o /usr/lib64/crt1.o /usr/lib64/crti.o
674 +#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib64/crtn.o
675 +#define EMACS_INT long
676 +#define EMACS_UINT unsigned long
677 +#define SPECIAL_EMACS_INT
678 +#endif
679 #endif
680
681 #if 0 /* This breaks things on PPC GNU/Linux ecept for Yellowdog,
682
683
684
685 1.1 src/patchsets/emacs/21.4/07_ppc64_fix-unexelf.patch
686
687 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/emacs/21.4/07_ppc64_fix-unexelf.patch?rev=1.1&view=markup
688 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/emacs/21.4/07_ppc64_fix-unexelf.patch?rev=1.1&content-type=text/plain
689
690 Index: 07_ppc64_fix-unexelf.patch
691 ===================================================================
692 Fix unexelf.c (unexec) on ppc64, backported from Emacs 22 by Chip Coldwell,
693 see <http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=183304>
694 --- emacs-21.4/src/unexelf.c 2002-10-15 10:21:44.000000000 -0400
695 +++ emacs-21.4.works/src/unexelf.c 2006-07-26 11:08:05.000000000 -0400
696 @@ -697,7 +697,7 @@ unexec (new_name, old_name, data_start,
697 ElfW(Addr) new_data2_addr;
698
699 int n, nn;
700 - int old_bss_index, old_sbss_index;
701 + int old_bss_index, old_sbss_index, old_plt_index;
702 int old_data_index, new_data2_index;
703 int old_mdebug_index;
704 struct stat stat_buf;
705 @@ -759,12 +759,31 @@ unexec (new_name, old_name, data_start,
706 if (OLD_SECTION_H (old_sbss_index).sh_type == SHT_PROGBITS)
707 old_sbss_index = -1;
708
709 - if (old_sbss_index == -1)
710 + /* PowerPC64 has .plt in the BSS section. */
711 + old_plt_index = find_section (".plt", old_section_names,
712 + old_name, old_file_h, old_section_h, 1);
713 + if (old_plt_index != -1)
714 + if (OLD_SECTION_H (old_plt_index).sh_type != SHT_NOBITS)
715 + old_plt_index = -1;
716 +
717 + if (old_sbss_index == -1 && old_plt_index == -1)
718 {
719 old_bss_addr = OLD_SECTION_H (old_bss_index).sh_addr;
720 old_bss_size = OLD_SECTION_H (old_bss_index).sh_size;
721 new_data2_index = old_bss_index;
722 }
723 + else if (old_plt_index != -1
724 + && (old_sbss_index == -1
725 + || (OLD_SECTION_H (old_sbss_index).sh_addr
726 + > OLD_SECTION_H (old_plt_index).sh_addr)))
727 + {
728 + old_bss_addr = OLD_SECTION_H (old_plt_index).sh_addr;
729 + old_bss_size = OLD_SECTION_H (old_bss_index).sh_size
730 + + OLD_SECTION_H (old_plt_index).sh_size;
731 + if (old_sbss_index != -1)
732 + old_bss_size += OLD_SECTION_H (old_sbss_index).sh_size;
733 + new_data2_index = old_plt_index;
734 + }
735 else
736 {
737 old_bss_addr = OLD_SECTION_H (old_sbss_index).sh_addr;
738 @@ -955,7 +974,7 @@ unexec (new_name, old_name, data_start,
739 if (n == old_bss_index
740 /* The new bss and sbss section's size is zero, and its file offset
741 and virtual address should be off by NEW_DATA2_SIZE. */
742 - || n == old_sbss_index
743 + || n == old_sbss_index || n == old_plt_index
744 )
745 {
746 /* NN should be `old_s?bss_index + 1' at this point. */
747 @@ -986,9 +1005,8 @@ unexec (new_name, old_name, data_start,
748 >= OLD_SECTION_H (old_bss_index-1).sh_offset)
749 NEW_SECTION_H (nn).sh_offset += new_data2_size;
750 #else
751 - if (round_up (NEW_SECTION_H (nn).sh_offset,
752 - OLD_SECTION_H (old_bss_index).sh_addralign)
753 - >= new_data2_offset)
754 + if (NEW_SECTION_H (nn).sh_offset + NEW_SECTION_H (nn).sh_size
755 + > new_data2_offset)
756 NEW_SECTION_H (nn).sh_offset += new_data2_size;
757 #endif
758 /* Any section that was originally placed after the section
759
760
761
762 1.1 src/patchsets/emacs/21.4/08_all_autosave-tmp.patch
763
764 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/emacs/21.4/08_all_autosave-tmp.patch?rev=1.1&view=markup
765 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/emacs/21.4/08_all_autosave-tmp.patch?rev=1.1&content-type=text/plain
766
767 Index: 08_all_autosave-tmp.patch
768 ===================================================================
769 --- emacs-21.4/lisp/startup.el~ 2003-03-16 23:05:59.000000000 +0100
770 +++ emacs-21.4/lisp/startup.el 2007-02-16 11:21:18.000000000 +0100
771 @@ -629,6 +629,9 @@
772 (setq small-temporary-file-directory
773 (if (eq system-type 'ms-dos)
774 (getenv "TMPDIR")))
775 + (setq auto-save-file-name-transforms
776 + (list (list (caar auto-save-file-name-transforms)
777 + (expand-file-name "\\2" temporary-file-directory))))
778
779 ;; See if we should import version-control from the environment variable.
780 (let ((vc (getenv "VERSION_CONTROL")))
781
782
783
784 1.1 src/patchsets/emacs/21.4/09_all_blessmail-build.patch
785
786 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/emacs/21.4/09_all_blessmail-build.patch?rev=1.1&view=markup
787 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/emacs/21.4/09_all_blessmail-build.patch?rev=1.1&content-type=text/plain
788
789 Index: 09_all_blessmail-build.patch
790 ===================================================================
791 --- emacs-22.0.93/lib-src/Makefile.in~ 2007-01-17 16:53:20.000000000 +0100
792 +++ emacs-22.0.93/lib-src/Makefile.in 2007-02-17 11:29:06.000000000 +0100
793 @@ -23,6 +23,10 @@
794 # inherited from the environment.
795 SHELL = /bin/sh
796
797 +# following two lines taken from ../lisp/Makefile.in
798 +EMACS = ../src/emacs
799 +EMACSOPT = -batch --no-site-file --multibyte
800 +
801 # ==================== Things `configure' will edit ====================
802
803 CC=@CC@
804 @@ -279,7 +283,7 @@
805
806 #ifdef MOVEMAIL_NEEDS_BLESSING
807 blessmail:
808 - ../src/emacs -batch -l $(srcdir)/../lisp/mail/blessmail.el
809 + $(EMACS) $(EMACSOPT) -l $(srcdir)/../lisp/mail/blessmail.el
810 chmod +x blessmail
811 #endif
812
813
814
815
816 1.1 src/patchsets/emacs/21.4/10_all_qa.patch
817
818 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/emacs/21.4/10_all_qa.patch?rev=1.1&view=markup
819 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/emacs/21.4/10_all_qa.patch?rev=1.1&content-type=text/plain
820
821 Index: 10_all_qa.patch
822 ===================================================================
823 diff -ur emacs-21.4-orig/lib-src/cvtmail.c emacs-21.4/lib-src/cvtmail.c
824 --- emacs-21.4-orig/lib-src/cvtmail.c 2002-02-15 13:06:48.000000000 +0100
825 +++ emacs-21.4/lib-src/cvtmail.c 2007-03-19 09:02:08.000000000 +0100
826 @@ -33,12 +33,15 @@
827 * Author: Larry Kolodney, 1985
828 */
829
830 +#ifdef HAVE_CONFIG_H
831 +#include <config.h>
832 +#endif
833
834 #include <stdio.h>
835
836 -char *malloc ();
837 -char *realloc ();
838 +#ifndef HAVE_STDLIB_H
839 char *getenv ();
840 +#endif
841
842 char *xmalloc ();
843 char *xrealloc ();
844 diff -ur emacs-21.4-orig/lib-src/yow.c emacs-21.4/lib-src/yow.c
845 --- emacs-21.4-orig/lib-src/yow.c 1999-02-26 12:37:05.000000000 +0100
846 +++ emacs-21.4/lib-src/yow.c 2007-03-19 09:03:50.000000000 +0100
847 @@ -10,6 +10,10 @@
848 * With dynamic memory allocation.
849 */
850
851 +#ifdef HAVE_CONFIG_H
852 +#include <config.h>
853 +#endif
854 +
855 #include <stdio.h>
856 #include <ctype.h>
857 #include <../src/epaths.h> /* For PATH_DATA. */
858 @@ -33,8 +37,6 @@
859 &res;})
860 #endif
861
862 -char *malloc(), *realloc();
863 -
864 void yow();
865 void setup_yow();
866
867 diff -ur emacs-21.4-orig/src/prefix-args.c emacs-21.4/src/prefix-args.c
868 --- emacs-21.4-orig/src/prefix-args.c 2001-02-22 02:49:37.000000000 +0100
869 +++ emacs-21.4/src/prefix-args.c 2007-03-19 09:20:27.000000000 +0100
870 @@ -43,6 +43,10 @@
871 If I can't write a completely portable program to do this in C,
872 I'm quitting and taking up gardening. */
873
874 +#ifdef HAVE_CONFIG_H
875 +# include <config.h>
876 +#endif
877 +
878 #include <stdio.h>
879
880 int
881 diff -ur emacs-21.4-orig/src/xterm.c emacs-21.4/src/xterm.c
882 --- emacs-21.4-orig/src/xterm.c 2002-10-15 16:21:45.000000000 +0200
883 +++ emacs-21.4/src/xterm.c 2007-03-19 09:13:01.000000000 +0100
884 @@ -10899,7 +10899,7 @@
885 if (!tool_bar_p)
886 if (!dpyinfo->x_focus_frame
887 || f == dpyinfo->x_focus_frame)
888 - construct_mouse_click (&emacs_event, &event, f);
889 + construct_mouse_click (&emacs_event, &event.xbutton, f);
890 }
891 else
892 {
893 diff -ur emacs-21.4-orig/oldXMenu/ChgPane.c emacs-21.4/oldXMenu/ChgPane.c
894 --- emacs-21.4-orig/oldXMenu/ChgPane.c 1999-10-03 21:34:53.000000000 +0200
895 +++ emacs-21.4/oldXMenu/ChgPane.c 2007-03-19 15:10:00.000000000 +0100
896 @@ -13,6 +13,7 @@
897 *
898 */
899
900 +#include <config.h>
901 #include "XMenuInt.h"
902
903 int
904 diff -ur emacs-21.4-orig/oldXMenu/ChgSel.c emacs-21.4/oldXMenu/ChgSel.c
905 --- emacs-21.4-orig/oldXMenu/ChgSel.c 1999-10-03 21:34:54.000000000 +0200
906 +++ emacs-21.4/oldXMenu/ChgSel.c 2007-03-19 15:10:02.000000000 +0100
907 @@ -13,6 +13,7 @@
908 *
909 */
910
911 +#include <config.h>
912 #include "XMenuInt.h"
913
914 int
915
916
917
918 1.1 src/patchsets/emacs/21.4/11_all_Xaw3d-headers.patch
919
920 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/emacs/21.4/11_all_Xaw3d-headers.patch?rev=1.1&view=markup
921 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/emacs/21.4/11_all_Xaw3d-headers.patch?rev=1.1&content-type=text/plain
922
923 Index: 11_all_Xaw3d-headers.patch
924 ===================================================================
925 diff -ur emacs-21.4-orig/src/xfns.c emacs-21.4/src/xfns.c
926 --- emacs-21.4-orig/src/xfns.c 2002-12-06 18:05:35.000000000 +0100
927 +++ emacs-21.4/src/xfns.c 2007-04-19 01:56:40.000000000 +0200
928 @@ -69,8 +69,13 @@
929 #include <X11/Shell.h>
930
931 #ifndef USE_MOTIF
932 +#ifdef HAVE_XAW3D
933 +#include <X11/Xaw3d/Paned.h>
934 +#include <X11/Xaw3d/Label.h>
935 +#else /* !HAVE_XAW3D */
936 #include <X11/Xaw/Paned.h>
937 #include <X11/Xaw/Label.h>
938 +#endif /* HAVE_XAW3D */
939 #endif /* USE_MOTIF */
940
941 #ifdef USG
942 diff -ur emacs-21.4-orig/src/xmenu.c emacs-21.4/src/xmenu.c
943 --- emacs-21.4-orig/src/xmenu.c 2002-01-06 07:18:19.000000000 +0100
944 +++ emacs-21.4/src/xmenu.c 2007-04-19 01:56:40.000000000 +0200
945 @@ -73,7 +73,11 @@
946 #include <X11/StringDefs.h>
947 #include <X11/Shell.h>
948 #ifdef USE_LUCID
949 +#ifdef HAVE_XAW3D
950 +#include <X11/Xaw3d/Paned.h>
951 +#else /* !HAVE_XAW3D */
952 #include <X11/Xaw/Paned.h>
953 +#endif /* HAVE_XAW3D */
954 #endif /* USE_LUCID */
955 #include "../lwlib/lwlib.h"
956 #else /* not USE_X_TOOLKIT */
957 diff -ur emacs-21.4-orig/lwlib/lwlib.c emacs-21.4/lwlib/lwlib.c
958 --- emacs-21.4-orig/lwlib/lwlib.c 2000-09-30 19:03:27.000000000 +0200
959 +++ emacs-21.4/lwlib/lwlib.c 2007-04-19 01:56:40.000000000 +0200
960 @@ -49,7 +49,11 @@
961 #include "lwlib-Xol.h"
962 #endif
963 #if defined (USE_XAW)
964 +#ifdef HAVE_XAW3D
965 +#include <X11/Xaw3d/Paned.h>
966 +#else /* !HAVE_XAW3D */
967 #include <X11/Xaw/Paned.h>
968 +#endif /* HAVE_XAW3D */
969 #include "lwlib-Xaw.h"
970 #endif
971
972 diff -ur emacs-21.4-orig/lwlib/lwlib-Xaw.c emacs-21.4/lwlib/lwlib-Xaw.c
973 --- emacs-21.4-orig/lwlib/lwlib-Xaw.c 2001-02-28 15:55:17.000000000 +0100
974 +++ emacs-21.4/lwlib/lwlib-Xaw.c 2007-04-19 01:56:40.000000000 +0200
975 @@ -31,12 +31,21 @@
976 #include <X11/CoreP.h>
977 #include <X11/Shell.h>
978
979 +#ifdef HAVE_XAW3D
980 +#include <X11/Xaw3d/Scrollbar.h>
981 +#include <X11/Xaw3d/Paned.h>
982 +#include <X11/Xaw3d/Dialog.h>
983 +#include <X11/Xaw3d/Form.h>
984 +#include <X11/Xaw3d/Command.h>
985 +#include <X11/Xaw3d/Label.h>
986 +#else /* !HAVE_XAW3D */
987 #include <X11/Xaw/Scrollbar.h>
988 #include <X11/Xaw/Paned.h>
989 #include <X11/Xaw/Dialog.h>
990 #include <X11/Xaw/Form.h>
991 #include <X11/Xaw/Command.h>
992 #include <X11/Xaw/Label.h>
993 +#endif /* HAVE_XAW3D */
994
995 #include <X11/Xatom.h>
996
997
998
999
1000 1.1 src/patchsets/emacs/21.4/12_all_freebsd-terminfo.patch
1001
1002 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/emacs/21.4/12_all_freebsd-terminfo.patch?rev=1.1&view=markup
1003 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/emacs/21.4/12_all_freebsd-terminfo.patch?rev=1.1&content-type=text/plain
1004
1005 Index: 12_all_freebsd-terminfo.patch
1006 ===================================================================
1007 Taken from FreeBSD Ports
1008
1009 --- src/s/freebsd.h.orig Tue Feb 20 19:52:17 2001
1010 +++ src/s/freebsd.h Mon Feb 18 11:51:50 2002
1011 @@ -68,6 +68,11 @@
1012 #define LIBS_SYSTEM -lutil
1013 #if __FreeBSD_version < 400000
1014 #define LIBS_TERMCAP -ltermcap
1015 +#else
1016 +#ifdef HAVE_LIBNCURSES
1017 +#define TERMINFO
1018 +#define LIBS_TERMCAP -lncurses
1019 +#endif
1020 #endif
1021
1022 #define SYSV_SYSTEM_DIR
1023
1024
1025
1026 1.1 src/patchsets/emacs/21.4/13_all_oldxmenu-malloc.patch
1027
1028 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/emacs/21.4/13_all_oldxmenu-malloc.patch?rev=1.1&view=markup
1029 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/emacs/21.4/13_all_oldxmenu-malloc.patch?rev=1.1&content-type=text/plain
1030
1031 Index: 13_all_oldxmenu-malloc.patch
1032 ===================================================================
1033 --- emacs-21.4/oldXMenu/XMakeAssoc.c~ 1999-10-03 21:35:22.000000000 +0200
1034 +++ emacs-21.4/oldXMenu/XMakeAssoc.c 2007-05-28 22:21:57.000000000 +0200
1035 @@ -91,7 +91,7 @@
1036 /* If we are here then the new entry should be inserted just */
1037 /* before the current value of "Entry". */
1038 /* Create a new XAssoc and load it with new provided data. */
1039 - new_entry = (XAssoc *) xmalloc(sizeof(XAssoc));
1040 + new_entry = (XAssoc *) malloc(sizeof(XAssoc));
1041 new_entry->display = dpy;
1042 new_entry->x_id = x_id;
1043 new_entry->data = data;
1044
1045
1046
1047 1.1 src/patchsets/emacs/21.4/14_all_gif-image-size.patch
1048
1049 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/emacs/21.4/14_all_gif-image-size.patch?rev=1.1&view=markup
1050 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/emacs/21.4/14_all_gif-image-size.patch?rev=1.1&content-type=text/plain
1051
1052 Index: 14_all_gif-image-size.patch
1053 ===================================================================
1054 --- emacs21-21.4a+1.orig/src/xfns.c
1055 +++ emacs21-21.4a+1/src/xfns.c
1056 @@ -9805,8 +9805,17 @@
1057 return 0;
1058 }
1059
1060 - width = img->width = max (gif->SWidth, gif->Image.Left + gif->Image.Width);
1061 - height = img->height = max (gif->SHeight, gif->Image.Top + gif->Image.Height);
1062 + image_top = gif->SavedImages[ino].ImageDesc.Top;
1063 + image_left = gif->SavedImages[ino].ImageDesc.Left;
1064 + image_width = gif->SavedImages[ino].ImageDesc.Width;
1065 + image_height = gif->SavedImages[ino].ImageDesc.Height;
1066 +
1067 + width = img->width = max (gif->SWidth,
1068 + max (gif->Image.Left + gif->Image.Width,
1069 + image_left + image_width));
1070 + height = img->height = max (gif->SHeight,
1071 + max (gif->Image.Top + gif->Image.Height,
1072 + image_top + image_height));
1073
1074 /* Create the X image and pixmap. */
1075 if (!x_create_x_image_and_pixmap (f, width, height, 0, &ximg, &img->pixmap))
1076 @@ -9839,11 +9848,6 @@
1077 requires more than can be done here (see the gif89 spec,
1078 disposal methods). Let's simply assume that the part
1079 not covered by a sub-image is in the frame's background color. */
1080 - image_top = gif->SavedImages[ino].ImageDesc.Top;
1081 - image_left = gif->SavedImages[ino].ImageDesc.Left;
1082 - image_width = gif->SavedImages[ino].ImageDesc.Width;
1083 - image_height = gif->SavedImages[ino].ImageDesc.Height;
1084 -
1085 for (y = 0; y < image_top; ++y)
1086 for (x = 0; x < width; ++x)
1087 XPutPixel (ximg, x, y, FRAME_BACKGROUND_PIXEL (f));
1088
1089
1090
1091 1.1 src/patchsets/emacs/21.4/15_all_format-int.patch
1092
1093 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/emacs/21.4/15_all_format-int.patch?rev=1.1&view=markup
1094 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/emacs/21.4/15_all_format-int.patch?rev=1.1&content-type=text/plain
1095
1096 Index: 15_all_format-int.patch
1097 ===================================================================
1098 --- emacs-21.4-orig/src/editfns.c 2003-01-20 12:03:33.000000000 +0100
1099 +++ emacs-21.4/src/editfns.c 2007-11-25 17:02:54.000000000 +0100
1100 @@ -3266,7 +3266,7 @@
1101 && *format != 'i' && *format != 'X' && *format != 'c')
1102 error ("Invalid format operation %%%c", *format);
1103
1104 - thissize = 30;
1105 + thissize = 30 + (precision > 0 ? precision : 0);
1106 if (*format == 'c'
1107 && (! SINGLE_BYTE_CHAR_P (XINT (args[n]))
1108 || XINT (args[n]) == 0))
1109
1110
1111
1112 --
1113 gentoo-commits@g.o mailing list