blob d9710f91e98005ed32ddd5d96291874ec785b637 703 bytes (raw)
name: gnu/packages/patches/hdf5-config-date.patch # note: path name is non-authoritative(*)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| | Honor SOURCE_DATE_EPOCH when exporting configuration date.
Autoconf-level patch submitted upstream on Wed Apr 13 17:03:23 UTC 2016
--- a/configure.ac
+++ b/configure.ac
@@ -3566,7 +3566,14 @@
AC_SUBST([H5_VERSION])
## Configuration date
-AC_SUBST([CONFIG_DATE]) CONFIG_DATE="`date`"
+AC_SUBST([CONFIG_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
AC_SUBST([CONFIG_USER]) CONFIG_USER="`whoami`@`hostname`"
|
debug log:
solving d9710f91e9 ...
found d9710f91e9 in https://yhetil.org/guix/adc1a6a0376613e0cef937a5394196b3b52c4caa.1688421399.git.david.elsing@posteo.net/
found c105435dc2 in https://git.savannah.gnu.org/cgit/guix.git
preparing index
index prepared:
100644 c105435dc27366e125f45bb35845a97c25d53e1b gnu/packages/patches/hdf5-config-date.patch
applying [1/1] https://yhetil.org/guix/adc1a6a0376613e0cef937a5394196b3b52c4caa.1688421399.git.david.elsing@posteo.net/
diff --git a/gnu/packages/patches/hdf5-config-date.patch b/gnu/packages/patches/hdf5-config-date.patch
index c105435dc2..d9710f91e9 100644
Checking patch gnu/packages/patches/hdf5-config-date.patch...
Applied patch gnu/packages/patches/hdf5-config-date.patch cleanly.
index at:
100644 d9710f91e98005ed32ddd5d96291874ec785b637 gnu/packages/patches/hdf5-config-date.patch
(*) Git path names are given by the tree(s) the blob belongs to.
Blobs themselves have no identifier aside from the hash of its contents.^
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.