Bug 238712

Summary: editors/nvi-devel: Fix DB_CREATE error and segmentation fault
Product: Ports & Packages Reporter: Craig Leres <leres>
Component: Individual Port(s)Assignee: Craig Leres <leres>
Status: Closed FIXED    
Severity: Affects Only Me Keywords: patch-ready
Priority: --- Flags: bugzilla: maintainer-feedback? (johans)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch leres: maintainer-approval?

Description Craig Leres freebsd_committer freebsd_triage 2019-06-19 23:35:25 UTC
Created attachment 205223 [details]
patch

Under certain conditions nvi crashes with:

    BDB0635 DB_CREATE must be specified to create databases.
    Segmentation fault (core dumped)

I sometimes see it using this tcsh alias:

    alias pvi 'env EXINIT="${EXINIT} expandtab" /usr/local/bin/nvi

This patch applies a macports.org fix found in this github commit:

    https://github.com/handyman5/homebrew/commit/05b62a22b545761870fb1046d1c2c49cdba06b38

that adds the DB_CREATE flag when using bdb >= 4.4.
Comment 1 commit-hook freebsd_committer freebsd_triage 2019-07-03 17:40:16 UTC
A commit references this bug:

Author: leres
Date: Wed Jul  3 17:39:29 UTC 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

Changes:
  head/editors/nvi-devel/Makefile
  head/editors/nvi-devel/files/patch-common__db.h