FS#17978 - [texlive-bin] bibtex cannot find .aux file from a different directory
Attached to Project:
Arch Linux
Opened by Patrick McCarty (pnorcks) - Sunday, 24 January 2010, 03:04 GMT
Last edited by Francois Charette (Firmicus) - Friday, 05 February 2010, 08:20 GMT
Opened by Patrick McCarty (pnorcks) - Sunday, 24 January 2010, 03:04 GMT
Last edited by Francois Charette (Firmicus) - Friday, 05 February 2010, 08:20 GMT
|
Details
Description:
When using LaTeX and BibTeX, BibTeX cannot find the .aux file generated by `latex foo' if the .aux file is moved to a separate directory for processing (such as /tmp). BibTeX then exits with an error. texlive-bin 2009.4-3 did not exhibit this behavior. Additional info: Version: texlive-bin 2009.5-1 Steps to reproduce: 1) Download the two attached files. 2) Move to the directory with the files, and run the following commands: $ latex test $ mv test.aux /tmp $ bibtex /tmp/test.aux The last command exits with the message bibtex: Not writing to /tmp/test.blg (openout_any = p). I couldn't open file name `/tmp/test.blg' |
This task depends upon
Closed by Francois Charette (Firmicus)
Friday, 05 February 2010, 08:20 GMT
Reason for closing: Not a bug
Additional comments about closing: See last comment
Friday, 05 February 2010, 08:20 GMT
Reason for closing: Not a bug
Additional comments about closing: See last comment
I know the example I posted seems contrived, but it's adapted from a script that was recently re-enabled in LilyPond's build system:
http://git.savannah.gnu.org/gitweb/?p=lilypond.git;a=blob;f=scripts/build/bib2html.py;h=c16f21cce28c9b91512bf08cf6393172bb96036a;hb=fc7e42590263fb4bf8a66b7d3986d03cd65ddef9
With texlive-bin 2009.5, I am getting an error identical to the one I posted above while compiling LilyPond. And downgrading to texlive-bin 2009.4 fixes it.
Should I take this up on the TeX Live mailing list, or do you think it would be best to fix LilyPond's build script?
> /usr/bin/bibtex: Not writing to /home/user/test/test.blg (openout_any = p).
> I couldn't open file name `/home/user/test/test.blg'
So, its not restricted to just Lilypond scripts.
Compiling using a bash script in the same directory works. As Firmicus said, its probably something to do with bibtex being invoked and running in a different directory. *sigh*
Worse still, Its not feasible to downgrade to 2009.4-3. The Latex command requires libpng12, which is upgraded to libpng14 with the latest batch of updates. And you cant downgrade to libpng12 because... you get the idea.
So, my solution has been to write a bash script wrapper around the bibtex binary (to do the pushd and popd). Sigh.
Seems like the bug is with the binary, less to do with the arch package. Thanks firmicus for chasing this up.
openout_any = a
in your texmf.cnf as mentioned in this thread http://tug.org/pipermail/tlbuild/2010q1/001304.html
BTW 2009.5-2 is only a recompilation with latest libjpeg/libpng, nothing was changed.
So I'm closing this now.