From owner-freebsd-hackers@freebsd.org Tue Nov 14 12:15:04 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1790FDBCBB8 for ; Tue, 14 Nov 2017 12:15:04 +0000 (UTC) (envelope-from by@meetlost.com) Received: from meetlost.com (freebsd.meetlost.com [IPv6:2403:2500:8000:1::962]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.meetlost.com", Issuer "mail.meetlost.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id BDFD87BF60 for ; Tue, 14 Nov 2017 12:15:03 +0000 (UTC) (envelope-from by@meetlost.com) Received: from [192.168.1.102] ([163.125.208.96]) (authenticated bits=0) by meetlost.com (8.15.2/8.15.2) with ESMTPSA id vAECEe2C015768 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 14 Nov 2017 20:14:42 +0800 (CST) (envelope-from by@meetlost.com) From: by Message-Id: Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: Build nvi 2.1.3 on Mac, missing build instructions Date: Tue, 14 Nov 2017 20:14:57 +0800 In-Reply-To: <4AA49183-7007-4AA6-92E2-C97361A01C21@meetlost.com> Cc: FreeBSD Hackers To: Zhihao Yuan References: <22F67493-EA01-4190-BAA1-598B30F8517E@meetlost.com> <4AA49183-7007-4AA6-92E2-C97361A01C21@meetlost.com> X-Mailer: Apple Mail (2.3273) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Nov 2017 12:15:04 -0000 Hi, I have tried build nvi from FreeBSD sources directly on my Mac. And I = got the nvi binary finally :-) Basic steps are below: 1. Install required dependency libs(bsdmake and ncurses) $ brew install bsdmake $ brew install ncurses 2. Checkout the sources from FreeBSD svn repo $ svn co https://svn.freebsd.org/base/releng/10.3/usr.bin/vi = $ cd vi/ $ svn co https://svn.freebsd.org/base/releng/10.3/contrib/nvi = $ cp /usr/include/db.h ./ $ mkdir contrib $ mv nvi contrib/ 3. Make some changes, there is a diff file available via below link http://by.meetlost.com/diffs/port_nvi_to_macOS.diff.txt = by=