mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
9820a6d4a0
* gnu/packages/patches/python-2-deterministic-build-info.patch, gnu/packages/patches/python-3-deterministic-build-info.patch: New files. * gnu/packages/python.scm (python-2, python): Use them. * gnu-system.am (dist_patch_DATA): Add them.
17 lines
444 B
Diff
17 lines
444 B
Diff
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__
|