Debian Bug report logs - #995650
chktex: reproducible builds: Embedded timestamps in .dvi file

version graph

Package: src:chktex; Maintainer for src:chktex is Thorsten Alteholz <debian@alteholz.de>;

Reported by: Vagrant Cascadian <vagrant@reproducible-builds.org>

Date: Sun, 3 Oct 2021 17:03:02 UTC

Severity: normal

Tags: patch

Fixed in version chktex/1.7.6-5

Done: Thorsten Alteholz <debian@alteholz.de>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Thorsten Alteholz <debian@alteholz.de>:
Bug#995650; Package src:chktex. (Sun, 03 Oct 2021 17:03:04 GMT) (full text, mbox, link).


Acknowledgement sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
New Bug report received and forwarded. Copy sent to reproducible-bugs@lists.alioth.debian.org, Thorsten Alteholz <debian@alteholz.de>. (Sun, 03 Oct 2021 17:03:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Vagrant Cascadian <vagrant@reproducible-builds.org>
To: submit@bugs.debian.org
Subject: chktex: reproducible builds: Embedded timestamps in .dvi file
Date: Sun, 03 Oct 2021 09:58:25 -0700
[Message part 1 (text/plain, inline)]
Source: chktex
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

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
[0001-debian-rules-Export-FORCE_SOURCE_DATE-to-ensure-texl.patch (text/x-diff, inline)]
From 951e1cc037a1eb8623f8e6a45d8619881eae7fb3 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 3 Oct 2021 16:50:16 +0000
Subject: [PATCH] debian/rules: Export FORCE_SOURCE_DATE to ensure texlive
 respects SOURCE_DATE_EPOCH.

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

Remove tweaks to tex.in files, which seemed only partially effective.
---
 debian/rules | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/debian/rules b/debian/rules
index bbb3b9d..f193a6b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,7 +17,8 @@ TMPCFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
 CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
 LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
 
-DEBDATE:=\\\date{$(shell TZ=UTC LC_ALL=C date -d "$$(dpkg-parsechangelog -SDate)" +'%m\/%d\/%Y')}
+# Ensure texlive respects SOURCE_DATE_EPOCH
+export FORCE_SOURCE_DATE=1
 
 CFLAGS = -Wall -fstack-protector --param=ssp-buffer-size=4 -Wformat $(CPPFLAGS)
 INSTALL = install
@@ -51,14 +52,9 @@ build-stamp:  config.status
 
 	# Add here commands to compile the package.
 	# build source
-	cp -p ChkTeX.tex.in ChkTeX.tex.in.backup
-	echo $(DEBDATE)
-	echo $(LIBS)
-	sed -ri "s/.date..today./$(DEBDATE)/g" ChkTeX.tex.in
 	$(MAKE) CFLAGS="$(CFLAGS) $(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" LIBS="$(LIBS) -lpcreposix -lpcre -ltermcap" chktex ChkTeX.dvi
 	# build html documentation
 	$(MAKE) html
-	mv ChkTeX.tex.in.backup ChkTeX.tex.in
 
 	touch build-stamp
 
-- 
2.33.0

[signature.asc (application/pgp-signature, inline)]

Reply sent to Thorsten Alteholz <debian@alteholz.de>:
You have taken responsibility. (Mon, 20 Jun 2022 18:21:05 GMT) (full text, mbox, link).


Notification sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer. (Mon, 20 Jun 2022 18:21:05 GMT) (full text, mbox, link).


Message #10 received at 995650-close@bugs.debian.org (full text, mbox, reply):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 995650-close@bugs.debian.org
Subject: Bug#995650: fixed in chktex 1.7.6-5
Date: Mon, 20 Jun 2022 18:18:53 +0000
Source: chktex
Source-Version: 1.7.6-5
Done: Thorsten Alteholz <debian@alteholz.de>

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)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

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-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 24 Jul 2022 07:28:31 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed May 17 12:59:31 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.