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

        * JPEG_DEFAULT = jpeg

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

        * JPEGBASE (defined, but empty)
        * JPEG_TYPE = jpeg

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
`/usr/pkg/bin/bmake clean' after the changes.
==========================================================================
=> Tool dependency asciidoc-[0-9]*: found asciidoc-10.2.0nb4
=> Tool dependency glib2-tools-[0-9]*: found glib2-tools-2.76.4
=> Tool dependency libtool-base>=2.4.2nb9: found libtool-base-2.4.7nb1
=> Tool dependency mktools-[0-9]*: found mktools-20220614
=> Tool dependency automake>=1.9: found automake-1.16.5nb3
=> Tool dependency autoconf>=2.58: found autoconf-2.71nb2
=> Tool dependency nbpatch-[0-9]*: found nbpatch-20151107
=> Tool dependency pax>=20040802: found pax-20210219
=> Tool dependency pkgconf-[0-9]*: found pkgconf-1.9.5
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency xorgproto>=2016.1: found xorgproto-2023.2
=> Build dependency xcb-proto>=1.4: found xcb-proto-1.15.2nb2
=> Build dependency gcc8>=8.4.0nb6: found gcc8-8.5.0
=> Full dependency libarchive>=3.3.1: found libarchive-3.4.3
=> Full dependency pango>=1.50.12nb1: found pango-1.50.14
=> Full dependency cairo>=1.16.0nb9: found cairo-1.16.0nb9
=> Full dependency leptonica>=1.82.0nb2: found leptonica-1.83.1
=> Full dependency icu>=73.1: found icu-73.2
===> Overriding tools for tesseract-5.3.1nb1
===> Extracting for tesseract-5.3.1nb1
/bin/mv /home/pbulk/build/graphics/tesseract/work/tessdata_best-4.1.0/*.traineddata /home/pbulk/build/graphics/tesseract/work/tesseract-5.3.1/tessdata/
/bin/mv /home/pbulk/build/graphics/tesseract/work/tessdata_best-4.1.0/script /home/pbulk/build/graphics/tesseract/work/tesseract-5.3.1/tessdata/
===> Patching for tesseract-5.3.1nb1
=> Applying pkgsrc patches for tesseract-5.3.1nb1
=> Verifying /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/graphics/tesseract/patches/patch-CMakeLists.txt
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/graphics/tesseract/patches/patch-CMakeLists.txt
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-CMakeLists.txt,v 1.2 2023/01/30 07:57:28 adam Exp $
|
|Avoid C++ <version> issue on case-insensitive file systems.
|
|--- CMakeLists.txt.orig	2022-12-22 13:57:57.000000000 +0000
|+++ CMakeLists.txt
--------------------------
Patching file CMakeLists.txt using Plan A...
Hunk #1 succeeded at 48.
done
=> Verifying /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/graphics/tesseract/patches/patch-tessdata_Makefile.am
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-el7-trunk-x86_64/graphics/tesseract/patches/patch-tessdata_Makefile.am
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-tessdata_Makefile.am,v 1.4 2019/07/08 18:37:03 adam Exp $
|
|Revert a trunk commit that broke install-lang for tesseract<4.
|
|--- tessdata/Makefile.am.orig	2019-07-07 12:34:08.000000000 +0000
|+++ tessdata/Makefile.am
--------------------------
Patching file tessdata/Makefile.am using Plan A...
Hunk #1 succeeded at 7.
done
===> Creating toolchain wrappers for tesseract-5.3.1nb1
===> Configuring for tesseract-5.3.1nb1
cd /home/pbulk/build/graphics/tesseract/work/tesseract-5.3.1 && /bin/env LIBLEPT_HEADERSDIR=/usr/pkg/include FREETYPE_CONFIG=/usr/pkg/bin/freetype-config PTHREAD_CFLAGS=\ -pthread\  PTHREAD_LDFLAGS=\ -pthread PTHREAD_LIBS=-lpthread\ -lrt PTHREADBASE=/usr LIBTOOL="/home/pbulk/build/graphics/tesseract/work/.cwrapper/bin/libtool " INSTALL_INFO= MAKEINFO=/home/pbulk/build/graphics/tesseract/work/.tools/bin/makeinfo FLEX= BISON= ITSTOOL=/home/pbulk/build/graphics/tesseract/work/.tools/bin/itstool GDBUS_CODEGEN=/home/pbulk/build/graphics/tesseract/work/.tools/bin/gdbus-codegen AWK=/bin/gawk CAT=/bin/cat ac_cv_path_CAT=/bin/cat CHMOD=/bin/chmod CMP=/bin/cmp CP=/bin/cp DIFF=/bin/diff ECHO=echo ac_cv_path_ECHO=echo EGREP=/bin/egrep ac_cv_path_EGREP=/bin/egrep SETENV=/bin/env ENV_PROG=/bin/env ac_cv_path_ENV=/bin/env FALSE=false ac_cv_path_FALSE=false FIND=/bin/find GREP=/bin/grep ac_cv_path_GREP=/bin/grep HOSTNAME=/bin/hostname LN=/bin/ln LS=/bin/ls MKDIR=/bin/mkdir\ -p MV=/bin/mv RM=/bin/rm RMDIR=/bin/rmdir SED=/bin/sed SORT=/bin/sort TAR=/bin/tar TEST=test ac_cv_path_TEST=test TOUCH=/bin/touch TR=/bin/tr TRUE=true ac_cv_path_TRUE=true PKG_CONFIG=/home/pbulk/build/graphics/tesseract/work/.tools/bin/pkg-config PKG_CONFIG_LIBDIR=/home/pbulk/build/graphics/tesseract/work/.buildlink/lib64/pkgconfig:/home/pbulk/build/graphics/tesseract/work/.buildlink/lib/pkgconfig:/home/pbulk/build/graphics/tesseract/work/.buildlink/share/pkgconfig PKG_CONFIG_LOG=/home/pbulk/build/graphics/tesseract/work/.pkg-config.log PKG_CONFIG_PATH= MAKE=make DL_CFLAGS= DL_LDFLAGS= DL_LIBS= gt_cv_func_gnugettext_libc="yes" gt_cv_func_gnugettext1_libc="yes" gt_cv_func_gnugettext2_libc="yes" CWRAPPERS_CONFIG_DIR=/home/pbulk/build/graphics/tesseract/work/.cwrapper/config CC=cc CFLAGS=-pipe\ -O2\ -D_FORTIFY_SOURCE=2\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/freetype2\ -I/usr/pkg/include/glib-2.0\ -I/usr/pkg/include/gio-unix-2.0\ -I/usr/pkg/lib/glib-2.0/include\ -I/usr/pkg/include/harfbuzz CPPFLAGS=-I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/freetype2\ -I/usr/pkg/include/glib-2.0\ -I/usr/pkg/include/gio-unix-2.0\ -I/usr/pkg/lib/glib-2.0/include\ -I/usr/pkg/include/harfbuzz CXX=c++ CXXFLAGS=-pipe\ -O2\ -D_FORTIFY_SOURCE=2\ -I/usr/pkg/include\ -I/usr/include\ -I/usr/pkg/include/freetype2\ -I/usr/pkg/include/glib-2.0\ -I/usr/pkg/include/gio-unix-2.0\ -I/usr/pkg/lib/glib-2.0/include\ -I/usr/pkg/include/harfbuzz COMPILER_RPATH_FLAG=-Wl,-R F77=gfortran FC=gfortran FFLAGS=-O LANG=C LC_ALL=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LDFLAGS=-L/usr/pkg/gcc8/lib/gcc/x86_64-redhat-linux/8.5.0\ -Wl,-R/usr/pkg/gcc8/lib/gcc/x86_64-redhat-linux/8.5.0\ -L/usr/pkg/gcc8/lib64\ -Wl,-R/usr/pkg/gcc8/lib64\ -Wl,-zrelro\ -L/usr/pkg/lib\ -Wl,-R/usr/pkg/lib\ -L/usr/lib64\ -Wl,-R/usr/lib64 LINKER_RPATH_FLAG=-R PATH=/home/pbulk/build/graphics/tesseract/work/.cwrapper/bin:/home/pbulk/build/graphics/tesseract/work/.buildlink/bin:/home/pbulk/build/graphics/tesseract/work/.gcc/bin:/home/pbulk/build/graphics/tesseract/work/.tools/bin:/usr/pkg/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/pkg/bin:/usr/pkg/bin PREFIX=/usr/pkg MAKELEVEL=0 CONFIG_SITE= PKG_SYSCONFDIR=/usr/pkg/etc HOME=/home/pbulk/build/graphics/tesseract/work/.home CWRAPPERS_CONFIG_DIR=/home/pbulk/build/graphics/tesseract/work/.cwrapper/config CONFIG_SHELL=/bin/bash LIBS= ac_given_INSTALL=/bin/install\ -c\ -o\ pbulk\ -g\ pbulk lt_cv_sys_max_cmd_len=2097152 /bin/bash ./autogen.sh
Running aclocal
Running /usr/pkg/bin/libtoolize
/bin/rm: cannot remove 'config/ltmain.sh': No such file or directory
/bin/rm: cannot remove 'config/ltmain.sh': No such file or directory
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'.
libtoolize: copying file 'config/ltmain.sh'
/bin/rm: cannot remove 'm4/libtool.m4': No such file or directory
/bin/rm: cannot remove 'm4/libtool.m4': No such file or directory
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
/bin/rm: cannot remove 'm4/ltoptions.m4': No such file or directory
/bin/rm: cannot remove 'm4/ltoptions.m4': No such file or directory
libtoolize: copying file 'm4/ltoptions.m4'
/bin/rm: cannot remove 'm4/ltsugar.m4': No such file or directory
/bin/rm: cannot remove 'm4/ltsugar.m4': No such file or directory
libtoolize: copying file 'm4/ltsugar.m4'
/bin/rm: cannot remove 'm4/ltversion.m4': No such file or directory
/bin/rm: cannot remove 'm4/ltversion.m4': No such file or directory
libtoolize: copying file 'm4/ltversion.m4'
/bin/rm: cannot remove 'm4/lt~obsolete.m4': No such file or directory
/bin/rm: cannot remove 'm4/lt~obsolete.m4': No such file or directory
libtoolize: copying file 'm4/lt~obsolete.m4'
Running aclocal
Running autoconf
Running autoheader
Running automake --add-missing --copy
configure.ac:425: installing 'config/compile'
configure.ac:89: installing 'config/config.guess'
configure.ac:89: installing 'config/config.sub'
configure.ac:27: installing 'config/install-sh'
configure.ac:27: installing 'config/missing'
Makefile.am: installing 'config/depcomp'
parallel-tests: installing 'config/test-driver'

All done.
To build the software now, do something like:

$ ./configure [--enable-debug] [...other options]
/bin/mv /home/pbulk/build/graphics/tesseract/work/tesseract-5.3.1/VERSION /home/pbulk/build/graphics/tesseract/work/tesseract-5.3.1/VERSION.txt
=> 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
=> Replacing bash interpreter in src/training/*.sh.
WARNING: [replace-interpreter] Skipping non-existent file "src/training/*.sh".
=> Checking for portability problems in extracted files
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 the compiler supports GNU C++... yes
checking whether c++ accepts -g... yes
checking for c++ option to enable C++11 features... none needed
checking for a BSD-compatible install... /bin/install -c -o pbulk -g pbulk
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /home/pbulk/build/graphics/tesseract/work/.tools/bin/mkdir -p
checking for gawk... /bin/gawk
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 c++... gcc3
checking for a sed that does not truncate output... /bin/sed
checking Major version... 5
checking Minor version... 3
checking Point version... 1
checking whether make supports nested variables... (cached) yes
checking build system type... x86_64-redhat-linux-gnu
checking host system type... x86_64-redhat-linux-gnu
checking whether C++ compiler accepts -Werror=unused-command-line-argument... no
checking whether C++ compiler accepts -mavx... yes
checking whether C++ compiler accepts -mavx2... yes
checking whether C++ compiler accepts -mavx512f... yes
checking whether C++ compiler accepts -mfma... yes
checking whether C++ compiler accepts -msse4.1... yes
checking for feenableexcept... yes
checking whether C++ compiler accepts -fopenmp-simd... yes
checking --enable-float32 argument... 
checking --enable-graphics argument... 
checking --enable-legacy argument... 
checking for c++ option to support OpenMP... -fopenmp
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for tiffio.h... yes
checking --enable-opencl argument... 
checking for tensorflow/core/framework/graph.pb.h... no
checking --enable-visibility argument... 
checking whether to use tessdata-prefix... yes
checking if compiling with clang... no
checking whether to enable debugging... 
checking how to print strings... printf
checking for x86_64-redhat-linux-gcc... cc
checking whether the compiler supports GNU C... yes
checking whether cc accepts -g... yes
checking for cc option to enable C11 features... none needed
checking whether cc understands -c and -o together... yes
checking dependency style of cc... gcc3
checking for a sed that does not truncate output... (cached) /bin/sed
checking for grep that handles long lines and -e... (cached) /bin/grep
checking for egrep... (cached) /bin/egrep
checking for fgrep... /bin/grep -F
checking for ld used by cc... /home/pbulk/build/graphics/tesseract/work/.cwrapper/bin/ld
checking if the linker (/home/pbulk/build/graphics/tesseract/work/.cwrapper/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /bin/nm -B
checking the name lister (/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... (cached) 2097152
checking how to convert x86_64-redhat-linux-gnu file names to x86_64-redhat-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-redhat-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /home/pbulk/build/graphics/tesseract/work/.cwrapper/bin/ld option to reload object files... -r
checking for x86_64-redhat-linux-file... no
checking for file... file
checking for x86_64-redhat-linux-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-redhat-linux-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64-redhat-linux-ar... no
checking for ar... ar
checking for archiver @FILE support... @
checking for x86_64-redhat-linux-strip... no
checking for strip... strip
checking for x86_64-redhat-linux-ranlib... no
checking for ranlib... ranlib
checking command to parse /bin/nm -B output from cc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for x86_64-redhat-linux-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... /bin/rm: cannot remove 'conftest*': No such file or directory
yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/home/pbulk/build/graphics/tesseract/work/.cwrapper/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... /bin/rm: cannot remove 'conftest*': No such file or directory
no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... c++ -E
checking for ld used by c++... /home/pbulk/build/graphics/tesseract/work/.cwrapper/bin/ld -m elf_x86_64
checking if the linker (/home/pbulk/build/graphics/tesseract/work/.cwrapper/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the c++ linker (/home/pbulk/build/graphics/tesseract/work/.cwrapper/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for c++ option to produce PIC... -fPIC -DPIC
checking if c++ PIC flag -fPIC -DPIC works... yes
checking if c++ static flag -static works... no
checking if c++ supports -c -o file.o... /bin/rm: cannot remove 'conftest*': No such file or directory
yes
checking if c++ supports -c -o file.o... (cached) yes
checking whether the c++ linker (/home/pbulk/build/graphics/tesseract/work/.cwrapper/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether C++ compiler accepts -std=c++17... yes
checking whether C++ compiler accepts -std=c++20... no
checking for library containing pthread_create... -lpthread
checking for brew... false
checking for asciidoc... true
checking for xsltproc... true
checking for wchar_t... yes
checking for long long int... yes
checking pkg-config is at least version 0.9.0... yes
checking for libcurl... no
checking for lept >= 1.74... yes
checking for libarchive... yes
checking for icu-uc >= 52.1... yes
checking for icu-i18n >= 52.1... yes
checking for pango >= 1.38.0... yes
checking for cairo... yes
checking for pangocairo... yes
checking for pangoft2... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating include/tesseract/version.h
config.status: creating Makefile
config.status: creating tesseract.pc
config.status: creating tessdata/Makefile
config.status: creating tessdata/configs/Makefile
config.status: creating tessdata/tessconfigs/Makefile
config.status: creating java/Makefile
config.status: creating java/com/Makefile
config.status: creating java/com/google/Makefile
config.status: creating java/com/google/scrollview/Makefile
config.status: creating java/com/google/scrollview/events/Makefile
config.status: creating java/com/google/scrollview/ui/Makefile
config.status: creating include/config_auto.h
config.status: executing depfiles commands
config.status: executing libtool commands
/bin/rm: cannot remove 'libtoolT': No such file or directory

Configuration is done.
You can now build and install tesseract by running:

$ make
$ sudo make install
$ sudo ldconfig

This will also build the documentation.

Training tools can be built and installed with:

$ make training
$ sudo make training-install

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