[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#139085: dvips secure mode patch is *busted*



Package: tetex-bin
Version: 1.0.7+20011202-5

Consider the following simple file foo.tex

  \documentclass{article}
  \usepackage[dvips]{graphicx}
  \begin{document}
  \graphicspath{{./}}
  \DeclareGraphicsExtensions{.png}
  \DeclareGraphicsRule{.png}{eps}{.png.bb}{`convert #1 eps:-}
  Long live---\includegraphics[width=2in]{gb}---the Queen!
  \end{document}

Try to use it by invoking the following:

  cp /usr/share/doc/texmf/help/Catalogue/gb.png .
  convert gb.png eps:- | egrep '^%%BoundingBox:' | head -1 > gb.png.bb
  latex foo
  xdvi -allowshell foo
  dvips -R0 foo -o

Note that xdvi works fine.
But, dvips fails to include the requested graphic.
You can try all the permutations of -R that you want: leave it off,
just -R with no arg, -R0, -R1.  Even -I for "insecure" from a patch in
the BTS.  All fail.

On an older (potato) system this works fine, with unadorned
 dvips foo -o
The only reasonable "workaround" I've found for this is to copy the
dvips executable from a potato system into /usr/local/bin/.

----------------------------------------------------------------

$ /usr/bin/dvips foo -o
This is dvips(k) 5.86e Copyright 2001 Radical Eye Software (www.radicaleye.com)
' TeX output 2002.03.19:1131' -> foo.ps
<texc.pro><texps.pro><special.pro>. <cmr10.pfb>[1
/usr/bin/dvips: Execution of  <convert gb.png eps:-> failed 
] 

$ /usr/bin/dvips -R0 foo -o
This is dvips(k) 5.86e Copyright 2001 Radical Eye Software (www.radicaleye.com)
' TeX output 2002.03.19:1131' -> foo.ps
<texc.pro><texps.pro><special.pro>. <cmr10.pfb>[1
/usr/bin/dvips: Execution of  <convert gb.png eps:-> failed 
] 

$ /usr/bin/dvips -R1 foo -o
This is dvips(k) 5.86e Copyright 2001 Radical Eye Software (www.radicaleye.com)
' TeX output 2002.03.19:1131' -> foo.ps
<texc.pro><texps.pro><special.pro>. <cmr10.pfb>[1
/usr/bin/dvips: Secure mode is 1 so execute <convert gb.png eps:-> will not run
] 

$ /usr/local/bin/dvips foo -o
/usr/local/bin/dvips: Symbol `kpse_format_info' has different size in shared object, consider re-linking
This is dvips(k) 5.86 Copyright 1999 Radical Eye Software (www.radicaleye.com)
' TeX output 2002.03.19:1131' -> foo.ps
<texc.pro><texps.pro><special.pro>. <cmr10.pfb>[1<convert gb.png eps:->] 



Reply to: