 texk/dvipdfm/ebb.1      |    6 ++----
 texk/dvipdfm/ebb.c      |    2 +-
 texk/dvipsk/dvips.1     |    5 ++++-
 texk/dvipsk/dvips.info  |    4 +++-
 texk/dvipsk/dvips.texi  |    8 +++++---
 texk/tetex/epstopdf     |    3 ++-
 texk/tetex/epstopdf.man |    8 +++++---
 texk/tetex/fmtutil      |    5 +++++
 8 files changed, 27 insertions(+), 14 deletions(-)

Index: tetex-bin/texk/tetex/epstopdf
===================================================================
--- tetex-bin.orig/texk/tetex/epstopdf	2006-01-03 13:49:32.000000000 +0100
+++ tetex-bin/texk/tetex/epstopdf	2006-06-01 21:10:36.299540000 +0200
@@ -205,7 +205,8 @@
 ### open output file
 if ($::opt_gs) {
   my $pipe = "$GS -q -sDEVICE=pdfwrite $GSOPTS " .
-          "-sOutputFile=$OutputFilename - -c quit";
+      "-dAutoRotatePages=/None " .
+      "\"-sOutputFile=$OutputFilename\" - -c quit";
   debug "Ghostscript pipe:", $pipe;
   open(OUT,"|$pipe") or error "Cannot open Ghostscript for piped input";
 }
Index: tetex-bin/texk/tetex/epstopdf.man
===================================================================
--- tetex-bin.orig/texk/tetex/epstopdf.man	2006-01-03 13:49:32.000000000 +0100
+++ tetex-bin/texk/tetex/epstopdf.man	2006-06-01 21:10:36.299540000 +0200
@@ -14,10 +14,12 @@
 .P
 If the bounding box is not right, of course, you have problems...
 .SH OPTIONS
-.IP "\fB--outfile\fP=\fIfile\fP"
-write result to \fIfile\fP instead of standard output.
 .IP "\fB--\fP[\fBno\fP]\fBfilter\fP"
-read standard input   (default: --nofilter).
+read standard input, write to standard output  (default: --nofilter).
+.IP "\fB--outfile\fP=\fIfile\fP"
+when \fB--[no]filter\fP ist given, write result to \fIfile\fP instead of
+standard output. If neither \fB--filter\fP nor \fB--outfile\fP is given
+write to \fIinput-file.pdf\fP.
 .IP "\fB--\fP[\fBno\fP]\fBgs\fP"
 run ghostscript       (default: --gs).
 .IP "\fB--\fP[\fBno\fP]\fBcompress\fP"
Index: tetex-bin/texk/dvipdfm/ebb.c
===================================================================
--- tetex-bin.orig/texk/dvipdfm/ebb.c	2006-01-03 13:49:32.000000000 +0100
+++ tetex-bin/texk/dvipdfm/ebb.c	2006-06-01 21:10:36.309540000 +0200
@@ -49,7 +49,7 @@
   fprintf (stderr, "ebb comes with ABSOLUTELY NO WARRANTY.\n");
   fprintf (stderr, "This is free software, and you are welcome to redistribute it\n");
   fprintf (stderr, "under certain conditions.  Details are distributed with the software.\n");
-  fprintf (stderr, "\nUsage: [-v] [-b] ebb [files]\n");
+  fprintf (stderr, "\nUsage: ebb [-v] [-b] [files]\n");
   fprintf (stderr, "\t-b\t\tWrite .bb file in binary mode\n");
   fprintf (stderr, "\t-v\t\tVerbose\n");
   exit(1);
Index: tetex-bin/texk/dvipdfm/ebb.1
===================================================================
--- tetex-bin.orig/texk/dvipdfm/ebb.1	2006-06-01 21:10:35.939540000 +0200
+++ tetex-bin/texk/dvipdfm/ebb.1	2006-06-01 21:10:36.309540000 +0200
@@ -18,11 +18,9 @@
 .HP
 \fB\-v\fR : be verbose
 .HP
-\fB\-b\fR : Write .bb file in binary mode
+\fB\-b\fR : Write .bb file in binary mode (has no effect on Linux and
+other systems conforming to POSIX).
 .HP
-.SH "BUGS" 
-.PP 
-I cannot find a difference between binary and standard .bb files\&.
 .PP 
 .SH "AUTHOR" 
 .PP 
Index: tetex-bin/texk/tetex/fmtutil
===================================================================
--- tetex-bin.orig/texk/tetex/fmtutil	2006-06-01 21:10:35.429540000 +0200
+++ tetex-bin/texk/tetex/fmtutil	2006-06-01 21:10:36.309540000 +0200
@@ -34,6 +34,7 @@
 ###############################################################################
 ###############################################################################
 # program history:
+#   Do Mar 02 10:42:31 CET 2006 add tmpdir to TEXFORMATS (currently Debian specific)
 #   Sa Jan 15 18:13:46 CET 2005 avoid multiple variable assignments in one statement
 #   Di Jan 11 11:42:36 CET 2005 fix --byhyphen with relative hyphenfile
 #   Fr Dez 31 16:51:29 CET 2004 option catcfg added (for being called by texconfig)
