+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/local/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent PGSQL_VERSION_REQD=14 WRKLOG=/tmp/bulklog/pg_top-4.0.0/work.log
+ su pbulk -c '"$@"' make /opt/local/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent PGSQL_VERSION_REQD=14 WRKLOG=/tmp/bulklog/pg_top-4.0.0/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
=> Checksum BLAKE2s OK for pg_top-4.0.0.tar.xz
=> Checksum SHA512 OK for pg_top-4.0.0.tar.xz
===> Installing dependencies for pg_top-4.0.0
==========================================================================
The following variables will affect the build process of this package,
pg_top-4.0.0.  Their current value is shown below:

        * CURSES_DEFAULT = ncurses
        * KRB5_DEFAULT = mit-krb5
        * SSLBASE (defined)
        * SSLCERTBUNDLE (not defined)
        * SSLCERTS = /opt/local/etc/openssl/certs
        * SSLDIR = /opt/local/etc/openssl
        * SSLKEYS = /opt/local/etc/openssl/private

Based on these variables, the following variables have been set:

        * CURSES_TYPE = ncurses
        * KRB5BASE (defined, but empty)
        * KRB5_TYPE = mit-krb5

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/local/bin/bmake clean' after the changes.
==========================================================================
=> Tool dependency cmake>=0: found cmake-3.28.1
=> Tool dependency mktools-[0-9]*: found mktools-20220614
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency gcc13>=13.1.0: found gcc13-13.2.0
=> Full dependency gcc13-libs>=13.2.0: found gcc13-libs-13.2.0
=> Full dependency ncurses>=6.3nb1: found ncurses-6.4
=> Full dependency postgresql14-client>=14.9nb1: found postgresql14-client-14.10
===> Overriding tools for pg_top-4.0.0
===> Extracting for pg_top-4.0.0
===> Patching for pg_top-4.0.0
=> Applying pkgsrc patches for pg_top-4.0.0
=> Verifying /data/jenkins/workspace/pkgsrc-2023Q4-x86_64/databases/pg_top/patches/patch-CMakeLists.txt
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-2023Q4-x86_64/databases/pg_top/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 2023/08/11 09:14:17 nia Exp $
|
|Honour the platform's preferred man page directory.
|
|--- CMakeLists.txt.orig	2020-10-08 19:05:41.000000000 +0000
|+++ CMakeLists.txt
--------------------------
Patching file CMakeLists.txt using Plan A...
Hunk #1 succeeded at 165.
Hunk #2 succeeded at 289.
done
===> Creating toolchain wrappers for pg_top-4.0.0
===> Configuring for pg_top-4.0.0
=> Checking for portability problems in extracted files
CMake Deprecation Warning at CMakeLists.txt:1 (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/databases/pg_top/work/.cwrapper/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- machine - sunos
-- arch - i86pc
-- pg_config --includedir - /opt/local/include
-- pg_config --libdir - /opt/local/lib
-- Looking for 4 include files stdlib.h, ..., float.h
-- Looking for 4 include files stdlib.h, ..., float.h - found
-- Looking for include file string.h
-- Looking for include file string.h - found
-- Looking for include file strings.h
-- Looking for include file strings.h - found
-- Looking for include files sys/time.h, time.h
-- Looking for include files sys/time.h, time.h - found
-- Looking for include file sys/time.h
-- Looking for include file sys/time.h - found
-- Looking for include file sys/resource.h
-- Looking for include file sys/resource.h - found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for getopt
-- Looking for getopt - found
-- Looking for memcpy
-- Looking for memcpy - found
-- Looking for setpriority
-- Looking for setpriority - found
-- Looking for sigaction
-- Looking for sigaction - found
-- Looking for sighold
-- Looking for sighold - found
-- Looking for sigprocmask
-- Looking for sigprocmask - found
-- Looking for sigrelse
-- Looking for sigrelse - found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for strchr
-- Looking for strchr - found
-- Looking for strerror
-- Looking for strerror - found
-- Performing Test SIGNAL_RETURN
-- Performing Test SIGNAL_RETURN - Failed
-- Performing Test TIME_T_DEFINED
-- Performing Test TIME_T_DEFINED - Success
-- Configuring done (8.9s)
CMake Error at CMakeLists.txt:199 (add_executable):
  Cannot find source file:

    machine/m_sunos.c

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm
  .ccm .cxxm .c++m .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90
  .f95 .f03 .hip .ispc


CMake Error at CMakeLists.txt:199 (add_executable):
  No SOURCES given to target: pg_top


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

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-2023Q4-x86_64/databases/pg_top
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-2023Q4-x86_64/databases/pg_top