Skip to contentSkip to conversation

package/python3: add sqlite for host build

PATCH Applied Waldemar Brodkorb 1 participant 1 message Oct 17, 2025

lore
Share & tools
lore
#0 lore raw

PATCH v2 4/6 package/python3: add sqlite for host build

This is a requirement to build firefox.

---
 package/python3/Config.in.host | 6 ++++++
 package/python3/python3.mk     | 7 ++++++-
 2 files changed, 12 insertions(+), 1 deletion(-)
package/python3/Config.in.host +6 -0
index f3fcd63567..0d163e1fdc 100644
@@ -28,4 +28,10 @@ config BR2_PACKAGE_HOST_PYTHON3_SSL
 	help
 	  _ssl module for host Python3.
 
+config BR2_PACKAGE_HOST_PYTHON3_SQLITE
+	bool "sqlite"
+	select BR2_PACKAGE_HOST_SQLITE
+	help
+	  sqlite module for host Python3.
+
 endif
package/python3/python3.mk +6 -1
index b501aa7859..35a236da92 100644
@@ -19,7 +19,6 @@ PYTHON3_CPE_ID_PRODUCT = python
 HOST_PYTHON3_CONF_OPTS += \
 	--without-ensurepip \
 	--without-cxx-main \
-	--disable-sqlite3 \
 	--disable-tk \
 	--with-expat=system \
 	--disable-test-modules \
@@ -77,6 +76,12 @@ HOST_PYTHON3_CONF_ENV += \
 	py_cv_module__ssl=n/a
 endif
 
+ifeq ($(BR2_PACKAGE_HOST_PYTHON3_SQLITE),y)
+HOST_PYTHON3_DEPENDENCIES += host-sqlite
+else
+HOST_PYTHON3_CONF_OPTS += --disable-sqlite
+endif
+
 PYTHON3_INSTALL_STAGING = YES
 
 ifeq ($(BR2_PACKAGE_PYTHON3_2TO3),y)
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot