Debian Bug report logs -
#1036367
gcc-13: reproducible builds: build date and timestamps embedded in documentation
Reported by: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sat, 20 May 2023 00:03:01 UTC
Severity: normal
Tags: patch
Found in version gcc-13/13.1.0-2
Fixed in version gcc-13/13.1.0-3
Done: Matthias Klose <doko@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Debian GCC Maintainers <debian-gcc@lists.debian.org>:
Bug#1036367; Package src:gcc-13.
(Sat, 20 May 2023 00:03: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, Debian GCC Maintainers <debian-gcc@lists.debian.org>.
(Sat, 20 May 2023 00:03:03 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Source: gcc-13
Version: 13.1.0-2
Severity: normal
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org
The build dates and timestamps are embedded in various files shipped in
documentation.
The attached patches fix this by adding SOURCE_DATE_EPOCH support to the
doxygen scripts used to generate the libstdc++ documentation, and by
adjusting debian/rules2 to remove the leftover _formulas.log files from
the generated package.
According to my local tests, applying these patches should allow gcc-13
to build reproducibly with stable build paths and
DEB_BUILD_OPTIONS="nocheck nolto nopgo".
Thanks for maintaining gcc-13!
live well,
vagrant
[0001-Patch-libstdc-to-support-SOURCE_DATE_EPOCH-in-docume.patch (text/x-diff, inline)]
From 41780dfa54abbc7a1d6a1acd744d725b3799eb50 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 30 Apr 2023 14:37:31 -0700
Subject: [PATCH 1/2] Patch libstdc++ to support SOURCE_DATE_EPOCH in
documentation.
https://reproducible-builds.org/docs/source-date-epoch/
---
...ripts-run_doxygen-support-SOURCE_DATE_EPOCH.diff | 13 +++++++++++++
debian/rules.patch | 1 +
2 files changed, 14 insertions(+)
create mode 100644 debian/patches/libstdc++-scripts-run_doxygen-support-SOURCE_DATE_EPOCH.diff
diff --git a/debian/patches/libstdc++-scripts-run_doxygen-support-SOURCE_DATE_EPOCH.diff b/debian/patches/libstdc++-scripts-run_doxygen-support-SOURCE_DATE_EPOCH.diff
new file mode 100644
index 0000000..1636c08
--- /dev/null
+++ b/debian/patches/libstdc++-scripts-run_doxygen-support-SOURCE_DATE_EPOCH.diff
@@ -0,0 +1,13 @@
+--- gcc-13.1.0/src/libstdc++-v3/scripts/run_doxygen 2023-04-26 00:09:43.000000000 -0700
++++ gcc-13.1.0/src/libstdc++-v3/scripts/run_doxygen.new 2023-04-30 14:34:47.513318389 -0700
+@@ -130,7 +130,9 @@
+ latex_cmd=
+ enabled_sections=
+ generate_tagfile=
+-DATEtext=`date '+%Y-%m-%d'`
++DATE_FMT="+%Y-%m-%d"
++SOURCE_DATE_EPOCH="${SOURCE_DATE_EPOCH:-$(date +%s)}"
++DATEtext=`date -u -d "@$SOURCE_DATE_EPOCH" "$DATE_FMT" 2>/dev/null || date -u -r "$SOURCE_DATE_EPOCH" "$DATE_FMT" 2>/dev/null || date -u "$DATE_FMT"`
+
+ # Show how this script is called.
+ echo run_doxygen $*
diff --git a/debian/rules.patch b/debian/rules.patch
index 89ecbe2..274514d 100644
--- a/debian/rules.patch
+++ b/debian/rules.patch
@@ -39,6 +39,7 @@ debian_patches += \
libstdc++-doclink \
libstdc++-man-3cxx \
libstdc++-test-installed \
+ libstdc++-scripts-run_doxygen-support-SOURCE_DATE_EPOCH \
alpha-no-ev4-directive \
note-gnu-stack \
libgomp-omp_h-multilib \
--
2.39.2
[0002-debian-rules2-Remove-_formulas.log-files.patch (text/x-diff, inline)]
From cd27050d2ff32b1ce1f065d8e7ee0c6abffbf8d5 Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagrant@reproducible-builds.org>
Date: Sun, 30 Apr 2023 14:38:34 -0700
Subject: [PATCH 2/2] debian/rules2: Remove _formulas.log files.
These files are artifacts from the documentation creation process and
may embed build dates.
---
debian/rules2 | 1 +
1 file changed, 1 insertion(+)
diff --git a/debian/rules2 b/debian/rules2
index 1b431e2..43c077f 100644
--- a/debian/rules2
+++ b/debian/rules2
@@ -2930,6 +2930,7 @@ debian/indep_binaries.all: $(foreach i,$(indep_binaries),$(binary_stamp)-$(i))
cat debian/indep_binaries debian/indep_binaries.epoch > debian/indep_binaries.all
binary-indep: $(foreach i,$(indep_binaries),$(binary_stamp)-$(i)) debian/indep_binaries.all
+ find debian -name _formulas.log -delete -print
dh_compress $(foreach p,$(shell echo `cat debian/indep_binaries.all`),-p$(p)) \
-X.log.xz -X.sum.xz -X.c -X.txt -X.tag -X.map -XREADME.Bugs
dh_fixperms $(foreach p,$(shell echo `cat debian/indep_binaries.all`),-p$(p))
--
2.39.2
[signature.asc (application/pgp-signature, inline)]
Reply sent
to Matthias Klose <doko@debian.org>:
You have taken responsibility.
(Sat, 20 May 2023 10:06:05 GMT) (full text, mbox, link).
Notification sent
to Vagrant Cascadian <vagrant@reproducible-builds.org>:
Bug acknowledged by developer.
(Sat, 20 May 2023 10:06:05 GMT) (full text, mbox, link).
Message #10 received at 1036367-close@bugs.debian.org (full text, mbox, reply):
Source: gcc-13
Source-Version: 13.1.0-3
Done: Matthias Klose <doko@debian.org>
We believe that the bug you reported is fixed in the latest version of
gcc-13, 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 1036367@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Matthias Klose <doko@debian.org> (supplier of updated gcc-13 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: Sat, 20 May 2023 11:42:17 +0200
Source: gcc-13
Architecture: source
Version: 13.1.0-3
Distribution: experimental
Urgency: medium
Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>
Changed-By: Matthias Klose <doko@debian.org>
Closes: 1036158 1036367
Changes:
gcc-13 (13.1.0-3) experimental; urgency=medium
.
* Update to git 20230520 from the gcc-13 branch.
- PR c++/109884, PR target/104338 (RISCV), PR libstdc++/109816,
Fix PR target/109661 (AArch64), PR c++/109871, PR c++/109868,
PR c++/109774, PR c++/109745, PR c++/83258, PR c++/80488, PR c++/97700,
PR c++/109761, PR c++/109651, PR fortran/109846, PR fortran/109641,
PR target/104338 (RISCV), PR libstdc++/109816, PR libstdc++/109883,
PR libstdc++/109883.
* Update libgcc-s, libhwasan and libstdc++ symbols files.
* Patch libstdc++ to support SOURCE_DATE_EPOCH in documentation (Vagrant
Cascadian). Closes: #1036367.
* Configure --with-arch=ev56 for alpha. Closes: #1036158.
Checksums-Sha1:
523c887fee3ef34e30298bebaccc0799456f5389 27424 gcc-13_13.1.0-3.dsc
3368e783c0d7fb51de69ebe591a76f2fa549b673 1220192 gcc-13_13.1.0-3.debian.tar.xz
2e23c5aa9e34cef6f14109b3a71c03d5cc7f6e3c 9557 gcc-13_13.1.0-3_source.buildinfo
Checksums-Sha256:
b74cdd70eeb1de9c0da50590f51e6bfe7070eb54777cce6f73ca19bfd7ed0298 27424 gcc-13_13.1.0-3.dsc
2a064f392b836c445c5c7e9bf8a7fdb0197585086b5419bcb0c61636a11d1de5 1220192 gcc-13_13.1.0-3.debian.tar.xz
253b3f90d75b77c3b7f553cb592deb394d5fd28a96946bbd23b13174e2c5acde 9557 gcc-13_13.1.0-3_source.buildinfo
Files:
abaa077ae7b66b5ef187e18c56af39c3 27424 devel optional gcc-13_13.1.0-3.dsc
ba902ae93ba2c0a7af9c5f190118eb28 1220192 devel optional gcc-13_13.1.0-3.debian.tar.xz
3785bb0d3d60c0ca403a01cbbb9d49ad 9557 devel optional gcc-13_13.1.0-3_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJEBAEBCgAuFiEE1WVxuIqLuvFAv2PWvX6qYHePpvUFAmRolqMQHGRva29AZGVi
aWFuLm9yZwAKCRC9fqpgd4+m9ZDeD/9VDmLDXcz/UkyC/05R7Q+Vunz1lQ6KlF/x
Hie+z2vxTTvnXLsma76pmqxhB9sf5hqBQLmT9kDsrwF2eUrJPlXFTDBESY32XxV/
mP1GgoMXUNr8dZKD+gfWf0YRVierJgtQjF8E36/WVdG+iNxRQRK9RKDgOGX348Qe
RM1aUmT51dD/if85gQUBZH6I+hi82AoDVOjbpuvUB8kNap/62xwdPkFdqN3zvJRu
rTYa1FhOmdrYrgQrgUoetoSw6cIM2cAMjVfMpw1WxITDb0DSoZiZEzmv/x8x5tn5
f6H/DX80xvvR9jL3n/cSuxTeek7oLsHx9wKecz8e8Vv1WI4FHizZ6u+nU4cBwIm6
8i6K+0ukExDREk3GaI5ekxYt/lYs4mF6uDmkDJe/NEUvheqBxQ8PMFLf51bHBdeW
bwWj/C5uD95QA1O4X241lAtSj97YhURuda1zTuT4dOT5ydHzveXJ6uuf+8NfrTJR
j3xoAozoMnwGUU1c0Wcq0rUfZ/dx9zeFDxEd3/HBlZRabj/TwXJUhj0hF9/w6DS1
ZcJk79/N6nqcvF+y8LUKs0vM60ofTJ57OpcBRl73Lc6EGe7vE/ybbyAz+7A84iGY
HFBt6cVNA887Qq7Py2U5QDBHBLyYiOo45/44w7Jp315YljiyCbZ6bbdkLpkq2moI
w9fc+EFU7g==
=hN16
-----END PGP SIGNATURE-----
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Wed, 12 Jul 2023 07:27:44 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:
Sat Aug 19 14:57:49 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.