summaryrefslogtreecommitdiff
path: root/debian/patches/lib2to3-no-pickled-grammar.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/lib2to3-no-pickled-grammar.diff')
-rw-r--r--debian/patches/lib2to3-no-pickled-grammar.diff16
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/patches/lib2to3-no-pickled-grammar.diff b/debian/patches/lib2to3-no-pickled-grammar.diff
new file mode 100644
index 0000000..cc83155
--- /dev/null
+++ b/debian/patches/lib2to3-no-pickled-grammar.diff
@@ -0,0 +1,16 @@
+Index: b/Lib/lib2to3/pgen2/driver.py
+===================================================================
+--- a/Lib/lib2to3/pgen2/driver.py
++++ b/Lib/lib2to3/pgen2/driver.py
+@@ -122,7 +122,10 @@ def load_grammar(gt="Grammar.txt", gp=No
+ if force or not _newer(gp, gt):
+ logger.info("Generating grammar tables from %s", gt)
+ g = pgen.generate_grammar(gt)
+- if save:
++ # the pickle files mismatch, when built on different architectures.
++ # don't save these for now. An alternative solution might be to
++ # include the multiarch triplet into the file name
++ if False:
+ logger.info("Writing grammar tables to %s", gp)
+ try:
+ g.dump(gp)