ports/databases/db5/files/patch-src_dbinc_db.in
Matthias Andree 105a8b5ab2 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
2018-08-02 16:05:16 +00:00

15 lines
672 B
Text

--- 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.