[Buildroot] [git commit branch/2023.05.x] package/berkeleydb: add option for historic dbm interface
Peter Korsgaard
peter at korsgaard.com
Mon Sep 11 20:48:24 UTC 2023
commit: https://git.buildroot.net/buildroot/commit/?id=5c6c6d9634fe47a6b356a37389d59e6ab37ae78f
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2023.05.x
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 python configure log:
checking for libdb... no
quoting python config.log:
conftest.c:(.text.startup+0x8): undefined reference to `__db_ndbm_open'
This patch provides a configure option for the historic dbm interface
to be used by the python package.
Signed-off-by: Bernd Kuhls <bernd at kuhls.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
(cherry picked from commit 244a8c52ef25bafdee6577d08e47c091b2093cc8)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
package/berkeleydb/Config.in | 5 +++++
package/berkeleydb/berkeleydb.mk | 1 +
2 files changed, 6 insertions(+)
diff --git a/package/berkeleydb/Config.in b/package/berkeleydb/Config.in
index f32d13ab17..f8fbb5cc09 100644
--- a/package/berkeleydb/Config.in
+++ b/package/berkeleydb/Config.in
@@ -13,6 +13,11 @@ config BR2_PACKAGE_BERKELEYDB_COMPAT185
help
Build and install DB 1.85 compatibility API.
+config BR2_PACKAGE_BERKELEYDB_DBM
+ bool "historic dbm interface"
+ help
+ Enable the historic dbm interface.
+
config BR2_PACKAGE_BERKELEYDB_TOOLS
bool "install tools"
help
diff --git a/package/berkeleydb/berkeleydb.mk b/package/berkeleydb/berkeleydb.mk
index 36b1894f34..1c121370db 100644
--- a/package/berkeleydb/berkeleydb.mk
+++ b/package/berkeleydb/berkeleydb.mk
@@ -39,6 +39,7 @@ define BERKELEYDB_CONFIGURE_CMDS
--disable-java \
--disable-tcl \
$(if $(BR2_PACKAGE_BERKELEYDB_COMPAT185),--enable-compat185,--disable-compat185) \
+ $(if $(BR2_PACKAGE_BERKELEYDB_DBM),--enable-dbm,--disable-dbm) \
$(SHARED_STATIC_LIBS_OPTS) \
--with-pic \
--enable-o_direct \
More information about the buildroot
mailing list