Bug#1074214: fastfetch: please make the build reproducible

2024-08-27 Thread Guiorgy Potskhishvili

Hello,

Just an FYI, this has been patched upstream on the 26th of June in this 
 
commit.


The version in the Debian repos has also been updated as of yesterday 
(26th of August) to a version that should include this patch.


If I'm not wrong, this can be closed as resolved?


Bug#1074214: fastfetch: please make the build reproducible

2024-06-24 Thread Chris Lamb
Source: fastfetch
Version: 2.15.0+dfsg-2
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-b...@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
 `. `'`  la...@debian.org / chris-lamb.co.uk
   `-

--- a/debian/patches/reproducible-build.patch   1969-12-31 16:00:00.0 
-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 
+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.0 -0800
--- b/debian/patches/series 2024-06-24 08:11:02.120305326 -0700
@@ -0,0 +1 @@
+reproducible-build.patch