Removed
Link Here
|
1 |
# Backport patch 0001 from Issue #20210 |
2 |
# Issue: https://bugs.python.org/issue20210 |
3 |
# By: Thomas Petazzoni |
4 |
|
5 |
--- ./Makefile.pre.in.orig 2014-03-24 22:45:17.908886504 +1100 |
6 |
+++ ./Makefile.pre.in 2014-03-24 22:47:55.503779805 +1100 |
7 |
@@ -172,6 +172,8 @@ |
8 |
# configure script arguments |
9 |
CONFIG_ARGS= @CONFIG_ARGS@ |
10 |
|
11 |
+# disabled extensions |
12 |
+DISABLED_EXTENSIONS= @DISABLED_EXTENSIONS@ |
13 |
|
14 |
# Subdirectories with code |
15 |
SRCDIRS= @SRCDIRS@ |
16 |
@@ -555,6 +557,7 @@ |
17 |
esac; \ |
18 |
$(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' \ |
19 |
_TCLTK_INCLUDES='$(TCLTK_INCLUDES)' _TCLTK_LIBS='$(TCLTK_LIBS)' \ |
20 |
+ DISABLED_EXTENSIONS="$(DISABLED_EXTENSIONS)" \ |
21 |
$(PYTHON_FOR_BUILD) $(srcdir)/setup.py $$quiet build |
22 |
|
23 |
# Build static library |
24 |
@@ -1352,7 +1355,8 @@ |
25 |
# Install the dynamically loadable modules |
26 |
# This goes into $(exec_prefix) |
27 |
sharedinstall: sharedmods |
28 |
- $(RUNSHARED) $(PYTHON_FOR_BUILD) $(srcdir)/setup.py install \ |
29 |
+ $(RUNSHARED) DISABLED_EXTENSIONS="$(DISABLED_EXTENSIONS)" \ |
30 |
+ $(PYTHON_FOR_BUILD) $(srcdir)/setup.py install \ |
31 |
--prefix=$(prefix) \ |
32 |
--install-scripts=$(BINDIR) \ |
33 |
--install-platlib=$(DESTSHARED) \ |
34 |
--- ./configure.ac.orig 2014-03-24 22:48:10.442551831 +1100 |
35 |
+++ ./configure.ac 2014-03-24 22:48:42.059827384 +1100 |
36 |
@@ -2331,6 +2331,8 @@ |
37 |
|
38 |
AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) |
39 |
|
40 |
+AC_SUBST(DISABLED_EXTENSIONS) |
41 |
+ |
42 |
# Check for use of the system expat library |
43 |
AC_MSG_CHECKING(for --with-system-expat) |
44 |
AC_ARG_WITH(system_expat, |
45 |
--- configure.orig 2015-03-01 13:57:08.000000000 +0300 |
46 |
+++ configure 2015-03-01 13:57:30.000000000 +0300 |
47 |
@@ -650,6 +650,7 @@ |
48 |
TCLTK_LIBS |
49 |
TCLTK_INCLUDES |
50 |
LIBFFI_INCLUDEDIR |
51 |
+DISABLED_EXTENSIONS |
52 |
PKG_CONFIG_LIBDIR |
53 |
PKG_CONFIG_PATH |
54 |
PKG_CONFIG |
55 |
--- ./setup.py.orig 2014-03-24 22:48:48.495472513 +1100 |
56 |
+++ ./setup.py 2014-03-24 22:49:20.076122201 +1100 |
57 |
@@ -33,7 +33,10 @@ |
58 |
COMPILED_WITH_PYDEBUG = ('--with-pydebug' in sysconfig.get_config_var("CONFIG_ARGS")) |
59 |
|
60 |
# This global variable is used to hold the list of modules to be disabled. |
61 |
-disabled_module_list = [] |
62 |
+try: |
63 |
+ disabled_module_list = sysconfig.get_config_var("DISABLED_EXTENSIONS").split(" ") |
64 |
+except KeyError: |
65 |
+ disabled_module_list = list() |
66 |
|
67 |
def add_dir_to_list(dirlist, dir): |
68 |
"""Add the directory 'dir' to the list 'dirlist' (after any relative |