+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent PYTHON_VERSION_REQD=310 WRKLOG=/tmp/bulklog/mame-0.254nb1/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent PYTHON_VERSION_REQD=310 WRKLOG=/tmp/bulklog/mame-0.254nb1/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Checksum BLAKE2s OK for mame-0.254.tar.gz
=> Checksum SHA512 OK for mame-0.254.tar.gz
===> Installing dependencies for mame-0.254nb1
==========================================================================
The following variables will affect the build process of this package,
mame-0.254nb1.  Their current value is shown below:

        * JPEG_DEFAULT = jpeg
        * PYTHON_VERSION_DEFAULT = 310

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

        * JPEGBASE (defined, but empty)
        * JPEG_TYPE = jpeg
        * PYPACKAGE = python310

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.74.6
=> Tool dependency mktools-[0-9]*: found mktools-20220614
=> Tool dependency gmake>=3.81: found gmake-4.4.1
=> Tool dependency pkgconf-[0-9]*: found pkgconf-1.9.5
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency py310-expat-[0-9]*: found py310-expat-3.10.11nb1
=> Build dependency xorgproto>=2016.1: found xorgproto-2022.2
=> Build dependency xcb-proto>=1.4: found xcb-proto-1.15.2nb2
=> Build dependency glm>=0.9.7: found glm-0.9.9.8
=> Build dependency python310>=3.10: found python310-3.10.11
=> Build dependency rapidjson>=1.1.0: found rapidjson-1.1.0nb1
=> Full dependency liberation-ttf-[0-9]*: found liberation-ttf-2.1.5
=> Full dependency flac>=1.4.0: found flac-1.4.2
=> Full dependency utf8proc>=2.1.1: found utf8proc-2.8.0
=> Full dependency SDL2>=2.26.5nb1: found SDL2-2.26.5nb1
=> Full dependency zlib>=1.2.3: found zlib-1.2.13
=> Full dependency sqlite3>=3.41.2nb1: found sqlite3-3.42.0
=> Full dependency SDL2_ttf>=2.20.2nb1: found SDL2_ttf-2.20.2nb1
=> Full dependency fontconfig>=2.14.1nb1: found fontconfig-2.14.2nb1
=> Full dependency expat>=2.0.0nb1: found expat-2.5.0
=> Full dependency pugixml>=1.7: found pugixml-1.13
=> Full dependency jpeg>=9: found jpeg-9e
===> Overriding tools for mame-0.254nb1
===> Extracting for mame-0.254nb1
/usr/bin/rm /home/pbulk/build/emulators/mame/work/mame-mame0254/3rdparty/bx/include/compat/freebsd/signal.h
/usr/bin/rm /home/pbulk/build/emulators/mame/work/mame-mame0254/3rdparty/bx/include/compat/freebsd/dirent.h
/usr/bin/mv /home/pbulk/build/emulators/mame/work/mame-mame0254/3rdparty/genie/build/gmake.freebsd /home/pbulk/build/emulators/mame/work/mame-mame0254/3rdparty/genie/build/gmake.bsd
===> Patching for mame-0.254nb1
=> Applying pkgsrc patches for mame-0.254nb1
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/emulators/mame/patches/patch-3rdparty_bx_src_thread.cpp
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/emulators/mame/patches/patch-3rdparty_bx_src_thread.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-3rdparty_bx_src_thread.cpp,v 1.5 2023/02/27 11:23:23 wiz Exp $
|
|NetBSD does not provide pthread_np.h.
|https://github.com/bkaradzic/bx/issues/295
|
|--- 3rdparty/bx/src/thread.cpp.orig	2023-02-21 17:59:53.000000000 +0000
|+++ 3rdparty/bx/src/thread.cpp
--------------------------
Patching file 3rdparty/bx/src/thread.cpp using Plan A...
Hunk #1 succeeded at 25.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/emulators/mame/patches/patch-3rdparty_genie_build_gmake.darwin_genie.make
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/emulators/mame/patches/patch-3rdparty_genie_build_gmake.darwin_genie.make
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-3rdparty_genie_build_gmake.darwin_genie.make,v 1.3 2019/11/08 09:44:17 wiz Exp $
|
|Do not set optimization level, nor minimal macOS version.
|
|--- 3rdparty/genie/build/gmake.darwin/genie.make.orig	2019-10-29 17:16:37.000000000 +0000
|+++ 3rdparty/genie/build/gmake.darwin/genie.make
--------------------------
Patching file 3rdparty/genie/build/gmake.darwin/genie.make using Plan A...
Hunk #1 succeeded at 49.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/emulators/mame/patches/patch-makefile
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/emulators/mame/patches/patch-makefile
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-makefile,v 1.24 2020/10/28 16:56:24 wiz Exp $
|
|Treat all BSDs the same.
|
|Do not set compiler optimization.
|
|--- makefile.orig	2020-10-27 01:00:36.000000000 +0000
|+++ makefile
--------------------------
Patching file makefile using Plan A...
Hunk #1 succeeded at 205 (offset 5 lines).
Hunk #2 succeeded at 614 (offset 15 lines).
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/emulators/mame/patches/patch-scripts_toolchain.lua
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/emulators/mame/patches/patch-scripts_toolchain.lua
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-scripts_toolchain.lua,v 1.6 2023/03/31 20:39:45 wiz Exp $
|
|Not for upstream.
|android toolchain value is not used in pkgsrc so this is good enough for now.
|https://github.com/mamedev/mame/issues/11049
|
|--- scripts/toolchain.lua.orig	2023-03-29 14:05:56.000000000 +0000
|+++ scripts/toolchain.lua
--------------------------
Patching file scripts/toolchain.lua using Plan A...
Hunk #1 succeeded at 60.
done
===> Creating toolchain wrappers for mame-0.254nb1
===> Configuring for mame-0.254nb1
=> Checking for portability problems in extracted files