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

        * CURSES_DEFAULT = ncurses
        * JPEG_DEFAULT = jpeg
        * PYTHON_VERSION_DEFAULT = 312

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

        * CURSES_TYPE = ncurses
        * JPEGBASE (defined, but empty)
        * JPEG_TYPE = jpeg
        * PYPACKAGE = python312
        * 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.82.2
=> Tool dependency gmake>=3.81: found gmake-4.4.1
=> Tool dependency pkgconf-[0-9]*: found pkgconf-2.3.0
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency glm>=0.9.7: found glm-1.0.1
=> Build dependency python312>=3.12.0nb1: found python312-3.12.7nb3
=> Build dependency rapidjson>=1.1.0: found rapidjson-1.1.0nb2
=> Full dependency liberation-ttf-[0-9]*: found liberation-ttf-2.1.5nb1
=> Full dependency SDL2>=2.30.2nb1: found SDL2-2.30.9nb1
=> Full dependency SDL2_ttf>=2.22.0nb2: found SDL2_ttf-2.22.0nb2
=> Full dependency expat>=2.0.0nb1: found expat-2.6.3
=> Full dependency flac>=1.4.0: found flac-1.4.3
=> Full dependency fontconfig>=2.14.2nb3: found fontconfig-2.15.0
=> Full dependency jpeg>=9: found jpeg-9f
=> Full dependency pugixml>=1.7: found pugixml-1.14
=> Full dependency sqlite3>=3.47.0nb3: found sqlite3-3.47.1
=> Full dependency utf8proc>=2.9.0: found utf8proc-2.9.0
=> Full dependency zlib>=1.2.3: found zlib-1.3.1
=> Build dependency xcb-proto>=1.4: found xcb-proto-1.17.0nb4
=> Build dependency xorgproto>=2016.1: found xorgproto-2024.1
=> Full dependency MesaLib>=3.4.2: found MesaLib-21.3.9nb4
=> Full dependency brotli>=1.0.1: found brotli-1.1.0
=> Full dependency bzip2>=1.0.1: found bzip2-1.0.8
=> Full dependency freetype2>=2.13.0: found freetype2-2.13.3
=> Full dependency gettext-lib>=0.22: found gettext-lib-0.22.5
=> Full dependency glib2>=2.4.0: found glib2-2.82.2
=> Full dependency graphite2>=1.2: found graphite2-1.3.14nb3
=> Full dependency harfbuzz>=2.1.1: found harfbuzz-10.1.0
=> Full dependency libiconv>=1.9.1: found libiconv-1.17
=> Full dependency lame>=3.93.1nb2: found lame-3.100nb6
=> Full dependency libX11>=1.5: found libX11-1.8.10
=> Full dependency libXScrnSaver>=1.1.2: found libXScrnSaver-1.2.4
=> Full dependency libXau>=1.0: found libXau-1.0.11
=> Full dependency libXcursor>=1.1.1: found libXcursor-1.2.3
=> Full dependency libXdamage>=1.0.3: found libXdamage-1.1.6
=> Full dependency libXdmcp>=0.99: found libXdmcp-1.1.5
=> Full dependency libXext>=1.1: found libXext-1.3.6
=> Full dependency libXfixes>=4.0.1: found libXfixes-6.0.1
=> Full dependency libXi>=1.0.0: found libXi-1.8.2
=> Full dependency libXinerama>=1.0.1: found libXinerama-1.1.5
=> Full dependency libXrandr>=1.1.2: found libXrandr-1.5.4
=> Full dependency libXrender>=0.9.2: found libXrender-0.9.11
=> Full dependency libXxf86vm>=1.1.0: found libXxf86vm-1.1.5
=> Full dependency libdrm>=2.4.15: found libdrm-2.4.123
=> Full dependency libffi>=1.20: found libffi-3.4.6
=> Full dependency libogg>=1.1: found libogg-1.3.5nb1
=> Full dependency libopus>=1.1: found libopus-1.5.2
=> Full dependency libsamplerate>=0.0.13nb1: found libsamplerate-0.2.2nb4
=> Full dependency libsndfile>=1.0.0: found libsndfile-1.2.2nb1
=> Full dependency libvorbis>=1.0.1: found libvorbis-1.3.7
=> Full dependency libxcb>=1.6: found libxcb-1.17.0
=> Full dependency libxshmfence>=1.2: found libxshmfence-1.3.2nb1
=> Full dependency mpg123>=1.0.0: found mpg123-1.32.9
=> Full dependency ncurses>=5.3nb1: found ncurses-6.5
=> Full dependency pcre2>=10.21: found pcre2-10.44
=> Full dependency png>=1.2.4: found png-1.6.44
===> Overriding tools for mame-0.272
===> Extracting for mame-0.272
/usr/bin/rm /home/pbulk/build/emulators/mame/work/mame-mame0272/3rdparty/bx/include/compat/freebsd/signal.h
/usr/bin/rm /home/pbulk/build/emulators/mame/work/mame-mame0272/3rdparty/bx/include/compat/freebsd/dirent.h
/usr/bin/mv /home/pbulk/build/emulators/mame/work/mame-mame0272/3rdparty/genie/build/gmake.freebsd /home/pbulk/build/emulators/mame/work/mame-mame0272/3rdparty/genie/build/gmake.bsd
===> Patching for mame-0.272
=> Applying pkgsrc patches for mame-0.272
=> 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 208 (offset 8 lines).
Hunk #2 succeeded at 618 (offset 19 lines).
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/emulators/mame/patches/patch-scripts_src_3rdparty.lua
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/emulators/mame/patches/patch-scripts_src_3rdparty.lua
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-scripts_src_3rdparty.lua,v 1.6 2023/11/02 01:51:58 wiz Exp $
|
|NetBSD has arc4random too.
|
|Disable SSE usage in bimg - it seems to assume availability of AVX2
|intrinsics?
|
|Compiling 3rdparty/bimg/3rdparty/astc-encoder/source/astcenc_decompress_symbolic.cpp...
|In file included from /usr/pkg/gcc8/lib/gcc/x86_64--netbsd/8.5.0/include/immintrin.h:35,
|                 from ../../../../../3rdparty/bimg/3rdparty/astc-encoder/source/astcenc_mathlib.h:85,
|                 from ../../../../../3rdparty/bimg/3rdparty/astc-encoder/source/astcenc_internal.h:34,
|                 from ../../../../../3rdparty/bimg/3rdparty/astc-encoder/source/astcenc_decompress_symbolic.cpp:22:
|/usr/pkg/gcc8/lib/gcc/x86_64--netbsd/8.5.0/include/tmmintrin.h: In function 'vint4 vtable_8bt_32bi(vint4, vint4, vint4)':
|/usr/pkg/gcc8/lib/gcc/x86_64--netbsd/8.5.0/include/tmmintrin.h:136:1: error: inlining failed in call to always_inline '__m128i _mm_shuffle_epi8(__m128i, __m128i)': target specific option mismatch
|
|--- scripts/src/3rdparty.lua.orig	2023-10-23 15:53:41.000000000 +0000
|+++ scripts/src/3rdparty.lua
--------------------------
Patching file scripts/src/3rdparty.lua using Plan A...
Hunk #1 succeeded at 49.
Hunk #2 succeeded at 1386 (offset 98 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.272
===> Configuring for mame-0.272
=> Checking for portability problems in extracted files