mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-18 05:13:43 -09:00
https://www.python.org/downloads/release/python-3142/ https://docs.python.org/release/3.14.2/whatsnew/changelog.html Rebased all patches. Added patch 0010 to fix build error reported by Julien: https://gitlab.com/jolivain/buildroot/-/jobs/12589702787 Kodi added the same patch: https://github.com/xbmc/xbmc/blob/master/tools/depends/target/python3/process-vm-ready.patch Signed-off-by: Bernd Kuhls <bernd@kuhls.net> Signed-off-by: Julien Olivain <ju.o@free.fr>
68 lines
1.9 KiB
Diff
68 lines
1.9 KiB
Diff
From 8f6beca556599479705444af7cc7c49b2b964af8 Mon Sep 17 00:00:00 2001
|
|
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
|
Date: Tue, 6 Feb 2024 22:12:20 +0100
|
|
Subject: [PATCH] Add option to disable the sqlite3 module
|
|
|
|
Upstream: N/A
|
|
|
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
|
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
|
|
[ Andrey Smirnov: ported to Python 3.6 ]
|
|
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
|
|
[ Adam Duskett: ported to Python 3.10.0 ]
|
|
Signed-off-by: Adam Duskett <aduskett@gmail.com>
|
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
|
[ Vincent Fazio: ported to Python 3.13.2 ]
|
|
Signed-off-by: Vincent Fazio <vfazio@gmail.com>
|
|
[ Bernd Kuhls: ported to Python 3.14.2]
|
|
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
|
---
|
|
Makefile.pre.in | 5 ++++-
|
|
configure.ac | 7 +++++++
|
|
2 files changed, 11 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/Makefile.pre.in b/Makefile.pre.in
|
|
index 2197bb18434..c8f7ab1e6a9 100644
|
|
--- a/Makefile.pre.in
|
|
+++ b/Makefile.pre.in
|
|
@@ -2569,7 +2569,6 @@ LIBSUBDIRS= asyncio \
|
|
pathlib \
|
|
re \
|
|
site-packages \
|
|
- sqlite3 \
|
|
string \
|
|
sysconfig \
|
|
tkinter \
|
|
@@ -2741,6 +2740,10 @@ ifeq (@IDLE@,yes)
|
|
LIBSUBDIRS += idlelib idlelib/Icons
|
|
endif
|
|
|
|
+ifeq (@SQLITE3@,yes)
|
|
+LIBSUBDIRS += sqlite3
|
|
+endif
|
|
+
|
|
TEST_MODULES=@TEST_MODULES@
|
|
|
|
.PHONY: libinstall
|
|
diff --git a/configure.ac b/configure.ac
|
|
index ec9a24c5311..e8e201206bc 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -4795,6 +4795,13 @@ AS_VAR_IF([posix_threads], [stub], [
|
|
AC_DEFINE([HAVE_PTHREAD_STUBS], [1], [Define if platform requires stubbed pthreads support])
|
|
])
|
|
|
|
+AC_SUBST(SQLITE3)
|
|
+AC_ARG_ENABLE(sqlite3,
|
|
+ AS_HELP_STRING([--disable-sqlite3], [disable sqlite3]),
|
|
+ [ SQLITE3="${enableval}" ], [ SQLITE3=yes ])
|
|
+AS_IF([test "$SQLITE3" = "no"],
|
|
+ [PY_STDLIB_MOD_SET_NA([_sqlite3])])
|
|
+
|
|
AC_SUBST(PYDOC)
|
|
|
|
AC_ARG_ENABLE(pydoc,
|
|
--
|
|
2.47.3
|
|
|