From owner-svn-ports-head@freebsd.org Mon Sep 25 09:37:34 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7CF98E0F2D1; Mon, 25 Sep 2017 09:37:34 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3950C747C2; Mon, 25 Sep 2017 09:37:34 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v8P9bXKJ067681; Mon, 25 Sep 2017 09:37:33 GMT (envelope-from gahr@FreeBSD.org) Received: (from gahr@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v8P9bXvL067679; Mon, 25 Sep 2017 09:37:33 GMT (envelope-from gahr@FreeBSD.org) Message-Id: <201709250937.v8P9bXvL067679@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: gahr set sender to gahr@FreeBSD.org using -f From: Pietro Cerutti Date: Mon, 25 Sep 2017 09:37:33 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r450579 - in head/databases/lmdb: . files X-SVN-Group: ports-head X-SVN-Commit-Author: gahr X-SVN-Commit-Paths: in head/databases/lmdb: . files X-SVN-Commit-Revision: 450579 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Sep 2017 09:37:34 -0000 Author: gahr Date: Mon Sep 25 09:37:33 2017 New Revision: 450579 URL: https://svnweb.freebsd.org/changeset/ports/450579 Log: databases/lmdb: use fdatasync where supported Submitted upstream in http://www.openldap.org/its/index.cgi?findid=8739 PR: 222514 Submitted by: gahr Approved by: delphij (maintainer, via private email) Added: head/databases/lmdb/files/patch-mdb.c (contents, props changed) Modified: head/databases/lmdb/Makefile Modified: head/databases/lmdb/Makefile ============================================================================== --- head/databases/lmdb/Makefile Mon Sep 25 09:22:14 2017 (r450578) +++ head/databases/lmdb/Makefile Mon Sep 25 09:37:33 2017 (r450579) @@ -15,8 +15,6 @@ LICENSE_NAME= OpenLDAP Public License LICENSE_FILE= ${WRKSRC}/LICENSE LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept -# XXX FreeBSD does not implement O_DSYNC and fdatasync at this time. -CFLAGS+= -DMDB_DSYNC=O_SYNC -Dfdatasync=fsync WRKSRC_SUBDIR= libraries/liblmdb MAKE_ARGS+= CC="${CC}" MAKE_ARGS+= prefix="${PREFIX}" INSTALL_PROGRAM="${INSTALL_PROGRAM}" Added: head/databases/lmdb/files/patch-mdb.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/databases/lmdb/files/patch-mdb.c Mon Sep 25 09:37:33 2017 (r450579) @@ -0,0 +1,11 @@ +--- mdb.c.orig 2017-06-01 16:51:10 UTC ++++ mdb.c +@@ -125,6 +125,8 @@ typedef SSIZE_T ssize_t; + # define MDB_FDATASYNC fsync + #elif defined(ANDROID) + # define MDB_FDATASYNC fsync ++#elif defined(__FreeBSD_version) && __FreeBSD_version < 1101000 ++# define MDB_FDATASYNC fsync + #endif + + #ifndef _WIN32