+ 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/opendoas-6.8.2/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/opendoas-6.8.2/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for opendoas-6.8.2
yacc  parse.y 
mv -f y.tab.c parse.c
gcc -I. -Ilibopenbsd -O2 -Wall -Wextra -D__sunos__ -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include  -c -o parse.o parse.c
gcc -I. -Ilibopenbsd -O2 -Wall -Wextra -D__sunos__ -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include  -c -o doas.o doas.c
doas.c: In function 'parsegid':
doas.c:88:15: error: 'GID_MAX' undeclared (first use in this function); did you mean 'PID_MAX'?
   88 |   if (*gid == GID_MAX)
      |               ^~~~~~~
      |               PID_MAX
doas.c:88:15: note: each undeclared identifier is reported only once for each function it appears in
doas.c: In function 'mygetpwuid_r':
doas.c:224:15: error: too many arguments to function 'getpwuid_r'
  224 |  while ((rv = getpwuid_r(uid, pwd, buf, buflen, result)) == ERANGE) {
      |               ^~~~~~~~~~
In file included from doas.c:33:
/usr/include/pwd.h:166:23: note: declared here
  166 | extern struct passwd *getpwuid_r(uid_t, struct passwd *, char *, int);
      |                       ^~~~~~~~~~
doas.c:224:13: warning: assignment to 'int' from 'struct passwd *' makes integer from pointer without a cast [-Wint-conversion]
  224 |  while ((rv = getpwuid_r(uid, pwd, buf, buflen, result)) == ERANGE) {
      |             ^
gmake: *** [<builtin>: doas.o] Error 1
rm parse.c
*** Error code 2

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

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/security/opendoas