Package: rubber
Version: 1.2-1
Severity: normal

Dear Maintainer,

rubber fails if the bibliography is a symbolic link. Here is a minimal
example, with a small latex file, and a tiny bibliography which is a
symbolic link.

----------------------------------------------------------------------
dpt@tulip:/tmp/test$ cat t.tex
\documentclass{amsart}

\begin{document}
This is a test. Citation: Kerckhoff \cite{Kerckhoff80:AsympTeich}

\bibliography{test-link}

\end{document}
dpt@tulip:/tmp/test$ cat test.bib
@Article{Kerckhoff80:AsympTeich,
  author =       {Kerckhoff, Steven P.},
  title =        {The asymptotic geometry of {T}eichmüller space},
  journal =      {Topology},
  year =         1980,
  volume =       19,
  number =       1,
  pages =        {23--41}}
dpt@tulip:/tmp/test$ ls -l test-link.bib
lrwxrwxrwx 1 dpt dpt 8 Sep 14 14:49 test-link.bib -> test.bib
dpt@tulip:/tmp/test$ rubber t.tex
compiling t.tex...
running BibTeX on t...
Traceback (most recent call last):
  File "/usr/bin/rubber", line 4, in <module>
    sys.exit(Main()(sys.argv[1:]))
  File "/usr/lib/python2.7/dist-packages/rubber/cmdline.py", line 331, in 
__call__
    return self.main(cmdline)
  File "/usr/lib/python2.7/dist-packages/rubber/cmdline.py", line 295, in main
    ret = env.final.make(self.force)
  File "/usr/lib/python2.7/dist-packages/rubber/depend.py", line 166, in make
    ok = self.run()
  File "/usr/lib/python2.7/dist-packages/rubber/converters/latex.py", line 
1310, in run
    if not self.post_compile():
  File "/usr/lib/python2.7/dist-packages/rubber/converters/latex.py", line 
1261, in post_compile
    if not mod.post_compile():
  File "/usr/lib/python2.7/dist-packages/rubber/converters/latex.py", line 
1526, in post_compile
    return self.pymodule.post_compile()
  File "/usr/lib/python2.7/dist-packages/rubber/latex_modules/bibtex.py", line 
421, in post_compile
    return biblio.post_compile()
  File "/usr/lib/python2.7/dist-packages/rubber/latex_modules/bibtex.py", line 
235, in post_compile
    return self.run()
  File "/usr/lib/python2.7/dist-packages/rubber/latex_modules/bibtex.py", line 
258, in run
    if self.doc.env.execute(['bibtex', basename], doc, pwd=workdir):
  File "/usr/lib/python2.7/dist-packages/rubber/environment.py", line 226, in 
execute
    stderr = stderr)
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory: ''
dpt@tulip:/tmp/test$
----------------------------------------------------------------------

-- System Information:
Debian Release: stretch/sid
  APT prefers oldstable-updates
  APT policy: (500, 'oldstable-updates'), (500, 'unstable'), (500, 'testing'), 
(500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.1.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages rubber depends on:
ii  python              2.7.9-1
pn  python:any          <none>
ii  texlive-latex-base  2015.20150823-1

rubber recommends no packages.

Versions of packages rubber suggests:
ii  imagemagick  8:6.8.9.9-5.1+b1
pn  sam2p        <none>
ii  transfig     1:3.2.5.e-4

-- no debconf information

Reply via email to