diff mbox

berkeleydb: add compat option

Message ID 1385944155-16806-1-git-send-email-gustavo@zacarias.com.ar
State Accepted
Commit 287cfe6b21f65dcc93a06700dbedc7bade267c33
Headers show

Commit Message

Gustavo Zacarias Dec. 2, 2013, 12:29 a.m. UTC
Add DB 1.85 compatibility layer option, it's needed for arpd in iproute2
and other old apps that haven't moved to the newer API.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 package/berkeleydb/Config.in     | 10 +++++++++-
 package/berkeleydb/berkeleydb.mk |  2 +-
 2 files changed, 10 insertions(+), 2 deletions(-)

Comments

Peter Korsgaard Dec. 2, 2013, 7:46 a.m. UTC | #1
>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:

 > Add DB 1.85 compatibility layer option, it's needed for arpd in iproute2
 > and other old apps that haven't moved to the newer API.

 > Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>

Committed, thanks.
diff mbox

Patch

diff --git a/package/berkeleydb/Config.in b/package/berkeleydb/Config.in
index a597abb..ff1e386 100644
--- a/package/berkeleydb/Config.in
+++ b/package/berkeleydb/Config.in
@@ -6,8 +6,16 @@  config BR2_PACKAGE_BERKELEYDB
 
 	  http://www.sleepycat.com/products/db.shtml
 
+if BR2_PACKAGE_BERKELEYDB
+
+config BR2_PACKAGE_BERKELEYDB_COMPAT185
+	bool "DB 1.85 compatibility"
+	help
+	  Build and install DB 1.85 compatibility API.
+
 config BR2_PACKAGE_BERKELEYDB_TOOLS
 	bool "install tools"
-	depends on BR2_PACKAGE_BERKELEYDB
 	help
 	  Install berkeleydb tools, mostly useful for debugging purposes.
+
+endif
diff --git a/package/berkeleydb/berkeleydb.mk b/package/berkeleydb/berkeleydb.mk
index 0e3e830..f325020 100644
--- a/package/berkeleydb/berkeleydb.mk
+++ b/package/berkeleydb/berkeleydb.mk
@@ -36,7 +36,7 @@  define BERKELEYDB_CONFIGURE_CMDS
 		$(if $(BR2_INSTALL_LIBSTDCPP),--enable-cxx,--disable-cxx) \
 		--disable-java \
 		--disable-tcl \
-		--disable-compat185 \
+		$(if $(BR2_PACKAGE_BERKELEYDB_COMPAT185),--enable-compat185,--disable-compat185) \
 		$(SHARED_STATIC_LIBS_OPTS) \
 		--with-pic \
 		--enable-o_direct \