[tex-live] dvips cannot find figures

Reinhard Kotucha reinhard.kotucha at web.de
Mon Jan 2 04:45:24 CET 2006


>>>>> "Nelson" == Nelson H F Beebe <beebe at math.utah.edu> writes:

  > Reinhard Kotucha writes today:
  >>> Fortunately, the program getnonfreefonts(1) in TeXLive-2005
  >>> executes programs in $TMP rather than in /tmp.

  > There is long-standing, and widespread, practice in the Unix world
  > of referring to a temporary directory in scripts via the name
  > TMPDIR, rather than TMP.

I decided to use TMP because teTeX and TeXLive already depend on it.  

texconfig:
  tmpdir=${TMP-/tmp}/tctmp.$$

updmap:
  tmpdir=${TMP-/tmp}/$progname.$$

fmtutil:
  tmpdir=${TMP-/tmp}/$progname.$$

If /tmp cannot be used, teTeX and TeXLive users have to set TMP anyway
and hence I used it as well.

Anyway, thanks for the hint.  After a discussion with George White
about the security problems with /tmp I added some code to /etc/bashrc
which creates a directory /tmp/<UID>-<login-name> if it doesn't exist,
sets permissions (rwx only for the owner), issues a message "ask your
system administrator..." if this cannot be done (file with this name
exists and is owned by someone else) and sets TMP, TEMP, and TMPDIR
respectively.  Obviously, some programs ignore all three variables.

Regards,
  Reinhard 

-- 
----------------------------------------------------------------------------
Reinhard Kotucha Phone: +49-511-4592165 Marschnerstr. 25 D-30167
Hannover mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------




More information about the tex-live mailing list