From 105a8b5ab2a39e90e27e87da96d46bd629ca950f Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Thu, 2 Aug 2018 16:05:16 +0000 Subject: databases/db5, db6: enable DBM compatibility Enable DBM API. [1] Reorder license information of db5/Makefile to fix portlint warning. [1] Bump PORTREVISON. [1] Add command creating symbolic link such as ${PREFIX}/lib/libdb-6.so to post-install target of db6/Makefile. [1] Instead of USE_GCC, patch src/dbinc/db.in to not expose the store() macro under C++. Mark db6 broken on MIPS64 for now, we do not have a workable MUTEX implementation. Unbreak build on AARCH64, where the db6 autoconfiguration chooses the wrong MUTEX. PR: 230191 Submitted by: Yasuhiro Kimura --- databases/db5/files/patch-src_dbinc_db.in | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 databases/db5/files/patch-src_dbinc_db.in (limited to 'databases/db5/files/patch-src_dbinc_db.in') diff --git a/databases/db5/files/patch-src_dbinc_db.in b/databases/db5/files/patch-src_dbinc_db.in new file mode 100644 index 000000000000..e65fc1046f48 --- /dev/null +++ b/databases/db5/files/patch-src_dbinc_db.in @@ -0,0 +1,15 @@ +--- src/dbinc/db.in.orig 2013-09-09 15:35:08 UTC ++++ src/dbinc/db.in +@@ -2778,11 +2778,11 @@ typedef struct { + #define dbmclose __db_dbm_close@DB_VERSION_UNIQUE_NAME@ + #if !defined(__cplusplus) + #define delete(a) __db_dbm_delete@DB_VERSION_UNIQUE_NAME@(a) ++#define store(a, b) __db_dbm_store@DB_VERSION_UNIQUE_NAME@(a, b) + #endif + #define fetch(a) __db_dbm_fetch@DB_VERSION_UNIQUE_NAME@(a) + #define firstkey __db_dbm_firstkey@DB_VERSION_UNIQUE_NAME@ + #define nextkey(a) __db_dbm_nextkey@DB_VERSION_UNIQUE_NAME@(a) +-#define store(a, b) __db_dbm_store@DB_VERSION_UNIQUE_NAME@(a, b) + + /******************************************************* + * Hsearch historic interface. -- cgit v1.2.3