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

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

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 libtool-base>=2.4.2nb9: found libtool-base-2.4.7nb1
=> Tool dependency mktools-[0-9]*: found mktools-20220614
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Full dependency zlib>=1.2.3: found zlib-1.3.1
=> Full dependency curl>=8.4.0nb1: found curl-8.6.0
===> Overriding tools for cfitsio-4.2.0nb2
===> Extracting for cfitsio-4.2.0nb2
===> Patching for cfitsio-4.2.0nb2
=> Applying pkgsrc patches for cfitsio-4.2.0nb2
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/devel/cfitsio/patches/patch-Makefile.in
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/devel/cfitsio/patches/patch-Makefile.in
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-Makefile.in,v 1.1 2023/07/22 10:11:02 adam Exp $
|
|Use libtool.
|
|--- Makefile.in.orig	2022-10-31 18:40:23.000000000 +0000
|+++ Makefile.in
--------------------------
Patching file Makefile.in using Plan A...
Hunk #1 succeeded at 38.
Hunk #2 succeeded at 95.
Hunk #3 succeeded at 110.
Hunk #4 succeeded at 135.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/devel/cfitsio/patches/patch-cfortran.h
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/devel/cfitsio/patches/patch-cfortran.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-cfortran.h,v 1.1 2023/07/22 10:11:02 adam Exp $
|
|Add definition for NetBSD and DragonFlyBSD.
|
|--- cfortran.h.orig	2008-05-20 05:28:41.000000000 +1200
|+++ cfortran.h
--------------------------
Patching file cfortran.h using Plan A...
Hunk #1 succeeded at 212 (offset 35 lines).
done
===> Creating toolchain wrappers for cfitsio-4.2.0nb2
===> Configuring for cfitsio-4.2.0nb2
=> Modifying GNU configure scripts to avoid --recheck
=> Replacing config-guess with pkgsrc versions
=> Replacing config-sub with pkgsrc versions
=> Replacing install-sh with pkgsrc version
=> Adding run-time search paths to pkg-config files.
=> Checking for portability problems in extracted files
configure: WARNING: unrecognized options: --with-libiconv-prefix
checking build system type... x86_64-sun-solaris2.11
checking host system type... x86_64-sun-solaris2.11
checking target system type... x86_64-sun-solaris2.11
checking for x86_64-sun-solaris2.11-gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for x86_64-sun-solaris2.11-gcc... (cached) gcc
checking whether the compiler supports GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to enable C11 features... (cached) none needed
checking for gfortran... gfortran
checking whether we are using GNU Fortran... 
no
checking for ar... ar
checking for x86_64-sun-solaris2.11-ranlib... no
checking for ranlib... ranlib
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for math.h... yes
checking for limits.h... yes
checking for frexp in -lm... yes
cfitsio: == Using gcc version 13.2.0
checking for curl-config... curl-config
checking for inflateEnd in -lz... no
configure: error: Unable to locate zlib compression library
*** Error code 1

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/devel/cfitsio
WARNING: *** Please consider adding fortran to USE_LANGUAGES in the package Makefile.
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/devel/cfitsio