From cef9e7933e5c9704eaa5a6330067967f32e52798 Mon Sep 17 00:00:00 2001 From: Graham Inggs Date: Fri, 15 Apr 2016 18:23:04 +0200 Subject: Use SOURCE_DATE_EPOCH instead of current year in copyright message --- debian/changelog | 6 ++++++ debian/patches/003-use-source-date-epoch.patch | 15 +++++++++++++++ debian/patches/series | 1 + 3 files changed, 22 insertions(+) create mode 100644 debian/patches/003-use-source-date-epoch.patch diff --git a/debian/changelog b/debian/changelog index e71e1ad..40864ca 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +htop (2.0.1-2) UNRELEASED; urgency=medium + + * Use SOURCE_DATE_EPOCH instead of current year in copyright message. + + -- Graham Inggs Fri, 15 Apr 2016 18:16:59 +0200 + htop (2.0.1-1) unstable; urgency=medium * New upstream release 2.0.1. (Closes: #814401, #783893, #774930) 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 +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 diff --git a/debian/patches/series b/debian/patches/series index 5a4f7c8..c5db75a 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ 001-lintian-warning-fix-man-typo.patch 002-lintian-warning-fix-desktop-keywords.patch +003-use-source-date-epoch.patch 601-openvz-new-ctid-vpid.patch -- cgit v1.2.3