+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /usr/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/nvi2-2.2.0/work.log
+ su pbulk -c '"$@"' make /usr/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/nvi2-2.2.0/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Checksum BLAKE2s OK for nvi2-2.2.0.tar.gz
=> Checksum SHA512 OK for nvi2-2.2.0.tar.gz
===> Installing dependencies for nvi2-2.2.0
==========================================================================
The supported build options for nvi2 are:

	iconv wide-curses

The currently selected options are:

	iconv wide-curses

You can select which build options to use by setting PKG_DEFAULT_OPTIONS
or the following variable.  Its current value is shown:

	PKG_OPTIONS.nvi2 (not defined)

==========================================================================
==========================================================================
The following variables will affect the build process of this package,
nvi2-2.2.0.  Their current value is shown below:

        * CURSES_DEFAULT = ncurses

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

        * CURSES_TYPE = ncurses

You may want to abort the process now with CTRL-C and change the value
of variables in the first group before continuing.  Be sure to run
`/usr/pkg/bin/bmake clean' after the changes.
==========================================================================
=> Tool dependency mktools-[0-9]*: found mktools-20220614
=> Tool dependency cmake>=3.18: found cmake-3.30.1
=> Tool dependency nbpatch-[0-9]*: found nbpatch-20151107
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Full dependency ncurses>=6.5: found ncurses-6.5
===> Overriding tools for nvi2-2.2.0
===> Extracting for nvi2-2.2.0
===> Patching for nvi2-2.2.0
=> Applying pkgsrc patches for nvi2-2.2.0
=> Verifying /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/editors/nvi2/patches/patch-cl_cl__screen.c
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/editors/nvi2/patches/patch-cl_cl__screen.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-cl_cl__screen.c,v 1.1 2020/06/14 11:44:02 nia Exp $
|
|This is only valid in ncurses
|
|--- cl/cl_screen.c.orig	2015-04-08 21:20:21.000000000 +0000
|+++ cl/cl_screen.c
--------------------------
Patching file cl/cl_screen.c using Plan A...
Hunk #1 succeeded at 405 (offset -4 lines).
done
===> Creating toolchain wrappers for nvi2-2.2.0
===> Configuring for nvi2-2.2.0
=> Correcting the path to curses.
/bin/mkdir -p -p /home/pbulk/build/editors/nvi2/work/nvi2-2.2.0/build
=> Fixing CMAKE_MODULE_PATH in CMakeLists.txt
INFO: [subst.mk:cmake] Nothing changed in "CMakeLists.txt".
=> Checking for portability problems in extracted files
CMake Warning at CMakeLists.txt:9 (message):
  No CMAKE_BUILD_TYPE is selected


-- The C compiler identification is GNU 4.8.5
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/pbulk/build/editors/nvi2/work/.cwrapper/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for openpty
-- Looking for openpty - not found
-- Looking for __b64_ntop
-- Looking for __b64_ntop - not found
-- Looking for __iconv
-- Looking for __iconv - not found
-- Performing Test ICONV_TRADITIONAL
-- Performing Test ICONV_TRADITIONAL - Success
-- Looking for include file libutil.h
-- Looking for include file libutil.h - not found
-- Looking for include file ncurses.h
-- Looking for include file ncurses.h - found
-- Looking for include file term.h
-- Looking for include file term.h - found
-- Configuring done (3.0s)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
ICONV_LIBRARY
    linked by target "nvi" in directory /home/pbulk/build/editors/nvi2/work/nvi2-2.2.0

-- Generating done (0.1s)
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_INSTALL_LIBDIR
    CMAKE_INSTALL_MANDIR


CMake Generate step failed.  Build files cannot be regenerated correctly.
*** Error code 1

Stop.
bmake[1]: stopped making "configure" in /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/editors/nvi2
*** Error code 1

Stop.
bmake: stopped making "configure" in /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/editors/nvi2