pkg-autotools: move the libtool patching call out of the autoreconf hook
[buildroot-gz.git] / package / python3 / python3-103-optional-sqlite.patch
blobe444301dcbcd085981fd75f4131db8abb4eee981
1 Add option to disable the sqlite3 module
3 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
4 Signed-off-by: Samuel Martin <s.martin49@gmail.com>
6 ---
7 Makefile.pre.in | 9 +++++++--
8 configure.ac | 9 +++++++++
9 2 files changed, 16 insertions(+), 2 deletions(-)
11 Index: b/configure.ac
12 ===================================================================
13 --- a/configure.ac
14 +++ b/configure.ac
15 @@ -2655,6 +2655,15 @@
16 AC_CHECK_FUNCS(pthread_atfork)
19 +AC_SUBST(SQLITE3)
20 +AC_ARG_ENABLE(sqlite3,
21 + AS_HELP_STRING([--disable-sqlite3], [disable sqlite3]),
22 + [ SQLITE3="${enableval}" ], [ SQLITE3=yes ])
24 +if test "$SQLITE3" = "no" ; then
25 + DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _sqlite3"
26 +fi
28 AC_SUBST(PYDOC)
30 AC_ARG_ENABLE(pydoc,
31 Index: b/Makefile.pre.in
32 ===================================================================
33 --- a/Makefile.pre.in
34 +++ b/Makefile.pre.in
35 @@ -1131,7 +1131,6 @@
36 email email/mime \
37 ensurepip ensurepip/_bundled \
38 html json http dbm xmlrpc \
39 - sqlite3 \
40 logging csv wsgiref urllib \
41 ctypes ctypes/macholib \
42 idlelib idlelib/Icons \
43 @@ -1173,7 +1172,6 @@
44 test/test_importlib/namespace_pkgs/project3/parent/child \
45 test/test_importlib/namespace_pkgs/module_and_namespace_package \
46 test/test_importlib/namespace_pkgs/module_and_namespace_package/a_test \
47 - sqlite3/test \
48 ctypes/test \
49 idlelib/idle_test \
50 distutils/tests \
51 @@ -1194,6 +1192,11 @@
52 lib2to3/tests/data/fixers/myfixes
53 endif
55 +ifeq (@SQLITE3@,yes)
56 +LIBSUBDIRS += sqlite3
57 +TESTSUBDIRS += sqlite3/test
58 +endif
60 ifeq (@TEST_MODULES@,yes)
61 LIBSUBDIRS += $(TESTSUBDIRS)
62 endif