1 |
commit: f61d0e96e2de7346ec9de95a7876e1bb39582dc0 |
2 |
Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Aug 16 08:41:01 2017 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 29 20:18:13 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f61d0e96 |
7 |
|
8 |
dev-lang/python: remove unused patches. |
9 |
|
10 |
dev-lang/python/files/3.5-secondary-targets.patch | 19 ------ |
11 |
dev-lang/python/files/3.5.1-cross-compile.patch | 75 ----------------------- |
12 |
dev-lang/python/files/python-3.4-gcc-5.patch | 37 ----------- |
13 |
3 files changed, 131 deletions(-) |
14 |
|
15 |
diff --git a/dev-lang/python/files/3.5-secondary-targets.patch b/dev-lang/python/files/3.5-secondary-targets.patch |
16 |
deleted file mode 100644 |
17 |
index eb3b0c71e7d..00000000000 |
18 |
--- a/dev-lang/python/files/3.5-secondary-targets.patch |
19 |
+++ /dev/null |
20 |
@@ -1,19 +0,0 @@ |
21 |
-Mark all targets as "secondary" |
22 |
- |
23 |
-This allows make to avoid rebuilding unnecessary intermediate files, which |
24 |
-is useful when cross-compiling. |
25 |
- |
26 |
-See Parser/pgen and Programs/_freeze_importlib in Makefile.pre.in. |
27 |
- |
28 |
-diff --git a/Makefile.pre.in b/Makefile.pre.in |
29 |
---- a/Makefile.pre.in |
30 |
-+++ b/Makefile.pre.in |
31 |
-@@ -1672,6 +1672,8 @@ |
32 |
- .PHONY: smelly funny patchcheck touch altmaninstall commoninstall |
33 |
- .PHONY: gdbhooks |
34 |
- |
35 |
-+.SECONDARY: |
36 |
-+ |
37 |
- # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |
38 |
- # Local Variables: |
39 |
- # mode: makefile |
40 |
|
41 |
diff --git a/dev-lang/python/files/3.5.1-cross-compile.patch b/dev-lang/python/files/3.5.1-cross-compile.patch |
42 |
deleted file mode 100644 |
43 |
index 25a518bd1e6..00000000000 |
44 |
--- a/dev-lang/python/files/3.5.1-cross-compile.patch |
45 |
+++ /dev/null |
46 |
@@ -1,75 +0,0 @@ |
47 |
-# HG changeset patch |
48 |
-# User Martin Panter <vadmium+py@×××××.com> |
49 |
-# Date 1461373124 0 |
50 |
-# Node ID 66e40df31faca467937c7b9d5d2e825471f97822 |
51 |
-# Parent a246047734b3496a7dc4ebaf1f0232dadf22eab6 |
52 |
-Issue #22359: Disable running cross-compiled _freeze_importlib and pgen |
53 |
- |
54 |
-Patch by Xavier de Gaye. |
55 |
- |
56 |
-diff --git a/Makefile.pre.in b/Makefile.pre.in |
57 |
---- a/Makefile.pre.in |
58 |
-+++ b/Makefile.pre.in |
59 |
-@@ -221,6 +221,7 @@ LIBOBJS= @LIBOBJS@ |
60 |
- PYTHON= python$(EXE) |
61 |
- BUILDPYTHON= python$(BUILDEXE) |
62 |
- |
63 |
-+cross_compiling=@cross_compiling@ |
64 |
- PYTHON_FOR_BUILD=@PYTHON_FOR_BUILD@ |
65 |
- _PYTHON_HOST_PLATFORM=@_PYTHON_HOST_PLATFORM@ |
66 |
- BUILD_GNU_TYPE= @build@ |
67 |
-@@ -718,12 +719,16 @@ Programs/_freeze_importlib: Programs/_fr |
68 |
- $(LINKCC) $(PY_LDFLAGS) -o $@ Programs/_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FROZEN) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST) |
69 |
- |
70 |
- Python/importlib_external.h: $(srcdir)/Lib/importlib/_bootstrap_external.py Programs/_freeze_importlib |
71 |
-- ./Programs/_freeze_importlib \ |
72 |
-- $(srcdir)/Lib/importlib/_bootstrap_external.py Python/importlib_external.h |
73 |
-+ if test "$(cross_compiling)" != "yes"; then \ |
74 |
-+ ./Programs/_freeze_importlib \ |
75 |
-+ $(srcdir)/Lib/importlib/_bootstrap_external.py Python/importlib_external.h; \ |
76 |
-+ fi |
77 |
- |
78 |
- Python/importlib.h: $(srcdir)/Lib/importlib/_bootstrap.py Programs/_freeze_importlib |
79 |
-- ./Programs/_freeze_importlib \ |
80 |
-- $(srcdir)/Lib/importlib/_bootstrap.py Python/importlib.h |
81 |
-+ if test "$(cross_compiling)" != "yes"; then \ |
82 |
-+ ./Programs/_freeze_importlib \ |
83 |
-+ $(srcdir)/Lib/importlib/_bootstrap.py Python/importlib.h; \ |
84 |
-+ fi |
85 |
- |
86 |
- |
87 |
- ############################################################################ |
88 |
-@@ -784,10 +789,18 @@ Python/sysmodule.o: $(srcdir)/Python/sys |
89 |
- $(IO_OBJS): $(IO_H) |
90 |
- |
91 |
- $(GRAMMAR_H): $(GRAMMAR_INPUT) $(PGEN) |
92 |
-- @$(MKDIR_P) Include |
93 |
-- $(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C) |
94 |
-+ @$(MKDIR_P) Include |
95 |
-+ if test "$(cross_compiling)" != "yes"; then \ |
96 |
-+ $(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C); \ |
97 |
-+ else \ |
98 |
-+ cp $(srcdir)/Include/graminit.h $(GRAMMAR_H); \ |
99 |
-+ fi |
100 |
- $(GRAMMAR_C): $(GRAMMAR_H) |
101 |
-- touch $(GRAMMAR_C) |
102 |
-+ if test "$(cross_compiling)" != "yes"; then \ |
103 |
-+ touch $(GRAMMAR_C); \ |
104 |
-+ else \ |
105 |
-+ cp $(srcdir)/Python/graminit.c $(GRAMMAR_C); \ |
106 |
-+ fi |
107 |
- |
108 |
- $(PGEN): $(PGENOBJS) |
109 |
- $(CC) $(OPT) $(PY_LDFLAGS) $(PGENOBJS) $(LIBS) -o $(PGEN) |
110 |
-diff --git a/configure.ac b/configure.ac |
111 |
---- a/configure.ac |
112 |
-+++ b/configure.ac |
113 |
-@@ -49,6 +49,7 @@ fi |
114 |
- AC_CONFIG_SRCDIR([Include/object.h]) |
115 |
- AC_CONFIG_HEADER(pyconfig.h) |
116 |
- |
117 |
-+AC_SUBST(cross_compiling) |
118 |
- AC_CANONICAL_HOST |
119 |
- AC_SUBST(build) |
120 |
- AC_SUBST(host) |
121 |
- |
122 |
|
123 |
diff --git a/dev-lang/python/files/python-3.4-gcc-5.patch b/dev-lang/python/files/python-3.4-gcc-5.patch |
124 |
deleted file mode 100644 |
125 |
index 80afbd1c47b..00000000000 |
126 |
--- a/dev-lang/python/files/python-3.4-gcc-5.patch |
127 |
+++ /dev/null |
128 |
@@ -1,37 +0,0 @@ |
129 |
-changeset: 94583:689092296ad3 |
130 |
-branch: 3.4 |
131 |
-parent: 94579:645f3d750be1 |
132 |
-user: Victor Stinner <victor.stinner@×××××.com> |
133 |
-date: Wed Feb 11 14:23:35 2015 +0100 |
134 |
-summary: Issue #23433: Fix faulthandler._stack_overflow() |
135 |
- |
136 |
-diff -r 645f3d750be1 -r 689092296ad3 Modules/faulthandler.c |
137 |
---- a/Modules/faulthandler.c Tue Feb 10 14:49:32 2015 +0100 |
138 |
-+++ b/Modules/faulthandler.c Wed Feb 11 14:23:35 2015 +0100 |
139 |
-@@ -911,12 +911,12 @@ |
140 |
- } |
141 |
- |
142 |
- #if defined(HAVE_SIGALTSTACK) && defined(HAVE_SIGACTION) |
143 |
--static void* |
144 |
--stack_overflow(void *min_sp, void *max_sp, size_t *depth) |
145 |
-+static Py_uintptr_t |
146 |
-+stack_overflow(Py_uintptr_t min_sp, Py_uintptr_t max_sp, size_t *depth) |
147 |
- { |
148 |
- /* allocate 4096 bytes on the stack at each call */ |
149 |
- unsigned char buffer[4096]; |
150 |
-- void *sp = &buffer; |
151 |
-+ Py_uintptr_t sp = (Py_uintptr_t)&buffer; |
152 |
- *depth += 1; |
153 |
- if (sp < min_sp || max_sp < sp) |
154 |
- return sp; |
155 |
-@@ -929,7 +929,8 @@ |
156 |
- faulthandler_stack_overflow(PyObject *self) |
157 |
- { |
158 |
- size_t depth, size; |
159 |
-- char *sp = (char *)&depth, *stop; |
160 |
-+ Py_uintptr_t sp = (Py_uintptr_t)&depth; |
161 |
-+ Py_uintptr_t stop; |
162 |
- |
163 |
- depth = 0; |
164 |
- stop = stack_overflow(sp - STACK_OVERFLOW_MAX_SIZE, |
165 |
- |