Skip to contentSkip to conversation

berkeleydb: add compat option

PATCH New Gustavo Zacarias 2 participants 2 messages Dec 2, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 berkeleydb: add compat option

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.

---
 package/berkeleydb/Config.in     | 10 +++++++++-
 package/berkeleydb/berkeleydb.mk |  2 +-
 2 files changed, 10 insertions(+), 2 deletions(-)
package/berkeleydb/Config.in +9 -1
index a597abb..ff1e386 100644
@@ -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
package/berkeleydb/berkeleydb.mk +1 -1
index 0e3e830..f325020 100644
@@ -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 \
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH 1/1 berkeleydb: add compat option

Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gustavo" == Gustavo Zacarias <[email protected]> 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.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard