File kvirc-gendoc-date.patch of Package kvirc4
https://github.com/kvirc/KVIrc/pull/2360 merged upstream
https://bugzilla.opensuse.org/show_bug.cgi?id=1047218 packages do not build reproducibly from including build time
From 567d4f5de84d0794baac1fd6046abf6157ad7df2 Mon Sep 17 00:00:00 2001
From: "Bernhard M. Wiedemann" <bwiedemann@suse.de>
Date: Fri, 23 Mar 2018 06:49:51 +0100
Subject: [PATCH] doc: Allow to override build date
in order to make builds reproducible.
See https://reproducible-builds.org/ for why this is good
and https://reproducible-builds.org/specs/source-date-epoch/
for the definition of this variable.
---
admin/gendoc.pl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: kvirc-4.2.0/admin/gendoc.pl
===================================================================
--- kvirc-4.2.0.orig/admin/gendoc.pl
+++ kvirc-4.2.0/admin/gendoc.pl
@@ -28,8 +28,8 @@
# GLOBAL CONFIGS
#################################################################################################
-$g_currenttime=gmtime;
-$g_currentuser = getlogin || getpwuid($<) || "Unknown";
+$g_currenttime = gmtime($ENV{SOURCE_DATE_EPOCH} || time);
+$g_currentuser = $ENV{USER} || getlogin || getpwuid($<) || "Unknown";
$g_notetablebgcolor="#F0F0F0";
$g_notetextcolor="#909090";
$g_syntaxcolor="#802000";