[sextractor] 01/01: Replace the build date with the last changed date of configure.ac

Ole Streicher olebole at moszumanska.debian.org
Thu May 28 14:48:00 UTC 2015


This is an automated email from the git hooks/post-receive script.

olebole pushed a commit to branch debian
in repository sextractor.

commit 939f2bbda8e32ac4c68e12755fb1d35b6993e1a2
Author: Ole Streicher <debian at liska.ath.cx>
Date:   Thu May 28 16:48:49 2015 +0200

    Replace the build date with the last changed date of configure.ac
---
 debian/changelog                         |  6 ++++++
 debian/patches/reproducible_builds.patch | 19 +++++++++++++++++++
 debian/patches/series                    |  1 +
 3 files changed, 26 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 131c1e9..1e66563 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+sextractor (2.19.5+dfsg-3) UNRELEASED; urgency=low
+
+  * Replace the build date with the last changed date of configure.ac
+
+ -- Ole Streicher <olebole at debian.org>  Thu, 28 May 2015 16:48:06 +0200
+
 sextractor (2.19.5+dfsg-2) unstable; urgency=low
 
   * Change maintainer and VCS to debian-astro
diff --git a/debian/patches/reproducible_builds.patch b/debian/patches/reproducible_builds.patch
new file mode 100644
index 0000000..5ae2677
--- /dev/null
+++ b/debian/patches/reproducible_builds.patch
@@ -0,0 +1,19 @@
+Author: Ole Streicher <olebole at debian.org>
+Description: Replace the build date with the last changed date of configure.ac
+ This shall help to make the build reproducible.
+--- a/configure.ac
++++ b/configure.ac
+@@ -36,9 +36,10 @@
+ AC_CONFIG_AUX_DIR(autoconf)
+ AC_CONFIG_HEADERS(config.h)
+ AM_INIT_AUTOMAKE
+-date=`date +%Y-%m-%d`
+-date2=`date +"%a %b %d %Y"`
+-date3=`date +"%B %Y"`
++d0=`fgrep "Last modified" configure.ac | cut -d: -f2- | head -1`
++date=`date +%Y-%m-%d -d $d0`
++date2=`date +"%a %b %d %Y" -d $d0`
++date3=`date +"%B %Y" -d $d0`
+ AC_DEFINE_UNQUOTED(DATE, "$date", [Archive creation date])
+ AC_SUBST(PACKAGER, "Emmanuel Bertin")
+ AC_SUBST(DATE2, "$date2")
diff --git a/debian/patches/series b/debian/patches/series
index fc664d1..1606345 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@ have_mmap.patch
 rename_executable.patch
 fix-manpage.patch
 fix_format_errors.patch
+reproducible_builds.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/sextractor.git



More information about the debian-science-commits mailing list