+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/local/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/qemacs-6.3.2/work.log
+ su pbulk -c '"$@"' make /opt/local/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/qemacs-6.3.2/work.log
=> Checksum BLAKE2s OK for qemacs-6.3.2-07164c95b96b78e515224b384bd266e612262c6c.tar.gz
=> Checksum SHA512 OK for qemacs-6.3.2-07164c95b96b78e515224b384bd266e612262c6c.tar.gz
===> Installing dependencies for qemacs-6.3.2
==========================================================================
The supported build options for qemacs are:

	x11

The currently selected options are:

	x11

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

	PKG_OPTIONS.qemacs (not defined)

==========================================================================
=> 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
=> Build dependency gcc13>=13.1.0: found gcc13-13.3.0
=> Full dependency gcc13-libs>=13.2.0: found gcc13-libs-13.3.0
=> Full dependency libX11>=1.1: found libX11-1.8.10
=> Full dependency png>=1.6.0nb1: found png-1.6.44
=> Build dependency xcb-proto>=1.4: found xcb-proto-1.17.0nb4
=> Build dependency xorgproto>=2016.1: found xorgproto-2024.1
=> Full dependency libXau>=1.0: found libXau-1.0.12
=> Full dependency libXdmcp>=0.99: found libXdmcp-1.1.5
=> Full dependency libxcb>=1.6: found libxcb-1.17.0
=> Full dependency zlib>=1.1.4: found zlib-1.3.1
===> Overriding tools for qemacs-6.3.2
===> Extracting for qemacs-6.3.2
===> Patching for qemacs-6.3.2
=> Applying pkgsrc patches for qemacs-6.3.2
=> Verifying /data/jenkins/workspace/pkgsrc-trunk-x86_64/editors/qemacs/patches/patch-tty.c
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-trunk-x86_64/editors/qemacs/patches/patch-tty.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-tty.c,v 1.1 2023/11/19 13:00:26 bacon Exp $
|
|Use fwrite on NetBSD as well.
|
|--- tty.c.orig	2023-03-09 11:57:59.000000000 +0000
|+++ tty.c
--------------------------
Patching file tty.c using Plan A...
Hunk #1 succeeded at 87.
done
===> Creating toolchain wrappers for qemacs-6.3.2
/usr/bin/sed  -e '/^#/d'  -e 's,@LINK_ARCH_DEFAULT@,link_arch64,g'  -e 's,@LINK_LIBGCC_DEFAULT@,link_libgcc_arch64,g'  -e 's,@LIBGCC_PREFIX@,/opt/local/gcc13/x86_64-sun-solaris2.11,g'  < ../../extra/gcc13-libs/files/specs.pkgsrc  > /home/pbulk/build/editors/qemacs/work/.cwrapper/specs.pkgsrc
===> Configuring for qemacs-6.3.2
./configure: line 212: test: too many arguments
VERSION             6.3.2
Install prefix      /opt/local
Shared data dir     /opt/local/share
Manpages dir        /opt/local/man
Source path         /home/pbulk/build/editors/qemacs/work/qemacs-07164c95b96b78e515224b384bd266e612262c6c
C compiler          clang
  version           gcc (GCC) 13.3.0
  cpu               x86
  targetos          SunOS
Tiny build          no
X11 support         yes
Xvideo support      no
XShm support        no
libpng support      yes
FFMPEG support      no
Graphical HTML      yes
Memory mapped files yes
Unlocked I/O        yes
Plugins support     yes
Bidir support       yes
All kmaps           yes
All modes           yes
Build doc files     yes

Creating config.mak and config.h