Source: imagemagick Severity: normal Tags: patch User: [email protected] Usertags: timestamps timezone X-Debbugs-Cc: [email protected]
Various files embed a date in imagemagick, and while the command uses ChangeLog as a reference file to produce a consistent date, it still outputs a date that is dependent on the timezone: https://tests.reproducible-builds.org/debian/rb-pkg/bullseye/amd64/diffoscope-results/imagemagick.html /usr/include/ImageMagick-6/magick/version.h #define·MagickReleaseDate··"2021-01-25" vs. #define·MagickReleaseDate··"2021-01-26" The attached patch modifies configure.ac to pass an argument to the date command to use the UTC timezone. The patch uses the "-u" argument, though the more descriptive "--utc" argument could be used instead if using GNU date, though other date implementations may not support this argument. This patch does not resolve all reproducibility issues (another patch incoming soon), though the main remaining one is due to build paths, which is not tested for bullseye. Thanks for maintaining imagemagick! live well, vagrant
From 5587cea7533d43b7e264da5420389b83650cc063 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <[email protected]> Date: Mon, 22 Feb 2021 01:21:14 +0000 Subject: [PATCH 1/4] configure.ac: Patch to ensure release date is in UTC. While it uses a reference file to produce a consistent date, the timezone may affect the actual date produced. https://reproducible-builds.org/docs/timezones/ --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 570d04f..62ddb5c 100644 --- a/configure.ac +++ b/configure.ac @@ -39,7 +39,7 @@ m4_define([magick_git_revision], ])) m4_define([magick_release_date], m4_esyscmd([ - d=$(date +%F -r ./ChangeLog) + d=$(date -u +%F -r ./ChangeLog) printf %s "$d" ])) -- 2.20.1
signature.asc
Description: PGP signature

