+ 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/tkgate-1.8.7nb4/work.log
+ su pbulk -c '"$@"' make /usr/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/tkgate-1.8.7nb4/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Checksum BLAKE2s OK for tkgate-1.8.7.tgz
=> Checksum SHA512 OK for tkgate-1.8.7.tgz
===> Installing dependencies for tkgate-1.8.7nb4
=> Tool dependency libiconv-[0-9]*: found libiconv-1.17
=> Tool dependency mktools-[0-9]*: found mktools-20220614
=> Tool dependency bison>=1.0: found bison-3.8.2nb1
=> Tool dependency imake-[0-9]*: found imake-1.0.10
=> Tool dependency nbpatch-[0-9]*: found nbpatch-20151107
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency xorgproto>=2016.1: found xorgproto-2024.1
=> Build dependency xcb-proto>=1.15.2nb3: found xcb-proto-1.17.0nb1
=> Full dependency tk>=8.6.13nb1: found tk-8.6.14
===> Overriding tools for tkgate-1.8.7nb4
===> Extracting for tkgate-1.8.7nb4
===> Patching for tkgate-1.8.7nb4
=> Applying pkgsrc patches for tkgate-1.8.7nb4
=> Verifying /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/cad/tkgate/patches/patch-aa
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/cad/tkgate/patches/patch-aa
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-aa,v 1.6 2016/04/21 13:15:15 jperkin Exp $
|
|--- config.h.orig	2007-01-30 04:45:09.000000000 +0100
|+++ config.h	2014-12-13 18:30:51.000000000 +0100
--------------------------
Patching file config.h using Plan A...
Hunk #1 succeeded at 39.
Hunk #2 succeeded at 52.
Hunk #3 succeeded at 79.
Hunk #4 succeeded at 101.
done
=> Verifying /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/cad/tkgate/patches/patch-ab
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/cad/tkgate/patches/patch-ab
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-ab,v 1.4 2014/02/04 00:11:43 joerg Exp $
|
|--- configure.orig	2001-06-11 20:44:36.000000000 +0000
|+++ configure
--------------------------
Patching file configure using Plan A...
Hunk #1 succeeded at 70.
Hunk #2 succeeded at 478 (offset 25 lines).
Hunk #3 succeeded at 685 (offset 1 line).
done
=> Verifying /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/cad/tkgate/patches/patch-Imakefile
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/cad/tkgate/patches/patch-Imakefile
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-Imakefile,v 1.2 2019/06/08 11:04:30 rillig Exp $
|
|Add DESTDIR support
|
|--- Imakefile.orig	2004-06-09 19:16:06.000000000 +0200
|+++ Imakefile	2014-12-13 18:35:32.000000000 +0100
--------------------------
Patching file Imakefile using Plan A...
Hunk #1 succeeded at 99.
Hmm...  Ignoring the trailing garbage.
done
===> Creating toolchain wrappers for tkgate-1.8.7nb4
===> Configuring for tkgate-1.8.7nb4
=> Fixing paths in configuration files.
=> Checking for portability problems in extracted files
echo "Earth" > /home/pbulk/build/cad/tkgate/work/tkgate-1.8.7/sitename.txt
( cd /home/pbulk/build/cad/tkgate/work/tkgate-1.8.7 && BUILDLINK_LDFLAGS=\ -L/usr/pkg/lib\ -Wl,-R/usr/pkg/lib\ -L/usr/lib64\ -Wl,-R/usr/lib64 LOCALBASE=/usr/pkg FREETYPE_CONFIG=/usr/pkg/bin/freetype-config DL_CFLAGS= DL_LDFLAGS= DL_LIBS= PTHREAD_CFLAGS=\ -pthread\  PTHREAD_LDFLAGS=\ -pthread PTHREAD_LIBS=-lpthread\ -lrt PTHREADBASE=/usr INSTALL_INFO= MAKEINFO=/home/pbulk/build/cad/tkgate/work/.tools/bin/makeinfo FLEX= BISON=/home/pbulk/build/cad/tkgate/work/.tools/bin/bison ITSTOOL=/home/pbulk/build/cad/tkgate/work/.tools/bin/itstool GDBUS_CODEGEN=/home/pbulk/build/cad/tkgate/work/.tools/bin/gdbus-codegen PKG_CONFIG=/home/pbulk/build/cad/tkgate/work/.tools/bin/pkg-config PKG_CONFIG_LIBDIR=/home/pbulk/build/cad/tkgate/work/.buildlink/lib64/pkgconfig:/home/pbulk/build/cad/tkgate/work/.buildlink/lib/pkgconfig:/home/pbulk/build/cad/tkgate/work/.buildlink/share/pkgconfig PKG_CONFIG_LOG=/home/pbulk/build/cad/tkgate/work/.pkg-config.log PKG_CONFIG_PATH= MAKE=make CWRAPPERS_CONFIG_DIR=/home/pbulk/build/cad/tkgate/work/.cwrapper/config CC=cc CFLAGS=-pipe\ -O2\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/freetype2 CPPFLAGS=-I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/freetype2 CXX=c++ CXXFLAGS=-pipe\ -O2\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/freetype2 COMPILER_RPATH_FLAG=-Wl,-R F77=f77 FC=f77 FFLAGS=-O LANG=C LC_ALL=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LDFLAGS=-Wl,-zrelro\ -L/usr/pkg/lib\ -Wl,-R/usr/pkg/lib\ -L/usr/lib64\ -Wl,-R/usr/lib64 LINKER_RPATH_FLAG=-R PATH=/home/pbulk/build/cad/tkgate/work/.cwrapper/bin:/home/pbulk/build/cad/tkgate/work/.buildlink/bin:/home/pbulk/build/cad/tkgate/work/.gcc/bin:/home/pbulk/build/cad/tkgate/work/.tools/bin:/usr/pkg/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/pkg/bin:/usr/pkg/bin PREFIX=/usr/pkg MAKELEVEL=0 CONFIG_SITE= ftp_proxy=downloads-forbidden-except-during-fetch http_proxy=downloads-forbidden-except-during-fetch https_proxy=downloads-forbidden-except-during-fetch no_proxy= PKG_SYSCONFDIR=/usr/pkg/etc CXXCPP=cpp HOME=/home/pbulk/build/cad/tkgate/work/.home CWRAPPERS_CONFIG_DIR=/home/pbulk/build/cad/tkgate/work/.cwrapper/config ./configure )
C compiler: gcc
In file included from /usr/include/stdio.h:27:0,
                 from ltest.c:1:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^
