=> Bootstrap dependency digest>=20010302: found digest-20190127
=> Checksum SHA1 OK for luafilesystem-1.8.0.tar.gz
=> Checksum RMD160 OK for luafilesystem-1.8.0.tar.gz
=> Checksum SHA512 OK for luafilesystem-1.8.0.tar.gz
===> Installing dependencies for lua52-filesystem-1.8.0
==========================================================================
The following variables will affect the build process of this package,
lua52-filesystem-1.8.0.  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.bulk/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.bulk/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/opt/pkg.bulk/sbin/pkg_admin -K /opt/pkg.bulk/pkgdb fetch-pkg-vulnerabilities'.
===> Overriding tools for lua52-filesystem-1.8.0
===> Extracting for lua52-filesystem-1.8.0
===> Patching for lua52-filesystem-1.8.0
=> Applying pkgsrc patches for lua52-filesystem-1.8.0
=> Verifying /opt/pkgsrc/devel/lua-filesystem/patches/patch-Makefile
=> Applying pkgsrc patch /opt/pkgsrc/devel/lua-filesystem/patches/patch-Makefile
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-Makefile,v 1.2 2020/07/02 21:40:50 nia Exp $
|
| - Remove MACOSX_DEPLOYMENT_TARGET as it will give problem on newer macOS
|     and also targeting/building for current macOS version is enough
|
| - Honour LDFLAGS.
|
|--- Makefile.orig	2020-04-23 01:16:42.000000000 +0000
|+++ Makefile
--------------------------
Patching file Makefile using Plan A...
Hunk #1 succeeded at 12.
done
===> Creating toolchain wrappers for lua52-filesystem-1.8.0
===> Configuring for lua52-filesystem-1.8.0
=> Checking for portability problems in extracted files