Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 May 2016 14:31:38 +0000 (UTC)
From:      Pietro Cerutti <gahr@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r414858 - in head/databases/tcl-lmdb: . files
Message-ID:  <201605091431.u49EVcLJ002970@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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? "



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