990300">

Debian Bug report logs - #990300
auctex: reproducible builds: Embedded timestamps in .el files

version graph

Package: src:auctex; Maintainer for src:auctex is Davide G. M. Salvetti <salve@debian.org>;

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

Date: Fri, 25 Jun 2021 03:54:02 UTC

Severity: normal

Tags: confirmed, patch

Fixed in version auctex/13.2-1

Done: Davide G. M. Salvetti <salve@debian.org>

Bug is archived. No further changes may be made.

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, Davide G. M. Salvetti <salve@debian.org>:
Bug#990300; Package src:auctex. (Fri, 25 Jun 2021 03:54:03 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, Davide G. M. Salvetti <salve@debian.org>. (Fri, 25 Jun 2021 03:54:03 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, vs. > ;;;###·(autoloads·nil·"tex"·"tex.el"·(24767·51934·0·0)) > > ./usr/share/emacs/site-lisp/preview-latex.el > > ;;;###·(autoloads·nil·"preview"·"preview.el"·(25292·55677·147326 > vs. > ;;;###·(autoloads·nil·"preview"·"preview.el"·(24767·52242·102378 > > The tex-site.el is is patched from debian/patches, so the timestamp > varies at the time of build and preview-latex.el is generated during the > build, so the timestamp varies. > > The attached patches fix this by setting the timestamp on tex.el from > debian/rules using debian/changelog as a reference timestamp, and > patching Makefile.in to do the same for preview-latex.el. > > Applying these patches should make auctex reproducible in the current > tests.reproducible-builds.org infrastructure. > > > Thanks for maintaining auctex! > > > live well, > vagrant &In-Reply-To=<87y2aywqhy.fsf@yucca>&subject=Re: auctex: reproducible builds: Embedded timestamps in .el files&References=<87y2aywqhy.fsf@yucca>">reply):

From: Vagrant Cascadian <vagrant@reproducible-builds.org>
To: submit@bugs.debian.org
Subject: auctex: reproducible builds: Embedded timestamps in .el files
Date: Thu, 24 Jun 2021 20:51:53 -0700
[Message part 1 (text/plain, inline)]
Source: auctex
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 .el files:

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

  ./usr/share/emacs/site-lisp/tex-site.el

  ;;;###·(autoloads·nil·"tex"·"tex.el"·(25292·55595·0·0))
  vs.
  ;;;###·(autoloads·nil·"tex"·"tex.el"·(24767·51934·0·0))

  ./usr/share/emacs/site-lisp/preview-latex.el

  ;;;###·(autoloads·nil·"preview"·"preview.el"·(25292·55677·147326
  vs.
  ;;;###·(autoloads·nil·"preview"·"preview.el"·(24767·52242·102378

The tex-site.el is is patched from debian/patches, so the timestamp
varies at the time of build and preview-latex.el is generated during the
build, so the timestamp varies.

The attached patches fix this by setting the timestamp on tex.el from
debian/rules using debian/changelog as a reference timestamp, and
patching Makefile.in to do the same for preview-latex.el.

Applying these patches should make auctex reproducible in the current
tests.reproducible-builds.org infrastructure.


Thanks for maintaining auctex!


live well,
  vagrant
[0001-debian-rules-Set-the-timestamp-on-the-patched-tex.el.patch (text/x-diff, inline)]
From dcb820e3f7e09a844df70b0068f59a4831248408 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Fri, 25 Jun 2021 03:36:17 +0000
Subject: [PATCH 1/2] debian/rules: Set the timestamp on the patched tex.el
 file to avoid embedding timestamps in the shipped .el file.

https://tests.reproducible-builds.org/debian/issues/timestamps_in_emacs_autoloads_issue.html
https://bugs.debian.org/824050
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=22213
---
 debian/rules | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debian/rules b/debian/rules
index fc8813f0..44ee25e3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -50,6 +50,10 @@ ELCC := $(shell pwd)/debian/elcc
 override_dh_auto_build: debian/clean
 	chmod -R a+rX debian/
 	chmod a+x debian/elcc
