summaryrefslogtreecommitdiff
path: root/debian/patches/0120-fix-bibtex-call.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0120-fix-bibtex-call.patch')
-rw-r--r--debian/patches/0120-fix-bibtex-call.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/debian/patches/0120-fix-bibtex-call.patch b/debian/patches/0120-fix-bibtex-call.patch
new file mode 100644
index 0000000..98b2db6
--- /dev/null
+++ b/debian/patches/0120-fix-bibtex-call.patch
@@ -0,0 +1,40 @@
+Description: Create Bibtex bibliography always
+Author: Alvaro G. M. <alvaro.gamez@hazent.com>
+Bug: http://scons.tigris.org/issues/show_bug.cgi?id=2967
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=749716
+Forwarded: http://scons.tigris.org/issues/show_bug.cgi?id=2967
+Last-Update: 2016-01-31
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/engine/SCons/Tool/tex.py
+===================================================================
+--- trunk.orig/engine/SCons/Tool/tex.py
++++ trunk/engine/SCons/Tool/tex.py
+@@ -351,6 +351,13 @@ def InternalLaTeXAuxAction(XXXLaTeXActio
+ if result != 0:
+ check_file_error_message(env['BIBTEX'], 'blg')
+ must_rerun_latex = True
++ if Verbose:
++ print ("Need to run bibtex on " + auxfilename)
++ bibfile = env.fs.File(SCons.Util.splitext(target_aux)[0])
++ result = BibTeXAction(bibfile, bibfile, env)
++ if result != 0:
++ check_file_error_message(env['BIBTEX'], 'blg')
++ must_rerun_latex = True
+
+ # Now decide if biber will need to be run.
+ # When the backend for biblatex is biber (by choice or default) the
+@@ -375,6 +382,13 @@ def InternalLaTeXAuxAction(XXXLaTeXActio
+ if result != 0:
+ check_file_error_message(env['BIBER'], 'blg')
+ must_rerun_latex = True
++ if Verbose:
++ print ("Need to run biber on " + bcffilename)
++ bibfile = env.fs.File(SCons.Util.splitext(target_bcf)[0])
++ result = BiberAction(bibfile, bibfile, env)
++ if result != 0:
++ check_file_error_message(env['BIBER'], 'blg')
++ must_rerun_latex = True
+
+ # Now decide if latex will need to be run again due to index.
+ if check_MD5(suffix_nodes['.idx'],'.idx') or (count == 1 and run_makeindex):