ogajduse / rpms / texlive

Forked from rpms/texlive 6 years ago
Clone
4931932
--- dvipsk-p1.7a.patch.orig	2005-10-17 17:03:56.000000000 +0900
4931932
+++ dvipsk-p1.7a.patch	2007-08-16 14:51:19.000000000 +0900
4931932
@@ -1236,37 +1236,30 @@
4931932
      }
4931932
  
4931932
 diff -Nur dvipsk.orig/dvips.c dvipsk/dvips.c
4931932
---- dvipsk.orig/dvips.c	Sun Jan 30 22:17:21 2005
4931932
-+++ dvipsk/dvips.c	Thu Mar  3 11:11:55 2005
4931932
-@@ -44,12 +44,18 @@
4931932
- #include descrip
4931932
- #endif
4931932
+--- dvipsk.orig/dvips.c	2007-08-16 14:39:44.000000000 +0900
4931932
++++ dvipsk/dvips.c	2007-08-16 14:44:03.000000000 +0900
4931932
+@@ -45,6 +45,12 @@
4931932
+ #define DEFRES (600)
4931932
  #endif
4931932
+ 
4931932
 +#ifdef __APPLE__ /* for Mac OS X, T. Uchiyama */
4931932
 +#include <sys/types.h>
4931932
 +#include <sys/time.h>
4931932
 +#include <sys/resource.h>
4931932
 +#endif
4931932
++
4931932
  /*
4931932
   *   First we define some globals.
4931932
   */
4931932
- #ifdef VMS
4931932
-     static char ofnme[252],infnme[252],pap[40],thh[20];
4931932
- #endif
4931932
+@@ -55,6 +61,7 @@
4931932
+ /* PS fonts fully downloaded as headers */ 
4931932
+ char *downloadedpsnames[DOWNLOADEDPSSIZE];  
4931932
+ 
4931932
 +Boolean SJIS ;                /* KANJI code */
4931932
+ int unused_top_of_psnames ;   /* unused top number of downloadedpsnames[#] */
4931932
  fontdesctype *fonthead ;      /* list of all fonts mentioned so far */
4931932
  fontdesctype *curfnt ;        /* the currently selected font */
4931932
- sectiontype *sections ;       /* sections to process document in */
4931932
-@@ -64,7 +70,7 @@
4931932
- Boolean cropmarks ;           /* add cropmarks? */
4931932
- Boolean abspage = 0 ;         /* are page numbers absolute? */
4931932
- Boolean tryepsf = 0 ;         /* should we try to make it espf? */
4931932
--Boolean secure = 0 ;          /* make safe for suid */
4931932
-+Boolean secure = 1 ;          /* make safe for suid */
4931932
- int collatedcopies = 1 ;      /* how many collated copies? */
4931932
- int sectioncopies = 1 ;       /* how many times to repeat each section? */
4931932
- integer pagecopies = 1 ;          /* how many times to repeat each page? */
4931932
-@@ -186,6 +192,7 @@
4931932
+@@ -194,6 +201,7 @@
4931932
  char xdig[256];                 /* table for reading hexadecimal digits */
4931932
  char banner[] = BANNER ;        /* our startup message */
4931932
  char banner2[] = BANNER2 ;      /* our second startup message */
4931932
@@ -1274,7 +1267,7 @@
4931932
  Boolean noenv = 0 ;             /* ignore PRINTER envir variable? */
4931932
  Boolean dopprescan = 0 ;        /* do we do a scan before the prescan? */
4931932
  extern int dontmakefont ;
4931932
-@@ -284,6 +291,7 @@
4931932
+@@ -292,6 +300,7 @@
4931932
  #else
4931932
  "                                   Z*  Compress bitmap fonts           ",
4931932
  #endif
4931932
@@ -1282,7 +1275,7 @@
4931932
  /* "-   Interactive query of options", */
4931932
  "    # = number   f = file   s = string  * = suffix, `0' to turn off    ",
4931932
  "    c = comma-separated dimension pair (e.g., 3.2in,-32.1cm)           ",
