Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Dec 2019 23:31:48 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r519256 - in head/net/openldap24-server: . files
Message-ID:  <201912072331.xB7NVmDW043038@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Sat Dec  7 23:31:47 2019
New Revision: 519256
URL: https://svnweb.freebsd.org/changeset/ports/519256

Log:
  net/openldap24-server: back_mdb: use robust mutexes.
  
  PR:		197514

Added:
  head/net/openldap24-server/files/patch-libraries_liblmdb_mdb.c   (contents, props changed)
Modified:
  head/net/openldap24-server/Makefile

Modified: head/net/openldap24-server/Makefile
==============================================================================
--- head/net/openldap24-server/Makefile	Sat Dec  7 23:20:39 2019	(r519255)
+++ head/net/openldap24-server/Makefile	Sat Dec  7 23:31:47 2019	(r519256)
@@ -65,7 +65,7 @@ BROKEN=			incompatible OpenLDAP version: ${WANT_OPENLD
 .endif
 
 PORTREVISION_CLIENT=	0
-PORTREVISION_SERVER=	2
+PORTREVISION_SERVER=	3
 OPENLDAP_SHLIB_MAJOR=	2
 OPENLDAP_SHLIB_MINOR=	10.11
 OPENLDAP_MAJOR=		${DISTVERSION:R}

Added: head/net/openldap24-server/files/patch-libraries_liblmdb_mdb.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/openldap24-server/files/patch-libraries_liblmdb_mdb.c	Sat Dec  7 23:31:47 2019	(r519256)
@@ -0,0 +1,14 @@
+--- libraries/liblmdb/mdb.c.orig	2019-07-23 14:46:22 UTC
++++ libraries/liblmdb/mdb.c
+@@ -124,7 +124,10 @@ typedef SSIZE_T	ssize_t;
+ #include <resolv.h>	/* defines BYTE_ORDER on HPUX and Solaris */
+ #endif
+ 
+-#if defined(__APPLE__) || defined (BSD) || defined(__FreeBSD_kernel__)
++#if defined(__FreeBSD__)
++#  define MDB_USE_POSIX_MUTEX	1
++#  define MDB_USE_ROBUST	1
++#elif defined(__APPLE__) || defined (BSD) || defined(__FreeBSD_kernel__)
+ # define MDB_USE_POSIX_SEM	1
+ # define MDB_FDATASYNC		fsync
+ #elif defined(ANDROID)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912072331.xB7NVmDW043038>