+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent LUA_VERSION_REQD=54 WRKLOG=/tmp/bulklog/flycast-2.1/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent LUA_VERSION_REQD=54 WRKLOG=/tmp/bulklog/flycast-2.1/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Checksum BLAKE2s OK for flycast-2.1.tar.gz
=> Checksum SHA512 OK for flycast-2.1.tar.gz
=> Checksum BLAKE2s OK for flyinghead-mingw-breakpad-4c3d5fce1a4fef4decfbfeaf20f3746ecd209775.tar.gz
=> Checksum SHA512 OK for flyinghead-mingw-breakpad-4c3d5fce1a4fef4decfbfeaf20f3746ecd209775.tar.gz
=> Checksum BLAKE2s OK for rtissera-libchdr-2781322c4a7f8315c5fd6499129ad4b718e35843.tar.gz
=> Checksum SHA512 OK for rtissera-libchdr-2781322c4a7f8315c5fd6499129ad4b718e35843.tar.gz
=> Checksum BLAKE2s OK for vinniefalco-LuaBridge-fab7b33b896a42dcc865ba5ecdbacd9f40.tar.gz
=> Checksum SHA512 OK for vinniefalco-LuaBridge-fab7b33b896a42dcc865ba5ecdbacd9f40.tar.gz
===> Installing dependencies for flycast-2.1
==========================================================================
The supported build options for flycast are:

	alsa pulseaudio

You can select which build options to use by setting PKG_DEFAULT_OPTIONS
or the following variable.  Its current value is shown:

	PKG_OPTIONS.flycast (not defined)

==========================================================================
==========================================================================
The following variables will affect the build process of this package,
flycast-2.1.  Their current value is shown below:

        * CURSES_DEFAULT = ncurses
        * LUA_VERSION_DEFAULT = 54
        * READLINE_DEFAULT = readline
        * SSLBASE (defined)
        * SSLCERTBUNDLE (not defined)
        * SSLCERTS = /etc/opt/pkg/openssl/certs
        * SSLDIR = /etc/opt/pkg/openssl
        * SSLKEYS = /etc/opt/pkg/openssl/private

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

        * CURSES_TYPE = ncurses
        * LUA_PACKAGE = lua54
        * 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 mktools-[0-9]*: found mktools-20220614
