+ 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/leptonica-1.84.1nb1/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/leptonica-1.84.1nb1/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Checksum BLAKE2s OK for leptonica-1.84.1.tar.gz
=> Checksum SHA512 OK for leptonica-1.84.1.tar.gz
===> Installing dependencies for leptonica-1.84.1nb1
==========================================================================
The following variables will affect the build process of this package,
leptonica-1.84.1nb1.  Their current value is shown below:

        * JPEG_DEFAULT = jpeg

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.28.3
=> Tool dependency mktools-[0-9]*: found mktools-20220614
=> Tool dependency pkgconf-[0-9]*: found pkgconf-2.1.1
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Full dependency giflib>=5.2.1nb4: found giflib-5.2.1nb6
=> Full dependency libwebp>=0.6.0: found libwebp-1.3.2nb1
=> Full dependency openjpeg>=2.1.0: found openjpeg-2.5.0nb2
=> Full dependency png>=1.6.0nb1: found png-1.6.42
=> Full dependency tiff>=4.6.0: found tiff-4.6.0nb3
=> Full dependency jpeg>=9: found jpeg-9e
===> Overriding tools for leptonica-1.84.1nb1
===> Extracting for leptonica-1.84.1nb1
===> Patching for leptonica-1.84.1nb1
=> Applying pkgsrc patches for leptonica-1.84.1nb1
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/graphics/leptonica/patches/patch-CMakeLists.txt
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/graphics/leptonica/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.1 2024/01/19 15:17:11 adam Exp $
|
|Prefer lept.pc for pkg-config file.
|
|--- CMakeLists.txt.orig	2024-01-02 23:48:24.000000000 +0000
|+++ CMakeLists.txt
--------------------------
Patching file CMakeLists.txt using Plan A...
Hunk #1 succeeded at 358.
Hunk #2 succeeded at 368.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/graphics/leptonica/patches/patch-src_environ.h
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/graphics/leptonica/patches/patch-src_environ.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_environ.h,v 1.1 2023/12/20 10:31:34 nros Exp $
|
|* Illumos gcc defines __STDC_VERSION__ in C++ mode,
|  this causes problems for leptonica C++ consumers
|  when gcc 12 is used. In gcc 12 atomic_int is not
|  defined in stdatomic.h in C++ mode. 
|  Make sure this path in not chosen in C++ mode,
|  like gcc on GNU Linux, NetBSD etc. 
|
|--- src/environ.h.orig	2023-01-26 06:12:24.000000000 +0000
|+++ src/environ.h
--------------------------
Patching file src/environ.h using Plan A...
Hunk #1 succeeded at 65.
done
===> Creating toolchain wrappers for leptonica-1.84.1nb1
===> Configuring for leptonica-1.84.1nb1
=> Checking for portability problems in extracted files
CMake Deprecation Warning at CMakeLists.txt:11 (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
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/pbulk/build/graphics/leptonica/work/.cwrapper/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found ZLIB: /opt/pkg/lib/libz.so (found version "1.3.1")  
-- Found PNG: /opt/pkg/lib/libpng16.so (found version "1.6.42") 
-- Found GIF: /opt/pkg/lib/libgif.so (found suitable version "5.2.1", minimum required is "5") 
-- Found JPEG: /opt/pkg/lib/libjpeg.so (found version "90") 
-- Found TIFF: /opt/pkg/lib/libtiff.so (found version "4.6.0")  
-- Could NOT find WebP (missing: WebP_DIR)
-- Found non-cmake WebP: /opt/pkg/lib/libwebp.so
-- Found WebP: /opt/pkg/lib/libwebp.so;/opt/pkg/lib/libwebpmux.so ()
-- Found OpenJPEG: openjp2 (2.5.0)
-- Setting build type to 'Release' as none was specified.
-- Looking for include file dlfcn.h
-- Looking for include file dlfcn.h - found
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Looking for include file memory.h
-- Looking for include file memory.h - found
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for include file stdlib.h
-- Looking for include file stdlib.h - found
-- Looking for include file strings.h
-- Looking for include file strings.h - found
-- Looking for include file string.h
-- Looking for include file string.h - found
-- Looking for include file sys/stat.h
-- Looking for include file sys/stat.h - found
-- Looking for include file sys/types.h
-- Looking for include file sys/types.h - found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for fmemopen
-- Looking for fmemopen - found
-- Looking for fstatat
-- Looking for fstatat - found
-- 
-- General configuration for Leptonica 
-- --------------------------------------------------------
-- Build type: Release
-- Compiler: GNU
-- C compiler options:
   -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include
-- Linker options: -L/opt/pkg/lib -Wl,-R/opt/pkg/lib
  
-- Install directory: /opt/pkg
-- 
-- Build with sw [SW_BUILD]: OFF
-- Build utility programs [BUILD_PROG]: ON
-- Used ZLIB library: /opt/pkg/lib/libz.so
-- Used PNG library:  /opt/pkg/lib/libpng16.so;/opt/pkg/lib/libz.so
-- Used JPEG library: /opt/pkg/lib/libjpeg.so
-- Used OpenJPEG library: openjp2
-- Used TIFF library: /opt/pkg/lib/libtiff.so
-- Used GIF library:  /opt/pkg/lib/libgif.so
-- Used WebP library: /opt/pkg/lib/libwebp.so;/opt/pkg/lib/libwebpmux.so
-- --------------------------------------------------------
-- 
-- Configuring done (23.8s)
-- Generating done (1.2s)
-- Build files have been written to: /home/pbulk/build/graphics/leptonica/work/leptonica-1.84.1/cmake-pkgsrc-build