Bug#1094611: wasistlos: please make the build reproducible

Chris Lamb lamby at debian.org
Wed Jan 29 10:59:21 GMT 2025


Source: wasistlos
Version: 1.7.0-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
wasistlos could not be built reproducibly.

This is because it embeds a date in appdata XML file that varies based
on the build system's timezone.

A patch is attached that requests CMake use the UTC timezone; CMake will
base the underlying value on SOURCE_DATE_EPOCH behind the scenes.

 [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	2025-01-29 10:56:10.581772472 +0000
@@ -0,0 +1,15 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2025-01-29
+
+--- wasistlos-1.7.0.orig/CMakeLists.txt
++++ wasistlos-1.7.0/CMakeLists.txt
+@@ -16,7 +16,7 @@ set(WIL_FRIENDLY_NAME "WasIstLos")
+ set(WIL_DESCRIPTION ${CMAKE_PROJECT_DESCRIPTION})
+ set(WIL_HOMEPAGE ${CMAKE_PROJECT_HOMEPAGE_URL})
+ set(WIL_VERSION ${CMAKE_PROJECT_VERSION})
+-string(TIMESTAMP WIL_BUILD_DATE "%Y-%m-%d")
++string(TIMESTAMP WIL_BUILD_DATE "%Y-%m-%d" UTC)
+ set(WIL_APP_ID "com.github.xeco23.WasIstLos")
+ set(WIL_ICON ${WIL_APP_ID})
+ set(GETTEXT_PACKAGE ${WIL_NAME})
--- a/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/series	2025-01-29 10:56:09.713769731 +0000
@@ -0,0 +1 @@
+reproducible-build.patch


More information about the Reproducible-bugs mailing list