+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /usr/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/libretro-flycast-2.1/work.log
+ su pbulk -c '"$@"' make /usr/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/libretro-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 libretro-flycast-2.1
==========================================================================
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.1.  Their current value is shown below:

        * SSLBASE (defined)
        * SSLCERTBUNDLE (not defined)
        * SSLCERTS = /usr/pkg/etc/openssl/certs
        * SSLDIR = /usr/pkg/etc/openssl
        * SSLKEYS = /usr/pkg/etc/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
`/usr/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 nbpatch-[0-9]*: found nbpatch-20151107
=> 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 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
===> Overriding tools for libretro-flycast-2.1
===> Extracting for libretro-flycast-2.1
===> Patching for libretro-flycast-2.1
=> Applying pkgsrc patches for libretro-flycast-2.1
=> Verifying /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/emulators/libretro-flycast/../../emulators/flycast/patches/patch-CMakeLists.txt
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/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.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-el7-trunk-x86_64/emulators/libretro-flycast/../../emulators/flycast/patches/patch-core_khronos_GL4_gl3w.c
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/emulators/libretro-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-el7-trunk-x86_64/emulators/libretro-flycast/../../emulators/flycast/patches/patch-core_linux_context.cpp
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/emulators/libretro-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-el7-trunk-x86_64/emulators/libretro-flycast/../../emulators/flycast/patches/patch-core_log_StringUtil.h
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/emulators/libretro-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-el7-trunk-x86_64/emulators/libretro-flycast/../../emulators/flycast/patches/patch-core_rend_gui.cpp
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/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 2230.
done
===> Creating toolchain wrappers for libretro-flycast-2.1
===> Configuring for libretro-flycast-2.1
=> Fixing CMAKE_MODULE_PATH in CMakeLists.txt
=> Checking for portability problems in extracted files
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- 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/cc - 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/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenMP_C: -fopenmp (found version "3.1") 
-- Found OpenMP_CXX: -fopenmp (found version "3.1") 
-- Found OpenMP: TRUE (found version "3.1")  
-- 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 CMakeLists.txt:414 (cmake_policy):
  The OLD behavior for policy CMP0026 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


-- Found PkgConfig: /home/pbulk/build/emulators/libretro-flycast/work/.tools/bin/pkg-config (found version "1.9.5") 
-- Found MiniUPnPc: /usr/pkg/include/miniupnpc  
-- Found miniupnpc API version 17
-- Checking for module 'libzip'
--   Found libzip, version 1.10.0
-- Found OpenGL: /usr/pkg/lib/libGL.so   
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Configuring done (9.4s)
-- Generating done (0.1s)
-- Build files have been written to: /home/pbulk/build/emulators/libretro-flycast/work/flycast-2.1
=> Rewrite cmake Dependencies files