-
-
Save lamby/dfbf57c89436893e91c9c7877a006bee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/debian/patches/40_reproducibile_build.patch 1970-01-01 02:00:00.000000000 +0200 | |
--- b/debian/patches/40_reproducibile_build.patch 2016-07-14 09:41:37.005324633 +0200 | |
@@ -0,0 +1,51 @@ | |
+Author: Chris Lamb <lamby@debian.org> | |
+Last-Update: 2016-07-14 | |
+ | |
+--- kvirc-4.2.0.orig/admin/gendoc.pl | |
++++ kvirc-4.2.0/admin/gendoc.pl | |
+@@ -28,8 +28,9 @@ | |
+ # GLOBAL CONFIGS | |
+ ################################################################################################# | |
+ | |
+-$g_currenttime=gmtime; | |
+-$g_currentuser = getlogin || getpwuid($<) || "Unknown"; | |
++use POSIX qw(strftime); | |
++ | |
++$g_currenttime = strftime("%a %b %e %H:%M:%S UTC %Y", gmtime($ENV{SOURCE_DATE_EPOCH} || time)); | |
+ $g_notetablebgcolor="#F0F0F0"; | |
+ $g_notetextcolor="#909090"; | |
+ $g_syntaxcolor="#802000"; | |
+@@ -201,7 +202,7 @@ sub print_header | |
+ | |
+ sub print_footer | |
+ { | |
+- print $g_filehandle "<hr>KVIrc $g_version Documentation<br>Generated by $g_currentuser at $g_currenttime\n"; | |
++ print $g_filehandle "<hr>KVIrc $g_version Documentation<br>Generated at $g_currenttime\n"; | |
+ print $g_filehandle "</body>\n"; | |
+ print $g_filehandle "</html>\n"; | |
+ } | |
+--- kvirc-4.2.0.orig/admin/gensrc.pl | |
++++ kvirc-4.2.0/admin/gensrc.pl | |
+@@ -24,6 +24,8 @@ | |
+ # | |
+ #============================================================================ | |
+ | |
++use POSIX qw(strftime); | |
++ | |
+ $name = $ARGV[0]; | |
+ | |
+ if($name eq "") | |
+@@ -53,11 +55,11 @@ if(open(THEFILE,">$name")) | |
+ print THEFILE "#define $ifdefname\n"; | |
+ } | |
+ | |
+- $thetime = gmtime; | |
++ $thetime = strftime("%a %b %e %H:%M:%S UTC %Y", gmtime($ENV{SOURCE_DATE_EPOCH} || time)); | |
+ | |
+ print THEFILE "//\n"; | |
+ print THEFILE "// File : $name\n"; | |
+- print THEFILE "// Creation date : $thetime GMT by Szymon Stefanek\n"; | |
++ print THEFILE "// Creation date : $thetime by Szymon Stefanek\n"; | |
+ print THEFILE "//\n"; | |
+ print THEFILE "// This file is part of the KVirc irc client distribution\n"; | |
+ print THEFILE "// Copyright (C) 2009 Szymon Stefanek (pragma at kvirc dot net)\n"; | |
--- a/debian/patches/series 2016-07-14 09:20:42.754293933 +0200 | |
--- b/debian/patches/series 2016-07-14 09:40:28.452512658 +0200 | |
@@ -4,3 +4,4 @@ | |
21_make_shared-mime-info_B-D_superfluous.patch | |
22_use_old_.protocol_file_names.patch | |
30_upstream_build-g | |
+40_reproducibile_build.patch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment