+ 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/testdisk-7.0/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/testdisk-7.0/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Checksum BLAKE2s OK for testdisk-7.0.tar.bz2
=> Checksum SHA512 OK for testdisk-7.0.tar.bz2
===> Installing dependencies for testdisk-7.0
==========================================================================
The following variables will affect the build process of this package,
testdisk-7.0.  Their current value is shown below:

        * CURSES_DEFAULT = ncurses
        * JPEG_DEFAULT = jpeg

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

        * CURSES_TYPE = ncurses
        * JPEGBASE (defined, but empty)
        * JPEG_TYPE = jpeg

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 libntfs>=2014.2.15: found libntfs-2022.10.3
=> Full dependency libiconv>=1.9.1nb4: found libiconv-1.17
=> Full dependency hicolor-icon-theme>=0.9nb1: found hicolor-icon-theme-0.17nb1
=> Full dependency zlib>=1.2.3: found zlib-1.2.13nb1
=> Full dependency jpeg>=9: found jpeg-9e
=> Full dependency ncurses>=6.3nb1: found ncurses-6.4
===> Overriding tools for testdisk-7.0
===> Extracting for testdisk-7.0
===> Patching for testdisk-7.0
=> Applying pkgsrc patches for testdisk-7.0
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-bulktest/sysutils/testdisk/patches/patch-aa
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-bulktest/sysutils/testdisk/patches/patch-aa
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-aa,v 1.2 2013/09/09 17:45:58 drochner Exp $
|
|stdarg(3) is required by various functions that can be called with variable
|argument lists.
|
|--- src/intrfn.h.orig	2013-05-17 09:34:03.000000000 +0000
|+++ src/intrfn.h
--------------------------
Patching file src/intrfn.h using Plan A...
Hunk #1 succeeded at 39.
done
===> Creating toolchain wrappers for testdisk-7.0
===> Configuring for testdisk-7.0
=> 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
ERROR: [gnu-configure.mk] option --with-libiconv-prefix=/opt/pkg not found in ./configure
*** Error code 1

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/sysutils/testdisk
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/sysutils/testdisk