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

	doc static

The currently selected options are:

	doc

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

	PKG_OPTIONS.nng (not defined)

==========================================================================
=> Tool dependency ruby32-asciidoctor-[0-9]*: found ruby32-asciidoctor-2.0.22
=> Tool dependency mktools-[0-9]*: found mktools-20220614
=> Tool dependency cmake>=3.18: found cmake-3.29.1
=> Tool dependency nbpatch-[0-9]*: found nbpatch-20151107
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
===> Overriding tools for nng-1.4.0nb1
===> Extracting for nng-1.4.0nb1
===> Patching for nng-1.4.0nb1
=> Applying pkgsrc patches for nng-1.4.0nb1
=> Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/net/nng/patches/patch-src_platform_posix_posix__thread.c
=> Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/net/nng/patches/patch-src_platform_posix_posix__thread.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_platform_posix_posix__thread.c,v 1.1 2021/03/12 02:28:08 khorben Exp $
|
|Build fix for NetBSD
|
|--- src/platform/posix/posix_thread.c.orig	2021-02-08 01:38:21.000000000 +0000
|+++ src/platform/posix/posix_thread.c
--------------------------
Patching file src/platform/posix/posix_thread.c using Plan A...
Hunk #1 succeeded at 262.
done
===> Creating toolchain wrappers for nng-1.4.0nb1
===> Configuring for nng-1.4.0nb1
=> Fixing CMAKE_MODULE_PATH in CMakeLists.txt
=> Checking for portability problems in extracted files
-- The C compiler identification is AppleClang 15.0.0.15000100
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Users/pbulk/build/net/nng/work/.cwrapper/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring for NNG version 1.4.0
-- Performing Test NNG_HIDDEN_VISIBILITY
-- Performing Test NNG_HIDDEN_VISIBILITY - Success
-- Looking for strlcpy
-- Looking for strlcpy - found
-- Looking for strnlen
-- Looking for strnlen - found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for strncasecmp
-- Looking for strncasecmp - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Looking for lockf
-- Looking for lockf - found
-- Looking for flock
-- Looking for flock - found
-- Looking for getrandom
-- Looking for getrandom - not found
-- Looking for arc4random_buf
-- Looking for arc4random_buf - found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - not found
-- Looking for sem_wait in pthread
-- Looking for sem_wait in pthread - found
-- Looking for pthread_atfork in pthread
-- Looking for pthread_atfork in pthread - found
-- Looking for pthread_set_name_np in pthread
-- Looking for pthread_set_name_np in pthread - not found
-- Looking for pthread_setname_np in pthread
-- Looking for pthread_setname_np in pthread - found
-- Looking for gethostbyname in nsl
-- Looking for gethostbyname in nsl - not found
-- Looking for socket in socket
-- Looking for socket in socket - not found
-- Looking for __atomic_load_1 in atomic
-- Looking for __atomic_load_1 in atomic - not found
-- Looking for AF_UNIX
-- Looking for AF_UNIX - found
-- Looking for backtrace_symbols_fd
-- Looking for backtrace_symbols_fd - found
-- Performing Test NNG_HAVE_MSG_CONTROL
-- Performing Test NNG_HAVE_MSG_CONTROL - Success
-- Looking for eventfd
-- Looking for eventfd - not found
-- Looking for kqueue
-- Looking for kqueue - found
-- Looking for port_create
-- Looking for port_create - not found
-- Looking for epoll_create
-- Looking for epoll_create - not found
-- Looking for epoll_create1
-- Looking for epoll_create1 - not found
-- Looking for getpeereid
-- Looking for getpeereid - found
-- Looking for SO_PEERCRED
-- Looking for SO_PEERCRED - not found
-- Performing Test NNG_HAVE_SOCKPEERCRED
-- Performing Test NNG_HAVE_SOCKPEERCRED - Failed
-- Looking for LOCAL_PEERCRED
-- Looking for LOCAL_PEERCRED - found
-- Looking for LOCAL_PEERPID
-- Looking for LOCAL_PEERPID - found
-- Looking for getpeerucred
-- Looking for getpeerucred - not found
-- Looking for atomic_flag_test_and_set
-- Looking for atomic_flag_test_and_set - found
-- Looking for nl_langinfo
-- Looking for nl_langinfo - found
-- Test zt disabled (unconfigured)
-- The CXX compiler identification is AppleClang 15.0.0.15000100
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Users/pbulk/build/net/nng/work/.cwrapper/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using asciidoctor at /opt/pkg/bin/asciidoctor32
-- Configuring done (7.5s)
-- Generating done (0.3s)
-- Build files have been written to: /Users/pbulk/build/net/nng/work/nng-1.4.0
=> Rewrite cmake Dependencies files