#995650 chktex: reproducible builds: Embedded timestamps in .dvi file

Package:
src:chktex
Source:
chktex
Submitter:
Vagrant Cascadian
Date:
2022-06-20 18:21:05 UTC
Severity:
normal
Tags:
#995650#5
Date:
2021-10-03 16:58:25 UTC
From:
To:
The build timestamp is embedded in various .dvi files:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/chktex.html

  /usr/share/doc/chktex/ChkTeX.dvi.gz

  ··TeX·output·2021.
vs.
  ··TeX·output·2022.

  ··08.23:1518
vs.
  ··09.26:2344..

The attached patch fixes this by setting FORCE_SOURCE_DATE=1 in
debian/rules, which texlive needs in order to respect SOURCE_DATE_EPOCH,
which is set during debian package builds to the timestamp in the latest
debian/changelog entry.

https://reproducible-builds.org/docs/source-date-epoch/

It also removes what appears to be some code attempting to adjust the
timestamsp in the tex.in files, which was only partially effective, and
is no longer needed.

With this patch applied, chktex should build reproducibly on
tests.reproducible-builds.org

Thanks for maintaining chktex!

live well,
  vagrant

#995650#10
Date:
2022-06-20 18:18:53 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
chktex, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 995650@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Thorsten Alteholz <debian@alteholz.de> (supplier of updated chktex package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 19 Jun 2022 22:40:03 +0200
Source: chktex
Architecture: source
Version: 1.7.6-5
Distribution: unstable
Urgency: medium
Maintainer: Thorsten Alteholz <debian@alteholz.de>
Changed-By: Thorsten Alteholz <debian@alteholz.de>
Closes: 995650 1000070
Changes:
 chktex (1.7.6-5) unstable; urgency=medium
 .
   * depend on PCRE2 instead of PCRE3 (Closes: #1000070)
   * debian/control: bump standard to 4.6.1 (no changes)
   * debian/control: use dh13
   * debian/control: add Rules-Requires-Root: no
   * debian/rules: move to dh
   * debian/rules: make it reproducible (Closes: #995650)
                   Thanks to Vagrant Cascadian for the patch
Checksums-Sha1:
 24bc6593d9d40433435ce21b6766ea62b8df4fb3 2064 chktex_1.7.6-5.dsc
 08316be4888af58e285a4a933114cd6fd0c29968 44576 chktex_1.7.6-5.debian.tar.xz
 0ab9bc2fed02c1a72dc8670951d70c27a18167be 9698 chktex_1.7.6-5_amd64.buildinfo
Checksums-Sha256:
 7be49fbbf7be7533b287f9c645d6c809668f5ec1907179e48d9da8578a8cbb2b 2064 chktex_1.7.6-5.dsc
 bbc2120a3cdd26f60c5d16f1593034d8d376da60d235ccd947cdaba63567b83f 44576 chktex_1.7.6-5.debian.tar.xz
 824d067e704f478a3c685112fd4a737d73a4b56e94ab1c1b66c378bc984011ed 9698 chktex_1.7.6-5_amd64.buildinfo
Files:
 a39220cd5df5e539f8f9630ce08c4408 2064 tex optional chktex_1.7.6-5.dsc
 da2d39515586b21de94adbc244aa7773 44576 tex optional chktex_1.7.6-5.debian.tar.xz
 16a1d3c0e5b96fca0f063473e595208c 9698 tex optional chktex_1.7.6-5_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQKnBAEBCgCRFiEEYgH7/9u94Hgi6ruWlvysDTh7WEcFAmKwtGlfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDYy
MDFGQkZGREJCREUwNzgyMkVBQkI5Njk2RkNBQzBEMzg3QjU4NDcTHGRlYmlhbkBh
bHRlaG9sei5kZQAKCRCW/KwNOHtYRzC2D/4gTDdj4xUARI3nHHXkLVx/dohOLBZN
p3t6jJLVTx0rEwMzc/gxtlpOUY3PMnLXTk4raLGc/KIbUKsQPke3AGwAqxDipN2u
brX5b1MuI8+dUPjdzyz0nVg4jbq8tqHVtXnvEBuLyVKsXbW9KPGghwnTMaFeF9QJ
ef03YSZjfMH2ibW2XcEVjo3vuOAE3qSmihVzNtfPXGLVu4p3hGMme8qibmq3QcEm
iEUXrkMXIzdiXORYYU5mbYSukjhquIkebBRPI6maAyentliXYEvaxR+eqzW8zwk8
nBkMg7v91O6Y98U4sHT97Eq2BcyCXqgHRUckMa/7oBQM596q6R4aXyFoIDIqJZoC
L4z+1QbYShcIifKvh3ODaQ3/kSza6efp5698XEol2KwQ0GbgPG2yffS2hzPmmkUW
9hr/FttC8k4b1l8MNo8RVav2B1sBN2XC4q36izzozDyhZEGjcLhW8W7GKQyC0Ng2
hX2D2HUDCBoM6y7VrIcy8vImhKIp8NuCukrti+XBYOqBzF+bMqi0YIjdQuMbhgHo
PTydMArPVV01abCAcCNnzmxsv7gcBJ4nrwR1iwgRk1Sag1WpvjESFbW3tds9OgEL
GqLfuVg2H3msWEcXf6KiwHe9YD+qr8QhInqes5Pv1MyTCVbKQB/hZciyK7khVP2W
jHQnVzZXlq3jRw==
=jVzV
-----END PGP SIGNATURE-----