Author: ghibo
Date: Sat Feb 17 23:35:14 2007
New Revision: 122201

Added:
   packages/cooker/tetex/current/SOURCES/tetex-3.0-cweb.patch
   packages/cooker/tetex/current/SOURCES/tetex-3.0-kpathsea-cnf.patch
   packages/cooker/tetex/current/SOURCES/tetex-3.0-makeindex-CVE-2007-0650.patch
   packages/cooker/tetex/current/SOURCES/tetex-3.0-mktexlsr.patch
   packages/cooker/tetex/current/SOURCES/tetex-3.0-pdftex1403.patch
   packages/cooker/tetex/current/SOURCES/tetex-3.0-pdftosrc.patch
   packages/cooker/tetex/current/SOURCES/tetex-texmf-extras-gg-3.0i.tar.bz2   
(contents, props changed)
   packages/cooker/tetex/current/SOURCES/tetex-texmfsrc-extras-gg-3.0i.tar.bz2  
 (contents, props changed)
Removed:
   packages/cooker/tetex/current/SOURCES/tetex-texmf-extras-gg-3.0h.tar.bz2
   packages/cooker/tetex/current/SOURCES/tetex-texmfsrc-extras-gg-3.0h.tar.bz2
Modified:
   packages/cooker/tetex/current/SPECS/tetex.spec

Log:
- Backported patches from pdftex 1.40.3 (Patch39) fixing:
  o document which used type 1 and truetype or opentype fonts.
    resulted in broken pdfs (729).
  o maplines starting with = would not work as advertised.
  o xpdf would complain that PDF 1.7 is too new.
- Install missed pdftosrc (Patch40).
- Added Patch41 for kpathsea for showing warnings when a
  .cnf file is not found.
- Added Patch42 for fixing typos in cwebman.tex, and updating
  cwebmac.tex to release 3.67 (previous 3.64).
