=> Checksum BLAKE2s OK for mosquitto-2.0.21.tar.gz
=> Checksum SHA512 OK for mosquitto-2.0.21.tar.gz
===> Installing dependencies for mosquitto-2.0.21nb1
==========================================================================
The supported build options for mosquitto are:

	websockets

The currently selected options are:

	websockets

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

	PKG_OPTIONS.mosquitto (not defined)

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

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

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 libxslt-[0-9]*: found libxslt-1.1.42nb4
=> Tool dependency docbook-xsl-[0-9]*: found docbook-xsl-1.79.2nb7
=> Tool dependency cmake>=0: found cmake-3.31.7nb1
=> Tool dependency nbpatch-[0-9]*: found nbpatch-20151107
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency uthash>=1.9.9: found uthash-2.3.0
=> Full dependency user-darwin>=20130712: found user-darwin-20170116
=> Full dependency CUnit>=2.1: found CUnit-2.1.3nb1
=> Full dependency libcares>=1.6.0: found libcares-1.34.5
=> Full dependency libwebsockets>=4.3.0nb1: found libwebsockets-4.3.3nb1
=> Full dependency openssl>=3: found openssl-3.4.1
===> Overriding tools for mosquitto-2.0.21nb1
===> Extracting for mosquitto-2.0.21nb1
===> Patching for mosquitto-2.0.21nb1
=> Applying pkgsrc patches for mosquitto-2.0.21nb1
=> Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-upstream-arm64/net/mosquitto/patches/patch-lib_CMakeLists.txt
=> Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-upstream-arm64/net/mosquitto/patches/patch-lib_CMakeLists.txt
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-lib_CMakeLists.txt,v 1.3 2024/10/13 14:13:23 gdt Exp $
|
|On NetBSD, do not include librt.
|\todo Why?  All other "UNIX" does, except Mac.
|\todo Consider filing upstream.
|
|--- lib/CMakeLists.txt.orig	2024-10-02 10:09:25.000000000 +0000
|+++ lib/CMakeLists.txt
--------------------------
Patching file lib/CMakeLists.txt using Plan A...
Hunk #1 succeeded at 62 (offset 1 line).
done
=> Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-upstream-arm64/net/mosquitto/patches/patch-mosquitto.conf
=> Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-upstream-arm64/net/mosquitto/patches/patch-mosquitto.conf
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-mosquitto.conf,v 1.8 2025/03/08 13:59:13 gdt Exp $
|
|Align pid_file to pkgsrc norms.
|
|Provide a dir for capath, but do not set it.  (In mosquitto, having a
|key/cert for the server is linked to having a CA, and to treating
|clients with a certificate from a known CA as authorized.  This is
|complicated, and not about pkgsrc, and this change does not intend to
|step into the situation.)
|
|Log to syslog, instead of (perhaps) not logging.
|
|--- mosquitto.conf.orig	2025-03-06 16:25:31.000000000 +0000
|+++ mosquitto.conf
--------------------------
Patching file mosquitto.conf using Plan A...
Hunk #1 succeeded at 167.
Hunk #2 succeeded at 361.
Hunk #3 succeeded at 469.
done
=> Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-upstream-arm64/net/mosquitto/patches/patch-src_CMakeLists.txt
=> Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-upstream-arm64/net/mosquitto/patches/patch-src_CMakeLists.txt
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_CMakeLists.txt,v 1.8 2024/10/14 21:51:21 gdt Exp $
|
|The first hunk removes linker args on SunOS, for no apparent reason.
|\todo Explain and file a bug upstream; this should not be a pkgsrc change.
|
|--- src/CMakeLists.txt.orig	2020-08-19 13:55:03.000000000 +0000
|+++ src/CMakeLists.txt
--------------------------
Patching file src/CMakeLists.txt using Plan A...
Hunk #1 succeeded at 213.
done
===> Creating toolchain wrappers for mosquitto-2.0.21nb1
===> Configuring for mosquitto-2.0.21nb1
-- The C compiler identification is AppleClang 13.1.6.13160021
-- The CXX compiler identification is AppleClang 13.1.6.13160021
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Users/pbulk/build/net/mosquitto/work/.cwrapper/bin/clang - 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: /Users/pbulk/build/net/mosquitto/work/.cwrapper/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenSSL: /Users/pbulk/build/net/mosquitto/work/.buildlink/lib/libcrypto.dylib (found version "3.4.1")
-- WITH_DLT = OFF
-- Could NOT find cJSON (missing: CJSON_INCLUDE_DIR CJSON_LIBRARY) 
-- Optional dependency cJSON not found. Some features will be disabled.
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Looking for getaddrinfo_a in anl
-- Looking for getaddrinfo_a in anl - not found
-- Configuring done (3.0s)
CMake Error in src/CMakeLists.txt:
  Imported target "websockets_shared" includes non-existent path

    "/Users/pbulk/build/www/libwebsockets/work/.buildlink/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.



-- Generating done (0.1s)
CMake Warning:
  Manually-specified variables were not used by the project:

    FETCHCONTENT_FULLY_DISCONNECTED


CMake Generate step failed.  Build files cannot be regenerated correctly.
*** Error code 1

Stop.
bmake[1]: stopped making "configure" in /Volumes/data/jenkins/workspace/pkgsrc-macos-upstream-arm64/net/mosquitto
*** Error code 1

Stop.
bmake: stopped making "configure" in /Volumes/data/jenkins/workspace/pkgsrc-macos-upstream-arm64/net/mosquitto