[Pkg-xmpp-devel] Bug#1017473: psi: please make the build reproducible

Vagrant Cascadian vagrant at reproducible-builds.org
Fri Dec 8 19:32:26 GMT 2023


On 2022-08-16, Chris Lamb wrote:
> 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.

Yesterday I Uploaded an NMU to DELAYED/10 using dgit with the following
changes:

diff -Nru psi-1.5+dfsg1/debian/changelog psi-1.5+dfsg1/debian/changelog
--- psi-1.5+dfsg1/debian/changelog	2019-12-31 16:00:01.000000000 -0800
+++ psi-1.5+dfsg1/debian/changelog	2023-12-07 13:16:09.000000000 -0800
@@ -1,3 +1,12 @@
+psi (1.5+dfsg1-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+
+  [ Chris Lamb ]
+  * Make the build reproducible (Closes: #1017473)
+
+ -- Vagrant Cascadian <vagrant at reproducible-builds.org>  Thu, 07 Dec 2023 13:16:09 -0800
+
 psi (1.5+dfsg1-1) unstable; urgency=medium
 
   * New upstream release.
diff -Nru psi-1.5+dfsg1/debian/patches/make-the-build-reproducible-closes-10174.patch psi-1.5+dfsg1/debian/patches/make-the-build-reproducible-closes-10174.patch
--- psi-1.5+dfsg1/debian/patches/make-the-build-reproducible-closes-10174.patch	1969-12-31 16:00:00.000000000 -0800
+++ psi-1.5+dfsg1/debian/patches/make-the-build-reproducible-closes-10174.patch	2023-12-07 13:16:09.000000000 -0800
@@ -0,0 +1,23 @@
+From: Chris Lamb <lamby at debian.org>
+Date: Tue, 16 Aug 2022 13:53:48 -0700
+X-Dgit-Generated: 1.5+dfsg1-1.1 dd0f9f00250fd9aae2920dd7898d4e08e7307666
+Subject: Make the build reproducible (Closes: #1017473)
+
+
+---
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 020c68e..5954ab1 100644
+--- a/src/CMakeLists.txt
++++ b/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)
diff -Nru psi-1.5+dfsg1/debian/patches/series psi-1.5+dfsg1/debian/patches/series
--- psi-1.5+dfsg1/debian/patches/series	2019-12-31 16:00:01.000000000 -0800
+++ psi-1.5+dfsg1/debian/patches/series	2023-12-07 13:16:09.000000000 -0800
@@ -1 +1,2 @@
 01_install-hicolor-icons.patch
+make-the-build-reproducible-closes-10174.patch


live well,
  vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-xmpp-devel/attachments/20231208/1ac3c90a/attachment.sig>


More information about the Pkg-xmpp-devel mailing list