@@ -564,6 +565,10 @@
   # due to KPSE_DOT, we don't search the current directory, so include
   # it explicitly for formats that \write and later on \read
   TEXINPUTS="$tmpdir:$TEXINPUTS"; export TEXINPUTS
+  # for formats that load other formats (e.g. jadetex loads latex.fmt), 
+  # add the current directory to TEXFORMATS, too.  We could do the same for
+  # MFBASES and MPMEMS, but it doesn't seem to be necessary currently.
+  TEXFORMATS="$tmpdir:$TEXFORMATS"; export TEXFORMATS
 
   setupTmpDir
   cd "$tmpdir" || {
Index: tetex-bin/texk/dvipsk/dvips.texi
===================================================================
--- tetex-bin.orig/texk/dvipsk/dvips.texi	2005-10-06 17:26:11.000000000 +0200
+++ tetex-bin/texk/dvipsk/dvips.texi	2006-06-01 21:10:36.349540000 +0200
@@ -1073,9 +1073,11 @@
 
 @item -T @var{hsize},@var{vsize}
 @opindex -T @var{hsize},@var{vsize}
-Set the paper size to (@var{hsize},@var{vsize}), a comma-separated pair
-of dimensions such as @samp{.1in,-.3cm} (@pxref{papersize special}).  It
-overrides any paper size special in the DVI file.
+Set the paper size to (@var{hsize},@var{vsize}), a comma-separated
+pair of dimensions such as @samp{.1in,-.3cm} (@pxref{papersize
+special}).  It overrides any paper size special in the DVI file.  Be
+careful, as the paper size will stick to a predefined size if there is
+one close enough. To disable this behavior, use @samp{-tunknown}.
 
 @item -u @var{psmapfile}
 @opindex -u @var{psmapfile}
Index: tetex-bin/texk/dvipsk/dvips.info
===================================================================
--- tetex-bin.orig/texk/dvipsk/dvips.info	2005-10-06 17:26:11.000000000 +0200
+++ tetex-bin/texk/dvipsk/dvips.info	2006-06-01 21:10:36.389540000 +0200
@@ -915,7 +915,9 @@
 `-T HSIZE,VSIZE'
      Set the paper size to (HSIZE,VSIZE), a comma-separated pair of
      dimensions such as `.1in,-.3cm' (*note papersize special::).  It
-     overrides any paper size special in the DVI file.
+     overrides any paper size special in the DVI file.  Be careful, as
+     the paper size will stick to a predefined size if there is one
+     close enough. To disable this behavior, use `-tunknown'.
 
 `-u PSMAPFILE'
      Set PSMAPFILE to be the file that dvips uses for looking up
Index: tetex-bin/texk/dvipsk/dvips.1
===================================================================
--- tetex-bin.orig/texk/dvipsk/dvips.1	2005-10-06 17:26:11.000000000 +0200
+++ tetex-bin/texk/dvipsk/dvips.1	2006-06-01 21:10:36.409540000 +0200
@@ -422,7 +422,10 @@
 Set the paper size to the given pair of dimensions.  This option takes
 its arguments in the same style as
 .IR -O .
-It overrides any paper size special in the dvi file.
+It overrides any paper size special in the dvi file.  Be careful, as
+the paper size will stick to a predefined size if there is one close
+enough. To disable this behavior, use 
+.BR -t " " unknown .
 .TP
 .B -u psmapfile
 Set
Index: tetex-bin/texk/kpathsea/mktexnam
===================================================================
--- tetex-bin.orig/texk/kpathsea/mktexnam	2005-10-06 17:26:12.000000000 +0200
+++ tetex-bin/texk/kpathsea/mktexnam	2006-06-01 21:13:09.289540000 +0200
@@ -145,7 +145,7 @@
       # Some additional uglyness handles the case where $TEXMFVAR exists
       # but $TEXMFVAR/fonts doesn't (yet).
       if test "x$USE_TEXMFVAR" = x1; then
-        : ${MT_TEXMFVAR=`kpsewhich --expand-path='$TEXMFVAR'`}
+        : ${MT_TEXMFVAR=`kpsewhich --var-value=TEXMFVAR`}
         MT_DESTROOT=$MT_TEXMFVAR/fonts
         if test -z "$MT_TEXMFVAR"; then
           # Path expansion of $TEXMFVAR was empty.
@@ -158,9 +158,12 @@
           # De we have write access and permission?
           kpseaccess -w "$MT_TEXMFVAR" || FALLBACK=1
           test -w "$MT_TEXMFVAR" || FALLBACK=1
-        else
+        elif test -e "$MT_TEXMFVAR"; then
           # TEXMFVAR defined and exists, but it is not a directory?
           FALLBACK=1
+        else
+          # TEXMFVAR defined but does not exist, try to create it
+          MT_FEATURES=none "$MT_MKTEXDIR" "$MT_TEXMFVAR" || FALLBACK=1
         fi
       else
         # Do we have write access and permission?