Auto-configuring language to 'en' (LANG=C).
In file included from /usr/include/stdio.h:27:0,
                 from ltest.c:1:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^
In file included from /usr/include/stdio.h:27:0,
                 from ltest.c:1:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^
In file included from /usr/include/stdio.h:27:0,
                 from ltest.c:1:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^
In file included from /usr/include/stdio.h:27:0,
                 from ltest.c:1:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^
In file included from /usr/include/stdio.h:27:0,
                 from ltest.c:1:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^
In file included from /usr/include/stdio.h:27:0,
                 from ltest.c:1:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^
In file included from /usr/include/stdio.h:27:0,
                 from ltest.c:1:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^
In file included from /usr/include/stdio.h:27:0,
                 from ltest.c:1:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^
In file included from /usr/include/stdio.h:27:0,
                 from ltest.c:1:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^
Tcl/Tk Version: 8.6
Configuring for Western language support.
Tcl script files found in: /usr/pkg/lib/tcl8.6
Tk script files found in: /usr/pkg/lib/tk8.6
bison found
which: no flex in (/home/pbulk/build/cad/tkgate/work/.cwrapper/bin:/home/pbulk/build/cad/tkgate/work/.buildlink/bin:/home/pbulk/build/cad/tkgate/work/.gcc/bin:/home/pbulk/build/cad/tkgate/work/.tools/bin:/usr/pkg/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/pkg/bin:/usr/pkg/bin)
which: no lex in (/home/pbulk/build/cad/tkgate/work/.cwrapper/bin:/home/pbulk/build/cad/tkgate/work/.buildlink/bin:/home/pbulk/build/cad/tkgate/work/.gcc/bin:/home/pbulk/build/cad/tkgate/work/.tools/bin:/usr/pkg/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/pkg/bin:/usr/pkg/bin)

ERROR: Can't find flex or lex!