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

        * CURSES_DEFAULT = ncurses
        * READLINE_DEFAULT = readline
        * VARBASE = /var/opt/pkg

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

        * CURSES_TYPE = ncurses
        * READLINE_TYPE = readline
        * TERMCAP_TYPE = curses

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 glib2-tools-[0-9]*: found glib2-tools-2.70.5
=> Tool dependency mktools-[0-9]*: found mktools-20220614
=> Tool dependency cmake>=2.8.1nb1: found cmake-3.23.2
=> Tool dependency pkgconf-[0-9]*: found pkgconf-1.8.0
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency xorgproto>=2016.1: found xorgproto-2022.1
=> Build dependency xcb-proto>=1.4: found xcb-proto-1.15
=> Full dependency lzo>=2.01: found lzo-2.10
=> Full dependency xz>=5.0.0: found xz-5.2.5nb1
=> Full dependency fluidsynth>=2.2.5nb1: found fluidsynth-2.2.7
=> Full dependency libiconv>=1.9.1nb4: found libiconv-1.14nb3
=> Full dependency zlib>=1.2.3: found zlib-1.2.12nb1
=> Full dependency SDL2>=2.0.20nb1: found SDL2-2.0.22
=> Full dependency fontconfig>=2.13.1nb1: found fontconfig-2.13.1nb6
=> Full dependency freetype2>=2.8.1: found freetype2-2.12.1
=> Full dependency png>=1.6.0nb1: found png-1.6.37nb1
=> Full dependency hicolor-icon-theme>=0.9nb1: found hicolor-icon-theme-0.17nb1
=> Full dependency desktop-file-utils>=0.10nb1: found desktop-file-utils-0.26nb1
=> Full dependency icu>=71.1: found icu-71.1
===> Overriding tools for openttd-12.2
===> Extracting for openttd-12.2
===> Patching for openttd-12.2
=> Applying pkgsrc patches for openttd-12.2
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/games/openttd/patches/patch-cmake_InstallAndPackage.cmake
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/games/openttd/patches/patch-cmake_InstallAndPackage.cmake
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-cmake_InstallAndPackage.cmake,v 1.1 2021/05/04 17:08:05 nia Exp $
|
|Do not try to generate Linux distribution packages.
|
|--- cmake/InstallAndPackage.cmake.orig	2021-05-03 18:41:45.000000000 +0000
|+++ cmake/InstallAndPackage.cmake
--------------------------
Patching file cmake/InstallAndPackage.cmake using Plan A...
Hunk #1 succeeded at 152 (offset 7 lines).
done
===> Creating toolchain wrappers for openttd-12.2
===> Configuring for openttd-12.2
/usr/bin/mkdir -p /home/pbulk/build/games/openttd/work/openttd-12.2/build
=> Fixing CMAKE_MODULE_PATH in CMakeLists.txt
=> Checking for portability problems in extracted files
-- The C compiler identification is GNU 10.3.0
-- The CXX compiler identification is GNU 10.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/pbulk/build/games/openttd/work/.cwrapper/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/pbulk/build/games/openttd/work/.cwrapper/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test LIFETIME_DSE_FOUND
-- Performing Test LIFETIME_DSE_FOUND - Success
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Found ZLIB: /opt/pkg/lib/libz.so (found version "1.2.12") 
-- Looking for lzma_auto_decoder in /opt/pkg/lib/liblzma.so
-- Looking for lzma_auto_decoder in /opt/pkg/lib/liblzma.so - found
-- Looking for lzma_easy_encoder in /opt/pkg/lib/liblzma.so
-- Looking for lzma_easy_encoder in /opt/pkg/lib/liblzma.so - found
-- Looking for lzma_lzma_preset in /opt/pkg/lib/liblzma.so
-- Looking for lzma_lzma_preset in /opt/pkg/lib/liblzma.so - found
-- Found LibLZMA: /opt/pkg/lib/liblzma.so (found version "5.2.5") 
-- Found LZO: /opt/pkg/lib/liblzo2.so (found version "2.10") 
-- Found PNG: /opt/pkg/lib/libpng16.so (found version "1.6.37") 
-- Found Freetype: /opt/pkg/lib/libfreetype.so (found version "2.12.1") 
-- Found Fluidsynth: /opt/pkg/lib/libfluidsynth.so (found version "2.2.7") 
-- Found Fontconfig: /opt/pkg/lib/libfontconfig.so (found version "2.13.1") 
-- Found ICU: TRUE (found version "71.1") found components: i18n missing components: lx
-- Found OpenGL: /opt/pkg/lib/libGL.so  found components: OpenGL 
-- Performing Test SSE_FOUND
-- Performing Test SSE_FOUND - Success
-- Performing Test XAUDIO2_FOUND
-- Performing Test XAUDIO2_FOUND - Failed
-- Option Package Dependencies - OFF
-- Option Dedicated - OFF
-- Option Install FHS - ON
-- Option Use assert - OFF
-- Option Use threads - ON
-- Option Use NSIS - OFF
-- PNG found -- -DWITH_PNG -- PNG::PNG
-- ZLIB found -- -DWITH_ZLIB -- ZLIB::ZLIB
-- LIBLZMA found -- -DWITH_LIBLZMA -- LibLZMA::LibLZMA
-- LZO found -- -DWITH_LZO -- /opt/pkg/include /opt/pkg/include -- /opt/pkg/lib/liblzo2.so /opt/pkg/lib/liblzo2.so
-- Fluidsynth found -- -DWITH_FLUIDSYNTH -- /opt/pkg/include /opt/pkg/include -- /opt/pkg/lib/libfluidsynth.so /opt/pkg/lib/libfluidsynth.so
-- SDL2 found -- -DWITH_SDL2 -- SDL2::SDL2
-- FREETYPE found -- -DWITH_FREETYPE -- Freetype::Freetype
-- Fontconfig found -- -DWITH_FONTCONFIG -- Fontconfig::Fontconfig
-- ICU_i18n found -- -DWITH_ICU_I18N -- /opt/pkg/include  -- /opt/pkg/lib/libicui18n.so;/opt/pkg/lib/libicuuc.so;/opt/pkg/lib/libicudata.so 
-- OpenGL found -- -DWITH_OPENGL -- (via SDL2)
-- SSE found -- -DWITH_SSE --   --  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pbulk/build/games/openttd/work/openttd-12.2/build
=> Rewrite cmake Dependencies files