svn commit: r505766 - in head/editors/nvi-devel: . files

Craig Leres leres at FreeBSD.org
Wed Jul 3 17:39:30 UTC 2019


Author: leres
Date: Wed Jul  3 17:39:28 2019
New Revision: 505766
URL: https://svnweb.freebsd.org/changeset/ports/505766

Log:
  editors/nvi-devel: Fix DB_CREATE error and segmentation fault; add
  the DB_CREATE flag when using bdb >= 4.4.
  
  PR:		238712
  Approved by:	johans (maintainer timeout, 2 weeks), matthew (mentor, implicit)
  Obtained from:	Mac Ports
  	https://trac.macports.org/browser/trunk/dports/editors/nvi/files/patch-common__db.h?rev=108622

Added:
  head/editors/nvi-devel/files/patch-common__db.h   (contents, props changed)
Modified:
  head/editors/nvi-devel/Makefile

Modified: head/editors/nvi-devel/Makefile
==============================================================================
--- head/editors/nvi-devel/Makefile	Wed Jul  3 17:27:18 2019	(r505765)
+++ head/editors/nvi-devel/Makefile	Wed Jul  3 17:39:28 2019	(r505766)
@@ -3,7 +3,7 @@
 
 PORTNAME=	nvi
 PORTVERSION=	1.81.6
-PORTREVISION=	12
+PORTREVISION=	13
 CATEGORIES=	editors
 MASTER_SITES=	ftp://ftp.stack.nl/pub/users/johans/nvi/
 

Added: head/editors/nvi-devel/files/patch-common__db.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/editors/nvi-devel/files/patch-common__db.h	Wed Jul  3 17:39:28 2019	(r505766)
@@ -0,0 +1,16 @@
+https://github.com/handyman5/homebrew/commit/05b62a22b545761870fb1046d1c2c49cdba06b38
+https://trac.macports.org/export/108622/trunk/dports/editors/nvi/files/patch-common__db.h
+--- ../common/db.h.orig	2009-09-13 23:17:35.000000000 -0700
++++ ../common/db.h	2009-09-13 23:18:27.000000000 -0700
+@@ -16,7 +16,10 @@
+     (env)->remove(env, path, NULL, flags)
+ #endif
+ 
+-#if DB_VERSION_MAJOR >= 4 && DB_VERSION_MINOR >= 1
++#if DB_VERSION_MAJOR >= 4 && DB_VERSION_MINOR >= 4
++#define db_open(db,file,type,flags,mode)				\
++    (db)->open(db, NULL, file, NULL, type, flags | DB_CREATE, mode)
++#elif DB_VERSION_MAJOR >= 4 && DB_VERSION_MINOR >= 1
+ #define db_open(db,file,type,flags,mode)				\
+     (db)->open(db, NULL, file, NULL, type, flags, mode)
+ #else


More information about the svn-ports-head mailing list