~ruther/guix-local

ref: 1a3a75c6a5e9d46aa49954604cff8ee9997ffccc guix-local/gnu/packages/patches/python-2-deterministic-build-info.patch -rw-r--r-- 444 bytes
1a3a75c6 — Zheng Junjie gnu: kxmlgui: Update to 6.5.0. 1 year, 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Always provide the same date and time in 'Py_GetBuildInfo'.
This is the information shown at the REPL and in 'sys.version'.
We cannot pass it in CPPFLAGS due to whitespace in the DATE string.

--- a/Modules/getbuildinfo.c
+++ b/Modules/getbuildinfo.c
@@ -4,6 +4,10 @@
 #include <stdio.h>
 #endif
 
+/* Deterministic date and time.  */
+#define DATE "Jan  1 1970"
+#define TIME "00:00:01"
+
 #ifndef DATE
 #ifdef __DATE__
 #define DATE __DATE__