4931932
-@@ -294,16 +302,21 @@
4931932
+@@ -302,16 +311,21 @@
4931932
  {
4931932
     char **p;
4931932
     FILE *f = status == 0 ? stdout : stderr;
4931932
@@ -1302,30 +1295,31 @@
4931932
 +*/
4931932
 +   fputs ("Email bug reports to www-ptex@ascii.co.jp.\n", f);
4931932
  }
4931932
- /*
4931932
-  *   This error routine prints an error message; if the first
4931932
-@@ -440,6 +453,7 @@
4931932
-    for (s="abcdef"; *s!=0; s++)
4931932
-       xdig[(int)*s] = i++;
4931932
+ 
4931932
+ void
4931932
+@@ -461,6 +475,7 @@
4931932
+    for(i=0 ; i < DOWNLOADEDPSSIZE; i++)
4931932
+       downloadedpsnames[i] = NULL;
4931932
     morestrings() ;
4931932
 +   SJIS = 0;
4931932
     maxpages = 100000 ;
4931932
     numcopies = 1 ;
4931932
     iname = fulliname = strings ;
4931932
-@@ -552,6 +566,12 @@
4931932
-    int firstext = -1 ;
4931932
+@@ -574,6 +589,13 @@
4931932
  #endif
4931932
-    register sectiontype *sects ;
4931932
+    sectiontype *sects ;
4931932
+ 
4931932
 +#ifdef __APPLE__ /* for Mac OS X, T. Uchiyama */
4931932
 +   struct rlimit rl;
4931932
 +   getrlimit(RLIMIT_STACK, &rl);
4931932
 +   rl.rlim_cur = 2048 * 1024;
4931932
 +   setrlimit(RLIMIT_STACK, &rl);
4931932
 +#endif
4931932
- 
4931932
++
4931932
  #ifdef KPATHSEA
4931932
     kpse_set_program_name (argv[0], "dvips");
4931932
-@@ -618,12 +638,12 @@
4931932
+    kpse_set_program_enabled (kpse_pk_format, MAKE_TEX_PK_BY_DEFAULT, kpse_src_compile);
4931932
+@@ -639,12 +661,12 @@
4931932
          exit (0);
4931932
        }
4931932
        if (argc == 2 && strncmp(argv[1], "-?", 2) == 0) {
4931932
@@ -1340,8 +1334,8 @@
4931932
           exit(0);
4931932
        }
4931932
     }
4931932
-@@ -747,10 +767,13 @@
4931932
-                secure = (*p != '0') ;
4931932
+@@ -790,10 +812,13 @@
4931932
+                   secure_option = 1 ; /* Never used */
4931932
                 break ;
4931932
  case 'S':
4931932
 -               if (*p == 0 && argv[i+1])
4931932
@@ -1358,7 +1352,7 @@
4931932
                 break ;
4931932
  case 'm' :
4931932
                 if (STREQ (p, "ode") && argv[i+1]) {
4931932
-@@ -892,7 +915,7 @@
4931932
+@@ -935,7 +960,7 @@
4931932
                    paperfmt = p ;
4931932
                 break ;
4931932
  case 'v':
4931932
@@ -1367,7 +1361,7 @@
4931932
                  exit (0);
4931932
                  break;
4931932
  case 'x' : case 'y' :
4931932
-@@ -1070,7 +1093,7 @@
4931932
+@@ -1113,7 +1138,7 @@
4931932
        }
4931932
        papsizes = (struct papsiz *)revlist((void *)papsizes) ;
