mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 12:38:09 -07:00
dev-lang/python: remove unused patches.
This commit is contained in:
committed by
Patrice Clement
parent
a19b82681c
commit
f61d0e96e2
@@ -1,19 +0,0 @@
|
||||
Mark all targets as "secondary"
|
||||
|
||||
This allows make to avoid rebuilding unnecessary intermediate files, which
|
||||
is useful when cross-compiling.
|
||||
|
||||
See Parser/pgen and Programs/_freeze_importlib in Makefile.pre.in.
|
||||
|
||||
diff --git a/Makefile.pre.in b/Makefile.pre.in
|
||||
--- a/Makefile.pre.in
|
||||
+++ b/Makefile.pre.in
|
||||
@@ -1672,6 +1672,8 @@
|
||||
.PHONY: smelly funny patchcheck touch altmaninstall commoninstall
|
||||
.PHONY: gdbhooks
|
||||
|
||||
+.SECONDARY:
|
||||
+
|
||||
# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
|
||||
# Local Variables:
|
||||
# mode: makefile
|
||||
@@ -1,75 +0,0 @@
|
||||
# HG changeset patch
|
||||
# User Martin Panter <vadmium+py@gmail.com>
|
||||
# Date 1461373124 0
|
||||
# Node ID 66e40df31faca467937c7b9d5d2e825471f97822
|
||||
# Parent a246047734b3496a7dc4ebaf1f0232dadf22eab6
|
||||
Issue #22359: Disable running cross-compiled _freeze_importlib and pgen
|
||||
|
||||
Patch by Xavier de Gaye.
|
||||
|
||||
diff --git a/Makefile.pre.in b/Makefile.pre.in
|
||||
--- a/Makefile.pre.in
|
||||
+++ b/Makefile.pre.in
|
||||
@@ -221,6 +221,7 @@ LIBOBJS= @LIBOBJS@
|
||||
PYTHON= python$(EXE)
|
||||
BUILDPYTHON= python$(BUILDEXE)
|
||||
|
||||
+cross_compiling=@cross_compiling@
|
||||
PYTHON_FOR_BUILD=@PYTHON_FOR_BUILD@
|
||||
_PYTHON_HOST_PLATFORM=@_PYTHON_HOST_PLATFORM@
|
||||
BUILD_GNU_TYPE= @build@
|
||||
@@ -718,12 +719,16 @@ Programs/_freeze_importlib: Programs/_fr
|
||||
$(LINKCC) $(PY_LDFLAGS) -o $@ Programs/_freeze_importlib.o $(LIBRARY_OBJS_OMIT_FROZEN) $(LIBS) $(MODLIBS) $(SYSLIBS) $(LDLAST)
|
||||
|
||||
Python/importlib_external.h: $(srcdir)/Lib/importlib/_bootstrap_external.py Programs/_freeze_importlib
|
||||
- ./Programs/_freeze_importlib \
|
||||
- $(srcdir)/Lib/importlib/_bootstrap_external.py Python/importlib_external.h
|
||||
+ if test "$(cross_compiling)" != "yes"; then \
|
||||
+ ./Programs/_freeze_importlib \
|
||||
+ $(srcdir)/Lib/importlib/_bootstrap_external.py Python/importlib_external.h; \
|
||||
+ fi
|
||||
|
||||
Python/importlib.h: $(srcdir)/Lib/importlib/_bootstrap.py Programs/_freeze_importlib
|
||||
- ./Programs/_freeze_importlib \
|
||||
- $(srcdir)/Lib/importlib/_bootstrap.py Python/importlib.h
|
||||
+ if test "$(cross_compiling)" != "yes"; then \
|
||||
+ ./Programs/_freeze_importlib \
|
||||
+ $(srcdir)/Lib/importlib/_bootstrap.py Python/importlib.h; \
|
||||
+ fi
|
||||
|
||||
|
||||
############################################################################
|
||||
@@ -784,10 +789,18 @@ Python/sysmodule.o: $(srcdir)/Python/sys
|
||||
$(IO_OBJS): $(IO_H)
|
||||
|
||||
$(GRAMMAR_H): $(GRAMMAR_INPUT) $(PGEN)
|
||||
- @$(MKDIR_P) Include
|
||||
- $(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
|
||||
+ @$(MKDIR_P) Include
|
||||
+ if test "$(cross_compiling)" != "yes"; then \
|
||||
+ $(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C); \
|
||||
+ else \
|
||||
+ cp $(srcdir)/Include/graminit.h $(GRAMMAR_H); \
|
||||
+ fi
|
||||
$(GRAMMAR_C): $(GRAMMAR_H)
|
||||
- touch $(GRAMMAR_C)
|
||||
+ if test "$(cross_compiling)" != "yes"; then \
|
||||
+ touch $(GRAMMAR_C); \
|
||||
+ else \
|
||||
+ cp $(srcdir)/Python/graminit.c $(GRAMMAR_C); \
|
||||
+ fi
|
||||
|
||||
$(PGEN): $(PGENOBJS)
|
||||
$(CC) $(OPT) $(PY_LDFLAGS) $(PGENOBJS) $(LIBS) -o $(PGEN)
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -49,6 +49,7 @@ fi
|
||||
AC_CONFIG_SRCDIR([Include/object.h])
|
||||
AC_CONFIG_HEADER(pyconfig.h)
|
||||
|
||||
+AC_SUBST(cross_compiling)
|
||||
AC_CANONICAL_HOST
|
||||
AC_SUBST(build)
|
||||
AC_SUBST(host)
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
changeset: 94583:689092296ad3
|
||||
branch: 3.4
|
||||
parent: 94579:645f3d750be1
|
||||
user: Victor Stinner <victor.stinner@gmail.com>
|
||||
date: Wed Feb 11 14:23:35 2015 +0100
|
||||
summary: Issue #23433: Fix faulthandler._stack_overflow()
|
||||
|
||||
diff -r 645f3d750be1 -r 689092296ad3 Modules/faulthandler.c
|
||||
--- a/Modules/faulthandler.c Tue Feb 10 14:49:32 2015 +0100
|
||||
+++ b/Modules/faulthandler.c Wed Feb 11 14:23:35 2015 +0100
|
||||
@@ -911,12 +911,12 @@
|
||||
}
|
||||
|
||||
#if defined(HAVE_SIGALTSTACK) && defined(HAVE_SIGACTION)
|
||||
-static void*
|
||||
-stack_overflow(void *min_sp, void *max_sp, size_t *depth)
|
||||
+static Py_uintptr_t
|
||||
+stack_overflow(Py_uintptr_t min_sp, Py_uintptr_t max_sp, size_t *depth)
|
||||
{
|
||||
/* allocate 4096 bytes on the stack at each call */
|
||||
unsigned char buffer[4096];
|
||||
- void *sp = &buffer;
|
||||
+ Py_uintptr_t sp = (Py_uintptr_t)&buffer;
|
||||
*depth += 1;
|
||||
if (sp < min_sp || max_sp < sp)
|
||||
return sp;
|
||||
@@ -929,7 +929,8 @@
|
||||
faulthandler_stack_overflow(PyObject *self)
|
||||
{
|
||||
size_t depth, size;
|
||||
- char *sp = (char *)&depth, *stop;
|
||||
+ Py_uintptr_t sp = (Py_uintptr_t)&depth;
|
||||
+ Py_uintptr_t stop;
|
||||
|
||||
depth = 0;
|
||||
stop = stack_overflow(sp - STACK_OVERFLOW_MAX_SIZE,
|
||||
|
||||
Reference in New Issue
Block a user