Bug#1017473: psi: please make the build reproducible
Chris Lamb
lamby at debian.org
Tue Aug 16 17:36:18 BST 2022
Source: psi
Version: 1.5+dfsg1-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
psi could not be built reproducibly.
This is because that it embeds a build date that varies depending on
the current timezone. Patch attached that ensures that UTC is used.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- a/debian/patches/02_reproducible-build.patch 1969-12-31 16:00:00.000000000 -0800
--- b/debian/patches/02_reproducible-build.patch 2022-08-16 09:18:55.526039355 -0700
@@ -0,0 +1,17 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2022-08-16
+
+--- psi-1.5+dfsg1.orig/src/CMakeLists.txt
++++ psi-1.5+dfsg1/src/CMakeLists.txt
+@@ -179,8 +179,8 @@ else()
+ include_directories(${Iris_INCLUDE_DIR})
+ endif()
+
+-string(TIMESTAMP PSI_COMPILATION_DATE "%Y-%m-%d")
+-string(TIMESTAMP PSI_COMPILATION_TIME "%H:%M:%S")
++string(TIMESTAMP PSI_COMPILATION_DATE "%Y-%m-%d" UTC)
++string(TIMESTAMP PSI_COMPILATION_TIME "%H:%M:%S" UTC)
+
+ if(ENABLE_WEBKIT)
+ if(NOT USE_WEBENGINE)
--- a/debian/patches/series 2022-08-16 08:48:12.156883531 -0700
--- b/debian/patches/series 2022-08-16 09:18:53.694037532 -0700
@@ -1 +1,2 @@
01_install-hicolor-icons.patch
+02_reproducible-build.patch
More information about the Reproducible-bugs
mailing list