+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent PYTHON_VERSION_REQD=39 WRKLOG=/tmp/bulklog/mold-1.3.0/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent PYTHON_VERSION_REQD=39 WRKLOG=/tmp/bulklog/mold-1.3.0/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Checksum BLAKE2s OK for mold-1.3.0.tar.gz
=> Checksum SHA512 OK for mold-1.3.0.tar.gz
===> Installing dependencies for mold-1.3.0
==========================================================================
The following variables will affect the build process of this package,
mold-1.3.0.  Their current value is shown below:

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

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

        * PYPACKAGE = python39

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 mktools-[0-9]*: found mktools-20220614
=> Tool dependency gmake>=3.81: found gmake-4.3nb3
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency python39>=3.9.0: found python39-3.9.13
=> Full dependency mimalloc>=2.0.2: found mimalloc-2.0.6
=> Full dependency zlib>=1.2.3: found zlib-1.2.12nb1
=> Full dependency openssl>=1.1.1dnb2: found openssl-1.1.1o
===> Overriding tools for mold-1.3.0
===> Extracting for mold-1.3.0
===> Patching for mold-1.3.0
=> Applying pkgsrc patches for mold-1.3.0
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/devel/mold/patches/patch-Makefile
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/devel/mold/patches/patch-Makefile
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-Makefile,v 1.10 2022/06/18 14:23:13 fcambus Exp $
|
|- Do not hard-code -pthread, as it is handled by the pkgsrc infrastructure.
|- Do not hard-code -ldl
|
|--- Makefile.orig	2022-06-18 03:29:18.000000000 +0000
|+++ Makefile
--------------------------
Patching file Makefile using Plan A...
Hunk #1 succeeded at 42.
done
===> Creating toolchain wrappers for mold-1.3.0
===> Configuring for mold-1.3.0
[ -h "/home/pbulk/build/devel/mold/work/.buildlink/bin/python3" ] || /usr/bin/ln -s /opt/pkg/bin/python3.9 "/home/pbulk/build/devel/mold/work/.buildlink/bin/python3"
=> Checking for portability problems in extracted files