=> Bootstrap dependency digest>=20211023: found digest-20211023
=> Checksum BLAKE2s OK for mgba-0.9.3.tar.gz
=> Checksum SHA512 OK for mgba-0.9.3.tar.gz
===> Installing dependencies for mgba-0.9.3
==========================================================================
The supported build options for mgba are:

	ffmpeg opengl qt5

The currently selected options are:

	ffmpeg opengl qt5

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

	PKG_OPTIONS.mgba (not defined)

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

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

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

        * JPEGBASE (defined, but empty)
        * JPEG_TYPE = jpeg

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/bin/make clean' after the changes.
==========================================================================
=> Tool dependency qt5-qttools-[0-9]*: found qt5-qttools-5.15.2nb7
=> Tool dependency glib2-tools-[0-9]*: found glib2-tools-2.70.2
=> Tool dependency bsdtar-[0-9]*: found bsdtar-3.4.3
=> Tool dependency cmake>=2.8.1nb1: found cmake-3.22.1nb1
=> Tool dependency pkgconf-[0-9]*: found pkgconf-1.8.0
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency x11-links>=1.34: found x11-links-1.34
=> Build dependency cwrappers>=20150314: found cwrappers-20180325
=> Full dependency ffmpeg4>=4.4nb10: found ffmpeg4-4.4.1nb1
=> Full dependency qt5-qtbase>=5.15.2nb7: found qt5-qtbase-5.15.2nb8
=> Full dependency png>=1.6.0nb1: found png-1.6.37nb1
=> Full dependency libzip>=1.8.0nb2: found libzip-1.8.0nb2
=> Full dependency libelf>=0.8.5: found libelf-0.8.13nb1
=> Full dependency SDL2>=2.0.16nb1: found SDL2-2.0.18
=> Full dependency hicolor-icon-theme>=0.9nb1: found hicolor-icon-theme-0.17nb1
===> Skipping vulnerability checks.
WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'.
===> Overriding tools for mgba-0.9.3
===> Extracting for mgba-0.9.3
===> Patching for mgba-0.9.3
=> Applying pkgsrc patches for mgba-0.9.3
=> Verifying /tree/pkgsrc/emulators/mgba/patches/patch-CMakeLists.txt
=> Applying pkgsrc patch /tree/pkgsrc/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.5 2021/11/28 11:34:14 nia Exp $
|
|Fix locale detection.
|
|https://github.com/mgba-emu/mgba/pull/2366
|
|--- CMakeLists.txt.orig	2020-08-04 04:46:14.000000000 +0000
|+++ CMakeLists.txt
--------------------------
Patching file CMakeLists.txt using Plan A...
Hunk #1 succeeded at 400 (offset 36 lines).
Hunk #2 succeeded at 987 (offset -48 lines).
done
=> Verifying /tree/pkgsrc/emulators/mgba/patches/patch-include_mgba-util_math.h
=> Applying pkgsrc patch /tree/pkgsrc/emulators/mgba/patches/patch-include_mgba-util_math.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-include_mgba-util_math.h,v 1.2 2021/11/28 11:34:14 nia Exp $
|
|NetBSD defines popcount32 in libc.
|
|https://github.com/mgba-emu/mgba/pull/2366
|
|--- include/mgba-util/math.h.orig	2017-07-16 19:04:50.000000000 +0000
|+++ include/mgba-util/math.h
--------------------------
Patching file include/mgba-util/math.h using Plan A...
Hunk #1 succeeded at 10.
done
=> Verifying /tree/pkgsrc/emulators/mgba/patches/patch-include_mgba-util_platform_posix_threading.h
=> Applying pkgsrc patch /tree/pkgsrc/emulators/mgba/patches/patch-include_mgba-util_platform_posix_threading.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-include_mgba-util_platform_posix_threading.h,v 1.3 2021/11/28 11:34:14 nia Exp $
|
|Support NetBSD pthreads.
|
|https://github.com/mgba-emu/mgba/pull/2366
|
|--- include/mgba-util/platform/posix/threading.h.orig	2020-01-22 02:17:11.000000000 +0000
|+++ include/mgba-util/platform/posix/threading.h
--------------------------
Patching file include/mgba-util/platform/posix/threading.h using Plan A...
Hunk #1 succeeded at 95 (offset 1 line).
done
===> Creating toolchain wrappers for mgba-0.9.3
===> Configuring for mgba-0.9.3
=> Generating pkg-config file for builtin expat package.
=> Generating pkg-config files for builtin xz package.
=> Fixing CMAKE_MODULE_PATH in CMakeLists.txt
INFO: [subst.mk:cmake] Nothing changed in "CMakeLists.txt".
=> Checking for portability problems in extracted files
-- The C compiler identification is GNU 5.5.0
-- The CXX compiler identification is GNU 5.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /scratch/work/emulators/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: /scratch/work/emulators/mgba/work/.cwrapper/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /scratch/work/emulators/mgba/work/.tools/bin/pkg-config (found version "1.8.0") 
-- Looking for strdup
-- Looking for strdup - found
-- Looking for strndup
-- Looking for strndup - found
-- Looking for strlcpy
-- Looking for strlcpy - found
-- Looking for vasprintf
-- Looking for vasprintf - found
-- Looking for localtime_r
-- Looking for localtime_r - found
-- Looking for include file xlocale.h
-- Looking for include file xlocale.h - not found
-- Looking for snprintf_l
-- Looking for snprintf_l - found
-- Looking for strtof_l
-- Looking for strtof_l - found
-- Looking for newlocale
-- Looking for newlocale - found
-- Looking for freelocale
-- Looking for freelocale - found
-- Looking for uselocale
-- Looking for uselocale - not found
-- Looking for setlocale
-- Looking for setlocale - found
-- Looking for chmod
-- Looking for chmod - found
-- Looking for umask
-- Looking for umask - 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
-- Looking for include file locale.h
-- Looking for include file locale.h - found
-- Checking for one of the modules 'libavcodec'
-- Checking for one of the modules 'libavfilter'
-- Checking for one of the modules 'libavformat'
-- Checking for one of the modules 'libavutil'
-- Checking for one of the modules 'libswscale'
-- Checking for one of the modules 'libswresample'
-- Checking for one of the modules 'minizip'
CMake Warning at src/platform/cmake/FindFeature.cmake:51 (message):
  Requested module minizip missing for feature USE_MINIZIP.  Feature
  disabled.
Call Stack (most recent call first):
  CMakeLists.txt:523 (find_feature)


-- Checking for one of the modules 'libelf'
-- Checking for one of the modules 'sdl2'
CMake Warning at src/platform/qt/CMakeLists.txt:25 (find_package):
  Found package configuration file:

    /usr/pkg/qt5/lib/cmake/Qt5/Qt5Config.cmake

  but it set Qt5_FOUND to FALSE so package "Qt5" is considered to be NOT
  FOUND.  Reason given by package:

  Failed to find Qt5 component "Multimedia" config file at
  "/usr/pkg/qt5/lib/cmake/Qt5Multimedia/Qt5MultimediaConfig.cmake"

  



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