aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/hdf5-config-date.patch
diff options
context:
space:
mode:
authorEric Bavier <bavier@member.fsf.org>2016-04-15 10:39:54 -0500
committerEric Bavier <bavier@member.fsf.org>2016-05-12 19:59:52 +0000
commitb8d9c93bde155af13e633f8b84b56372c2044c43 (patch)
tree3e20faaf2f616e978fb6879319f82bd0d1cfaa4e /gnu/packages/patches/hdf5-config-date.patch
parentf622e2123b578d9fea6d967a69492cc2041ce348 (diff)
downloadguix-b8d9c93bde155af13e633f8b84b56372c2044c43.tar
guix-b8d9c93bde155af13e633f8b84b56372c2044c43.tar.gz
gnu: hdf5: Have configure honor SOURCE_DATE_EPOCH.
* gnu/packages/patches/hdf5-config-date.patch: New patch. * gnu/packages/maths.scm (hdf5)[source]: Use it. * gnu-system.am (dist_patch_DATA): Add it.
Diffstat (limited to 'gnu/packages/patches/hdf5-config-date.patch')
-rw-r--r--gnu/packages/patches/hdf5-config-date.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/gnu/packages/patches/hdf5-config-date.patch b/gnu/packages/patches/hdf5-config-date.patch
new file mode 100644
index 0000000000..c105435dc2
--- /dev/null
+++ b/gnu/packages/patches/hdf5-config-date.patch
@@ -0,0 +1,21 @@
+Honor SOURCE_DATE_EPOCH when exporting configuration date.
+Autoconf-level patch submitted upstream on Wed Apr 13 17:03:23 UTC 2016
+
+--- a/configure
++++ b/configure
+@@ -27737,7 +28573,14 @@
+
+
+ ## Configuration date
+- CONFIG_DATE="`date`"
++ CONFIG_DATE="`date -u`"
++if test -n "$SOURCE_DATE_EPOCH"; then
++ CONFIG_DATE=`date -u -d "@$SOURCE_DATE_EPOCH" 2>/dev/null \
++ || date -u -r "$SOURCE_DATE_EPOCH" 2>/dev/null`
++ if test -z "$CONFIG_DATE"; then
++ as_fn_error $? "malformed SOURCE_DATE_EPOCH" "$LINENO" 5
++ fi
++fi
+
+ ## User doing the configuration
+ CONFIG_USER="`whoami`@`hostname`"