=> Bootstrap dependency digest>=20010302: found digest-20190127
=> Checksum SHA1 OK for emacs-27.1.tar.gz
=> Checksum RMD160 OK for emacs-27.1.tar.gz
=> Checksum SHA512 OK for emacs-27.1.tar.gz
===> Installing dependencies for emacs27-nox11-27.1nb1
==========================================================================
The following variables will affect the build process of this package,
emacs27-nox11-27.1nb1.  Their current value is shown below:

        * CURSES_DEFAULT = curses
        * GAMEDATAMODE = 664
        * VARBASE = /opt/pkg/var

Based on these variables, the following variables have been set:

        * CURSES_TYPE = curses
        * TERMCAP_TYPE = curses

You may want to abort the process now with CTRL-C and change their value
before continuing.  Be sure to run `/opt/pkg/bin/bmake clean' after
the changes.
==========================================================================
=> Tool dependency automake>=1.9: found automake-1.16.2nb1
=> Tool dependency autoconf>=2.58: found autoconf-2.69nb10
=> Tool dependency m4>=1.4: found m4-1.4.18nb2
=> Tool dependency gmake>=3.81: found gmake-4.2.1nb1
=> Tool dependency gsed>=3.0.2: found gsed-4.8
=> Tool dependency gtexinfo>=4.13: found gtexinfo-6.7nb3
=> Tool dependency nbpatch-[0-9]*: found nbpatch-20151107
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency cwrappers>=20150314: found cwrappers-20180325
=> Full dependency user-darwin>=20130712: found user-darwin-20170116
===> Skipping vulnerability checks.
WARNING: No /opt/pkg/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/opt/pkg/sbin/pkg_admin -K /opt/pkg/pkgdb fetch-pkg-vulnerabilities'.
===> Overriding tools for emacs27-nox11-27.1nb1
===> Extracting for emacs27-nox11-27.1nb1
cp /opt/pkgsrc/editors/emacs27-nox11/../../editors/emacs27/files/site-init.el /opt/work/editors/emacs27-nox11/work/emacs-27.1/lisp
/bin/chmod -R go-w /opt/work/editors/emacs27-nox11/work/emacs-27.1
===> Patching for emacs27-nox11-27.1nb1
=> Applying pkgsrc patches for emacs27-nox11-27.1nb1
=> Verifying /opt/pkgsrc/editors/emacs27-nox11/../../editors/emacs27/patches/patch-lib-src_emacsclient.c
=> Applying pkgsrc patch /opt/pkgsrc/editors/emacs27-nox11/../../editors/emacs27/patches/patch-lib-src_emacsclient.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-lib-src_emacsclient.c,v 1.2 2020/09/20 15:44:33 wiz Exp $
|
|Workaround for:
|On NetBSD, fstat on a socket returns zero instead of the user id.
|Reported upstream as http://debbugs.gnu.org/cgi/bugreport.cgi?bug=43002
|
|This is only needed for NetBSD 9 and earlier, fixed in current in
|https://mail-index.netbsd.org/source-changes/2020/08/26/msg121023.html
|
|--- lib-src/emacsclient.c.orig	2020-07-29 21:40:41.000000000 +0000
|+++ lib-src/emacsclient.c
--------------------------
Patching file lib-src/emacsclient.c using Plan A...
Hunk #1 succeeded at 1478.
done
=> Verifying /opt/pkgsrc/editors/emacs27-nox11/../../editors/emacs27/patches/patch-src_inotify.c
=> Applying pkgsrc patch /opt/pkgsrc/editors/emacs27-nox11/../../editors/emacs27/patches/patch-src_inotify.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_inotify.c,v 1.1 2020/08/12 14:14:48 ryoon Exp $
|
|need sys/filio.h for FIONREAD on SunOS
|
|--- src/inotify.c.orig	2016-06-29 09:49:22.000000000 +0000
|+++ src/inotify.c
--------------------------
Patching file src/inotify.c using Plan A...
Hunk #1 succeeded at 25 (offset -2 lines).
done
===> Creating toolchain wrappers for emacs27-nox11-27.1nb1
===> Configuring for emacs27-nox11-27.1nb1
=> Modifying GNU configure scripts to avoid --recheck
=> Replacing config-guess with pkgsrc versions
=> Replacing config-sub with pkgsrc versions
=> Replacing install-sh with pkgsrc version
=> Checking for portability problems in extracted files
checking for xcrun... xcrun
checking for GNU Make... make
checking build system type... aarch64-apple-darwin20
checking host system type... aarch64-apple-darwin20
configure: error: Emacs does not support 'aarch64-apple-darwin20' systems.
If you think it should, please send a report to bug-gnu-emacs@gnu.org.
Check 'etc/MACHINES' for recognized configuration names.
*** Error code 1

Stop.
bmake[1]: stopped in /opt/pkgsrc/editors/emacs27-nox11
*** Error code 1

Stop.
bmake: stopped in /opt/pkgsrc/editors/emacs27-nox11