epstopdf has no #! line, can't be invoked by scripts (Debian patch available)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Rubber |
Invalid
|
Undecided
|
Unassigned | ||
rubber (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
texlive-extra (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
epstopdf invokes perl using:
eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' && eval 'exec perl -S $0 $argv:q'
…when it should instead use:
#!/usr/bin/perl
The debian package (texlive-binaries; source package texlive-bin) contains patches which fix this bug, and similar bugs in a2ping, pdfcrop, thumbpdf and vpe.
Original description
=======
Binary package hint: rubber
A LaTeX document I want to compile to PDF using rubber contains Postscript files. These files have to be converted, but the call to epstopdf fails:
$ rubber -vv -d document.tex
...
converting figure.eps to PDF...
executing: epstopdf --outfile=
Traceback (most recent call last):
File "/usr/bin/rubber", line 9, in <module>
sys.
File "/usr/share/
return self.main(cmdline)
File "/usr/share/
ret = env.final.
File "/usr/share/
ret = src.make()
File "/usr/share/
ret = self.run()
File "/usr/share/
if self.env.
File "/usr/share/
os.
OSError: [Errno 8] Exec format error
process 6231 (epstopdf) returned 256
'epstopdf' failed
The Gentoo bugzilla has an entry describing the same problem:
http://
Basically, the problem is with the silly perl locating trickery in the first line of epstopdf. Rubber just tries to execute it as an executable, but there is no shebang.
This is rubber package 1.1-2.2ubuntu1 and texlive-font-utils 2009-7ubuntu3 (containing epstopdf) on Ubuntu Lucid / 10.04.
summary: |
- Convention of graphics using epstopdf fails + Conversion of graphics using epstopdf fails |
description: | updated |
The fix is http:// ubuntuforums. org/showpost. php?p=9234599& postcount= 9