From lamby at debian.org Wed Nov 22 09:39:51 2023 From: lamby at debian.org (Chris Lamb) Date: Wed, 22 Nov 2023 09:39:51 +0000 Subject: Bug#1056398: php-doc: please make the build reproducible Message-ID: <170064592343.102809.6395294403691773113@327dd37d7613> Source: php-doc Version: 20231115~git.99fbf5d+dfsg-1 Severity: wishlist Tags: patch User: reproducible-builds at lists.alioth.debian.org Usertags: timestamps X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org Hi, Whilst working on the Reproducible Builds effort [0], we noticed that php-doc could not be built reproducibly. This is due to embedded timestamps. For example: ? ? ? ??? ./usr/share/doc/php-doc/html/index.html ? ? ? ? @@ -98,27 +98,27 @@ ? ? ? ? ? ? ? ? And several others ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? -
2023-11-21
? ? ? ? +
2024-12-23
Patch attached that seeds this date from SOURCE_DATE_EPOCH instead. [0] https://reproducible-builds.org/ Regards, -- ,''`. : :' : Chris Lamb `. `'` lamby at debian.org / chris-lamb.co.uk `- -------------- next part -------------- --- a/debian/patches/reproducible-build.patch 1970-01-01 01:00:00.000000000 +0100 --- b/debian/patches/reproducible-build.patch 2023-11-22 09:35:13.092088512 +0000 @@ -0,0 +1,15 @@ +Description: Make the build reproducible +Author: Chris Lamb +Last-Update: 2023-11-22 + +--- php-doc-20231115~git.99fbf5d+dfsg.orig/phd/phpdotnet/phd/PI/DBHTMLHandler.php ++++ php-doc-20231115~git.99fbf5d+dfsg/phd/phpdotnet/phd/PI/DBHTMLHandler.php +@@ -98,7 +98,7 @@ class PI_DBHTMLHandler extends PIHandler + } + $format = $this->getAttribute("format"); + if (!$format) { +- return $this->format->appendData(date('c')); ++ return $this->format->appendData(date('c', getenv('SOURCE_DATE_EPOCH') ?: time())); + } + $dateFormat = ""; + $len = strlen($format); --- a/debian/patches/series 2023-11-22 09:29:46.742984644 +0000 --- b/debian/patches/series 2023-11-22 09:35:11.644083656 +0000 @@ -1,2 +1,3 @@ remove-xkcd-mediaobjects.patch replace-non-free-stylesheets.patch +reproducible-build.patch From lamby at debian.org Thu Nov 23 10:34:50 2023 From: lamby at debian.org (Chris Lamb) Date: Thu, 23 Nov 2023 10:34:50 +0000 Subject: Bug#1056572: maildir-utils: please make the build reproducible Message-ID: <170073563759.8411.16224328422743670583@896b6e37e451> Source: maildir-utils Version: 1.10.8-1 Severity: wishlist Tags: patch User: reproducible-builds at lists.alioth.debian.org Usertags: timestamps X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org Hi, Whilst working on the Reproducible Builds effort [0], we noticed that maildir-utils could not be built reproducibly: ??? ./usr/share/man/man1/mu-add.1.gz ? ??? mu-add.1 ? ? @@ -85,15 +85,15 @@ ? ? Dirk-Jan C. Binnema ? ? ? ? .SH "COPYRIGHT" ? ? .PP ? ? This manpage is part of \fBmu\fP 1.10.8. ? ? ? ? .PP ? ? -Copyright ? 2022-2024 Dirk-Jan C. Binnema. License GPLv3+: GNU GPL version 3 ? ? +Copyright ? 2022-2023 Dirk-Jan C. Binnema. License GPLv3+: GNU GPL version 3 ? ? or later \fIhttps://gnu.org/licenses/gpl.html\fP. This is free software: you are A patch is attached that seeds this value from the SOURCE_DATE_EPOCH environment variable. [0] https://reproducible-builds.org/ Regards, -- ,''`. : :' : Chris Lamb `. `'` lamby at debian.org / chris-lamb.co.uk `- -------------- next part -------------- --- a/debian/patches/reproducible-build.patch 1970-01-01 01:00:00.000000000 +0100 --- b/debian/patches/reproducible-build.patch 2023-11-23 10:29:51.399821031 +0000 @@ -0,0 +1,21 @@ +Description: Make the build reproducible +Author: Chris Lamb +Last-Update: 2023-11-23 + +--- maildir-utils-1.10.8.orig/man/meson.build ++++ maildir-utils-1.10.8/man/meson.build +@@ -66,7 +66,13 @@ man_orgs=[ + + env = environment() + env.set('LANG', 'C') +-yearmonth = run_command('date', '+%B %Y', check:true, capture:true, env: env) ++cmd = run_command('sh', '-c', 'echo $SOURCE_DATE_EPOCH') ++# https://reproducible-builds.org/docs/source-date-epoch/#meson ++source_date_epoch = cmd.stdout().strip() ++if source_date_epoch == '' ++ source_date_epoch = run_command('date', '+%s').stdout().strip() ++endif ++yearmonth = run_command('date', '-u', '-d', '@' + source_date_epoch, '+%B %Y', check:true, capture:true, env: env) + ym=yearmonth.stdout().strip() + + foreach src : man_orgs --- a/debian/patches/series 2023-11-23 10:05:00.063724061 +0000 --- b/debian/patches/series 2023-11-23 10:29:50.287802884 +0000 @@ -5,3 +5,4 @@ more-man-page-fixes.patch typo-fixes.patch remove-mu4e-builddir.patch +reproducible-build.patch From lamby at debian.org Thu Nov 23 10:33:45 2023 From: lamby at debian.org (Chris Lamb) Date: Thu, 23 Nov 2023 10:33:45 +0000 Subject: Bug#1056571: pelican: please make the build reproducible Message-ID: <170073552017.5188.5552552541753714222@91a60576edcd> Source: pelican Version: 4.9.1+dfsg-1 Severity: wishlist Tags: patch User: reproducible-builds at lists.alioth.debian.org Usertags: timestamps X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org Hi, Whilst working on the Reproducible Builds effort [0], we noticed that pelican could not be built reproducibly: ??? ./usr/share/doc/pelican/html/content.html ? @@ -903,15 +903,15 @@ ? ? ? ? ?
?
?