1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tetex/tetex.patch Fri Aug 10 14:12:46 2012 +0200 1.3 @@ -0,0 +1,116 @@ 1.4 +Index: texk/gsftopk/gsftopk.c 1.5 +diff -Nau texk/gsftopk/gsftopk.c.orig texk/gsftopk/gsftopk.c 1.6 +--- texk/gsftopk/gsftopk.c.orig 2005-03-15 13:05:16.817449597 +0100 1.7 ++++ texk/gsftopk/gsftopk.c 2005-03-15 13:06:07.241499293 +0100 1.8 +@@ -417,7 +417,7 @@ 1.9 + Boolean dosnames = False; 1.10 + Boolean quiet = False; 1.11 + 1.12 +-struct option { 1.13 ++struct option_loc { 1.14 + const char *longname; 1.15 + short shortname; 1.16 + Boolean has_arg; 1.17 +@@ -425,7 +425,7 @@ 1.18 + int value; 1.19 + }; 1.20 + 1.21 +-static const struct option options[] = { 1.22 ++static const struct option_loc options[] = { 1.23 + {"test", 't', False, &test, True}, 1.24 + {"mapline", 0, True, &mapline, 0}, 1.25 + {"mapfile", 0, True, &mapfile, 0}, 1.26 +@@ -2099,8 +2099,8 @@ 1.27 + 1.28 + argp = argv; 1.29 + while (++argp < argv + argc && (*argp)[0] == '-') { 1.30 +- const struct option *opt_ptr; 1.31 +- const struct option *opt; 1.32 ++ const struct option_loc *opt_ptr; 1.33 ++ const struct option_loc *opt; 1.34 + char *arg = *argp + 1; 1.35 + 1.36 + if (*arg == '\0') --arg; /* this will flag an error later */ 1.37 + 1.38 +Index: texk/dvipsk/texc.script 1.39 +--- texk/dvipsk/texc.script.orig 2005-09-25 22:05:56 +0200 1.40 ++++ texk/dvipsk/texc.script 2005-09-25 22:05:56 +0200 1.41 +@@ -4,9 +4,7 @@ 1.42 + # To use it, say 1.43 + # texc.script tex.lpro texc.lpro 1.44 + # 1.45 +-ed $1 <<edscriptend 1.46 +-/% begin code for uncompressed fonts only/d 1.47 +-.,/% end code for uncompressed fonts only/d 1.48 +-.,/% end of code for unpacking compressed fonts/s/% // 1.49 +-w $2 1.50 +-edscriptend 1.51 ++sed <$1 \ 1.52 ++-e '/% end code for uncompressed fonts only/,/% end of code for unpacking compressed fonts/s/% //' \ 1.53 ++-e '/% begin code for uncompressed fonts only/,/end code for uncompressed fonts only/d' \ 1.54 ++>$2 1.55 + 1.56 +Index: texk/web2c/omegafonts/pl.l 1.57 +--- texk/web2c/omegafonts/pl.l.orig 2003-05-06 10:30:52 +0200 1.58 ++++ texk/web2c/omegafonts/pl.l 2007-12-22 12:11:05 +0100 1.59 +@@ -63,12 +63,6 @@ 1.60 + 1.61 + %} 1.62 + 1.63 +-/* For Solaris's lex, to increase tables sizes --RP */ 1.64 +-/* Space before number keeps ancient flex happy. */ 1.65 +-%e 4000 1.66 +-%p 7000 1.67 +-%n 1000 1.68 +- 1.69 + ws [ \t]+ 1.70 + hexnumber H{ws}[A-F0-9]+ 1.71 + octnumber O{ws}[0-7]+ 1.72 +Index: libs/ncurses/ncurses/tinfo/lib_baudrate.c 1.73 +--- libs/ncurses/ncurses/tinfo/lib_baudrate.c.orig 2002-01-20 00:07:53 +0100 1.74 ++++ libs/ncurses/ncurses/tinfo/lib_baudrate.c 2010-01-08 10:40:05 +0100 1.75 +@@ -46,7 +46,7 @@ 1.76 + * of the indices up to B115200 fit nicely in a 'short', allowing us to retain 1.77 + * ospeed's type for compatibility. 1.78 + */ 1.79 +-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) 1.80 ++#if defined(__NetBSD__) || defined(__OpenBSD__) 1.81 + #undef B0 1.82 + #undef B50 1.83 + #undef B75 1.84 +Index: libs/gd/gd_png.c 1.85 +--- libs/gd/gd_png.c.orig 2004-10-28 20:09:52 +0200 1.86 ++++ libs/gd/gd_png.c 2010-01-08 10:57:27 +0100 1.87 +@@ -143,7 +143,7 @@ 1.88 + /* first do a quick check that the file really is a PNG image; could 1.89 + * have used slightly more general png_sig_cmp() function instead */ 1.90 + gdGetBuf (sig, 8, infile); 1.91 +- if (!png_check_sig (sig, 8)) 1.92 ++ if (png_sig_cmp (sig, 0, 8) > 0) 1.93 + return NULL; /* bad signature */ 1.94 + 1.95 + #ifndef PNG_SETJMP_NOT_SUPPORTED 1.96 +Index: texk/dvipdfm/pngimage.c 1.97 +--- texk/dvipdfm/pngimage.c.orig 2002-12-25 18:51:16 +0100 1.98 ++++ texk/dvipdfm/pngimage.c 2010-01-08 10:58:28 +0100 1.99 +@@ -42,7 +42,7 @@ 1.100 + rewind (png_file); 1.101 + if (fread (sigbytes, 1, sizeof(sigbytes), png_file) != 1.102 + sizeof(sigbytes) || 1.103 +- (!png_check_sig (sigbytes, sizeof(sigbytes)))) 1.104 ++ (png_sig_cmp (sigbytes, 0, sizeof(sigbytes)) > 0)) 1.105 + return 0; 1.106 + else 1.107 + return 1; 1.108 +Index: texk/dvipdfm/thumbnail.c 1.109 +--- texk/dvipdfm/thumbnail.c.orig 2002-12-25 18:51:16 +0100 1.110 ++++ texk/dvipdfm/thumbnail.c 2010-01-08 10:58:39 +0100 1.111 +@@ -79,7 +79,7 @@ 1.112 + } 1.113 + if (fread (sigbytes, 1, sizeof(sigbytes), thumb_file) != 1.114 + sizeof(sigbytes) || 1.115 +- (!png_check_sig (sigbytes, sizeof(sigbytes)))) { 1.116 ++ (png_sig_cmp (sigbytes, 0, sizeof(sigbytes)) > 0)) { 1.117 + fprintf (stderr, "\nThumbnail not a png file! Skipping\n"); 1.118 + return NULL; 1.119 + }