gnu: Add kafs-client
[jackhill/guix/guix.git] / gnu / packages / patches / python-3-deterministic-build-info.patch
CommitLineData
9820a6d4
LC
1Always provide the same date and time in 'Py_GetBuildInfo'.
2This is the information shown at the REPL and in 'sys.version'.
3We cannot pass it in CPPFLAGS due to whitespace in the DATE string.
4
4e3a7d84
MB
5--- a/Modules/getbuildinfo.c
6+++ b/Modules/getbuildinfo.c
9820a6d4
LC
7@@ -4,6 +4,10 @@
8 #include <stdio.h>
9 #endif
10
11+/* Deterministic date and time. */
12+#define DATE "Jan 1 1970"
13+#define TIME "00:00:01"
14+
15 #ifndef DATE
16 #ifdef __DATE__
17 #define DATE __DATE__