lichray / nvi2

A multibyte fork of the nvi editor for BSD
Other
144 stars 34 forks source link

OSX Sonoma build won't run #128

Closed geeohgeegeeoh closed 6 months ago

geeohgeegeeoh commented 8 months ago

nvi2 wouldn't install because of missing db.h -the workarounds from 2020 may be integrated but don't seem to work, if you have homebrew installed on ARM the paths are /opt/homebrew not /usr/local based.

I added db18 from pkgsrc and modified CMake link state to bring it in. This is the runtime outcome:

bash-3.2# ./work/nvi2-2.2.0/build/nvi
Berkeley DB: DB 1.85's recno bfname field is not supported.

ex/vi: Error: /tmp/vi.fAnOpr94Ir: Invalid argument
bash-3.2#
geeohgeegeeoh commented 7 months ago

Ignore this. I changed to pure pkgsrc from the CVS and applied by hand the

/* Only include db1 */
#if __has_include(<db1/db.h>)
#include <db1/db.h>
#else
#include <db.h>
#endif

patch to common.h and it builds fine on arm.