+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/indi-2.0.9/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/indi-2.0.9/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Checksum BLAKE2s OK for indi-2.0.9.tar.gz
=> Checksum SHA512 OK for indi-2.0.9.tar.gz
===> Installing dependencies for indi-2.0.9
==========================================================================
The following variables will affect the build process of this package,
indi-2.0.9.  Their current value is shown below:

        * JPEG_DEFAULT = jpeg
        * SSLBASE (defined)
        * SSLCERTBUNDLE (not defined)
        * SSLCERTS = /etc/opt/pkg/openssl/certs
        * SSLDIR = /etc/opt/pkg/openssl
        * SSLKEYS = /etc/opt/pkg/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
`/opt/pkg/bin/bmake clean' after the changes.
==========================================================================
=> Tool dependency cmake>=0: found cmake-3.30.2
=> Tool dependency mktools-[0-9]*: found mktools-20220614
=> Tool dependency pkgconf-[0-9]*: found pkgconf-2.3.0
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Full dependency cfitsio>=3.100: found cfitsio-4.4.1
=> Full dependency libusb1>=1.0.9: found libusb1-1.0.27
=> Full dependency libnova>=0.13.0: found libnova-0.15.0
=> Full dependency fftw>=3.3.10nb1: found fftw-3.3.10nb2
=> Full dependency gsl>=2.6: found gsl-2.7.1
=> Full dependency libogg>=1.1.2nb1: found libogg-1.3.5nb1
=> Full dependency libtheora>=1.0alpha3nb1: found libtheora-1.1.1nb2
=> Full dependency curl>=8.7.1nb1: found curl-8.9.1
=> Full dependency jpeg>=9: found jpeg-9f
===> Overriding tools for indi-2.0.9
===> Extracting for indi-2.0.9
===> Patching for indi-2.0.9
=> Applying pkgsrc patches for indi-2.0.9
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/misc/indi/patches/patch-libs_alignment_CMakeLists.txt
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/misc/indi/patches/patch-libs_alignment_CMakeLists.txt
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-libs_alignment_CMakeLists.txt,v 1.2 2024/08/05 14:51:37 adam Exp $
|
|On Darwin, set correct install name dir for plug-ins.
|
|--- libs/alignment/CMakeLists.txt.orig	2024-08-05 10:54:29.125435547 +0000
|+++ libs/alignment/CMakeLists.txt
--------------------------
Patching file libs/alignment/CMakeLists.txt using Plan A...
Hunk #1 succeeded at 145.
Hunk #2 succeeded at 171.
done
===> Creating toolchain wrappers for indi-2.0.9
===> Configuring for indi-2.0.9
=> Adding run-time search paths to pkg-config files.
=> Checking for portability problems in extracted files
-- The C compiler identification is GNU 13.3.0
-- The CXX compiler identification is GNU 13.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/pbulk/build/misc/indi/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/misc/indi/work/.cwrapper/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test COMPATIBLE_FORTIFY_SOURCE
-- Performing Test COMPATIBLE_FORTIFY_SOURCE - Success
-- Looking for mremap
-- Looking for mremap - not found
-- Using bundled httplib
-- Using bundled json library
-- Found NOVA: /opt/pkg/lib/libnova.so
-- Looking for timespec_get
-- Looking for timespec_get - not found
-- Looking for clock_gettime
-- Looking for clock_gettime - not found
-- Found ZLIB: /opt/pkg/lib/libz.so (found version "1.3.1")
-- Building INDI Client
-- 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 - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - no
CMake Error at /opt/pkg/share/cmake-3.30/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
  Could NOT find Threads (missing: Threads_FOUND)
Call Stack (most recent call first):
  /opt/pkg/share/cmake-3.30/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
  /opt/pkg/share/cmake-3.30/Modules/FindThreads.cmake:226 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  libs/sockets/CMakeLists.txt:4 (find_package)


-- Configuring incomplete, errors occurred!
*** Error code 1

Stop.
bmake[1]: stopped making "configure" in /data/jenkins/workspace/pkgsrc-upstream-trunk/misc/indi
*** Error code 1

Stop.
bmake: stopped making "configure" in /data/jenkins/workspace/pkgsrc-upstream-trunk/misc/indi