+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/pick-3.0.1/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/pick-3.0.1/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Checksum BLAKE2s OK for pick-3.0.1.tar.gz
=> Checksum SHA512 OK for pick-3.0.1.tar.gz
===> Installing dependencies for pick-3.0.1
==========================================================================
The following variables will affect the build process of this package,
pick-3.0.1.  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
`/opt/pkg/bin/bmake clean' after the changes.
==========================================================================
=> Tool dependency mktools-[0-9]*: found mktools-20220614
=> 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 pick-3.0.1
===> Extracting for pick-3.0.1
===> Patching for pick-3.0.1
=> Applying pkgsrc patches for pick-3.0.1
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-bulktest/misc/pick/patches/patch-pick.c
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-bulktest/misc/pick/patches/patch-pick.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-pick.c,v 1.1 2018/05/09 15:26:05 leot Exp $
|
|tparm(3) expects a `const char *' as first argument, adjust tty_parm1()
|accordingly.
|
|--- pick.c.orig	2018-04-10 19:52:06.000000000 +0000
|+++ pick.c
--------------------------
Patching file pick.c using Plan A...
Hunk #1 succeeded at 78 (offset -12 lines).
Hunk #2 succeeded at 1059 (offset -4 lines).
done
===> Creating toolchain wrappers for pick-3.0.1
===> Configuring for pick-3.0.1
=> Checking for portability problems in extracted files
+ cat config.log
+ LDFLAGS=-lcurses
+ check_curses
+ compile
+ gcc -Werror -o /dev/null -x c - -lcurses
ld: fatal: library -lncurses: not found
ld: fatal: file processing errors. No output written to /dev/null
collect2: error: ld returned 1 exit status
+ LDFLAGS=-lncursesw
+ check_curses
+ compile
+ gcc -Werror -o /dev/null -x c - -lncursesw
ld: fatal: library -lncurses: not found
ld: fatal: file processing errors. No output written to /dev/null
collect2: error: ld returned 1 exit status
+ fatal 'curses library not found'
+ '[' 1 -gt 0 ']'
+ echo 'fatal: curses library not found'
fatal: curses library not found
+ exec
+ return 1
+ atexit /tmp/configure.T4GrbD
+ err=1
+ set -x
+ cat config.h
cat: cannot open config.h: No such file or directory
*** Error code 2

Stop.
bmake[1]: stopped making "configure" in /data/jenkins/workspace/pkgsrc-upstream-bulktest/misc/pick
*** Error code 1

Stop.
bmake: stopped making "configure" in /data/jenkins/workspace/pkgsrc-upstream-bulktest/misc/pick