[Buildroot] [PATCH/next v2 02/16] package/python3: berkeleydb support needs the dbm interface

Bernd Kuhls bernd at kuhls.net
Wed Aug 9 17:33:20 UTC 2023


Berkeley DB support in python depends on dbm, when missing python fails
to detect libdb:
https://github.com/python/cpython/blob/d2340ef25721b6a72d45d4508c672c4be38c67d3/configure.ac#L4002

quoting configure log:
checking for libdb... no

quoting python config.log:
conftest.c:(.text.startup+0x8): undefined reference to `__db_ndbm_open'

With this patch berkeleydb produces a working module:

output/build/python3-3.11.4$ find -iname *dbm*.so
./build/lib.linux-x86_64-3.11/_dbm.cpython-311-x86_64-linux-gnu.so

Signed-off-by: Bernd Kuhls <bernd at kuhls.net>
---
 package/python3/Config.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/python3/Config.in b/package/python3/Config.in
index 761c38c850..38f0580aa4 100644
--- a/package/python3/Config.in
+++ b/package/python3/Config.in
@@ -48,6 +48,7 @@ config BR2_PACKAGE_PYTHON3_2TO3
 config BR2_PACKAGE_PYTHON3_BERKELEYDB
 	bool "berkeleydb"
 	select BR2_PACKAGE_BERKELEYDB
+	select BR2_PACKAGE_BERKELEYDB_DBM
 	help
 	  berkeleydb module for Python3
 
-- 
2.39.2




More information about the buildroot mailing list