svn commit: r414858 - in head/databases/tcl-lmdb: . files

Pietro Cerutti gahr at FreeBSD.org
Mon May 9 14:31:39 UTC 2016


Author: gahr
Date: Mon May  9 14:31:38 2016
New Revision: 414858
URL: https://svnweb.freebsd.org/changeset/ports/414858

Log:
  databases/tcl-lmdb: switch the default -fixedmap option of [env open] to false
  
  See the discussion at https://github.com/ray2501/tcl-lmdb/issues/4 and the
  commit at https://github.com/ray2501/tcl-lmdb/commit/a6fb287.

Added:
  head/databases/tcl-lmdb/files/
  head/databases/tcl-lmdb/files/patch-generic_tclmdb.c   (contents, props changed)
Modified:
  head/databases/tcl-lmdb/Makefile

Modified: head/databases/tcl-lmdb/Makefile
==============================================================================
--- head/databases/tcl-lmdb/Makefile	Mon May  9 14:20:47 2016	(r414857)
+++ head/databases/tcl-lmdb/Makefile	Mon May  9 14:31:38 2016	(r414858)
@@ -3,6 +3,7 @@
 
 PORTNAME=	tcl-lmdb
 PORTVERSION=	0.3.4
+PORTREVISION=	1
 CATEGORIES=	databases
 
 MAINTAINER=	gahr at FreeBSD.org

Added: head/databases/tcl-lmdb/files/patch-generic_tclmdb.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/tcl-lmdb/files/patch-generic_tclmdb.c	Mon May  9 14:31:38 2016	(r414858)
@@ -0,0 +1,15 @@
+--- generic/tclmdb.c.orig	2016-05-05 23:50:19 UTC
++++ generic/tclmdb.c
+@@ -1357,11 +1357,9 @@ static int LMDB_ENV(void *cd, Tcl_Interp
+       const char *zArg;
+       char *path = NULL;
+       mdb_mode_t mode = 0664;
+-      int flags;
++      int flags = 0;
+       int i = 0;
+ 
+-      flags = MDB_FIXEDMAP;
+-
+       if( objc < 4 || (objc&1)!=0 ){
+         Tcl_WrongNumArgs(interp, 1, objv,
+         "ENV_HANDLE -path path ?-mode mode? ?-fixedmap BOOLEAN? ?-nosubdir BOOLEAN? ?-readonly BOOLEAN? ?-nosync BOOLEAN? ?-nordahead BOOLEAN? "


More information about the svn-ports-head mailing list