rubber gives warnings about missing files if they are on a different filesystem

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

Bug Description

Hi,

If you include images in your LaTeX document using \includegraphics{/mnt/ot/images/image.jpg} and the path to the image happens to be on a different file system, you will see warnings like:

test-grffile.tex:15: graphics `/mnt/ot/images/image.jpg' not found

which is incorrect.

I tested this with rubber downloaded from head from lp.

in my case /mnt/ot/images/image.jpg is an automounted CIFS mount.

I'm not really familiar with python so I have no idea where to look to fix this. I don't mind having a crack at it if someone could give me a pointer or two.

example code:
\documentclass{report}
\usepackage{graphicx}

\begin{document}

include an image on a different fs:
\includegraphics{/mnt/ot/images/image.jpg}

\end{document}

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

Hi,

Further testing revealed that it is not filesystem dependant but related to if the image file is included using a relative or absolute path.

it seems as though if it is included with an absolute path, it gives the erroneous warning.

example:

 \documentclass{report}
\usepackage{graphicx}

\begin{document}

include absolute path:
\includegraphics{/home/jason/catalogue/test/image.jpg}

include relative path:
\includegraphics{../test/image.jpg}

\end{document}

will output this:

jason@debian:~/catalogue/test$ rubber test-grffile.tex
test-grffile.tex:22: graphics `/home/jason/catalogue/test/image.jpg' not found
nothing to be done for test-grffile.tex
jason@debian:~/catalogue/test$

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

Here is a patch that solves this problem by checking to see if the path is absolute and converting it to relative before calling doc.env.convert

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

patch was made against the rubber-20100306.tar.gz release

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.