- Move /usr/local/share/texmf into a standalone subpackage
  (fix bug #21018).
- Added Patch43 for CVE-2007-0650.
- Merged Patch44 from Fedora (don't inherit incorrect permission for
  ls-R).
- Updated tetex-texmf-extras-gg to release 3.0i:
  o latex/graphics/pdftex.def 0.03t -> 0.04d.
  o added tex/generic/pdftex/glyphtounicode.tex v1.1.
  o plain/tex/base/cwebmac.tex 3.64 -> 3.67.
  o hyperref 6.75r -> 6.75q.
  o footmisc 5.3c -> 5.3d.


Added: packages/cooker/tetex/current/SOURCES/tetex-3.0-cweb.patch
==============================================================================
--- (empty file)
+++ packages/cooker/tetex/current/SOURCES/tetex-3.0-cweb.patch  Sat Feb 17 
23:35:14 2007
@@ -0,0 +1,99 @@
+--- tetex-src-3.0/texk/web2c/cwebdir/cwebmac.tex.ctangle       2007-02-17 
21:03:46.000000000 +0100
++++ tetex-src-3.0/texk/web2c/cwebdir/cwebmac.tex       2007-01-13 
16:23:41.000000000 +0100
+@@ -1,8 +1,8 @@
+ % standard macros for CWEB listings (in addition to plain.tex)
+-% Version 3.64 --- February 2002
+-\ifx\documentstyle\undefined\else\endinput\fi % LaTeX will use other macros
+-\xdef\fmtversion{\fmtversion+CWEB3.64}
+-\chardef\cwebversion=3 \chardef\cwebrevision=64
++% Version 3.67 --- July 2006
++\ifx\renewenvironment\undefined\else\endinput\fi % LaTeX will use other macros
++\xdef\fmtversion{\fmtversion+CWEB3.67}
++\chardef\cwebversion=3 \chardef\cwebrevision=67
+ \newif\ifpdf
+ \ifx\pdf+\pdftrue\fi
+ % Uncomment the following line if you want PDF goodies to be the default
+@@ -339,7 +339,8 @@
+ % \S is section sign
+ \def\T#1{\leavevmode % octal, hex or decimal constant
+   \hbox{$\def\?{\kern.2em}%
+-    \def\$##1{\egroup_{\,\rm##1}\bgroup}% suffix to constant
++%    \def\$##1{\egroup_{\,\rm##1}\bgroup}% suffix to constant % versions < 
3.67
++    \def\$##1{\egroup_{\rm##1}\bgroup}% suffix to constant
+     \def\_{\cdot 10^{\aftergroup}}% power of ten (via dirty trick)
+     \let\~=\oct \let\^=\hex {#1}$}}
+ \def\U{\note{This code is used in section}} % xref for use of a section
+@@ -534,6 +535,11 @@
+ \def\datethis{\def\startsection{\leftline{\sc\today\ at \hours}\bigskip
+   \let\startsection=\stsec\stsec}}
+   % say `\datethis' in limbo, to get your listing timestamped before section 1
+-\def\datecontentspage{%
+-  \def\topofcontents{\leftline{\sc\today\ at \hours}\bigskip
+-   \centerline{\titlefont\title}\vfill}} % timestamps the contents page
++%\def\datecontentspage{% versions up to 3.65
++%  \def\topofcontents{\leftline{\sc\today\ at \hours}\bigskip
++%   \centerline{\titlefont\title}\vfill}} % timestamps the contents page
++\def\datecontentspage{% changed in version 3.66
++  \def\botofcontents{\vfill
++   \centerline{\covernote}
++   \bigskip
++   \leftline{\sc\today\ at \hours}}} % timestamps the contents page
+--- tetex-src-3.0/texk/web2c/cwebdir/cwebman.tex.ctangle       2002-03-02 
19:55:30.000000000 +0100
++++ tetex-src-3.0/texk/web2c/cwebdir/cwebman.tex       2007-01-13 
16:23:41.000000000 +0100
+@@ -699,7 +699,7 @@
+ be totally ignored---it's a comment for readers of the \.{CWEB} file only.
+ A file intended to be included in
+ limbo, with [EMAIL PROTECTED], can identify itself with [EMAIL PROTECTED] 
comments.
+-Another use is to balance unbalanced parentheses in C strings,
++Another use is to balance unbalanced parentheses in \CEE/ strings,
+ so that your text editor's parenthesis matcher doesn't go into a tailspin.
+ 
+ [EMAIL PROTECTED] [TMCc] $*$
+@@ -910,7 +910,7 @@
+ of file \.{foo} and files it includes are not changeable; but changes
+ can be made to lines from files that were included by unchanged input.
+ 
+-\more On UNIX systems (and others that support environment variables),
++\more On \UNIX/ systems (and others that support environment variables),
+ if the environment variable \.{CWEBINPUTS} is set, or if the compiler flag
+ of the same name was defined at compile time,
+ \.{CWEB} will look for include files in the directory thus named, if
+@@ -1158,7 +1158,7 @@
+ \.{CTWILL} is intended primarily for hardcopy output, but its principles
+ could be used for hypertext as well.
+ See Chapter 11 of {\sl Digital Typography\/} by D.~E. Knuth (1999), and
+-the program sources at \.{ftp://labrea.stanford.edu/pub/ctwill}.
++the program sources at \.{ftp://ftp.cs.stanford.edu/pub/ctwill}.
+ 
+ \section Appendices.
+ 
+@@ -1514,7 +1514,7 @@
+ 
+ \point 1. Four fonts have been declared in addition to the standard fonts of
+ \.{PLAIN} format: You can say `\.{\{\\mc UNIX\}}' to get {\mc UNIX} in
+-medium-size caps; you can say `\.{\{\\sc STUFF\}}' to get {\sc STUFF}
++xmedium-size caps; you can say `\.{\{\\sc STUFF\}}' to get {\sc STUFF}
+ in small caps; and you can select the largish fonts \.{\\titlefont}
+ and \.{\\ttitlefont} in the title of your document, where \.{\\ttitlefont}
+ is a typewriter style of type. There are macros \.{\\UNIX/} and \.{\\CEE/}
+@@ -1678,7 +1678,8 @@
+ if you prefer the shorter notation \.{\\+}.
+ 
+ \point 14. To get output in languages other than English, redefine the
+-macros \.{\\A}, \.{\\As}, \.{\\ET}, \.{\\ETs}, \.{\\Q}, \.{\\Qs}, \.{\\U},
++macros \.{\\A}, \.{\\As}, \.{\\ATH},
++\.{\\ET}, \.{\\ETs}, \.{\\Q}, \.{\\Qs}, \.{\\U},
+ \.{\\Us}, \.{\\ch}, \.{\\fin}, \.{\\con}, \.{\\today}, \.{\\datethis}, and
+ \.{\\datecontentspage}. \.{CWEAVE} itself need not be changed.
+ 
+--- tetex-src-3.0/texk/web2c/cwebdir/ctangle.w.ctangle 2002-02-01 
15:44:51.000000000 +0100
++++ tetex-src-3.0/texk/web2c/cwebdir/ctangle.w 2007-02-17 21:01:53.000000000 
+0100
+@@ -831,7 +831,7 @@
+ to the output. If the comment is introduced by \.{/*}, |skip_comment|
+ proceeds until finding the end-comment token \.{*/} or a newline; in the
+ latter case |skip_comment| will be called again by |get_next|, since the
+-comment is not finished.  This is done so that the each newline in the
++comment is not finished.  This is done so that each newline in the
+ \CEE/ part of a section is copied to the output; otherwise the \&{\#line}
+ commands inserted into the \CEE/ file by the output routines become useless.
+ On the other hand, if the comment is introduced by \.{//} (i.e., if it

Added: packages/cooker/tetex/current/SOURCES/tetex-3.0-kpathsea-cnf.patch
==============================================================================
--- (empty file)
+++ packages/cooker/tetex/current/SOURCES/tetex-3.0-kpathsea-cnf.patch  Sat Feb 
17 23:35:14 2007
@@ -0,0 +1,21 @@
+--- tetex-src-3.0/texk/kpathsea/cnf.c.kpath    2007-02-17 17:35:33.000000000 
+0100
++++ tetex-src-3.0/texk/kpathsea/cnf.c  2007-02-17 20:57:24.000000000 +0100
+@@ -162,7 +162,7 @@
+   cnf_hash = hash_create (CNF_HASH_SIZE);
+ 
+   cnf_files = kpse_all_path_search (cnf_path, CNF_NAME);
+-  if (cnf_files) {
++  if (cnf_files && *cnf_files) {
+     for (cnf = cnf_files; *cnf; cnf++) {
+       string line;
+       FILE *cnf_file = xfopen (*cnf, FOPEN_R_MODE);
+@@ -197,7 +197,8 @@
+       free (*cnf);
+     }
+     free (cnf_files);
+-  }
++  } else
++    WARNING1 ("Configuration file texmf.cnf not found! Searched these 
directories:\n%s\nTrying to proceed..", cnf_path);
+ }
+ 
+ /* Read the cnf files on the first call.  Return the first value in the

Added: 
packages/cooker/tetex/current/SOURCES/tetex-3.0-makeindex-CVE-2007-0650.patch
==============================================================================
--- (empty file)
+++ 
packages/cooker/tetex/current/SOURCES/tetex-3.0-makeindex-CVE-2007-0650.patch   
    Sat Feb 17 23:35:14 2007
@@ -0,0 +1,80 @@
+--- tetex-src-3.0/texk/makeindexk/mkind.c.cve2006_0650 2002-10-02 
14:26:37.000000000 +0200
++++ tetex-src-3.0/texk/makeindexk/mkind.c      2007-02-17 22:27:55.000000000 
+0100
+@@ -179,7 +179,9 @@
+                   argc--;
+                   if (argc <= 0)
+                       FATAL("Expected -p <num>\n","");
+-                  strcpy(pageno, *++argv);
++                  if (strlen(*++argv) >= sizeof(pageno))
++                      FATAL("Page number too high\n","");
++                  strcpy(pageno, *argv);
+                   init_page = TRUE;
+                   if (STREQ(pageno, EVEN)) {
+                       log_given = TRUE;
+@@ -230,7 +232,7 @@
+               char tmp[STRING_MAX + 5];
+               
+               /* base set by last call to check_idx */
+-              sprintf (tmp, "%s%s", base, INDEX_STY);
++              snprintf (tmp, sizeof(tmp), "%s%s", base, INDEX_STY);
+               if (0 == access(tmp, R_OK)) {
+                       open_sty (tmp);
+                       sty_given = TRUE;
+@@ -405,9 +407,9 @@
+                   STRING_MAX,totmem);
+ #endif /* DEBUG */
+ 
+-          if ((idx_fn = (char *) malloc(STRING_MAX)) == NULL)
++          if ((idx_fn = (char *) malloc(STRING_MAX+5)) == NULL)
+               FATAL("Not enough core...abort.\n", "");
+-          sprintf(idx_fn, "%s%s", base, INDEX_IDX);
++          snprintf(idx_fn, STRING_MAX+5, "%s%s", base, INDEX_IDX);
+           if ((open_fn && 
+        ((idx_fp = OPEN_IN(idx_fn)) == NULL)
+       ) ||
+@@ -434,7 +436,7 @@
+ 
+     /* index output file */
+     if (!ind_given) {
+-      sprintf(ind, "%s%s", base, INDEX_IND);
++      snprintf(ind, sizeof(ind), "%s%s", base, INDEX_IND);
+       ind_fn = ind;
+     }
+     if ((ind_fp = OPEN_OUT(ind_fn)) == NULL)
+@@ -442,14 +444,14 @@
+ 
+     /* index transcript file */
+     if (!ilg_given) {
+-      sprintf(ilg, "%s%s", base, INDEX_ILG);
++      snprintf(ilg, sizeof(ilg), "%s%s", base, INDEX_ILG);
+       ilg_fn = ilg;
+     }
+     if ((ilg_fp = OPEN_OUT(ilg_fn)) == NULL)
+       FATAL("Can't create transcript file %s.\n", ilg_fn);
+ 
+     if (log_given) {
+-      sprintf(log_fn, "%s%s", base, INDEX_LOG);
++      snprintf(log_fn, sizeof(log_fn), "%s%s", base, INDEX_LOG);
+       if ((log_fp = OPEN_IN(log_fn)) == NULL) {
+           FATAL("Source log file %s not found.\n", log_fn);
+       } else {
+@@ -505,6 +507,9 @@
+   if ((found = kpse_find_file (fn, kpse_ist_format, 1)) == NULL) {
+      FATAL("Index style file %s not found.\n", fn);
+   } else {
++    if (strlen(found) >= sizeof(sty_fn)) {
++      FATAL("Style file %s too long.\n", found);
++    }
+     strcpy(sty_fn,found);
+     if ((sty_fp = OPEN_IN(sty_fn)) == NULL) {
+       FATAL("Could not open style file %s.\n", sty_fn);
+@@ -512,6 +517,9 @@
+   }
+ #else
+     if ((path = getenv(STYLE_PATH)) == NULL) {
++        if (strlen(fn) >= sizeof(sty_fn)) {
++          FATAL("Style file %s too long.\n", fn);
++        }
+       /* style input path not defined */
+       strcpy(sty_fn, fn);
+       sty_fp = OPEN_IN(sty_fn);

Added: packages/cooker/tetex/current/SOURCES/tetex-3.0-mktexlsr.patch
==============================================================================
--- (empty file)
+++ packages/cooker/tetex/current/SOURCES/tetex-3.0-mktexlsr.patch      Sat Feb 
17 23:35:14 2007
@@ -0,0 +1,11 @@
+--- tetex-src-3.0/texk/kpathsea/mktexlsr.mktexlsr      2007-02-17 
17:35:33.000000000 +0100
++++ tetex-src-3.0/texk/kpathsea/mktexlsr       2007-02-17 22:36:06.000000000 
+0100
+@@ -143,7 +143,7 @@
+   until PERMS=`kpsestat = "$db_file"`; do sleep 1; done
+   chmod $PERMS "$db_file_tmp"
+   rm -f "$db_file"
+-  mv "$db_file_tmp" "$db_file"
++  install -m644 "$db_file_tmp" "$db_file"
+   rm -rf "$db_dir_tmp"
+ done
+ tty -s && echo "$progname: Done." >&2

Added: packages/cooker/tetex/current/SOURCES/tetex-3.0-pdftex1403.patch
==============================================================================
--- (empty file)
+++ packages/cooker/tetex/current/SOURCES/tetex-3.0-pdftex1403.patch    Sat Feb 
17 23:35:14 2007
@@ -0,0 +1,237 @@
+--- tetex-src-3.0/texk/web2c/pdftexdir/writeimg.c.pdf1403      2007-02-17 
17:35:34.000000000 +0100
++++ tetex-src-3.0/texk/web2c/pdftexdir/writeimg.c      2007-02-17 
19:46:59.000000000 +0100
+@@ -1,5 +1,5 @@
+ /*
+-Copyright (c) 1996-2002, 2005 Han The Thanh, <[EMAIL PROTECTED]>
++Copyright (c) 1996-2007 Han The Thanh, <[EMAIL PROTECTED]>
+ 
+ This file is part of pdfTeX.
+ 
+@@ -314,7 +314,7 @@
+         if (pdfversion < 4) {
+             pdftex_fail
+                 ("JBIG2 images only possible with at least PDF 1.4; you are 
generating PDF 1.%i",
+-                 pdfversion);
++                 (int)pdfversion);
+         }
+         jbig2_ptr(img) = xtalloc(1, JBIG2_IMAGE_INFO);
+         img_type(img) = IMAGE_TYPE_JBIG2;
+--- tetex-src-3.0/texk/web2c/pdftexdir/pdftex.web.pdf1403      2007-02-17 
17:35:34.000000000 +0100
++++ tetex-src-3.0/texk/web2c/pdftexdir/pdftex.web      2007-02-17 
19:46:59.000000000 +0100
+@@ -286,8 +286,8 @@
+   {printed when \eTeX\ starts}
+ @#
+ @d pdftex_version==140 { \.{\\pdftexversion} }
[EMAIL PROTECTED] pdftex_revision=="1" { \.{\\pdftexrevision} }
[EMAIL PROTECTED] pdftex_version_string=='-1.40.1' {current \pdfTeX\ version}
[EMAIL PROTECTED] pdftex_revision=="3" { \.{\\pdftexrevision} }
[EMAIL PROTECTED] pdftex_version_string=='-1.40.3' {current \pdfTeX\ version}
+ @#
+ @d pdfeTeX_banner=='This is pdfeTeX, Version 
3.141592',pdftex_version_string,eTeX_version_string
+    {printed when \pdfeTeX\ starts}
+--- tetex-src-3.0/texk/web2c/pdftexdir/writefont.c.pdf1403     2007-02-17 
17:35:34.000000000 +0100
++++ tetex-src-3.0/texk/web2c/pdftexdir/writefont.c     2007-02-17 
19:46:59.000000000 +0100
+@@ -1,5 +1,5 @@
+ /*
+-Copyright (c) 1996-2006 Han The Thanh, <[EMAIL PROTECTED]>
++Copyright (c) 1996-2007 Han The Thanh, <[EMAIL PROTECTED]>
+ 
+ This file is part of pdfTeX.
+ 
+@@ -504,7 +504,8 @@
+     pdf_printf("/FirstChar %i\n/LastChar %i\n/Widths %i 0 R\n",
+                (int) fo->first_char, (int) fo->last_char,
+                (int) fo->cw->cw_objnum);
+-    if (fo->fe != NULL && fo->fe->fe_objnum != 0)
++    if ((is_type1(fo->fm) || is_opentype(fo->fm)) && fo->fe != NULL
++        && fo->fe->fe_objnum != 0)
+         pdf_printf("/Encoding %i 0 R\n", (int) fo->fe->fe_objnum);
+     if (fo->tounicode_objnum != 0)
+         pdf_printf("/ToUnicode %i 0 R\n", (int) fo->tounicode_objnum);
+--- tetex-src-3.0/texk/web2c/pdftexdir/NEWS.pdf1403    2007-02-17 
17:35:34.000000000 +0100
++++ tetex-src-3.0/texk/web2c/pdftexdir/NEWS    2007-02-17 19:46:59.000000000 
+0100
+@@ -1,4 +1,16 @@
+ -------------------------------------------------
++pdfTeX 3.141592-1.40.3 was released on 2007-02-04
++-------------------------------------------------
++- bugfix: document which used type 1 and truetype or opentype fonts resulted 
in
++  broken pdfs (729)
++
++-------------------------------------------------
++pdfTeX 3.141592-1.40.2 was released on 2007-01-31
++-------------------------------------------------
++- bugfix: maplines starting with = would not work as advertised
++- bugfix: xpdf would complain that PDF 1.7 is too new
++
++-------------------------------------------------
+ pdfTeX 3.141592-1.40.1 was released on 2007-01-08
+ -------------------------------------------------
+ - bugfix: the shell escape function was a bit broken
+--- tetex-src-3.0/texk/web2c/pdftexdir/mapfile.c.pdf1403       2007-02-17 
17:35:34.000000000 +0100
++++ tetex-src-3.0/texk/web2c/pdftexdir/mapfile.c       2007-02-17 
19:44:17.000000000 +0100
+@@ -197,7 +197,7 @@
+                 break;
+             case FM_REPLACE:
+             case FM_DELETE:
+-                if (fm->in_use) {
++                if (p->in_use) {
+                     pdftex_warn
+                         ("fontmap entry for `%s' has been used, 
replace/delete not allowed",
+                          fm->tfm_name);
+@@ -231,7 +231,7 @@
+                 break;
+             case FM_REPLACE:
+             case FM_DELETE:
+-                if (fm->in_use)
++                if (p->in_use)
+                     goto exit;
+                 a = avl_delete(ps_tree, p);
+                 assert(a != NULL);
+--- tetex-src-3.0/texk/web2c/pdftexdir/README.pdf1403  2007-02-17 
17:35:34.000000000 +0100
++++ tetex-src-3.0/texk/web2c/pdftexdir/README  2007-02-17 19:46:59.000000000 
+0100
+@@ -1,10 +1,10 @@
+ pdfTeX
+ ======
+ 
+-README for version 3.14159-1.40.1
++README for version 3.14159-1.40.3
+ =================================
+ 
+-This directory contains the version 1.40.1 of pdfTeX, an extended version
++This directory contains the version 1.40.3 of pdfTeX, an extended version
+ of eTeX that can create PDF directly from TeX source files and enhance the
+ result of TeX typesetting with the help of PDF. When PDF output is not
+ selected, pdfTeX produces normal DVI output, otherwise it produces PDF
+--- tetex-src-3.0/texk/web2c/man/pdfetex.man.pdf1403   2007-02-17 
17:35:34.000000000 +0100
++++ tetex-src-3.0/texk/web2c/man/pdfetex.man   2007-02-17 19:43:01.000000000 
+0100
+@@ -84,9 +84,12 @@
+ mode, pdfe\*(TX can natively handle the
+ .IR PDF ,
+ .IR JPG ,
++.IR JBIG2 ,
+ and
+ .I PNG
+-graphics formats.
++graphics formats.  pdfe\*(TX cannot include PostScript or Encapsulated
++PostScript (EPS) graphics files; first convert them to PDF using 
++.BR epstopdf (1).
+ pdfe\*(TX's handling of its command-line arguments is similar to that of
+ of the other \*(TX programs in the
+ .I web2c
+@@ -474,14 +477,14 @@
+ website.
+ .\"=====================================================================
+ .SH "SEE ALSO"
+-.BR tex (1),
+-.BR mf (1),
+ .BR etex (1),
+-.BR pdftex (1).
++.BR mf (1),
++.BR pdftex (1),
++.BR tex (1).
+ .\"=====================================================================
+ .SH AUTHORS
+ The primary authors of pdfe\*(TX are Han The Thanh, Petr Sojka,
+-Jiri Zlatuska, and Peter Breitenlohner (e\*TX).
++Jiri Zlatuska, and Peter Breitenlohner (e\*(TX).
+ .PP
+ \*(TX was designed by Donald E. Knuth,
+ who implemented it using his \*(WB system for Pascal programs.
+--- tetex-src-3.0/texk/web2c/man/latex.man.pdf1403     2007-02-17 
17:35:34.000000000 +0100
++++ tetex-src-3.0/texk/web2c/man/latex.man     2007-02-17 19:42:32.000000000 
+0100
+@@ -19,6 +19,7 @@
+ [ first line ]
+ .\"=====================================================================
+ .SH DESCRIPTION
++.PP
+ This manual page is not meant to be exhaustive.  The complete
+ documentation for this version of \*(TX can be found in the info file
+ or manual
+@@ -60,16 +61,26 @@
+ are available for compatibility with older versions of \*(LX.  These
+ should not be used for new texts.
+ .\"=====================================================================
++.PP
+ .SH "SEE ALSO"
+ .BR amslatex (1),
+ .BR amstex (1),
+-.BR tex (1),
+-.br
++.BR pdflatex (1),
++.BR pdftex (1),
++.BR tex (1).
++.PP
+ Leslie Lamport,
+ .IR "\*(LX \- A Document Preparation System" ,
+-Addison-Wesley, 1985, ISBN 0-201-15790-X.
+-
+-LaTeX Companion
+-
+-LaTeX Graphics Companion
+-
++Addison-Wesley, 1985, ISBN 020115790X.
++.PP
++Frank Mittelbach, Michel Goossens, Johannes Braams, David Carlisle,
++and Chris Rowley, 
++.IR "LaTeX Companion" ,
++Addison-Wesley, 2004, ISBN 0201362996 (2nd edition).
++.PP
++\fILaTeX Graphics Companion\fP, available as part of a boxed set:
++\fIThe LaTeX Companions, Revised Boxed Set : A Complete Guide and
++Reference for Preparing, Illustrating, and Publishing Technical
++Documents\fP (2nd Edition), by Frank Mittelbach, Michel Goossens,
++Sebastian Rahtz, Helmut Kopka, Patrick W. Daly (Addison-Wesley, 2004,
++ISBN 0321269446).
+--- tetex-src-3.0/texk/web2c/man/pdftex.man.pdf1403    2007-02-17 
17:35:34.000000000 +0100
++++ tetex-src-3.0/texk/web2c/man/pdftex.man    2007-02-17 19:43:25.000000000 
+0100
+@@ -1,4 +1,4 @@
+-.TH PDFTEX 1 "8 Jan 2007" "pdftex 1.40" "Web2C @VERSION@"
++.TH PDFTEX 1 "8 January 2007" "pdftex 1.40" "Web2C @VERSION@"
+ .\"=====================================================================
+ .if n .ds MF Metafont
+ .if t .ds MF M\s-2ETAFONT\s0
+@@ -88,7 +88,9 @@
+ .IR JBIG2 ,
+ and
+ .I PNG
+-graphics formats.
++graphics formats.  pdf\*(TX cannot include PostScript or Encapsulated
++PostScript (EPS) graphics files; first convert them to PDF using 
++.BR epstopdf (1).
+ pdf\*(TX's handling of its command-line arguments is similar to that of
+ of the other \*(TX programs in the
+ .I web2c
+@@ -476,13 +478,17 @@
+ website.
+ .\"=====================================================================
+ .SH "SEE ALSO"
+-.BR tex (1),
++.BR epstopdf (1),
+ .BR etex (1),
++.BR latex (1),
++.BR mptopdf (1),
++.BR tex (1),
++.BR texexec (1),
+ .BR mf (1).
+ .\"=====================================================================
+ .SH AUTHORS
+ The primary authors of pdf\*(TX are Han The Thanh, Petr Sojka,
+-Jiri Zlatuska, and Peter Breitenlohner (e\*TX).
++Jiri Zlatuska, and Peter Breitenlohner (e\*(TX).
+ .PP
+ \*(TX was designed by Donald E. Knuth,
+ who implemented it using his \*(WB system for Pascal programs.
+--- tetex-src-3.0/libs/xpdf/xpdf/config.h.pdf1403      2007-02-17 
17:35:28.000000000 +0100
++++ tetex-src-3.0/libs/xpdf/xpdf/config.h      2007-02-17 19:41:27.000000000 
+0100
+@@ -24,8 +24,9 @@
+ #define xpdfUpdateVersionStr "0"
+ 
+ // supported PDF version
+-#define supportedPDFVersionStr "1.5"
+-#define supportedPDFVersionNum 1.5
++// xpdf says only 1.5, but 1.7 is the same for pdfTeX's purpose
++#define supportedPDFVersionStr "1.7"
++#define supportedPDFVersionNum 1.7
+ 
+ // copyright notice
+ #define xpdfCopyright "Copyright 1996-2005 Glyph & Cog, LLC"

Added: packages/cooker/tetex/current/SOURCES/tetex-3.0-pdftosrc.patch
==============================================================================
--- (empty file)
+++ packages/cooker/tetex/current/SOURCES/tetex-3.0-pdftosrc.patch      Sat Feb 
17 23:35:14 2007
@@ -0,0 +1,11 @@
+--- tetex-src-3.0/texk/web2c/Makefile.in.pdftosrc      2007-02-17 
20:32:48.000000000 +0100
++++ tetex-src-3.0/texk/web2c/Makefile.in       2007-02-17 20:32:48.000000000 
+0100
+@@ -565,7 +565,7 @@
+ # 
+ # Common
+ programs = bibtex ctangle ctie cweave dvicopy dvitomp dvitype gftodvi gftopk \
+- gftype mft $(odvicopy) $(odvitype) $(otangle) patgen pktogf pktype pltotf \
++ gftype mft $(odvicopy) $(odvitype) $(otangle) patgen $(pdftosrc) pktogf 
pktype pltotf \
+  pooltype tangle tftopl tie $(ttf2afm) vftovp vptovf weave
+ engines = $(tex) $(etex) $(mfw) $(mfn) $(mpost) \
+           $(omega) $(aleph) \

Added: packages/cooker/tetex/current/SOURCES/tetex-texmf-extras-gg-3.0i.tar.bz2
==============================================================================
Binary file. No diff available.

Added: 
packages/cooker/tetex/current/SOURCES/tetex-texmfsrc-extras-gg-3.0i.tar.bz2
==============================================================================
Binary file. No diff available.

Modified: packages/cooker/tetex/current/SPECS/tetex.spec
==============================================================================
--- packages/cooker/tetex/current/SPECS/tetex.spec      (original)
+++ packages/cooker/tetex/current/SPECS/tetex.spec      Sat Feb 17 23:35:14 2007
@@ -14,8 +14,8 @@
 %endif
 %define texmfversion    3.0
 %define texmfsrcversion        3.0
-%define texmfggversion 3.0h
-%define texmfsrcggversion      3.0h
+%define texmfggversion 3.0i
+%define texmfsrcggversion      3.0i
 %define jadename       jadetex
 %define jadeversion    3.12
 %define jaderelease_delta 98
@@ -87,6 +87,12 @@
 Patch36:       tetex-3.0-pdftex1401.patch
 Patch37:       tetex-3.0-pdftex1401-remove.patch
 Patch38:       tetex-3.0-xdvizilla.patch
+Patch39:       tetex-3.0-pdftex1403.patch
+Patch40:       tetex-3.0-pdftosrc.patch
+Patch41:       tetex-3.0-kpathsea-cnf.patch
+Patch42:       tetex-3.0-cweb.patch
+Patch43:       tetex-3.0-makeindex-CVE-2007-0650.patch
+Patch44:       tetex-3.0-mktexlsr.patch
 #
 URL:           http://www.tug.org/teTeX/
 Packager:      Giuseppe Ghib� <[EMAIL PROTECTED]>
@@ -359,6 +365,15 @@
 This package converts the GNU standard form of documentation (texinfo) into
 HTML files which can be read with any WWW browser.
 
+%package       usrlocal
+Summary:       Virtual package for placing local system-wide teTeX files
+Group:         Puglishing
+License:       GPL
+
+%description   usrlocal
+This packages provides just the directory /usr/local/share/texmf
+which is defined by the var TEXMFLOCAL in the default config file
+and can be used for system-wide teTeX files.
 
 %prep
 %setup -q -n %{name}-src-%{tetexversion} -a 7 -a 8 -a 11 -a 20
@@ -423,6 +438,20 @@
 
 %patch38 -p1 -b .xdvizilla
 
+# pdftex 1.40.3
+%patch39 -p1 -b .pdf1403
+
+%patch40 -p1 -b .pdftosrc
+%patch41 -p1 -b .kpathsea
+
+# cweb (cwebmac.tex)
+%patch42 -p1
+
+# CVE-2007-0650
+%patch43 -p1 -b .cve-2007-0650
+
+%patch44 -p1 -b .mktexlsr
+
 # cleaning old latin modern 0.92.
 (rm -f texmf/fonts/enc/dvips/lm/{cork-lm,qx-lm,qx-lmtt,texnansi-lm,ts1-lm}.enc
  rm -f texmf/fonts/map/dvips/lm/{cork-lm,lm,qx-lm,texnansi-lm,ts1-lm}.map
@@ -586,7 +615,7 @@
        sed "s|^$RPM_BUILD_ROOT|\%attr(-,root,root) \%dir |" >> filelist.full
 
 # dir for TEXMFLOCAL
-echo "%attr(755,root,root) %dir /usr/local/share/texmf" >> filelist.full
+#echo "%attr(755,root,root) %dir /usr/local/share/texmf" >> filelist.full
 
 # subpackages
 grep -v "/doc/" filelist.full | grep latex | \
@@ -745,7 +774,9 @@
 
 %post xdvi
 [ -x /usr/bin/texhash ] && /usr/bin/env - /usr/bin/texhash 2> /dev/null
+%if %{mdkversion} >= 200610
 %{update_menus}
+%endif
 exit 0
 
 %post dvips
@@ -785,6 +816,10 @@
 %post texi2html
 /sbin/install-info %{_infodir}/texi2html.info.bz2 %{_infodir}/dir
 
+%post usrlocal
+[ -x /usr/bin/texhash ] && /usr/bin/env - /usr/bin/texhash 2> /dev/null
+exit 0
+
 %postun
 [ -x /usr/bin/texhash ] && /usr/bin/env - /usr/bin/texhash 2> /dev/null
 exit 0
@@ -796,7 +831,9 @@
 %postun xdvi
 [ -x /usr/bin/texhash ] && /usr/bin/env - /usr/bin/texhash 2> /dev/null
 if [ "$1" = "0" ]; then
+%if %{mdkversion} >= 200610
 %{clean_menus}
+%endif
 fi
 exit 0
 
@@ -832,6 +869,10 @@
 [ -x /usr/bin/texhash ] && /usr/bin/env - /usr/bin/texhash 2> /dev/null
 exit 0
 
+%postun usrlocal
+[ -x /usr/bin/texhash ] && /usr/bin/env - /usr/bin/texhash 2> /dev/null
+exit 0
+
 %preun
 if [ "$1" = 0 ]; then
        /sbin/install-info --delete %{_infodir}/kpathsea.info.bz2 
%{_infodir}/dir
@@ -924,3 +965,7 @@
 
 %files -f filelist.texi2html texi2html
 %defattr(-,root,root)
+
+%files usrlocal
+%defattr(-,root,root)
+%dir /usr/local/share/texmf

Reply via email to