aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/python-2-deterministic-build-info.patch
blob: 25a079fe90d851e17adce7ccb5a4e9caa11fa5c1 (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.

--- 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__
ed='selected'>unified
Diffstat (limited to 'content/policy_enforcing.js')
-rw-r--r--content/policy_enforcing.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/policy_enforcing.js b/content/policy_enforcing.js
index 8e26afb..320b6d0 100644
--- a/content/policy_enforcing.js
+++ b/content/policy_enforcing.js
@@ -43,7 +43,7 @@
* proprietary program, I am not going to enforce this in court.
*/
-#FROM common/misc.js IMPORT gen_nonce
+#FROM common/misc.js IMPORT gen_nonce, csp_header_regex
document.content_loaded = document.readyState === "complete";
const wait_loaded = e => e.content_loaded ? Promise.resolve() :
@@ -237,7 +237,7 @@ function prevent_script_execution(event) {
#ENDIF
/*
- * Here we block all scripts of a document which might be either and
+ * Here we block all scripts of a document which might be either an
* HTMLDocument or an XMLDocument. Modifying an XML document might disrupt
* Mozilla's XML preview. This is an unfortunate thing we have to accept for
* now. XML documents *have to* be sanitized as well because they might