Bug#1074214: fastfetch: please make the build reproducible
Chris Lamb
lamby at debian.org
Mon Jun 24 16:15:25 BST 2024
Source: fastfetch
Version: 2.15.0+dfsg-2
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
fastfetch could not be built reproducibly.
This is because it embeds a timezone-varying date in its manual page.
A patch is attached that specifies "UTC" in the CMake file. This
timestamp will be correctly sourced from SOURCE_DATE_EPOCH if present.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- a/debian/patches/reproducible-build.patch 1969-12-31 16:00:00.000000000 -0800
--- b/debian/patches/reproducible-build.patch 2024-06-24 08:11:03.048294988 -0700
@@ -0,0 +1,15 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2024-06-24
+
+--- fastfetch-2.15.0+dfsg.orig/CMakeLists.txt
++++ fastfetch-2.15.0+dfsg/CMakeLists.txt
+@@ -254,7 +254,7 @@ if(APPLE)
+ configure_file(src/util/apple/Info.plist.in Info.plist @ONLY)
+ endif()
+
+-string(TIMESTAMP FASTFETCH_BUILD_DATE "%d %B %Y")
++string(TIMESTAMP FASTFETCH_BUILD_DATE "%d %B %Y" UTC)
+ configure_file(doc/fastfetch.1.in fastfetch.1 @ONLY)
+
+ ####################
--- a/debian/patches/series 1969-12-31 16:00:00.000000000 -0800
--- b/debian/patches/series 2024-06-24 08:11:02.120305326 -0700
@@ -0,0 +1 @@
+reproducible-build.patch
More information about the Reproducible-bugs
mailing list