+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/local/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/libretro-mgba-0.10.2/work.log
+ su pbulk -c '"$@"' make /opt/local/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/libretro-mgba-0.10.2/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Checksum BLAKE2s OK for mgba-0.10.2.tar.gz
=> Checksum SHA512 OK for mgba-0.10.2.tar.gz
===> Installing dependencies for libretro-mgba-0.10.2
=> Tool dependency mktools-[0-9]*: found mktools-20220614
=> Tool dependency cmake>=3.18: found cmake-3.28.1
=> Tool dependency pkgconf-[0-9]*: found pkgconf-2.0.3
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency gcc13>=13.1.0: found gcc13-13.2.0
=> Build dependency xcb-proto>=1.15.2nb3: found xcb-proto-1.16.0nb1
=> Build dependency xorgproto>=2016.1: found xorgproto-2023.2
=> Full dependency MesaLib>=21.3.9nb3: found MesaLib-21.3.9nb4
=> Full dependency gcc13-libs>=13.2.0: found gcc13-libs-13.2.0
=> Full dependency libelf>=0.8.5: found libelf-0.8.13nb1
===> Overriding tools for libretro-mgba-0.10.2
===> Extracting for libretro-mgba-0.10.2
===> Patching for libretro-mgba-0.10.2
=> Applying pkgsrc patches for libretro-mgba-0.10.2
=> Verifying /data/jenkins/workspace/pkgsrc-2023Q4-x86_64/emulators/libretro-mgba/../../emulators/mgba/patches/patch-CMakeLists.txt
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-2023Q4-x86_64/emulators/libretro-mgba/../../emulators/mgba/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.7 2023/07/07 07:27:07 nia Exp $
|
|Avoid PLIST complexity on Haiku and Darwin.
|
|--- CMakeLists.txt.orig	2023-01-11 03:51:20.000000000 +0000
|+++ CMakeLists.txt
--------------------------
Patching file CMakeLists.txt using Plan A...
Hunk #1 succeeded at 926 (offset 7 lines).
done
=> Verifying /data/jenkins/workspace/pkgsrc-2023Q4-x86_64/emulators/libretro-mgba/../../emulators/mgba/patches/patch-src_platform_qt_CMakeLists.txt
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-2023Q4-x86_64/emulators/libretro-mgba/../../emulators/mgba/patches/patch-src_platform_qt_CMakeLists.txt
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_platform_qt_CMakeLists.txt,v 1.3 2022/12/15 11:31:44 nia Exp $
|
|Mark Multimedia an optional component so we can build without the
|Qt5 audio driver (using only SDL).
|
|--- src/platform/qt/CMakeLists.txt.orig	2022-10-12 03:30:00.000000000 +0000
|+++ src/platform/qt/CMakeLists.txt
--------------------------
Patching file src/platform/qt/CMakeLists.txt using Plan A...
Hunk #1 succeeded at 25.
done
=> Verifying /data/jenkins/workspace/pkgsrc-2023Q4-x86_64/emulators/libretro-mgba/../../emulators/mgba/patches/patch-src_platform_qt_ConfigController.cpp
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-2023Q4-x86_64/emulators/libretro-mgba/../../emulators/mgba/patches/patch-src_platform_qt_ConfigController.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_platform_qt_ConfigController.cpp,v 1.1 2022/12/15 11:31:44 nia Exp $
|
|Use a likely "device native" sample rate on SunOS and NetBSD to avoid
|expensive in-kernel resampling.
|
|The default audioBuffers seems to cause performance problems in Qt.
|Using a reasonable power of two causes "less".
|
|--- src/platform/qt/ConfigController.cpp.orig	2022-10-12 03:30:00.000000000 +0000
|+++ src/platform/qt/ConfigController.cpp
--------------------------
Patching file src/platform/qt/ConfigController.cpp using Plan A...
Hunk #1 succeeded at 119.
done
=> Verifying /data/jenkins/workspace/pkgsrc-2023Q4-x86_64/emulators/libretro-mgba/../../emulators/mgba/patches/patch-src_script_socket.c
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-2023Q4-x86_64/emulators/libretro-mgba/../../emulators/mgba/patches/patch-src_script_socket.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_script_socket.c,v 1.1 2022/12/23 12:20:47 nia Exp $
|
|NetBSD 9 does not define ENOTRECOVERABLE (it is part of "robust
|mutexes", not sockets).
|
|--- src/script/socket.c.orig	2022-10-12 03:30:00.000000000 +0000
|+++ src/script/socket.c
--------------------------
Patching file src/script/socket.c using Plan A...
Hunk #1 succeeded at 28.
done
===> Creating toolchain wrappers for libretro-mgba-0.10.2
===> Configuring for libretro-mgba-0.10.2
=> Fixing CMAKE_MODULE_PATH in CMakeLists.txt
INFO: [subst.mk:cmake] Nothing changed in "CMakeLists.txt".
=> Checking for portability problems in extracted files
CMake Deprecation Warning at 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.


-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/pbulk/build/emulators/libretro-mgba/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-mgba/work/.cwrapper/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /home/pbulk/build/emulators/libretro-mgba/work/.tools/bin/pkg-config (found version "2.0.3") 
-- Looking for strdup
-- Looking for strdup - found
-- Looking for strlcpy
-- Looking for strlcpy - found
-- Looking for strndup
-- Looking for strndup - found
-- Looking for vasprintf
-- Looking for vasprintf - found
-- Looking for freelocale
-- Looking for freelocale - found
-- Looking for newlocale
-- Looking for newlocale - found
-- Looking for setlocale
-- Looking for setlocale - found
-- Looking for snprintf_l
-- Looking for snprintf_l - not found
-- Looking for uselocale
-- Looking for uselocale - found
-- Looking for popcount32
-- Looking for popcount32 - not found
-- Looking for futimens
-- Looking for futimens - found
-- Looking for futimes
-- Looking for futimes - found
-- Looking for localtime_r
-- Looking for localtime_r - found
-- Looking for strtof_l
-- Looking for strtof_l - not found
-- Looking for include file xlocale.h
-- Looking for include file xlocale.h - found
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Performing Test HAVE_PTHREAD
-- Performing Test HAVE_PTHREAD - Success
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Looking for include file pthread_np.h
-- Looking for include file pthread_np.h - not found
-- Looking for pthread_setname_np
-- Looking for pthread_setname_np - found
-- Looking for pthread_set_name_np
-- Looking for pthread_set_name_np - not found
-- Checking for one of the modules 'libelf'
-- Looking for crc32
-- Looking for crc32 - not found
-- Checking for one of the modules 'Lua'
CMake Warning at src/platform/cmake/FindFeature.cmake:83 (message):
  Requested module Lua missing for feature USE_LUA.  Feature disabled.
Call Stack (most recent call first):
  CMakeLists.txt:778 (find_feature)


-- Build type: Release
-- Platforms:
-- 	Game Boy Advance: ON
-- 	Game Boy: ON
-- Features:
-- 	Debuggers: OFF
-- 	CLI debugger: OFF
-- 	GDB stub: OFF
-- 	GIF/Video recording: OFF
-- 	Screenshot/advanced savestate support: OFF
-- 	ZIP support: OFF
-- 	7-Zip support: OFF
-- 	SQLite3 game database: OFF
-- 	ELF loading support: ON
-- 	Discord Rich Presence support: OFF
-- 	OpenGL support: OFF
-- Scripting support: ON
-- 	Lua: OFF
-- Frontends:
-- 	Qt: OFF
-- 	SDL (): OFF
-- 	Python bindings: OFF
-- 	Examples: OFF
-- Test tools:
-- 	Profiling: OFF
-- 	Test harness: OFF
-- 	Test suite: OFF
-- 	Video test suite: OFF
-- 	ROM tester: OFF
-- Cores:
-- 	Libretro core: ON
-- Libraries:
-- 	Static: OFF
-- 	Shared: OFF
-- Configuring done (16.7s)
-- Generating done (0.1s)
-- Build files have been written to: /home/pbulk/build/emulators/libretro-mgba/work/mgba-0.10.2
=> Rewrite cmake Dependencies files