Package: rubber
Version: 1.1-2.4

Rubber crashes trying to compile to PDF a TeX file with EPS figures:

$ rubber --pdf foo.tex
(...)
converting ./Figures/foo.eps to PDF...
Traceback (most recent call last):
  File "/usr/bin/rubber", line 9, in <module>
    sys.exit(Main()(sys.argv[1:]))
  File "/usr/share/rubber/rubber/cmdline.py", line 296, in __call__
    return self.main(cmdline)
  File "/usr/share/rubber/rubber/cmdline.py", line 260, in main
    ret = env.final.make(self.force)
  File "/usr/share/rubber/rubber/__init__.py", line 223, in make
    ret = src.make()
  File "/usr/share/rubber/rubber/__init__.py", line 237, in make
    ret = self.run()
  File "/usr/share/rubber/rubber/rules/shell.py", line 34, in run
    if self.env.execute(cmd):
  File "/usr/share/rubber/rubber/__init__.py", line 705, in execute
    os.execve(progname, prog, penv)
OSError: [Errno 8] Exec format error
'epstopdf' failed

The origin of the problem looks to be the absence of shebang on the
epstopdf perl script. Attached a naive parch that solves the problem
for people who are using bash, not sure if it'd be the general
solution...

-- 
__      ___ _   _
\ \    / (_) |_(_)___ _ _
 \ \/\/ /| | / / / -_) '_|  Sergio Fernández
  \_/\_/ |_|_\_\_\___|_|    http://www.wikier.org/
--- /usr/share/rubber/rules.ini~	2006-03-25 11:43:38.000000000 +0100
+++ /usr/share/rubber/rules.ini	2010-12-15 11:39:37.000000000 +0100
@@ -83,7 +83,7 @@
 source = \1.eps
 cost = 1
 rule = shell
-command = epstopdf --outfile=$target $source
+command = bash epstopdf --outfile=$target $source
 message = converting $source to PDF
 
 [jpeg2ps]

Reply via email to