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

        * CURSES_DEFAULT = curses
        * LUA_VERSION_DEFAULT = 53
        * READLINE_DEFAULT = editline

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

        * CURSES_TYPE = curses
        * LUA_PACKAGE = lua52
        * READLINE_TYPE = editline
        * 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 gmake>=3.81: found gmake-4.2.1nb1
=> Tool dependency nbpatch-[0-9]*: found nbpatch-20151107
=> Tool dependency pkgconf-[0-9]*: found pkgconf-1.7.3
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency cwrappers>=20150314: found cwrappers-20180325
=> Full dependency lua52>=5.2.0<5.3: found lua52-5.2.4nb1
===> 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 lua52-system-0.2.1
===> Extracting for lua52-system-0.2.1
===> Patching for lua52-system-0.2.1
=> Applying pkgsrc patches for lua52-system-0.2.1
=> Verifying /opt/pkgsrc/devel/lua-system/patches/patch-src_Makefile
=> Applying pkgsrc patch /opt/pkgsrc/devel/lua-system/patches/patch-src_Makefile
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_Makefile,v 1.1 2020/07/08 12:15:08 nia Exp $
|
|- macOS proper link flags for pkgsrc integration
|- Respect environment variables
|
|--- src/Makefile.orig	2016-10-03 06:43:39.000000000 +0000
|+++ src/Makefile
--------------------------
Patching file src/Makefile using Plan A...
Hunk #1 succeeded at 131.
Hunk #2 succeeded at 156.
Hunk #3 succeeded at 208.
done
===> Creating toolchain wrappers for lua52-system-0.2.1
===> Configuring for lua52-system-0.2.1
=> Checking for portability problems in extracted files