aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/python-3-deterministic-build-info.patch
blob: 22c372a0cfb0e5e3e9b892d15d1598b64f0ead3d (about) (plain)
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.

--- Modules/getbuildinfo.c
+++ 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__
3-08-25image: Add mbr-raw-image-type and use by default....Josselin Poiret 2023-07-07image: Prefer gpt partition table for efi images...Sergey Trofimov 2023-06-19gnu: image: Build partitions with only necessary inputs....Efraim Flashner 2023-06-14gnu: image: Add support for unformatted partitions....Efraim Flashner 2022-12-26image: Enhance compatibility of the root ext4 partition....Maxim Cournoyer 2022-12-06image: Clarify comment....Ludovic Courtès 2022-11-04system: image: Define correct docker image arch when cross building...Thiago Jung Bauermann 2022-09-25system: images: Add a TODO comment....Mathieu Othacehe 2022-09-24system: image: Add wsl2 support....Alex Griffin 2022-09-24system: image: Add tarball support....Alex Griffin 2022-09-24image: Make the operating-system field mandatory....Mathieu Othacehe 2022-09-07system: image: Update my copyright....Mathieu Othacehe 2022-09-07system: image: Remove an unused variable....Mathieu Othacehe 2022-07-01image: Raise an error when an image lacks a bootable partition....Ludovic Courtès 2022-07-01image: Avoid use of the deprecated 'gpt' option of genimage....Ludovic Courtès 2022-07-01image: Add default value for partition initializer....Ludovic Courtès 2022-07-01image: 'system-image' throws when given an incorrect image format....Ludovic Courtès 2022-06-24image: Add support for 32bit UEFI....Denis 'GNUtoo' Carikli