[Nix-dev] texlive's epspdf is broken

Peter Simons simons at cryp.to
Wed Jan 11 00:16:12 CET 2012


Hi,

TeXlive installs the executable epspdf, but it cannot actually be run:

  /store/path/epspdf: line 3: /other/store/path/texmf-dist/scripts/epspdf/epspdf.rb: Permission denied

Inspection of that file suggests that it might be a ruby script.
However, ruby 19 can't run it:

  $ ruby /other/store/path/texmf-dist/scripts/epspdf/epspdf.rb
  [...]
  /nix/store/1zwaj9lr25sw89m0hlam936ngjkacja7-TeXLive-linkdir/texmf-dist/scripts/epspdf/epspdfrc.rb:94: syntax error, unexpected keyword_when, expecting keyword_end
        when 2: "File not found"
            ^
  /nix/store/1zwaj9lr25sw89m0hlam936ngjkacja7-TeXLive-linkdir/texmf-dist/scripts/epspdf/epspdfrc.rb:97: syntax error, unexpected keyword_when, expecting keyword_end
        when 3: "Path not found"
            ^
  [...]

It seems like ruby 18 *can* run the script (even though that still won't
help with the fact that the wrapper doesn't have a proper shebang
interpreter set).

Now, 'texLive' depends on 'ruby'. Does anyone know what exactly that
interpreter is used for? Would it be okay to downgrade that to 'ruby18'?

And does anyone know by any chance how to fix that shebang issue?

Take care,
Peter



More information about the nix-dev mailing list