Hi Sorry for the delay. I did not bother to reply before having a patch.
On Sun, Jun 01, 2014 at 03:53:37PM +0200, Brice Goglin wrote: > On Fri, May 30, 2014 at 03:24:26PM +0200, Sebastian Reichel wrote: > > On Fri, May 30, 2014 at 12:59:06PM +0200, Hilmar Preusse wrote: > > > In https://bugs.debian.org/743362 you requested me to include the > > > provided biblatex module. I've included it and got now a bug report > > > telling me that BIBINPUTS and the bibtex.path variable is ignored > > > now. I told the submitter to remove your module and he reported that > > > it solved the problem. > > > > > > Please be so kind to provide a new module fixing this regression. > > > > BIBINPUTS is not used by biber(1p), which is called instead of > > bibtex(1) for latex documents using biblatex. > > My biber (from Debian package 1.8-1) uses BIBINPUTS. > I get this output when just asking for biblio.bib > INFO - Found BibTeX data source 'foo/biblio.bib' Yes, biber supports it. It's just not in the manpage, which I used for reference (bibtex manpage references the env variable). > > I guess, that Brice's document tries to use biblatex and bibtex at > > the same time. > > I don't understand what this means :) Ignore it, that was not the problem :) > > This may have worked without the plugin, since all > > biblatex stuff was ignored, but fails once both packages are > > analyzed. > > > > Brice, can you create a minimal example triggering your problem, > > or at least sent the bib* related lines from your LaTeX files? > > Here's a tarball containing a .tex and a .bib in the foo subdirectory. > This command from inside the extracted tarball > BIBINPUTS=foo rubber -v -d bar > works when your biblatex.py is not installed, > but it fails when it's installed: > 'biblio.bib' does not exist > There were errors compiling bar. That's because biblatex.py does proper dependency tracking of your bib files (so it will rebuild your pdf if only the bib file has changed). It did not interpret the BIBINPUTS variable, though. I have attached a patch, which should add simple support for the variable (your example works with it). > Note my latex file forces rubber to rerun biber when the bcf changed. > Otherwise, I have to run rubber, run biber, and rerun rubber with -f. > That may be related, but removing these rules doesn't solve the issue. That rule is no longer needed with working biblatex.py ;) -- Sebastian
--- biblatex.py.orig 2014-04-02 13:59:08.000000000 +0200
+++ biblatex.py 2014-06-14 18:31:22.940527047 +0200
@@ -4,7 +4,8 @@
basic BibLaTeX support for Rubber
"""
-from os.path import exists, getmtime
+from os import getenv
+from os.path import join, exists, getmtime
from rubber.util import parse_keyval, md5_file
from rubber import _, msg
from string import split
@@ -50,6 +51,11 @@
if 'location' in options and options['location'] == 'remote':
return
+ # support BIBINPUTS variable
+ bibinputs = getenv("BIBINPUTS")
+ if bibinputs != None:
+ file = join(bibinputs, file)
+
doc.add_source(file)
def hook_bibliography (loc, files):
signature.asc
Description: Digital signature

