+ 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/libretro-flycast-2.2nb2/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/libretro-flycast-2.2nb2/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Checksum BLAKE2s OK for flycast-2.2.tar.gz
=> Checksum SHA512 OK for flycast-2.2.tar.gz
=> Checksum BLAKE2s OK for flyinghead-libchdr-925400c4c4b67bafdff8dfad9a1474b22d980777.tar.gz
=> Checksum SHA512 OK for flyinghead-libchdr-925400c4c4b67bafdff8dfad9a1474b22d980777.tar.gz
=> Checksum BLAKE2s OK for flyinghead-mingw-breakpad-1ab24bcc817ebe629bf77daa53529d02361cb1e9.tar.gz
=> Checksum SHA512 OK for flyinghead-mingw-breakpad-1ab24bcc817ebe629bf77daa53529d02361cb1e9.tar.gz
=> Checksum BLAKE2s OK for vinniefalco-LuaBridge-fab7b33b896a42dcc865ba5ecdbacd9f40.tar.gz
=> Checksum SHA512 OK for vinniefalco-LuaBridge-fab7b33b896a42dcc865ba5ecdbacd9f40.tar.gz
===> Installing dependencies for libretro-flycast-2.2nb2
==========================================================================
The supported build options for libretro-flycast are:

	opengl

The currently selected options are:

	opengl

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

	PKG_OPTIONS.libretro-flycast (not defined)

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

        * SSLBASE (defined)
        * SSLCERTBUNDLE (not defined)
        * SSLCERTS = /etc/opt/pkg/openssl/certs
        * SSLDIR = /etc/opt/pkg/openssl
        * SSLKEYS = /etc/opt/pkg/openssl/private

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>=3.18: found cmake-3.29.6
=> Tool dependency pkgconf-[0-9]*: found pkgconf-2.2.0nb1
=> 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 libzip>=1.10.1nb3: found libzip-1.10.1nb4
=> Full dependency zlib>=1.2.3: found zlib-1.3.1
=> Full dependency miniupnpc>=2.1: found miniupnpc-2.2.4
=> Full dependency MesaLib>=21.3.9nb3: found MesaLib-21.3.9nb4
===> Overriding tools for libretro-flycast-2.2nb2
===> Extracting for libretro-flycast-2.2nb2
===> Patching for libretro-flycast-2.2nb2
=> Applying pkgsrc patches for libretro-flycast-2.2nb2
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-bulktest/emulators/libretro-flycast/../../emulators/flycast/patches/patch-CMakeLists.txt
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-bulktest/emulators/libretro-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.3 2023/11/17 09:27:51 nia Exp $
|
|- Treat APPLE less specially.
|- Use proper dependencies when building libretro core.
|
|--- CMakeLists.txt.orig	2023-10-27 22:19:54.000000000 +0000
|+++ CMakeLists.txt
--------------------------
Patching file CMakeLists.txt using Plan A...
Hunk #1 succeeded at 429.
Hunk #2 succeeded at 442.
Hunk #3 succeeded at 459.
Hunk #4 succeeded at 485.
Hunk #5 succeeded at 512.
Hunk #6 succeeded at 1797.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-bulktest/emulators/libretro-flycast/../../emulators/flycast/patches/patch-core_deps_khronos_GL4_gl3w.c
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-bulktest/emulators/libretro-flycast/../../emulators/flycast/patches/patch-core_deps_khronos_GL4_gl3w.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-core_deps_khronos_GL4_gl3w.c,v 1.1 2023/11/17 09:27:51 nia Exp $
|
|Support OpenGL on NetBSD - so version differs between xsrc and pkgsrc.
|
|--- core/deps/khronos/GL4/gl3w.c.orig	2023-10-27 22:19:54.000000000 +0000
|+++ core/deps/khronos/GL4/gl3w.c
--------------------------
Patching file core/deps/khronos/GL4/gl3w.c using Plan A...
Hunk #1 succeeded at 115.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-bulktest/emulators/libretro-flycast/../../emulators/flycast/patches/patch-core_rend_gui.cpp
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-bulktest/emulators/libretro-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 2504 (offset 274 lines).
done
===> Creating toolchain wrappers for libretro-flycast-2.2nb2
===> Configuring for libretro-flycast-2.2nb2
=> Fixing CMAKE_MODULE_PATH in CMakeLists.txt
=> Checking for portability problems in extracted files
-- The C compiler identification is GNU 13.3.0
-- The CXX compiler identification is GNU 13.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/pbulk/build/emulators/libretro-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/libretro-flycast/work/.cwrapper/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Target architecture: x86_64
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
CMake Deprecation Warning at core/deps/xxHash/cmake_unofficial/CMakeLists.txt:8 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- 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
CMake Deprecation Warning at core/deps/glm/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


CMake Deprecation Warning at core/deps/glm/CMakeLists.txt:2 (cmake_policy):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Found ZLIB: /opt/pkg/lib/libz.so (found version "1.3.1")
-- Found PkgConfig: /home/pbulk/build/emulators/libretro-flycast/work/.tools/bin/pkg-config (found version "2.2.0")
-- Checking for module 'libzip'
--   Found libzip, version 1.10.1
-- Found MiniUPnPc: /opt/pkg/include/miniupnpc
-- Found miniupnpc API version 17
-- Found OpenGL: /opt/pkg/lib/libGL.so
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Performing Test NOWIDE_HAS_LFS
-- Performing Test NOWIDE_HAS_LFS - Success
-- Performing Test NOWIDE_HAS_INIT_PRIORITY
-- Performing Test NOWIDE_HAS_INIT_PRIORITY - Success
CMake Deprecation Warning at core/deps/xbyak/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- Configuring done (26.5s)
-- Generating done (0.1s)
-- Build files have been written to: /home/pbulk/build/emulators/libretro-flycast/work/flycast-2.2
=> Rewrite cmake Dependencies files