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

        * CURSES_DEFAULT = ncurses

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

        * CURSES_TYPE = ncurses
        * TERMCAP_TYPE = curses

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 gmake>=3.81: found gmake-4.4.1
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Full dependency libusb1>=1.0.9: found libusb1-1.0.27
=> Full dependency readline>=6.0: found readline-8.2nb2
=> Full dependency ncurses>=5.3nb1: found ncurses-6.5
===> Overriding tools for hamlib-4.6
===> Extracting for hamlib-4.6
===> Patching for hamlib-4.6
=> Applying pkgsrc patches for hamlib-4.6
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/ham/hamlib/patches/patch-include_hamlib_rig.h
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/ham/hamlib/patches/patch-include_hamlib_rig.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-include_hamlib_rig.h,v 1.1 2024/12/26 13:17:27 gdt Exp $
|
|rig.h uses va_list without first include stdarg.h, as POSIX requires:
|  https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/stdarg.h.html
|
|https://github.com/Hamlib/Hamlib/issues/1644
|
|--- include/hamlib/rig.h.orig	2024-12-26 12:58:56.497059287 +0000
|+++ include/hamlib/rig.h
--------------------------
Patching file include/hamlib/rig.h using Plan A...
Hunk #1 succeeded at 36.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/ham/hamlib/patches/patch-src_network.c
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/ham/hamlib/patches/patch-src_network.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_network.c,v 1.2 2021/09/15 22:52:46 gdt Exp $
|
|Add include for FIONREAD on SunOS
|
|\todo File this patch upstream and include bugtracker URL.
|
|--- src/network.c.orig	2021-09-13 23:33:26.000000000 +0000
|+++ src/network.c
--------------------------
Patching file src/network.c using Plan A...
Hunk #1 succeeded at 44 (offset -2 lines).
done
===> Creating toolchain wrappers for hamlib-4.6
===> Configuring for hamlib-4.6
=> 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 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 we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... (cached) /usr/xpg4/bin/grep
checking for egrep... (cached) /usr/xpg4/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
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 thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... /usr/bin/nawk
checking whether make sets $(MAKE)... yes
checking whether make supports the include directive... yes (GNU style)
checking whether make supports nested variables... yes
checking dependency style of gcc... gcc3
checking whether make supports nested variables... (cached) yes
checking for x86_64-sun-solaris2.11-gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C preprocessor... gcc -E
checking for gawk... (cached) /usr/bin/nawk
checking whether ln -s works... yes
checking for g++... yes
checking for x86_64-sun-solaris2.11-ar... no
checking for x86_64-sun-solaris2.11-lib... no
checking for x86_64-sun-solaris2.11-link... no
checking for ar... ar
checking the archiver (ar) interface... ar
checking for inline... inline
checking AM_CFLAGS for maximum warnings... -Wall
checking AM_CXXFLAGS for maximum warnings... -Wall
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking sgtty.h usability... yes
checking sgtty.h presence... yes
checking for sgtty.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking termio.h usability... yes
checking termio.h presence... yes
checking for termio.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking values.h usability... yes
checking values.h presence... yes
checking for values.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking dev/ppbus/ppbconf.hdev/ppbus/ppi.h usability... no
checking dev/ppbus/ppbconf.hdev/ppbus/ppi.h presence... no
checking for dev/ppbus/ppbconf.hdev/ppbus/ppi.h... no
checking linux/hidraw.h usability... no
checking linux/hidraw.h presence... no
checking for linux/hidraw.h... no
checking linux/ioctl.h usability... no
checking linux/ioctl.h presence... no
checking for linux/ioctl.h... no
checking linux/parport.h usability... no
checking linux/parport.h presence... no
checking for linux/parport.h... no
checking linux/ppdev.h usability... no
checking linux/ppdev.h presence... no
checking for linux/ppdev.h... no
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking sys/ioccom.h usability... yes
checking sys/ioccom.h presence... yes
checking for sys/ioccom.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for sys/stat.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking glob.h usability... yes
checking glob.h presence... yes
checking for glob.h... yes
checking build system type... x86_64-sun-solaris2.11
checking host system type... x86_64-sun-solaris2.11
checking ws2tcpip.h usability... no
checking ws2tcpip.h presence... no
checking for ws2tcpip.h... no
checking wspiapi.h usability... no
checking wspiapi.h presence... no
checking for wspiapi.h... no
checking for library containing nanosleep... none required
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for sys/types.h... (cached) yes
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking for winioctl.h... no
checking for winbase.h... no
checking for getopt... yes
checking for getopt_long... yes
checking for usleep... yes
checking for sleep... yes
checking for nanosleep... yes
checking for gettimeofday... yes
checking for struct timezone... yes
checking for ssize_t... yes
checking for getopt... (cached) yes
checking for getopt_long... (cached) yes
checking for usleep... (cached) yes
checking for gettimeofday... (cached) yes
checking for Sleep... no
checking whether pthreads work with -pthreads... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... -D_REENTRANT
checking for PTHREAD_PRIO_INHERIT... yes
checking POSIX termios... yes
checking for size_t... yes
checking for siginfo_t... yes
checking for sig_atomic_t... yes
checking for sin... no
checking for connect... no
checking for main in -lsocket... yes
checking for gethostbyname... no
checking for main in -lnsl... yes
checking for gethostbyname... (cached) no
checking for main in -lws2_32... no
checking for timeBeginPeriod... no
checking for main in -lwinmm... no
checking for struct addrinfo... yes
checking whether gai_strerror is declared... yes
checking for getaddrinfo... (cached) yes
checking for cfmakeraw... no
checking for floor... no
checking for getpagesize... yes
checking for getpagesize... (cached) yes
checking for gettimeofday... (cached) yes
checking for inet_ntoa... yes
checking for ioctl... yes
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for pow... no
checking for rint... no
checking for select... yes
checking for setitimer... yes
checking for setlocale... yes
checking for sigaction... yes
checking for signal... yes
checking for snprintf... yes
checking for socket... no
checking for sqrt... no
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtol... yes
checking for glob... yes
checking for socketpair... no
checking for working alloca.h... yes
checking for alloca... yes
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/xpg4/bin/grep -F
checking for ld used by gcc... /bin/ld
checking if the linker (/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -p
checking the name lister (/usr/bin/nm -p) interface... BSD nm
checking the maximum length of command line arguments... 786240
checking how to convert x86_64-sun-solaris2.11 file names to x86_64-sun-solaris2.11 format... func_convert_file_noop
checking how to convert x86_64-sun-solaris2.11 file names to toolchain format... func_convert_file_noop
checking for /bin/ld option to reload object files... -r
checking for x86_64-sun-solaris2.11-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-sun-solaris2.11-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64-sun-solaris2.11-ar... ar
checking for archiver @FILE support... no
checking for x86_64-sun-solaris2.11-strip... no
checking for strip... strip
checking for x86_64-sun-solaris2.11-ranlib... no
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -p output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for x86_64-sun-solaris2.11-mt... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... rm: conftest*: No such file or directory
yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/bin/ld -64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... rm: conftest*: No such file or directory
no
checking dynamic linker characteristics... solaris2.11 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /bin/ld -64
checking if the linker (/bin/ld -64) is GNU ld... no
checking whether the g++ linker (/bin/ld -64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... rm: conftest*: No such file or directory
yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/bin/ld -64) supports shared libraries... yes
checking dynamic linker characteristics... solaris2.11 ld.so
checking how to hardcode library paths into programs... immediate
checking for x86_64-sun-solaris2.11-windres... no
checking for windres... no
checking whether C99 struct/array initializers are supported... yes
checking whether to build USB dependent backends... yes
checking for libusb_init in -lusb-1.0... yes
checking libusb.h usability... no
checking libusb.h presence... no
checking for libusb.h... no
checking libusb-1.0/libusb.h usability... yes
checking libusb-1.0/libusb.h presence... yes
checking for libusb-1.0/libusb.h... yes
checking whether to use readline in rigctl/rotctl... yes
checking for a readline compatible library... -lreadline
checking readline.h usability... no
checking readline.h presence... no
checking for readline.h... no
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking whether readline supports history... yes
checking history.h usability... no
checking history.h presence... no
checking for history.h... no
checking readline/history.h usability... yes
checking readline/history.h presence... yes
checking for readline/history.h... yes
checking whether to use INDI in rigctl/rotctl... checking whether to build HTML rig feature matrix... check
checking gd.h usability... no
checking gd.h presence... no
checking for gd.h... no
checking whether to build rigmem XML support... no
checking whether to build USRP backend... no
checking whether to build C++ binding... yes
checking whether to build perl binding... no
checking whether to build python binding... no
checking Whether to build Tcl bindings... no
checking whether to build lua binding... no
checking whether to build bindings... no
checking whether to build winradio backend... yes
checking whether to build parallel port devices... yes
checking for dlopen in -ldl... yes
checking for dlfcn.h... (cached) yes
checking whether g++ supports C++11 features with -std=c++11... yes
Build_OS is solaris2.11
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating macros/Makefile
config.status: creating include/Makefile
config.status: creating lib/Makefile
config.status: creating src/Makefile
config.status: creating security/Makefile
config.status: creating c++/Makefile
config.status: creating bindings/Makefile
config.status: creating doc/Makefile
config.status: creating doc/hamlib.cfg
config.status: creating rotators/amsat/Makefile
config.status: creating rotators/apex/Makefile
config.status: creating rotators/ars/Makefile
config.status: creating rotators/celestron/Makefile
config.status: creating rotators/cnctrk/Makefile
config.status: creating rotators/grbltrk/Makefile
config.status: creating rotators/easycomm/Makefile
config.status: creating rotators/ether6/Makefile
config.status: creating rotators/flir/Makefile
config.status: creating rotators/fodtrack/Makefile
config.status: creating rotators/gs232a/Makefile
config.status: creating rotators/heathkit/Makefile
config.status: creating rotators/ioptron/Makefile
config.status: creating rotators/m2/Makefile
config.status: creating rotators/meade/Makefile
config.status: creating rotators/prosistel/Makefile
config.status: creating rotators/rotorez/Makefile
config.status: creating rotators/sartek/Makefile
config.status: creating rotators/saebrtrack/Makefile
config.status: creating rotators/spid/Makefile
config.status: creating rotators/ts7400/Makefile
config.status: creating rotators/indi/Makefile
config.status: creating rotators/satel/Makefile
config.status: creating rotators/skywatcher/Makefile
config.status: creating rotators/radant/Makefile
config.status: creating rigs/adat/Makefile
config.status: creating rigs/alinco/Makefile
config.status: creating rigs/aor/Makefile
config.status: creating rigs/barrett/Makefile
config.status: creating rigs/codan/Makefile
config.status: creating rigs/commradio/Makefile
config.status: creating rigs/dorji/Makefile
config.status: creating rigs/drake/Makefile
config.status: creating rigs/dummy/Makefile
config.status: creating rigs/elad/Makefile
config.status: creating rigs/flexradio/Makefile
config.status: creating rigs/icmarine/Makefile
config.status: creating rigs/icom/Makefile
config.status: creating rigs/jrc/Makefile
config.status: creating rigs/kachina/Makefile
config.status: creating rigs/kenwood/Makefile
config.status: creating rigs/kit/Makefile
config.status: creating rigs/lowe/Makefile
config.status: creating rigs/pcr/Makefile
config.status: creating rigs/prm80/Makefile
config.status: creating rigs/racal/Makefile
config.status: creating rigs/rft/Makefile
config.status: creating rigs/rs/Makefile
config.status: creating rigs/skanti/Makefile
config.status: creating rigs/tapr/Makefile
config.status: creating rigs/tentec/Makefile
config.status: creating rigs/tuner/Makefile
config.status: creating rigs/uniden/Makefile
config.status: creating rigs/winradio/Makefile
config.status: creating rigs/wj/Makefile
config.status: creating rigs/yaesu/Makefile
config.status: creating rigs/gomspace/Makefile
config.status: creating rigs/mds/Makefile
config.status: creating rigs/anytone/Makefile
config.status: creating rigs/motorola/Makefile
config.status: creating tests/Makefile
config.status: creating scripts/Makefile
config.status: creating android/Makefile
config.status: creating amplifiers/elecraft/Makefile
config.status: creating amplifiers/gemini/Makefile
config.status: creating amplifiers/expert/Makefile
config.status: creating simulators/Makefile
config.status: creating hamlib.pc
config.status: creating include/hamlib/config.h
config.status: executing depfiles commands
config.status: executing libtool commands
rm: libtoolT: No such file or directory
----------------------------------------------------------------------

 Hamlib Version 4.6 configuration:

 Prefix 	/opt/pkg
 Preprocessor	gcc -E -I/opt/pkg/include -I/opt/pkg/include/ncurses
 C Compiler	gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/ncurses 
 C++ Compiler	g++ -std=c++11 -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -I/opt/pkg/include/ncurses

 Package features:
    With C++ binding		    yes
    With Perl binding		    no
    With Python binding 	    no
    With TCL binding		    no
    With Lua binding		    no
    With rigmem XML support	    no
    With Readline support	    yes
    With INDI support		    no

    Enable HTML rig feature matrix  no
    Enable WinRadio		    yes
    Enable Parallel		    yes
    Enable USRP 		    no
    Enable USB backends 	    yes
    Enable shared libs		    yes
    Enable static libs		    no

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