aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/003-use-source-date-epoch.patch
diff options
context:
space:
mode:
authorGraham Inggs <ginggs@debian.org>2016-04-15 18:23:04 +0200
committerGraham Inggs <ginggs@debian.org>2016-04-15 18:23:04 +0200
commitcef9e7933e5c9704eaa5a6330067967f32e52798 (patch)
tree2bb192171d8d8521d58c39d26bb7deb06da03590 /debian/patches/003-use-source-date-epoch.patch
parentf10a553ab8851de17644fc6a31700d8b6dab61d0 (diff)
downloaddebian_htop-cef9e7933e5c9704eaa5a6330067967f32e52798.tar.gz
debian_htop-cef9e7933e5c9704eaa5a6330067967f32e52798.tar.bz2
debian_htop-cef9e7933e5c9704eaa5a6330067967f32e52798.zip
Use SOURCE_DATE_EPOCH instead of current year in copyright message
Diffstat (limited to 'debian/patches/003-use-source-date-epoch.patch')
-rw-r--r--debian/patches/003-use-source-date-epoch.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/patches/003-use-source-date-epoch.patch b/debian/patches/003-use-source-date-epoch.patch
new file mode 100644
index 0000000..ce64b32
--- /dev/null
+++ b/debian/patches/003-use-source-date-epoch.patch
@@ -0,0 +1,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