python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / python3 / 0020-Add-option-to-disable-the-sqlite3-module.patch
blobda1c01d44ad1644969f7ed6ee9d1a83fa0d2c4bd
1 From 3d12c6e8180bc250d77a4bbb78899ccf8566b1cb Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Wed, 23 Dec 2015 11:49:01 +0100
4 Subject: [PATCH] Add option to disable the sqlite3 module
6 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 Signed-off-by: Samuel Martin <s.martin49@gmail.com>
8 ---
9 Makefile.pre.in | 7 +++++--
10 configure.ac | 9 +++++++++
11 2 files changed, 14 insertions(+), 2 deletions(-)
13 diff --git a/Makefile.pre.in b/Makefile.pre.in
14 index aeedad9..d262c04 100644
15 --- a/Makefile.pre.in
16 +++ b/Makefile.pre.in
17 @@ -1203,7 +1203,6 @@ LIBSUBDIRS= tkinter \
18 email email/mime \
19 ensurepip ensurepip/_bundled \
20 html json http dbm xmlrpc \
21 - sqlite3 \
22 logging csv wsgiref urllib \
23 ctypes ctypes/macholib \
24 idlelib idlelib/Icons \
25 @@ -1250,7 +1249,6 @@ TESTSUBDIRS = tkinter/test tkinter/test/test_tkinter tkinter/test/test_ttk \
26 test/test_importlib/namespace_pkgs/project3/parent/child \
27 test/test_importlib/namespace_pkgs/module_and_namespace_package \
28 test/test_importlib/namespace_pkgs/module_and_namespace_package/a_test \
29 - sqlite3/test \
30 ctypes/test \
31 idlelib/idle_test \
32 distutils/tests \
33 @@ -1271,6 +1269,11 @@ TESTSUBDIRS += lib2to3/tests \
34 lib2to3/tests/data/fixers/myfixes
35 endif
37 +ifeq (@SQLITE3@,yes)
38 +LIBSUBDIRS += sqlite3
39 +TESTSUBDIRS += sqlite3/test
40 +endif
42 ifeq (@TEST_MODULES@,yes)
43 LIBSUBDIRS += $(TESTSUBDIRS)
44 endif
45 diff --git a/configure.ac b/configure.ac
46 index 32239d3..c9d0912 100644
47 --- a/configure.ac
48 +++ b/configure.ac
49 @@ -2976,6 +2976,15 @@ if test "$posix_threads" = "yes"; then
50 AC_CHECK_FUNCS(pthread_atfork)
53 +AC_SUBST(SQLITE3)
54 +AC_ARG_ENABLE(sqlite3,
55 + AS_HELP_STRING([--disable-sqlite3], [disable sqlite3]),
56 + [ SQLITE3="${enableval}" ], [ SQLITE3=yes ])
58 +if test "$SQLITE3" = "no" ; then
59 + DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _sqlite3"
60 +fi
62 AC_SUBST(PYDOC)
64 AC_ARG_ENABLE(pydoc,
65 --
66 2.7.4