Hi,

If you're curious, you can have a look at this branch:
https://github.com/skapfer/rubber/tree/preview

This should not recompile all the time, but has received little testing so far.
Bug reports welcome!

Cheers,
  Sebastian

On Thu, Jan 21, 2016 at 01:34:30AM +0100, Sebastian Kapfer wrote:
> 
> Hi,
> 
> Rubber currently is in overcautious mode since the widely distributed 1.1
> release missed rebuilds in a lot of cases and cause quite some user
> frustration.  Since then, I've been working on rewriting the dependency code, 
> a
> transition which is not quite complete.
> 
> As a result, one compilation is currently always forced.  We're close to 
> fixing
> everything up (BibTeX was a huge mess) - this limitation might well be gone 
> for
> the 1.5 release.
> 
> @Hilmar The linked patch does not fix this.  It just provides more detailed
> messages.  It's worth applying though, same as the other change since 1.4.
> Both are harmless fixes unlikely to break something.
> 
> Cheers
>   Sebastian
> 
> 
> 
> On Wed, Jan 20, 2016 at 10:19:05PM +0100, Preuße, Hilmar wrote:
> > Hallo Sebastian,
> > 
> > eine gesundes neues Jahr!
> > 
> > ich habe einen neuen Case rein bekommen. rubber macht einen Rebuild, obwohl 
> > sich
> > an den Source-File nicht geändert hat. Ja, in den release Notes steht, daß
> > rubber derzeit lieber einmal zuviel, als einmal zuwenig compiliert, aber im
> > aktuellen Fall scheint rubber gar keine Zeitstempel zu prüfen.
> > 
> > Das würde ich mal als nicht FAD qualifizieren. Hilft mir
> > https://git.launchpad.net/rubber/patch/?id=8871e6d40213b63668f34bcd148c30a36a79933a
> > weiter?
> > 
> > Hilmar
> > -- 
> > sigfault
> 
> > Date: Wed, 20 Jan 2016 12:22:52 +0100
> > From: "r.ductor" <[email protected]>
> > To: Debian Bug Tracking System <[email protected]>
> > Subject: Bug#812082: rubber: always recompile
> > X-Mailer: reportbug 6.6.5
> > 
> > Package: rubber
> > Version: 1.4-1
> > Severity: normal
> > 
> > Dear Maintainer,
> > 
> > It is important (for me) to check that the document stack is updated 
> > without unnecessaryly recompile.
> > 
> > In previous versions, when the modification time of the dependencies was in 
> > the correct order,
> > rubber output "nothing to do for ...".
> > 
> > This feature seems lost ("running ps2pdf") and rubber seems to recompile 
> > without necessity. See example below.
> > 
> > Thanks for your time.
> > r.
> > 
> > $ date && ls -lt --time-style=full-iso && rubber -pd -vvv bug 
> > Wed Jan 20 12:11:33 CET 2016
> > total 196
> > -rw-r--r-- 1 anonymous anonymous  21547 2016-01-20 12:10:49.190190490 +0100 
> > bug.pdf
> > -rw-r--r-- 1 anonymous anonymous 159509 2016-01-20 12:10:49.090187074 +0100 
> > bug.ps
> > -rw-r--r-- 1 anonymous anonymous    279 2016-01-20 12:10:49.022184750 +0100 
> > bug.aux
> > -rw-r--r-- 1 anonymous anonymous   1096 2016-01-20 12:10:49.022184750 +0100 
> > bug.dvi
> > -rw-r--r-- 1 anonymous anonymous   2546 2016-01-20 12:10:49.022184750 +0100 
> > bug.log
> > -rw-r--r-- 1 anonymous anonymous    463 2016-01-20 12:06:54.590175830 +0100 
> > bug.tex
> > This is Rubber version 1.4.
> > [latex] parsing /home/anonymous/CACCA/bug-rubber/bug.tex
> > [latex] script module article registered
> > [latex] end of /home/anonymous/CACCA/bug-rubber/bug.tex
> > [latex] dependencies: ['bug.aux', 
> > '/home/anonymous/CACCA/bug-rubber/bug.tex']
> > [latex] directive: module dvips
> > [latex] built-in module dvips registered
> > [latex] directive: module ps2pdf
> > [latex] built-in module ps2pdf registered
> > [depend] make bug.pdf -> ['bug.ps']
> > [depend] make bug.ps -> ['bug.dvi']
> > [depend] make bug.dvi -> ['bug.aux', 
> > '/home/anonymous/CACCA/bug-rubber/bug.tex']
> > [depend] while making bug.dvi: cyclic dependency on bug.aux (pruned)
> > [latex] building additional files...
> > compiling bug.tex...
> > executing: latex \nonstopmode \input{bug.tex}
> >   with environment: {'TEXINPUTS': '.:.:'}
> > process 3244 (latex) returned 0
> > [latex] running post-compilation scripts...
> > [depend] while making bug.dvi: cyclic dependency on bug.aux (pruned)
> > [depend] while making bug.dvi: contents of bug.aux unchanged, ignoring mtime
> > [depend] while making bug.ps: timestamp of dependency bug.dvi changed, 
> > rebuilding
> > executing: dvips bug.dvi
> > process 3246 (dvips) returned 0
> > [depend] make bug.dvi -> ['bug.aux', 
> > '/home/anonymous/CACCA/bug-rubber/bug.tex']
> > [depend] while making bug.dvi: cyclic dependency on bug.aux (pruned)
> > [depend] while making bug.dvi: contents of bug.aux unchanged, ignoring mtime
> > [depend] while making bug.pdf: timestamp of dependency bug.ps changed, 
> > rebuilding
> > running: ps2pdf bug.ps bug.pdf...
> > [depend] make bug.ps -> ['bug.dvi']
> > [depend] make bug.dvi -> ['bug.aux', 
> > '/home/anonymous/CACCA/bug-rubber/bug.tex']
> > [depend] while making bug.dvi: cyclic dependency on bug.aux (pruned)
> > [depend] while making bug.dvi: contents of bug.aux unchanged, ignoring mtime
> > $ date && ls -lt --time-style=full-iso && rubber -pd -vvv bug
> > Wed Jan 20 12:11:35 CET 2016
> > total 196
> > -rw-r--r-- 1 anonymous anonymous  21547 2016-01-20 12:11:33.867716812 +0100 
> > bug.pdf
> > -rw-r--r-- 1 anonymous anonymous 159509 2016-01-20 12:11:33.787714079 +0100 
> > bug.ps
> > -rw-r--r-- 1 anonymous anonymous   1096 2016-01-20 12:11:33.715711620 +0100 
> > bug.dvi
> > -rw-r--r-- 1 anonymous anonymous   2546 2016-01-20 12:11:33.715711620 +0100 
> > bug.log
> > -rw-r--r-- 1 anonymous anonymous    279 2016-01-20 12:11:33.711711483 +0100 
> > bug.aux
> > -rw-r--r-- 1 anonymous anonymous    463 2016-01-20 12:06:54.590175830 +0100 
> > bug.tex
> > This is Rubber version 1.4.
> > [latex] parsing /home/anonymous/CACCA/bug-rubber/bug.tex
> > [latex] script module article registered
> > [latex] end of /home/anonymous/CACCA/bug-rubber/bug.tex
> > [latex] dependencies: ['bug.aux', 
> > '/home/anonymous/CACCA/bug-rubber/bug.tex']
> > [latex] directive: module dvips
> > [latex] built-in module dvips registered
> > [latex] directive: module ps2pdf
> > [latex] built-in module ps2pdf registered
> > [depend] make bug.pdf -> ['bug.ps']
> > [depend] make bug.ps -> ['bug.dvi']
> > [depend] make bug.dvi -> ['bug.aux', 
> > '/home/anonymous/CACCA/bug-rubber/bug.tex']
> > [depend] while making bug.dvi: cyclic dependency on bug.aux (pruned)
> > [latex] building additional files...
> > compiling bug.tex...
> > executing: latex \nonstopmode \input{bug.tex}
> >   with environment: {'TEXINPUTS': '.:.:'}
> > process 3255 (latex) returned 0
> > [latex] running post-compilation scripts...
> > [depend] while making bug.dvi: cyclic dependency on bug.aux (pruned)
> > [depend] while making bug.dvi: contents of bug.aux unchanged, ignoring mtime
> > [depend] while making bug.ps: timestamp of dependency bug.dvi changed, 
> > rebuilding
> > executing: dvips bug.dvi
> > process 3257 (dvips) returned 0
> > [depend] make bug.dvi -> ['bug.aux', 
> > '/home/anonymous/CACCA/bug-rubber/bug.tex']
> > [depend] while making bug.dvi: cyclic dependency on bug.aux (pruned)
> > [depend] while making bug.dvi: contents of bug.aux unchanged, ignoring mtime
> > [depend] while making bug.pdf: timestamp of dependency bug.ps changed, 
> > rebuilding
> > running: ps2pdf bug.ps bug.pdf...
> > [depend] make bug.ps -> ['bug.dvi']
> > [depend] make bug.dvi -> ['bug.aux', 
> > '/home/anonymous/CACCA/bug-rubber/bug.tex']
> > [depend] while making bug.dvi: cyclic dependency on bug.aux (pruned)
> > [depend] while making bug.dvi: contents of bug.aux unchanged, ignoring mtime
> > $ cat bug.tex
> > \documentclass{article}
> > 
> > \begin{document}
> > 
> > \title{Introduction to \LaTeX{}}
> > \author{Author's Name}
> > 
> > \maketitle
> > 
> > \begin{abstract}
> > The abstract text goes here.
> > \end{abstract}
> > 
> > \section{Introduction}
> > Here is the text of your introduction.
> > 
> > \begin{equation}
> >     \label{simple_equation}
> >     \alpha = \sqrt{ \beta }
> > \end{equation}
> > 
> > \subsection{Subsection Heading Here}
> > Write your subsection text here.
> > 
> > \section{Conclusion}
> > Write your conclusion here.
> > 
> > \end{document}
> > 
> > $ reportbug
> > 
> > -- Package-specific info:
> > 
> > If you report an error when running rubber please include example
> > input file that produces the error in your report.
> > 
> > Don't forget to also include examples of other files that are
> > needed, e.g. bibtex databases. Often it also helps to include
> > he logfile.
> > 
> > -- System Information:
> > Debian Release: stretch/sid
> >   APT prefers testing
> >   APT policy: (900, 'testing')
> > Architecture: amd64 (x86_64)
> > 
> > Kernel: Linux 4.3.0-1-amd64 (SMP w/8 CPU cores)
> > Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
> > Shell: /bin/sh linked to /bin/dash
> > Init: systemd (via /run/systemd/system)
> > 
> > Versions of packages rubber depends on:
> > pn  python:any          <none>
> > ii  texlive-latex-base  2015.20151225-1
> > 
> > rubber recommends no packages.
> > 
> > Versions of packages rubber suggests:
> > ii  imagemagick                8:6.8.9.9-6+b1
> > pn  sam2p                      <none>
> > ii  texlive-binaries           2015.20150524.37493-7+b1
> > ii  texlive-extra-utils        2015.20151225-2
> > ii  texlive-latex-extra        2015.20151225-2
> > ii  texlive-latex-recommended  2015.20151225-1
> > ii  texlive-omega              2015.20151225-1
> > ii  texlive-pictures           2015.20151225-1
> > ii  transfig                   1:3.2.5.e-4
> > 
> > -- no debconf information
> 
> 
> -- 
> Best regards,               | Theoretische Physik 1
>   Sebastian Kapfer          | FAU Erlangen
>                             | Staudtstr. 7, 91058 Erlangen, Germany
>                             | Phone: +49.160.9577.6436
>                             | http://theorie1.physik.fau.de/people/skapfer/
>                             | GPG: 84406C3F



-- 
Best regards,               | Theoretische Physik 1
  Sebastian Kapfer          | FAU Erlangen
                            | Staudtstr. 7, 91058 Erlangen, Germany
                            | Phone: +49.160.9577.6436
                            | http://theorie1.physik.fau.de/people/skapfer/
                            | GPG: 84406C3F

Attachment: signature.asc
Description: PGP signature

Reply via email to