=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Checksum BLAKE2s OK for tclreadline-2.1.0.tar.gz
=> Checksum SHA512 OK for tclreadline-2.1.0.tar.gz
===> Installing dependencies for tclreadline-2.1.0nb4
==========================================================================
The following variables will affect the build process of this package,
tclreadline-2.1.0nb4.  Their current value is shown below:

        * CURSES_DEFAULT = ncurses
        * READLINE_DEFAULT = readline

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

        * CURSES_TYPE = ncurses
        * READLINE_TYPE = readline
        * 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 mktools-[0-9]*: found mktools-20220614
=> Tool dependency nbpatch-[0-9]*: found nbpatch-20151107
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Full dependency readline>=6.0: found readline-8.2nb2
=> Full dependency tcl>=8.6.1nb1: found tcl-8.6.14
===> Overriding tools for tclreadline-2.1.0nb4
===> Extracting for tclreadline-2.1.0nb4
===> Patching for tclreadline-2.1.0nb4
=> Applying pkgsrc patches for tclreadline-2.1.0nb4
=> Verifying /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/devel/tclreadline/patches/patch-tclreadline.c
=> Applying pkgsrc patch /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/devel/tclreadline/patches/patch-tclreadline.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-tclreadline.c,v 1.2 2019/01/22 14:08:48 he Exp $
|
|Some const'ness.
|Comment out two FREE() calls which now cause crashes...
|
|--- tclreadline.c.orig	2015-06-08 12:42:30.000000000 +0000
|+++ tclreadline.c
--------------------------
Patching file tclreadline.c using Plan A...
Hunk #1 succeeded at 73.
Hunk #2 succeeded at 176.
Hunk #3 succeeded at 544.
Hunk #4 succeeded at 637.
Hunk #5 succeeded at 659.
Hunk #6 succeeded at 754.
Hunk #7 succeeded at 883.
done
===> Creating toolchain wrappers for tclreadline-2.1.0nb4
===> Configuring for tclreadline-2.1.0nb4
=> Substituting "paths" in /Users/pbulk/build/devel/tclreadline/work/tclreadline-2.1.0/pkgIndex.tcl.in /Users/pbulk/build/devel/tclreadline/work/tclreadline-2.1.0/tclreadlineInit.tcl.in /Users/pbulk/build/devel/tclreadline/work/tclreadline-2.1.0/tclreadlineSetup.tcl.in
=> 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
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c -o pbulk -g staff
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... missing
checking whether make sets ${MAKE}... (cached) yes
checking host system type... aarch64-apple-darwin23
checking for gcc... clang
checking whether the C compiler (clang -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/ncurses -L/opt/pkg/lib) works... yes
checking whether the C compiler (clang -pipe -Os -I/opt/pkg/include -I/opt/pkg/include/ncurses -L/opt/pkg/lib) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether clang accepts -g... yes
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for executable suffix... no
checking build system type... aarch64-apple-darwin23
checking for ranlib... ranlib
checking for ld used by GCC... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
updating cache ./config.cache
loading cache ./config.cache within ltconfig
checking for object suffix... o
checking for executable suffix... (cached) no
checking for clang option to produce PIC... -fPIC
checking if clang PIC flag -fPIC works... yes
checking if clang supports -c -o file.o... yes
checking if clang supports -c -o file.lo... yes
checking if clang supports -fno-rtti -fno-exceptions ... yes
checking if clang static flag -static works... none
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
checking whether the linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... no
checking command to parse /usr/bin/nm -B output... ok
checking how to hardcode library paths into programs... unsupported
checking for /Library/Developer/CommandLineTools/usr/bin/ld option to reload object files... -r
checking dynamic linker characteristics... no
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
loading cache ./config.cache
checking for working const... yes
checking for a BSD compatible install... /usr/bin/install -c -o pbulk -g staff
checking for ranlib... (cached) ranlib
checking whether ln -s works... (cached) yes
checking which tclConfig.sh to use... /opt/pkg/lib/tclConfig.sh
checking for your tcl version... 8.6, patchlevel .14
checking how to run the C preprocessor... clang -E
checking for ANSI C header files... yes
checking for string.h... yes
checking where to look for tcl.h... /opt/pkg/include/tcl.h
checking for tputs in -lncurses... yes
checking where to look for readline.h... configure: error: 
  Can't find readline.h.
  Use --with-readline-includes to specify the directory
  containing readline.h on your system.
*** Error code 1

Stop.
bmake[1]: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/devel/tclreadline
*** Error code 1

Stop.
bmake: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/devel/tclreadline