aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/003-use-source-date-epoch.patch
blob: ce64b32b98cbf3a2138e42f2d0ff524a855e7fe0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Use SOURCE_DATE_EPOCH instead of current year in copyright message
 This should make the build reproducible
Author: Graham Inggs <ginggs@debian.org>
Last-Update: 2016-04-15
--- a/configure.ac
+++ b/configure.ac
@@ -4,7 +4,7 @@
 AC_PREREQ(2.65)
 AC_INIT([htop],[2.0.1],[hisham@gobolinux.org])
 
-year=$(date +%Y)
+year=$(date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y)
 
 # The following two lines are required by hwloc scripts
 AC_USE_SYSTEM_EXTENSIONS

© 2014-2024 Faster IT GmbH | imprint | privacy policy