=> Tool dependency cmake>=2.8.1nb1: found cmake-3.26.4
=> 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 xorgproto>=2016.1: found xorgproto-2023.2
=> Build dependency xcb-proto>=1.4: found xcb-proto-1.15.2nb2
=> Full dependency libao-sun-[0-9]*: found libao-sun-1.2.2nb2
=> Full dependency libzip>=1.9.2nb2: found libzip-1.10.0
=> Full dependency zlib>=1.2.3: found zlib-1.2.13
=> Full dependency miniupnpc>=2.1: found miniupnpc-2.2.4
=> Full dependency MesaLib>=20.0.1nb1: found MesaLib-21.3.9nb2
=> Full dependency curl>=8.0.1nb1: found curl-8.1.2
=> Full dependency libao>=1.0.0: found libao-1.2.2
=> Full dependency SDL2>=2.26.5nb1: found SDL2-2.28.1
=> Full dependency hicolor-icon-theme>=0.9nb1: found hicolor-icon-theme-0.17nb1
=> Full dependency lua54>=5.4.0<5.5: found lua54-5.4.6
===> Overriding tools for flycast-2.1
===> Extracting for flycast-2.1
===> Patching for flycast-2.1
=> Applying pkgsrc patches for flycast-2.1
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/emulators/flycast/../../emulators/flycast/patches/patch-CMakeLists.txt
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/emulators/flycast/../../emulators/flycast/patches/patch-CMakeLists.txt
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-CMakeLists.txt,v 1.2 2023/07/07 07:31:50 nia Exp $
|
|- Always prefer SDL2 from pkgsrc.
|- Treat APPLE less specially.
|- Use proper dependencies when building libretro core.
|
|--- CMakeLists.txt.orig	2023-02-15 17:59:44.000000000 +0000
|+++ CMakeLists.txt
--------------------------
Patching file CMakeLists.txt using Plan A...
Hunk #1 succeeded at 207.
Hunk #2 succeeded at 356.
Hunk #3 succeeded at 393.
Hunk #4 succeeded at 416.
Hunk #5 succeeded at 443.
Hunk #6 succeeded at 1662.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/emulators/flycast/../../emulators/flycast/patches/patch-core_khronos_GL4_gl3w.c
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/emulators/flycast/../../emulators/flycast/patches/patch-core_khronos_GL4_gl3w.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-core_khronos_GL4_gl3w.c,v 1.1 2023/07/02 17:32:30 nia Exp $
|
|libGL.so may have a different soname on NetBSD depending on whether
|it is installed from pkgsrc or xbase.
|
|--- core/khronos/GL4/gl3w.c.orig	2023-02-15 17:59:44.000000000 +0000
|+++ core/khronos/GL4/gl3w.c
--------------------------
Patching file core/khronos/GL4/gl3w.c using Plan A...
Hunk #1 succeeded at 115.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/emulators/flycast/../../emulators/flycast/patches/patch-core_linux_context.cpp
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/emulators/flycast/../../emulators/flycast/patches/patch-core_linux_context.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-core_linux_context.cpp,v 1.1 2023/07/02 17:32:30 nia Exp $
|
|Fix build on NetBSD/amd64.
|
|--- core/linux/context.cpp.orig	2023-02-15 17:59:44.000000000 +0000
|+++ core/linux/context.cpp
--------------------------
Patching file core/linux/context.cpp using Plan A...
Hunk #1 succeeded at 84.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/emulators/flycast/../../emulators/flycast/patches/patch-core_log_StringUtil.h
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/emulators/flycast/../../emulators/flycast/patches/patch-core_log_StringUtil.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-core_log_StringUtil.h,v 1.1 2023/07/02 17:32:30 nia Exp $
|
|Fix build on NetBSD.
|
|--- core/log/StringUtil.h.orig	2023-02-15 17:59:44.000000000 +0000
|+++ core/log/StringUtil.h
--------------------------
Patching file core/log/StringUtil.h using Plan A...
Hunk #1 succeeded at 69.
Hunk #2 succeeded at 101.
Hunk #3 succeeded at 110.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/emulators/flycast/../../emulators/flycast/patches/patch-core_rend_gui.cpp
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/emulators/flycast/../../emulators/flycast/patches/patch-core_rend_gui.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-core_rend_gui.cpp,v 1.1 2023/07/02 17:32:30 nia Exp $
|
|Here, we support Unix.
|
|--- core/rend/gui.cpp.orig	2023-02-15 17:59:44.000000000 +0000
|+++ core/rend/gui.cpp
--------------------------
Patching file core/rend/gui.cpp using Plan A...
Hunk #1 succeeded at 2230.
done
===> Creating toolchain wrappers for flycast-2.1
/usr/bin/ln -s /home/pbulk/build/emulators/flycast/work/.buildlink/lib/pkgconfig/lua-5.4.pc /home/pbulk/build/emulators/flycast/work/.buildlink/lib/pkgconfig/lua.pc
===> Configuring for flycast-2.1
=> Fixing CMAKE_MODULE_PATH in CMakeLists.txt
=> Checking for portability problems in extracted files
-- The C compiler identification is GNU 13.1.0
-- The CXX compiler identification is GNU 13.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/pbulk/build/emulators/flycast/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/emulators/flycast/work/.cwrapper/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenMP_C: -fopenmp (found version "4.5") 
-- Found OpenMP_CXX: -fopenmp (found version "4.5") 
-- Found OpenMP: TRUE (found version "4.5")  
-- xxHash build type: Release
-- Performing Test CFLAG_Wall
-- Performing Test CFLAG_Wall - Success
-- Performing Test CFLAG_Wextra
-- Performing Test CFLAG_Wextra - Success
-- Performing Test CFLAG_Wcast_qual
-- Performing Test CFLAG_Wcast_qual - Success
-- Performing Test CFLAG_Wcast_align
-- Performing Test CFLAG_Wcast_align - Success
-- Performing Test CFLAG_Wshadow
-- Performing Test CFLAG_Wshadow - Success
-- Performing Test CFLAG_Wstrict_aliasing_1
-- Performing Test CFLAG_Wstrict_aliasing_1 - Success
-- Performing Test CFLAG_Wswitch_enum
-- Performing Test CFLAG_Wswitch_enum - Success
-- Performing Test CFLAG_Wdeclaration_after_statement
-- Performing Test CFLAG_Wdeclaration_after_statement - Success
-- Performing Test CFLAG_Wstrict_prototypes
-- Performing Test CFLAG_Wstrict_prototypes - Success
-- Performing Test CFLAG_Wundef
-- Performing Test CFLAG_Wundef - Success
-- Found CURL: /opt/pkg/lib/libcurl.so (found version "8.1.2")  
-- Found ZLIB: /opt/pkg/lib/libz.so (found version "1.2.13")  
-- Found Lua: /opt/pkg/lib/liblua5.4.so;/usr/lib/64/libm.so (found version "5.4.6") 
-- Found PkgConfig: /home/pbulk/build/emulators/flycast/work/.tools/bin/pkg-config (found version "1.9.5") 
-- Checking for module 'ao'
--   Found ao, version 1.2.2
-- Checking for module 'libpulse'
--   Package 'libpulse', required by 'virtual:world', not found
-- Found MiniUPnPc: /opt/pkg/include/miniupnpc  
-- Found miniupnpc API version 17
-- Checking for module 'libzip'
--   Found libzip, version 1.10.0
-- Found OpenGL: /opt/pkg/lib/libGL.so   
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Configuring done (13.4s)
-- Generating done (0.1s)
-- Build files have been written to: /home/pbulk/build/emulators/flycast/work/flycast-2.1
=> Rewrite cmake Dependencies files