+ 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/htop-3.3.0/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/htop-3.3.0/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Checksum BLAKE2s OK for htop-3.3.0.tar.gz
=> Checksum SHA512 OK for htop-3.3.0.tar.gz
===> Installing dependencies for htop-3.3.0
==========================================================================
The supported build options for htop are:

	curses ncurses

The currently selected options are:

	curses

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

	PKG_OPTIONS.htop (not defined)

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

        * CURSES_DEFAULT = ncurses

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

        * CURSES_TYPE = ncurses

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 automake>=1.9: found automake-1.16.5nb3
=> Tool dependency autoconf>=2.58: found autoconf-2.72
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Full dependency ncurses>=6.3nb1: found ncurses-6.4
=> Full dependency hicolor-icon-theme>=0.9nb1: found hicolor-icon-theme-0.17nb1
===> Overriding tools for htop-3.3.0
===> Extracting for htop-3.3.0
===> Patching for htop-3.3.0
=> Applying pkgsrc patches for htop-3.3.0
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/sysutils/htop/patches/patch-solaris_Platform.h
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/sysutils/htop/patches/patch-solaris_Platform.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-solaris_Platform.h,v 1.1 2022/05/16 12:14:22 jperkin Exp $
|
|Remove unwanted and breaking includes.
|
|--- solaris/Platform.h.orig	2022-05-01 06:31:20.000000000 +0000
|+++ solaris/Platform.h
--------------------------
Patching file solaris/Platform.h using Plan A...
Hunk #1 succeeded at 15 (offset -2 lines).
done
===> Creating toolchain wrappers for htop-3.3.0
===> Configuring for htop-3.3.0
cd /home/pbulk/build/sysutils/htop/work/htop-3.3.0 && /usr/bin/env USETOOLS=no CC=gcc CFLAGS=-pipe\ -O2\ -msave-args\ -fno-aggressive-loop-optimizations\ -I/opt/pkg/include/ncurses\ -I/opt/pkg/include CPPFLAGS=-I/opt/pkg/include/ncurses\ -I/opt/pkg/include CXX=g++ CXXFLAGS=-pipe\ -O2\ -msave-args\ -fno-aggressive-loop-optimizations\ -I/opt/pkg/include/ncurses\ -I/opt/pkg/include COMPILER_RPATH_FLAG=-Wl,-R F77=gfortran FC=gfortran FFLAGS=-O LANG=C LC_ALL=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LDFLAGS=-L/opt/pkg/lib\ -Wl,-R/opt/pkg/lib LINKER_RPATH_FLAG=-R PATH=/home/pbulk/build/sysutils/htop/work/.cwrapper/bin:/home/pbulk/build/sysutils/htop/work/.buildlink/bin:/home/pbulk/build/sysutils/htop/work/.gcc/bin:/home/pbulk/build/sysutils/htop/work/.tools/bin:/opt/pkg/bin:/sbin:/usr/sbin:/usr/bin:/opt/tools/bin:/opt/pkg/bin:/opt/pkg/bin PREFIX=/opt/pkg MAKELEVEL=0 CONFIG_SITE= PKG_SYSCONFDIR=/etc/opt/pkg CXXCPP=cpp HOME=/home/pbulk/build/sysutils/htop/work/.home CWRAPPERS_CONFIG_DIR=/home/pbulk/build/sysutils/htop/work/.cwrapper/config CPP=cpp LOCALBASE=/opt/pkg X11BASE=/opt/pkg PKGMANDIR=share/man PKGINFODIR=info PKGGNUDIR=gnu/ MAKECONF=/dev/null OBJECT_FMT=ELF USETOOLS=no LIBTOOL="/home/pbulk/build/sysutils/htop/work/.cwrapper/bin/libtool " BSD_INSTALL_PROGRAM=/opt/pkg/bin/bsdinstall\ -c\ \ -o\ pbulk\ -g\ pbulk\ -m\ 755 BSD_INSTALL_SCRIPT=/opt/pkg/bin/bsdinstall\ -c\ -o\ pbulk\ -g\ pbulk\ -m\ 755 BSD_INSTALL_LIB=/opt/pkg/bin/bsdinstall\ -c\ -o\ pbulk\ -g\ pbulk\ -m\ 755 BSD_INSTALL_DATA=/opt/pkg/bin/bsdinstall\ -c\ -o\ pbulk\ -g\ pbulk\ -m\ 644 BSD_INSTALL_MAN=/opt/pkg/bin/bsdinstall\ -c\ -o\ pbulk\ -g\ pbulk\ -m\ 644 BSD_INSTALL=/opt/pkg/bin/bsdinstall BSD_INSTALL_PROGRAM_DIR=/opt/pkg/bin/bsdinstall\ -d\ -o\ pbulk\ -g\ pbulk\ -m\ 755 BSD_INSTALL_SCRIPT_DIR=/opt/pkg/bin/bsdinstall\ -d\ -o\ pbulk\ -g\ pbulk\ -m\ 755 BSD_INSTALL_LIB_DIR=/opt/pkg/bin/bsdinstall\ -d\ -o\ pbulk\ -g\ pbulk\ -m\ 755 BSD_INSTALL_DATA_DIR=/opt/pkg/bin/bsdinstall\ -d\ -o\ pbulk\ -g\ pbulk\ -m\ 755 BSD_INSTALL_MAN_DIR=/opt/pkg/bin/bsdinstall\ -d\ -o\ pbulk\ -g\ pbulk\ -m\ 755 BSD_INSTALL_GAME=/opt/pkg/bin/bsdinstall\ -c\ \ -o\ pbulk\ -g\ pbulk\ -m\ 2555 BSD_INSTALL_GAME_DATA=/opt/pkg/bin/bsdinstall\ -c\ -o\ pbulk\ -g\ pbulk\ -m\ 664 BSD_INSTALL_GAME_DIR=/opt/pkg/bin/bsdinstall\ -d\ -o\ pbulk\ -g\ pbulk\ -m\ 775 INSTALL_INFO= MAKEINFO=/home/pbulk/build/sysutils/htop/work/.tools/bin/makeinfo FLEX= BISON= ITSTOOL=/home/pbulk/build/sysutils/htop/work/.tools/bin/itstool GDBUS_CODEGEN=/home/pbulk/build/sysutils/htop/work/.tools/bin/gdbus-codegen PKG_CONFIG=/home/pbulk/build/sysutils/htop/work/.tools/bin/pkg-config PKG_CONFIG_LIBDIR=/home/pbulk/build/sysutils/htop/work/.buildlink/lib/amd64/pkgconfig:/home/pbulk/build/sysutils/htop/work/.buildlink/lib/pkgconfig:/home/pbulk/build/sysutils/htop/work/.buildlink/share/pkgconfig PKG_CONFIG_LOG=/home/pbulk/build/sysutils/htop/work/.pkg-config.log PKG_CONFIG_PATH= CWRAPPERS_CONFIG_DIR=/home/pbulk/build/sysutils/htop/work/.cwrapper/config ./autogen.sh
autoreconf: export WARNINGS=all
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force 
configure.ac:677: warning: configure is generated without pkg.m4. 'make dist' target will be disabled.
autoreconf: configure.ac: tracing
configure.ac:677: warning: configure is generated without pkg.m4. 'make dist' target will be disabled.
autoreconf: configure.ac: creating directory build-aux
autoreconf: configure.ac: not using Libtool
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: /opt/pkg/bin/autoconf --force
configure.ac:677: warning: configure is generated without pkg.m4. 'make dist' target will be disabled.
autoreconf: running: /opt/pkg/bin/autoheader --force
configure.ac:677: warning: configure is generated without pkg.m4. 'make dist' target will be disabled.
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:61: installing 'build-aux/compile'
configure.ac:15: installing 'build-aux/config.guess'
configure.ac:15: installing 'build-aux/config.sub'
configure.ac:16: installing 'build-aux/install-sh'
configure.ac:16: installing 'build-aux/missing'
Makefile.am: installing './INSTALL'
Makefile.am: installing 'build-aux/depcomp'
autoreconf: Leaving directory '.'
=> 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
=> Checking for portability problems in extracted files
checking build system type... x86_64-sun-solaris2.11
checking host system type... x86_64-sun-solaris2.11
checking for a BSD-compatible install... /opt/pkg/bin/bsdinstall -c -o pbulk -g pbulk
checking whether build environment is sane... yes
checking for a race-free mkdir -p... mkdir -p
checking for gawk... /usr/bin/nawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports the include directive... yes (GNU style)
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 whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
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 wchar.h... yes
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking for gcc option to enable large file support... none needed
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 whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for sys/param.h... yes
checking for sys/time.h... yes
checking for sys/utsname.h... yes
checking for unistd.h... (cached) yes
checking for sys/mkdev.h... yes
checking for execinfo.h... yes
checking for mbstate_t... yes
checking for mode_t... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for uid_t... yes
checking for gid_t... yes
checking for uint8_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for alloc_size... yes
checking for access... yes
checking for nonnull... yes
checking for NaN support... yes
checking for library containing ceil... -lm
checking for library containing kstat_open... -lkstat
checking for library containing Pgrab_error... -lproc
checking for library containing free... none required
checking for library containing clock_gettime... none required
checking for clock_gettime... yes
checking for dladdr... yes
checking for faccessat... yes
checking for fstatat... yes
checking for host_get_clock_service... no
checking for memfd_create... no
checking for openat... yes
checking for readlinkat... yes
checking for sched_getscheduler... yes
checking for sched_setscheduler... yes
checking for strchrnul... yes
checking for wnoutrefresh in -lncurses6... no
checking for doupdate in -lncurses6... no
checking for doupdate in -lncurses... yes
checking for curses.h... yes
checking for ncurses/term.h... yes
checking for library containing keypad... none required
checking for set_escdelay... yes
checking for getmouse... yes
checking for usable sched_setaffinity... no
checking for backtrace in -lunwind... no
checking for libunwind.h... no
checking for libunwind/libunwind.h... no
checking for library containing backtrace... none required
checking for cap_init in -lcap... no
checking for sys/capability.h... no
checking for sensors/sensors.h... no
checking whether C compiler accepts -Wextra-semi-stmt... no
checking whether C compiler accepts -Wimplicit-int-conversion... no
checking whether C compiler accepts -Wnull-dereference... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating htop.1
config.status: creating config.h
config.status: executing depfiles commands

  htop 3.3.0

  platform:                  solaris
  os-release file:           /etc/os-release
  (Linux) proc directory:    /proc
  (Linux) openvz:            no
  (Linux) vserver:           no
  (Linux) ancient vserver:   no
  (Linux) delay accounting:  no
  (Linux) sensors:           no
  (Linux) capabilities:      no
  unicode:                   no
  affinity:                  no
  unwind:                    no
  hwloc:                     no
  debug:                     no
  static:                    no

=> Modifying libtool scripts to use pkgsrc libtool
=> Modifying libtool scripts to use pkgsrc depcomp