Hi,
It seems the patch "deterministic-latex.patch" is not working as it should.
I guess it may have to do with the way it uses escape sequences (in my
case, "\\fixedpdfdate" is actually replaced by a form feed character
followed by "ixedpdfdate" in the final .tex file).
Attached is an updated version of the patch that fixes the issue for me.
It uses "printf" instead of "echo" to avoid possible issues with the
interpretation of escape sequences.
It blanks the "ModDate" & "CreationDate" fields instead of trying to be
smart about them.
It also removes pdfLaTeX's banner & trailer ID from the final output
(which may also fix the issue you reported about different versions of
the build-dependencies resulting in different output files).
Best regards,
François
Description: Deterministically build crypt.pdf for multi-arch
Author: Michael Stapelberg <stapelb...@debian.org>
Forwarded: https://github.com/libtom/libtomcrypt/pull/33
Bug-Debian: http://bugs.debian.org/734109
Last-Updated: 2014-01-04
---
Index: libtomcrypt/makefile
===================================================================
--- libtomcrypt.orig/makefile 2014-01-04 16:26:09.001353782 +0100
+++ libtomcrypt/makefile 2014-01-04 16:26:57.328828492 +0100
@@ -355,14 +355,23 @@
#delete it if we are rebuilding it.
docs: crypt.tex
rm -f doc/crypt.pdf $(LEFTOVERS)
+ cp crypt.tex crypt.bak
+ touch --reference=crypt.tex crypt.bak
+ printf "\\\\pdfinfo{ /ModDate () /CreationDate () }\\n" >> crypt-deterministic.tex
+ printf "\\\\pdftrailerid{}\\n" >> crypt-deterministic.tex
+ printf "\\\\pdfsuppressptexinfo15\\n" >> crypt-deterministic.tex
+ cat crypt.tex >> crypt-deterministic.tex
+ mv crypt-deterministic.tex crypt.tex
+ touch --reference=crypt.bak crypt.tex
echo "hello" > crypt.ind
latex crypt
latex crypt
makeindex crypt.idx
perl fixupind.pl
- latex crypt
- dvipdf crypt
+ pdflatex crypt
+ sed -i 's,^/ID \[.*\]$$,/ID [<0> <0>],g' crypt.pdf
mv -ivf crypt.pdf doc/crypt.pdf
+ mv crypt.bak crypt.tex
rm -f $(LEFTOVERS)
docdvi: crypt.tex