test for file existance fails if its a symlink

Bug #744680 reported by Jason Lewis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rubber
New
Undecided
Unassigned

Bug Description

Hi,

In rubber, if you try to compile a document that has the graphicx package in it with symlinks, you get warnings (incorrrectly)

jason@debian:~/catalogue$ ls -l green_pen.jpg link_green_pen.jpg /tmp/LaTeXCatalogueSymlinks/gp.jpg
-rwxr-xr-x 1 jason src 185220 Mar 24 12:27 green_pen.jpg
lrwxrwxrwx 1 jason jason 13 Mar 28 16:22 link_green_pen.jpg -> green_pen.jpg
lrwxrwxrwx 1 jason jason 35 Mar 29 12:06 /tmp/LaTeXCatalogueSymlinks/gp.jpg -> /home/jason/catalogue/green_pen.jpg

\documentclass{report}
\usepackage{graphicx}
\begin{document}

                  \includegraphics[width=12cm,height=2.9cm,keepaspectratio=true]{green_pen.jpg}
                  \includegraphics[width=12cm,height=2.9cm,keepaspectratio=true]{link_green_pen.jpg}
                  \includegraphics[width=12cm,height=2.9cm,keepaspectratio=true]{/tmp/LaTeXCatalogueSymlinks/gp.jpg}
\end{document}

compiling this yields the following:

jason@debian:~/catalogue$ rubber -f -d test-rubber.tex
test-rubber.tex:7: graphics `/tmp/LaTeXCatalogueSymlinks/gp.jpg' not found
compiling test-rubber.tex...

jason@debian:~/catalogue$ rubber --version
Rubber version: 1.1
module path: /usr/share/rubber

Revision history for this message
Jason Lewis (jason-dickson) wrote :

I should add that this error seems to be when including a file, that is a symlink, and the symlink itself is not located in the same directory as the latex file being compiled.

the resulting document does howerver correctly include the image

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.