+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/mtm-1.2.1/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/mtm-1.2.1/work.log
===> Building for mtm-1.2.1
--- config.h ---
cp -i config.def.h config.h
--- mtm ---
gcc -Wl,-R/opt/pkg/lib -L/opt/pkg/lib -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED -o mtm  vtparser.c mtm.c pair.c  -lncursesw -lutil
vtparser.c: In function 'vtwrite':
vtparser.c:140:20: warning: implicit declaration of function 'mbrtowc' [-Wimplicit-function-declaration]
  140 |         size_t r = mbrtowc(&w, s, n, &vp->ms);
      |                    ^~~~~~~
In file included from mtm.c:35:
config.h:79:35: fatal error: pty.h: No such file or directory
   79 |         #define FORKPTY_INCLUDE_H <pty.h>
      |                                   ^
compilation terminated.
In file included from pair.c:3:
config.h:79:35: fatal error: pty.h: No such file or directory
   79 |         #define FORKPTY_INCLUDE_H <pty.h>
      |                                   ^
compilation terminated.
*** [mtm] Error code 1

bmake: stopped making "all" in /home/pbulk/build/misc/mtm/work/mtm-1.2.1
bmake: 1 error

bmake: stopped making "all" in /home/pbulk/build/misc/mtm/work/mtm-1.2.1
*** Error code 2

Stop.
bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/misc/mtm
*** Error code 1

Stop.
bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/misc/mtm