4931932
        if (queryoptions != 0) {            /* get new options */
4931932
@@ -1376,38 +1370,40 @@
4931932
           help(1) ;
4931932
           queryargs();
4931932
           if (qargc == 1)
4931932
-@@ -1108,7 +1131,7 @@
4931932
-    getpsinfo((char *)NULL) ;
4931932
+@@ -1152,11 +1177,11 @@
4931932
     revpslists() ;
4931932
-    if (!quiet)
4931932
--      (void)fprintf(stderr, "%s %s\n", banner, banner2) ;
4931932
-+      (void)fprintf(stderr, "%s\n%s\n", banner, banner2) ;
4931932
+    if (dvips_debug_flag) {
4931932
+       if (!quiet)
4931932
+-         (void)fprintf(stderr, "\n%s %s\n", banner, banner2) ;
4931932
++         (void)fprintf(stderr, "\n%s\n%s\n", banner, banner2) ;
4931932
+       prettycolumn = 0 ;
4931932
+    } else {
4931932
+       if (!quiet)
4931932
+-         (void)fprintf(stderr, "%s %s\n", banner, banner2) ;
4931932
++         (void)fprintf(stderr, "%s\n%s\n", banner, banner2) ;
4931932
+    }
4931932
     if (*iname) {
4931932
        dvifile = fopen(iname, READBIN) ;
4931932
- /*
4931932
 diff -Nur dvipsk.orig/dvips.h dvipsk/dvips.h
4931932
---- dvipsk.orig/dvips.h	Sun Jan 30 22:17:15 2005
4931932
-+++ dvipsk/dvips.h	Mon Oct 17 16:57:18 2005
4931932
-@@ -10,10 +10,15 @@
4931932
-  */
4931932
- 
4931932
+--- dvipsk.orig/dvips.h	2007-08-16 14:39:44.000000000 +0900
4931932
++++ dvipsk/dvips.h	2007-08-16 14:49:19.000000000 +0900
4931932
+@@ -7,9 +7,12 @@
4931932
  /*   This file is the header for dvips's global data structures. */
4931932
-+#define CREATIONDATE
4931932
-+
4931932
-+#define MAX_CODE 65536
4931932
  
4931932
+ #define CREATIONDATE
4931932
++#define MAX_CODE 65536
4931932
  #define BANNER \
4931932
--"This is dvips(k) 5.95a Copyright 2005 Radical Eye Software"
4931932
+-"This is dvips(k) 5.96.1 Copyright 2007 Radical Eye Software"
4931932
 -#define BANNER2 "(www.radicaleye.com)"
4931932
 +"This is dvips(k) p1.7a Copyright 2005 ASCII Corp.(www-ptex@ascii.co.jp)"
4931932
 +#define BANNER2 \
4931932
-+"based on dvips(k) 5.95a Copyright 2005 Radical Eye Software (www.radicaleye.com)"
4931932
++"This is dvips(k) 5.96.1 Copyright 2007 Radical Eye Software (www.radicaleye.com)"
4931932
 +#define WEBURL "(www.radicaleye.com)"
4931932
  #ifdef KPATHSEA
4931932
  #include "config.h"
4931932
  #include "debug.h"
4931932
-@@ -60,9 +65,9 @@
4931932
- #define STRINGSIZE (200000)  /* maximum total chars in strings in program */
4931932
+@@ -56,9 +59,9 @@
4931932
+ #define STRINGSIZE (200000) /* maximum total chars in strings in program */
4931932
  #define RASTERCHUNK (8192)  /* size of chunk of raster */
4931932
  #define MINCHUNK (240)      /* minimum size char to get own raster */
4931932
 -#define STACKSIZE (350)     /* maximum stack size for dvi files */
4931932
@@ -1417,9 +1413,9 @@
4931932
 +#define MAXFRAME (50)       /* maximum depth of virtual font recursion */
4931932
 +#define MAXFONTHD (1024)     /* number of unique names of included fonts */
4931932
  #define STDOUTSIZE (75)     /* width of a standard output line */
4931932
+ #define DOWNLOADEDPSSIZE (1000)  /* max number of downloaded fonts to check */
4931932
  /*
4931932
-  *   Other constants, which define printer-dependent stuff.
4931932
-@@ -166,7 +171,7 @@
4931932
+@@ -163,7 +166,7 @@
4931932
   *   psfile.  It can be 0, PREVPAGE, THISPAGE, or EXISTS.
4931932
   */
4931932
  typedef struct tfd {
4931932
@@ -1428,7 +1424,7 @@
4931932
     halfword dpi, loadeddpi ;
4931932
     halfword alreadyscaled ;
4931932
     halfword psname ;
4931932
-@@ -181,6 +186,7 @@
4931932
+@@ -178,6 +181,7 @@
4931932
     struct tfd *nextsize;
4931932
     char *scalename;
4931932
     chardesctype *chardesc ;