Bug 238712 - editors/nvi-devel: Fix DB_CREATE error and segmentation fault
Summary: editors/nvi-devel: Fix DB_CREATE error and segmentation fault
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Craig Leres
URL:
Keywords: patch-ready
Depends on:
Blocks:
 
Reported: 2019-06-19 23:35 UTC by Craig Leres
Modified: 2019-07-03 17:50 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (johans)


Attachments
patch (1.71 KB, text/plain)
2019-06-19 23:35 UTC, Craig Leres
leres: maintainer-approval?
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Leres freebsd_committer 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 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