Hi Vincent,

I spent a while trying to reproduce this (using my old LaTeX source as
it existed when I submitted this bug) -- but I can't figure out
exactly what was happening or how to reproduce it, even when using the
original version of latex-make.  This was happening on a huge file and
it's probably specific to how pages get laid out.

However, looking at the code, I do think both of the original problems
still hold true:

- If you look at LU_rebuild_bibtopic_undefined_references, it's
  grepping through the wrong log file.  No other rule looks like that,
  and the variable $(MASTER_$(LU_REC_MASTER)) doesn't even exist.  The
  original patch I included makes it look through the same log file as
  all the other rules.

- bibtopic_undefined_references looks for the message "There were
  undefined references".  That message isn't only for bibtopic, but
  could show up with just basic use of \label and \ref, and so I think
  bibtopic_undefined_references should be added to the default
  REBUILD_RULES.  But this one is less important (since the user
  is expected to porentially override REBUILD_RULES anyway)

Jim

Vincent Danjean wrote:
>   Hi,
> 
>   Sorry to be so long to come back to this bug. I do not observe
> the same behavior on my LaTeX files. Can you tell me if this bug
> is already fixed. Or can you give me the sources that lead to
> this bug (you can obfuscate/remove all text if you want)?
> 
>   Regards, and sorry again to forget to handle this bug.
>     Vincent
> 
> Le 16/04/2013 à 21:23, Jim Paris a écrit :
> > Package: latex-make
> > Version: 2.1.18-2
> > Severity: normal
> > Tags: patch
> > 
> > LaTeX.mk was failing to rebuild my document when there were still
> > undefined references.  I needed to make two changes:
> > 
> > 1) The default REBUILD_RULES doesn't include
> > "bibtopic_undefined_references" (which is strangely named anyway,
> > because I'm not using bibtopic).  I needed to set:
> >   REBUILD_RULES=latex texdepends bibtopic_undefined_references
> > in my Makefile.
> > 
> > 2) The LU_rebuild_bibtopic_undefined_references rule seems broken.
> > I fixed it with the patch below.
> > 
> > -jim
> > 
> > --- LaTeX.mk.orig   2013-04-16 15:17:52.538820616 -0400
> > +++ LaTeX.mk        2013-04-16 15:18:38.680520237 -0400
> > @@ -892,7 +892,7 @@
> >  LU_rebuild_bibtopic_undefined_references:
> >     $(call lu-rebuild-head)
> >     $(COMMON_HIDE)if grep -sq 'There were undefined references'\
> > -           "$(MASTER_$(LU_REC_MASTER)).log" ; then \
> > +           "$(LU_REC_LOGFILE)" ; then \
> >             $(call lu-rebuild-needed,"$@: new run needed") \
> >     fi
> > 
> > -- System Information:
> > Debian Release: 6.0.6
> >   APT prefers stable
> >   APT policy: (200, 'stable'), (80, 'testing'), (50, 'unstable'), (1, 
> > 'experimental')
> > Architecture: amd64 (x86_64)
> > 
> > Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
> > Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> > Shell: /bin/sh linked to /bin/bash
> > 
> > Versions of packages latex-make depends on:
> > ii  dpkg         1.16.8       
> > ii  ghostscript  8.71~dfsg2-10
> > ii  make         3.81-8.1     
> > ii  python       2.7.2-9      
> > ii  tex-common   3.15         
> > ii  transfig     1:3.2.5.c-1  
> > 
> > Versions of packages latex-make recommends:
> > ii  inkscape                   0.48.3.1-1.3   
> > ii  texlive-latex-extra        2012.20120611-2
> > ii  texlive-latex-recommended  2012.20120611-5
> > 
> > latex-make suggests no packages.
> > 
> > -- no debconf information
> > 
> 
> 
> -- 
> Vincent Danjean       GPG key ID 0xD17897FA         vdanj...@debian.org
> GPG key fingerprint: 621E 3509 654D D77C 43F5  CA4A F6AE F2AF D178 97FA
> Unofficial pkgs: http://moais.imag.fr/membres/vincent.danjean/deb.html
> APT repo:  deb http://people.debian.org/~vdanjean/debian unstable main

Reply via email to