+	# Set the date on files that are patched to avoid inconsistent
+	# embedded timestamps:
+	# https://tests.reproducible-builds.org/debian/issues/timestamps_in_emacs_autoloads_issue.html
+	touch --reference debian/changelog tex.el
 	$(MAKE) ELCC=$(ELCC)
 	rm --force auto-loads.el
 	$(MAKE) auto-loads.el
-- 
2.32.0

[0002-debian-patches-Set-the-timestamp-on-the-generated-pr.patch (text/x-diff, inline)]
From 16c7380b96b37841a0c6533c428310ef278f12c6 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Fri, 25 Jun 2021 03:40:45 +0000
Subject: [PATCH 2/2] debian/patches: Set the timestamp on the generated
 preview-latex.el file to avoid embedding timestamps in the shipped .el file.

https://tests.reproducible-builds.org/debian/issues/timestamps_in_emacs_autoloads_issue.html
https://bugs.debian.org/824050
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=22213
---
 ...p-on-the-generated-preview-latex.el-.patch | 28 +++++++++++++++++++
 debian/patches/series                         |  1 +
 2 files changed, 29 insertions(+)
 create mode 100644 debian/patches/0007-Set-the-timestamp-on-the-generated-preview-latex.el-.patch

diff --git a/debian/patches/0007-Set-the-timestamp-on-the-generated-preview-latex.el-.patch b/debian/patches/0007-Set-the-timestamp-on-the-generated-preview-latex.el-.patch
new file mode 100644
index 00000000..a4349b5d
--- /dev/null
+++ b/debian/patches/0007-Set-the-timestamp-on-the-generated-preview-latex.el-.patch
@@ -0,0 +1,28 @@
+From e3c2aede384f443397c02c183691697c73d502d7 Mon Sep 17 00:00:00 2001
+From: Vagrant Cascadian <vagrant@reproducible-builds.org>
+Date: Fri, 25 Jun 2021 03:38:05 +0000
+Subject: [PATCH] Set the timestamp on the generated preview-latex.el file to
+ avoid embedding timestamps in the shipped .el file.
+
+https://tests.reproducible-builds.org/debian/issues/timestamps_in_emacs_autoloads_issue.html
+https://bugs.debian.org/824050
+https://debbugs.gnu.org/cgi/bugreport.cgi?bug=22213
+---
+ Makefile.in | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/Makefile.in b/Makefile.in
+index 95bc0eb5..24177bea 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -222,6 +222,7 @@ lisp:	tex-site.el $(AUCSRC) $(STYLESRC) $(PREVIEWSRC)
+ 
+ preview-latex.el: preview.el
+ 	rm -f preview-latex.el
++	touch --reference debian/copyright preview-latex.el ; \
+ 	-$(EMACS) -batch -no-site-file -no-init-file $(PREVIEW_AUTOLOAD) ; \
+ 	test -r $@ || { \
+ 	  echo ";; Auto-generated preview-latex.el" > $@ ; \
+-- 
+2.32.0
+
diff --git a/debian/patches/series b/debian/patches/series
index 5c13931a..bc0123a8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@
 0004-TeX-view-program-selection-Customize-for-Debian.patch
 0005-TeX-auto-global-Customize-for-Debian.patch
 0006-preview-image-type-Customize-for-Debian.patch
+0007-Set-the-timestamp-on-the-generated-preview-latex.el-.patch
-- 
2.32.0

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

Information forwarded to debian-bugs-dist@lists.debian.org, Davide G. M. Salvetti <salve@debian.org>:
Bug#990300; Package src:auctex. (Fri, 25 Jun 2021 04:24:02 GMT) (full text, mbox, link).


Acknowledgement sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Extra info received and forwarded to list. Copy sent to Davide G. M. Salvetti <salve@debian.org>. (Fri, 25 Jun 2021 04:24:02 GMT) (full text, mbox, link).


Message #10 received at 990300@bugs.debian.org (full text, mbox, > vs. > > ;;;###·(autoloads·nil·"tex"·"tex.el"·(24767·51934·0·0)) > > > > ./usr/share/emacs/site-lisp/preview-latex.el > > > > ;;;###·(autoloads·nil·"preview"·"preview.el"·(25292·55677·147326 > > vs. > > ;;;###·(autoloads·nil·"preview"·"preview.el"·(24767·52242·102378 > ... > > The attached patches fix this by setting the timestamp on tex.el from > > debian/rules using debian/changelog as a reference timestamp, and > > patching Makefile.in to do the same for preview-latex.el. > > I forgot to mention another way to solve this *might* be to to switch > packaging over to dh-elpa, which can normalize the autoloads timestamps > to use SOURCE_DATE_EPOCH: > > https://reproducible-builds.org/docs/source-date-epoch/ > > I'm not familiar enough with dh-elpa to propose a patch for that, but > maybe it is worth considering. > > > live well, > vagrant &References=<87y2aywqhy.fsf@yucca> <87v962wp4j.fsf@yucca>">reply):

From: Vagrant Cascadian <vagrant@reproducible-builds.org>
To: 990300@bugs.debian.org
Subject: Re: auctex: reproducible builds: Embedded timestamps in .el files
Date: Thu, 24 Jun 2021 21:21:32 -0700
[Message part 1 (text/plain, inline)]
On 2021-06-24, Vagrant Cascadian wrote:
> The build timestamp is embedded in various .el files:
>
>   https://tests.reproducible-builds.org/debian/rb-pkg/bullseye/amd64/diffoscope-results/auctex.html
>
>   ./usr/share/emacs/site-lisp/tex-site.el
>
>   ;;;###·(autoloads·nil·"tex"·"tex.el"·(25292·55595·0·0))
>   vs.
>   ;;;###·(autoloads·nil·"tex"·"tex.el"·(24767·51934·0·0))
>
>   ./usr/share/emacs/site-lisp/preview-latex.el
>
>   ;;;###·(autoloads·nil·"preview"·"preview.el"·(25292·55677·147326
>   vs.
>   ;;;###·(autoloads·nil·"preview"·"preview.el"·(24767·52242·102378
...
> The attached patches fix this by setting the timestamp on tex.el from
> debian/rules using debian/changelog as a reference timestamp, and
> patching Makefile.in to do the same for preview-latex.el.

I forgot to mention another way to solve this *might* be to to switch
packaging over to dh-elpa, which can normalize the autoloads timestamps
to use SOURCE_DATE_EPOCH:

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

I'm not familiar enough with dh-elpa to propose a patch for that, but
maybe it is worth considering.


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

Information forwarded to debian-bugs-dist@lists.debian.org, Davide G. M. Salvetti <salve@debian.org>:
Bug#990300; Package src:auctex. (Sat, 26 Jun 2021 09:15:02 GMT) (full text, mbox, link).


Acknowledgement sent to "Davide G. M. Salvetti" <salve@debian.org>:
Extra info received and forwarded to list. Copy sent to Davide G. M. Salvetti <salve@debian.org>. (Sat, 26 Jun 2021 09:15:02 GMT) (full text, mbox, link).


Message #15 received at 990300@bugs.debian.org (full text, mbox, wrote: > tags 990300 patch confirmed pending > thanks > >>>>> VC == Vagrant Cascadian [2021-6-24] > > VC> The build timestamp is embedded in various .el files: > > [...] > > VC> The attached patches fix this by setting the timestamp on tex.el from > VC> debian/rules using debian/changelog as a reference timestamp, and > VC> patching Makefile.in to do the same for preview-latex.el. > > VC> Applying these patches should make auctex reproducible in the current > VC> tests.reproducible-builds.org infrastructure. > > Hi Vagrant, > > thank you for the report and patches. > > -- > Greetings, > Davide > > &subject=Re: Bug#990300: auctex: reproducible builds: Embedded timestamps in .el files&In-Reply-To=<87zgvdc814.fsf@hal.linux.it>">reply):

From: "Davide G. M. Salvetti" <salve@debian.org>
To: Vagrant Cascadian <vagrant@reproducible-builds.org>
Cc: 990300@bugs.debian.org
Subject: Re: Bug#990300: auctex: reproducible builds: Embedded timestamps in .el files
Date: Sat, 26 Jun 2021 11:03:19 +0200
tags 990300 patch confirmed pending
thanks
>>>>>  VC == Vagrant Cascadian [2021-6-24]

VC> The build timestamp is embedded in various .el files:

[...]

VC> The attached patches fix this by setting the timestamp on tex.el from
VC> debian/rules using debian/changelog as a reference timestamp, and
VC> patching Makefile.in to do the same for preview-latex.el.

VC> Applying these patches should make auctex reproducible in the current
VC> tests.reproducible-builds.org infrastructure.

Hi Vagrant,

thank you for the report and patches.

-- 
Greetings,
Davide



Added tag(s) pending and confirmed. Request was from "Davide G. M. Salvetti" <salve@debian.org> to control@bugs.debian.org. (Sat, 26 Jun 2021 09:15:03 GMT) (full text, mbox, link).


Reply sent to salve@debian.org (Davide G. M. Salvetti):
You have taken responsibility. (Tue, 21 Nov 2023 00:21:19 GMT) (full text, mbox, link).


Notification sent to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer. (Tue, 21 Nov 2023 00:21:19 GMT) (full text, mbox, link).


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

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 990300-close@bugs.debian.org
Subject: Bug#990300: fixed in auctex 13.2-1
Date: Tue, 21 Nov 2023 00:19:10 +0000
Source: auctex
Source-Version: 13.2-1
Done: Davide G. M. Salvetti <salve@debian.org>

We believe that the bug you reported is fixed in the latest version of
auctex, 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 990300@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Davide G. M. Salvetti <salve@debian.org> (supplier of updated auctex 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: SHA256

Format: 1.8
Date: Mon, 20 Nov 2023 23:59:01 +0100
Source: auctex
Architecture: source
Version: 13.2-1
Distribution: unstable
Urgency: medium
Maintainer: Davide G. M. Salvetti <salve@debian.org>
Changed-By: Davide G. M. Salvetti <salve@debian.org>
Closes: 990300 1028238 1031145 1040484 1042874 1043257 1053161 1056160
Changes:
 auctex (13.2-1) unstable; urgency=medium
 .
   * [3c41e87] New upstream release 13.2
     Thanks to Amr Ibrahim, AlMa, Janusz S. Bień, Xiyue Deng, Marcelo Laia, Hilmar Preusse
     (Closes: #1028238, #1040484, #1042874, #1043257, #1053161, #1056160)
   * [4db638b] debian/patches: Remove upstream merged, rebase.
     Thanks to Xiyue Deng
   * [1bb5677] debian/patches: Add Use UTF-8, renumber.
     Thanks to lintian
   * [daf33b7] debian/{patches,rules}: Set timestamps to reproducible build.
     Thanks to Vagrant Cascadian (Closes: #990300)
   * [0fe85cf] debian/auctex.NEWS: Update for upstream releases from 11.92 to 12.2
   * [4599742] debian/auctex.NEWS: Update for upstream releases from 12.3 to 13.2
   * [a5fb566] debian/control (Build-Depends-Indep): Update debhelper compat level
   * [a0a3448] debian/control (Description): Remove no more needed XEmacs reference
   * [49e2340] debian/control: Remove constraints unnecessary since buster.
     Thanks to The Debian Janitor
   * [20df982] debian/control (Standards-Version): Upgrade to 4.6.2.
   * [82ac517] debian/control (Build-Depends-Indep): Add texlive-latex-recommended
   * [d00ad14] debian/control (Homepage): Use secure URI
   * [becd0da] debian/auctex.emacsen-install: Be verbose while byte compiling
   * [096b158] debian/auctex.{postinst,postrm,preinst}: Remove ancient cleanup code
   * [e87c8e7] debian/update-auctex-elisp: Disable font-lock while parsing macros
   * [5b8a070] debian/auctex.lintian-overrides: Transition to "pointed hints"
   * [7b08a2c] debian/auctex.lintian-overrides: Add upstream changelog override
   * [f70fea5] Refactor dh_installdocs related stuff
   * [598b51f] debian/po/ro.po: Romanian translation.
     Thanks to Remus-Gabriel Chelu (Closes: #1031145)
   * [1b37d3a] debian/{COPYRIGHT,copyright}: Update
   * [8b4ebe5] debian/changelog: Fix spelling
Checksums-Sha1:
 e6783f66a24bcc89c1a12f8391f946bc5c93ba76 2050 auctex_13.2-1.dsc
 b18ea543dd95be88adf83baa259f4801447fa25d 946452 auctex_13.2.orig.tar.xz
 4dd1cba515da465992a1fcb2c287905b00fd33d0 58816 auctex_13.2-1.debian.tar.xz
 86b44d04112e1bc8734f00c3847e535aca97e69f 12622 auctex_13.2-1_amd64.buildinfo
Checksums-Sha256:
 601f4f47c152843c38e3cb9104e5c78475ccd11a86930b167e91da822e9a55b6 2050 auctex_13.2-1.dsc
 0332fd9084329c0c5f8b4853b7f870a11bd853fd6d615726f1c90d06175519bf 946452 auctex_13.2.orig.tar.xz
 01e274a2531ef5eeb2e5bbd3933003ba307e7c341b4c121c6f68dcda8c7de863 58816 auctex_13.2-1.debian.tar.xz
 ed8d0177b4091fefd17f6cf55dbb3bc11bb4f7cbe1898b96bb713d29a1b078cf 12622 auctex_13.2-1_amd64.buildinfo
Files:
 00f8901e0863da2ad639f8c17aa7a481 2050 tex optional auctex_13.2-1.dsc
 078df82b03b68895ddff7bda8a751d9f 946452 tex optional auctex_13.2.orig.tar.xz
 3f87f528b6c619b193d2f8c886bd6ad9 58816 tex optional auctex_13.2-1.debian.tar.xz
 e8a419193d6415c20407eb48db08b463 12622 tex optional auctex_13.2-1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEjeOMymQII+s0PJa1LsYVsujTpTUFAmVb7UQACgkQLsYVsujT
pTWsSw/+LBNCAXsDYRQ2/lCJvdmOWJGkPmyPQi0EPxJ+FWz5YGFKV4jEo1x5mPM9
ivxABuBKKkkkk8iqfIqRduCd+EhhTHBpNb8qqvEmTOzcwcPlgHBOeZD1azvlgNUN
PRr3GXLcYUZgY43ESLZls6tmeZ/GAoS4Klq048GRadsscpw5x/fK3SC7hv0Y53pG
8g3uPO35ysCYOTzKJXhRqIVy9Kn9QRrNzv9/PHeK55DB9BGh77xqmQrGagKwO8+a
xdqcbsVU9s0y+BC3hwxSAWWXf8B3cs1TXpgrYogjJf881DZXVzsYy8KjGfUzbI41
NkU7D10ZKvjNMCMV/KD5RrbJvjAH2zWXEuWLrYKLwCJmrDdgRoXt82cqYLBkNfdk
racFS7RP4hLRgBugw0ir4ksFkM8f16R0A1Oxr1MXfjQwfvveL9NIIl44jQOeQ9W8
3oWuE1CipOHRigyjHi+7+jsWrTVKAurJwtVdpaAQnDwlYKDp9ExDwQWzz5GmPyOW
PE8BpDHxVNafP+j3yDT4ilfqS8ZvsoZgQTS843Y2t7lYGk2sKAC1VbvqrUqYjQbV
Z6zov1Q2hvjRi4172TxvwF1VWIPsI6FtWp5zNRG4Iad+f7XUsf9JKLcBAmcXtcmo
ny1xLkm4CiJm5tLKTezZsz0VNWAJt/42/xRl0//qBRg8tTiIhrE=
=Oy5f
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 24 Dec 2023 07:24:34 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: Fri Jan 31 06:44:09 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General 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.