The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / python / 105-optional-curses.patch
1 Add an option to disable the curses module
2
3 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
4 Signed-off-by: Samuel Martin <s.martin49@gmail.com>
5
6 ---
7  Makefile.pre.in |    6 +++++-
8  configure.in    |    9 +++++++++
9  2 files changed, 14 insertions(+), 1 deletion(-)
10
11 Index: b/Makefile.pre.in
12 ===================================================================
13 --- a/Makefile.pre.in
14 +++ b/Makefile.pre.in
15 @@ -972,7 +972,7 @@
16                 multiprocessing multiprocessing/dummy \
17                 unittest \
18                 lib-old \
19 -               curses $(MACHDEPS)
20 +               $(MACHDEPS)
21  
22  TESTSUBDIRS = test test/audiodata test/capath test/data \
23         test/cjkencodings test/decimaltestdata test/xmltestdata \
24 @@ -1014,6 +1014,10 @@
25               lib-tk/test/test_ttk
26  endif
27  
28 +ifeq (@CURSES@,yes)
29 +LIBSUBDIRS += curses
30 +endif
31 +
32  libinstall:    build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c
33         @for i in $(SCRIPTDIR) $(LIBDEST); \
34         do \
35 Index: b/configure.ac
36 ===================================================================
37 --- a/configure.ac
38 +++ b/configure.ac
39 @@ -2645,6 +2645,15 @@
40     DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _tkinter"
41  fi
42  
43 +AC_SUBST(CURSES)
44 +AC_ARG_ENABLE(curses,
45 +       AS_HELP_STRING([--disable-curses], [disable curses]),
46 +       [ CURSES="${enableval}" ], [ CURSES=yes ])
47 +
48 +if test "$CURSES" = "no"; then
49 +   DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _curses _curses_panel"
50 +fi
51 +
52  AC_SUBST(PYDOC)
53  
54  AC_ARG_ENABLE(pydoc,