gnu: python-babel: Update to 2.7.0.
[guix.git] / gnu / packages / patches / hdf5-config-date.patch
blobc105435dc27366e125f45bb35845a97c25d53e1b
1 Honor SOURCE_DATE_EPOCH when exporting configuration date.
2 Autoconf-level patch submitted upstream on Wed Apr 13 17:03:23 UTC 2016
4 --- a/configure
5 +++ b/configure
6 @@ -27737,7 +28573,14 @@
9 ## Configuration date
10 - CONFIG_DATE="`date`"
11 + CONFIG_DATE="`date -u`"
12 +if test -n "$SOURCE_DATE_EPOCH"; then
13 + CONFIG_DATE=`date -u -d "@$SOURCE_DATE_EPOCH" 2>/dev/null \
14 + || date -u -r "$SOURCE_DATE_EPOCH" 2>/dev/null`
15 + if test -z "$CONFIG_DATE"; then
16 + as_fn_error $? "malformed SOURCE_DATE_EPOCH" "$LINENO" 5
17 + fi
18 +fi
20 ## User doing the configuration
21 CONFIG_USER="`whoami`@`hostname`"