mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-30 16:12:58 -05:00
b8d9c93bde
* 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.
21 lines
609 B
Diff
21 lines
609 B
Diff
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`"
|