+ 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/nodejs-18.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/nodejs-18.3.0/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Checksum BLAKE2s OK for node-v18.3.0.tar.xz
=> Checksum SHA512 OK for node-v18.3.0.tar.xz
===> Installing dependencies for nodejs-18.3.0
==========================================================================
The supported build options for nodejs are:

	dtrace openssl

The currently selected options are:

	dtrace openssl

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

	PKG_OPTIONS.nodejs (not defined)

==========================================================================
==========================================================================
The following variables will affect the build process of this package,
nodejs-18.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 pkgconf-[0-9]*: found pkgconf-1.8.0
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency py39-expat>=0: found py39-expat-3.9.13
=> Build dependency python39>=3.9.0: found python39-3.9.13
=> Full dependency openssl>=1.1.1dnb2: found openssl-1.1.1o
=> Full dependency libuv>=1.41: found libuv-1.44.1nb1
=> Full dependency zlib>=1.2.3: found zlib-1.2.12nb1
=> Full dependency brotli>=1.0.1: found brotli-1.0.9
=> Full dependency icu>=71.1: found icu-71.1
=> Full dependency nghttp2>=1.45.1: found nghttp2-1.47.0nb1
===> Overriding tools for nodejs-18.3.0
===> Extracting for nodejs-18.3.0
===> Patching for nodejs-18.3.0
=> Applying pkgsrc patches for nodejs-18.3.0
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-common.gypi
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-common.gypi
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-common.gypi,v 1.10 2022/05/05 07:08:06 adam Exp $
|
|Add support for NetBSD.
|
|--- common.gypi.orig	2022-05-03 08:18:07.000000000 +0000
|+++ common.gypi
--------------------------
Patching file common.gypi using Plan A...
Hunk #1 succeeded at 394.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-deps_cares_cares.gyp
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-deps_cares_cares.gyp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-deps_cares_cares.gyp,v 1.2 2019/08/03 07:31:15 adam Exp $
|
|Add support for NetBSD.
|
|--- deps/cares/cares.gyp.orig	2013-03-14 10:55:24.000000000 +0900
|+++ deps/cares/cares.gyp	2013-03-14 10:55:47.000000000 +0900
--------------------------
Patching file deps/cares/cares.gyp using Plan A...
Hunk #1 succeeded at 165 (offset 25 lines).
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-deps_uv_common.gypi
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-deps_uv_common.gypi
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-deps_uv_common.gypi,v 1.4 2018/05/03 21:19:16 fhajny Exp $
|
|Add support for NetBSD.
|
|--- deps/uv/common.gypi.orig	2018-04-24 14:41:22.000000000 +0000
|+++ deps/uv/common.gypi
--------------------------
Patching file deps/uv/common.gypi using Plan A...
Hunk #1 succeeded at 135 (offset 1 line).
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-deps_uvwasi_include_wasi__serdes.h
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-deps_uvwasi_include_wasi__serdes.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-deps_uvwasi_include_wasi__serdes.h,v 1.2 2020/08/12 06:53:28 adam Exp $
|
|NetBSD<9 used to have #define uint8_t etc. which caused issues with complicated
|defines like this one.
|
|--- deps/uvwasi/include/wasi_serdes.h.orig	2020-08-11 14:32:04.000000000 +0000
|+++ deps/uvwasi/include/wasi_serdes.h
--------------------------
Patching file deps/uvwasi/include/wasi_serdes.h using Plan A...
Hunk #1 succeeded at 3.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-deps_v8_src_base_platform_platform-freebsd.cc
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-deps_v8_src_base_platform_platform-freebsd.cc
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-deps_v8_src_base_platform_platform-freebsd.cc,v 1.3 2020/01/08 22:30:38 adam Exp $
|
|Overlapping variables, taken from https://github.com/joyent/node/issues/9175
|
|--- deps/v8/src/base/platform/platform-freebsd.cc.orig	2020-01-07 22:07:49.000000000 +0000
|+++ deps/v8/src/base/platform/platform-freebsd.cc
--------------------------
Patching file deps/v8/src/base/platform/platform-freebsd.cc using Plan A...
Hunk #1 succeeded at 48 (offset 1 line).
Hunk #2 succeeded at 81 (offset 1 line).
Hunk #3 succeeded at 90 (offset 1 line).
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-deps_v8_src_base_platform_platform-openbsd.cc
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-deps_v8_src_base_platform_platform-openbsd.cc
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-deps_v8_src_base_platform_platform-openbsd.cc,v 1.3 2017/09/27 12:17:10 fhajny Exp $
|
|Add support for NetBSD/arm.
|
|--- deps/v8/src/base/platform/platform-openbsd.cc.orig	2017-09-26 21:14:30.000000000 +0000
|+++ deps/v8/src/base/platform/platform-openbsd.cc
--------------------------
Patching file deps/v8/src/base/platform/platform-openbsd.cc using Plan A...
Hunk #1 succeeded at 34.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-deps_v8_src_base_platform_platform-posix.cc
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-deps_v8_src_base_platform_platform-posix.cc
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-deps_v8_src_base_platform_platform-posix.cc,v 1.9 2022/05/05 07:08:06 adam Exp $
|
|Use sysconf(_SC_THREAD_STACK_MIN) instead of PTHREAD_STACK_MIN.
|Cast explicitly.
|
|Avoid using a random hint, some low numbers cause spurious ENOMEM on netbsd
|(PR port-arm/55533)
|
|--- deps/v8/src/base/platform/platform-posix.cc.orig	2022-05-03 08:18:09.000000000 +0000
|+++ deps/v8/src/base/platform/platform-posix.cc
--------------------------
Patching file deps/v8/src/base/platform/platform-posix.cc using Plan A...
Hunk #1 succeeded at 384.
Hunk #2 succeeded at 737.
Hunk #3 succeeded at 1006.
Hunk #4 succeeded at 1026.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-deps_v8_src_base_platform_semaphore.cc
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-deps_v8_src_base_platform_semaphore.cc
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-deps_v8_src_base_platform_semaphore.cc,v 1.6 2019/12/09 20:03:51 adam Exp $
|
|Work around lack of sem_timedwait(3) in NetBSD < 6.99.4.
|Adapted from d4f11c0cf476dd854eaebec1cbacb1afc7bea18e of the Chromium V8 sources.
|
|--- deps/v8/src/base/platform/semaphore.cc.orig	2016-10-25 13:26:03.000000000 +0000
|+++ deps/v8/src/base/platform/semaphore.cc
--------------------------
Patching file deps/v8/src/base/platform/semaphore.cc using Plan A...
Hunk #1 succeeded at 12 (offset 1 line).
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-deps_v8_src_base_strings.h
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-deps_v8_src_base_strings.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-deps_v8_src_base_strings.h,v 1.1 2022/03/30 06:52:33 adam Exp $
|
|stdarg.h is needed for va_list on at least NetBSD.
|
|--- deps/v8/src/base/strings.h.orig	2022-02-08 12:37:48.000000000 +0000
|+++ deps/v8/src/base/strings.h
--------------------------
Patching file deps/v8/src/base/strings.h using Plan A...
Hunk #1 succeeded at 8.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-deps_v8_src_codegen_arm_cpu-arm.cc
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-deps_v8_src_codegen_arm_cpu-arm.cc
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-deps_v8_src_codegen_arm_cpu-arm.cc,v 1.1 2020/10/17 07:22:15 mrg Exp $
|
|port to NetBSD/arm.
|
|--- deps/v8/src/codegen/arm/cpu-arm.cc.orig	2020-10-07 10:47:41.000000000 -0700
|+++ deps/v8/src/codegen/arm/cpu-arm.cc	2020-10-17 00:16:51.732785305 -0700
--------------------------
Patching file deps/v8/src/codegen/arm/cpu-arm.cc using Plan A...
Hunk #1 succeeded at 21 (offset 2 lines).
Hunk #2 succeeded at 38 (offset 2 lines).
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-deps_v8_src_common_globals.h
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-deps_v8_src_common_globals.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-deps_v8_src_common_globals.h,v 1.1 2019/12/09 20:03:51 adam Exp $
|
|stdarg.h is needed for va_list on at least NetBSD.
|
|--- deps/v8/src/common/globals.h.orig	2019-11-19 08:29:07.000000000 +0000
|+++ deps/v8/src/common/globals.h
--------------------------
Patching file deps/v8/src/common/globals.h using Plan A...
Hunk #1 succeeded at 7.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-deps_v8_src_compiler_types.h
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-deps_v8_src_compiler_types.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-deps_v8_src_compiler_types.h,v 1.3 2019/12/09 20:03:51 adam Exp $
|
|NetBSD 6 doesn't have nearbyint/nearbyintf.
|
|--- deps/v8/src/compiler/types.h.orig	2019-11-19 08:29:07.000000000 +0000
|+++ deps/v8/src/compiler/types.h
--------------------------
Patching file deps/v8/src/compiler/types.h using Plan A...
Hunk #1 succeeded at 5.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-deps_v8_src_heap_code-range.cc
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-deps_v8_src_heap_code-range.cc
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-deps_v8_src_heap_code-range.cc,v 1.3 2022/05/05 07:08:06 adam Exp $
|
|nodejs: disable "near code ranges" on NetBSD/evbarm-aarch64 for now.
|It results in mmap(2) errors of the PR kern/55533 variety.
|
|--- deps/v8/src/heap/code-range.cc.orig	2022-05-03 08:18:09.000000000 +0000
|+++ deps/v8/src/heap/code-range.cc
--------------------------
Patching file deps/v8/src/heap/code-range.cc using Plan A...
Hunk #1 succeeded at 59.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-deps_v8_tools_run-llprof.sh
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-deps_v8_tools_run-llprof.sh
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-deps_v8_tools_run-llprof.sh,v 1.1 2015/04/30 15:04:56 ryoon Exp $
|
|POSIX shell portability.
|
|--- deps/v8/tools/run-llprof.sh.orig	2015-03-31 22:13:01.000000000 +0000
|+++ deps/v8/tools/run-llprof.sh
--------------------------
Patching file deps/v8/tools/run-llprof.sh using Plan A...
Hunk #1 succeeded at 46.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-node.gypi
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-node.gypi
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-node.gypi,v 1.1 2018/05/12 08:59:56 fhajny Exp $
|
|Linking in libcares requires libsocket.
|
|--- node.gypi.orig	2018-04-24 14:41:37.000000000 +0000
|+++ node.gypi
--------------------------
Patching file node.gypi using Plan A...
Hunk #1 succeeded at 258 (offset 7 lines).
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-src_crypto_crypto__rsa.cc
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-src_crypto_crypto__rsa.cc
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_crypto_crypto__rsa.cc,v 1.1 2022/05/27 17:02:36 tnn Exp $
|
|Fix build with old OpenSSL 1.1.1d, as in NetBSD 9.0
|
|--- src/crypto/crypto_rsa.cc.orig	2022-05-17 11:37:46.000000000 +0000
|+++ src/crypto/crypto_rsa.cc
--------------------------
Patching file src/crypto/crypto_rsa.cc using Plan A...
Hunk #1 succeeded at 12.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-src_inspector__agent.cc
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-src_inspector__agent.cc
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_inspector__agent.cc,v 1.4 2022/05/05 07:08:06 adam Exp $
|
|NetBSD support.
|
|--- src/inspector_agent.cc.orig	2022-05-03 08:18:11.000000000 +0000
|+++ src/inspector_agent.cc
--------------------------
Patching file src/inspector_agent.cc using Plan A...
Hunk #1 succeeded at 96.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-src_node__postmortem__metadata.cc
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-src_node__postmortem__metadata.cc
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_node__postmortem__metadata.cc,v 1.1 2018/03/23 21:07:53 joerg Exp $
|
|--- src/node_postmortem_metadata.cc.orig	2018-03-23 20:05:49.909811719 +0000
|+++ src/node_postmortem_metadata.cc
--------------------------
Patching file src/node_postmortem_metadata.cc using Plan A...
Hunk #1 succeeded at 12 (offset 1 line).
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-tools_gyp_pylib_gyp_generator_make.py
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-tools_gyp_pylib_gyp_generator_make.py
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-tools_gyp_pylib_gyp_generator_make.py,v 1.5 2022/03/30 06:52:33 adam Exp $
|
|Use the system libtool on Darwin.
|Add support for NetBSD and DragonFly.
|
|--- tools/gyp/pylib/gyp/generator/make.py.orig	2021-08-03 05:54:27.000000000 +0000
|+++ tools/gyp/pylib/gyp/generator/make.py
--------------------------
Patching file tools/gyp/pylib/gyp/generator/make.py using Plan A...
Hunk #1 succeeded at 205 (offset 26 lines).
Hunk #2 succeeded at 2450 (offset 115 lines).
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-tools_gyp_pylib_gyp_xcode__emulation.py
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-tools_gyp_pylib_gyp_xcode__emulation.py
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-tools_gyp_pylib_gyp_xcode__emulation.py,v 1.2 2020/10/08 10:58:35 adam Exp $
|
|Do not generate debugging symbols (uses lots of disk space).
|
|--- tools/gyp/pylib/gyp/xcode_emulation.py.orig	2020-10-07 17:47:43.000000000 +0000
|+++ tools/gyp/pylib/gyp/xcode_emulation.py
--------------------------
Patching file tools/gyp/pylib/gyp/xcode_emulation.py using Plan A...
Hunk #1 succeeded at 607 (offset -3 lines).
Hunk #2 succeeded at 1102 (offset 5 lines).
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-tools_install.py
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-tools_install.py
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-tools_install.py,v 1.8 2022/03/30 06:52:33 adam Exp $
|
|Install man pages under the right directory.
|
|--- tools/install.py.orig	2021-09-10 17:25:14.000000000 +0000
|+++ tools/install.py
--------------------------
Patching file tools/install.py using Plan A...
Hunk #1 succeeded at 153 (offset -3 lines).
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-tools_v8_gypfiles_v8.gyp
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/nodejs/patches/patch-tools_v8_gypfiles_v8.gyp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-tools_v8_gypfiles_v8.gyp,v 1.3 2022/05/05 07:08:06 adam Exp $
|
|Add -larm on netbsd arm platforms.
|
|--- tools/v8_gypfiles/v8.gyp.orig	2022-05-03 08:18:12.000000000 +0000
|+++ tools/v8_gypfiles/v8.gyp
--------------------------
Patching file tools/v8_gypfiles/v8.gyp using Plan A...
Hunk #1 succeeded at 977.
done
===> Creating toolchain wrappers for nodejs-18.3.0
===> Configuring for nodejs-18.3.0
=> Replacing python interpreter in configure tools/genv8constants.py tools/gyp/pylib/gyp/flock_tool.py.
INFO: [replace-interpreter] Nothing changed in configure.
=> Checking for portability problems in extracted files
Node.js configure: Found Python 3.9.13...
INFO: configure completed successfully