+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/link-grammar-5.10.2/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/link-grammar-5.10.2/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Checksum BLAKE2s OK for link-grammar-5.10.2.tar.gz
=> Checksum SHA512 OK for link-grammar-5.10.2.tar.gz
===> Installing dependencies for link-grammar-5.10.2
=> Tool dependency libtool-base>=2.4.2nb9: found libtool-base-2.4.7nb1
=> Tool dependency mktools-[0-9]*: found mktools-20220614
=> Tool dependency gmake>=3.81: found gmake-4.4.1
=> 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
=> Full dependency argp>=1.3: found argp-1.3nb1
===> Overriding tools for link-grammar-5.10.2
===> Extracting for link-grammar-5.10.2
===> Patching for link-grammar-5.10.2
=> Applying pkgsrc patches for link-grammar-5.10.2
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/textproc/link-grammar/patches/patch-aa
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/textproc/link-grammar/patches/patch-aa
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-aa,v 1.3 2015/08/26 12:23:01 wiz Exp $
|
|Do not try to regenerate words.
|
|--- data/en/words/Makefile.in.orig	2015-02-01 05:46:07.000000000 +0000
|+++ data/en/words/Makefile.in
--------------------------
Patching file data/en/words/Makefile.in using Plan A...
Hunk #1 succeeded at 469 (offset 41 lines).
Hunk #2 succeeded at 491 (offset 3 lines).
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/textproc/link-grammar/patches/patch-configure
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/textproc/link-grammar/patches/patch-configure
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-configure,v 1.4 2020/03/30 23:20:21 gutteridge Exp $
|
|Fix compiler flag settings.
|
|--- configure.orig	2018-07-27 17:32:48.000000000 +0000
|+++ configure
--------------------------
Patching file configure using Plan A...
Hunk #1 succeeded at 18659 (offset 851 lines).
done
===> Creating toolchain wrappers for link-grammar-5.10.2
===> Configuring for link-grammar-5.10.2
=> 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
=> Adding run-time search paths to pkg-config files.
=> Checking for portability problems in extracted files
checking whether configure should try to set CFLAGS/CXXFLAGS... no
checking for a BSD-compatible install... /opt/pkg/bin/bsdinstall -c -o pbulk -g pbulk
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... /usr/bin/nawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports nested variables... (cached) yes
checking build system type... x86_64-sun-solaris2.11
checking host system type... x86_64-sun-solaris2.11
checking for x86_64-sun-solaris2.11-gcc... gcc
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 we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for C compiler vendor... gnu
checking how to run the C preprocessor... gcc -E
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -ll
checking whether yytext is a pointer... yes
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... (cached) /usr/xpg4/bin/grep
checking for egrep... (cached) /usr/xpg4/bin/grep -E
checking for fgrep... /usr/xpg4/bin/grep -F
checking for ld used by gcc... /bin/ld
checking if the linker (/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -p
checking the name lister (/usr/bin/nm -p) interface... BSD nm
checking the maximum length of command line arguments... 786240
checking how to convert x86_64-sun-solaris2.11 file names to x86_64-sun-solaris2.11 format... func_convert_file_noop
checking how to convert x86_64-sun-solaris2.11 file names to toolchain format... func_convert_file_noop
checking for /bin/ld option to reload object files... -r
checking for x86_64-sun-solaris2.11-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-sun-solaris2.11-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64-sun-solaris2.11-ar... no
checking for ar... ar
checking for archiver @FILE support... no
checking for x86_64-sun-solaris2.11-strip... no
checking for strip... strip
checking for x86_64-sun-solaris2.11-ranlib... no
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -p output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for x86_64-sun-solaris2.11-mt... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... rm: conftest*: No such file or directory
yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/bin/ld -64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... rm: conftest*: No such file or directory
no
checking dynamic linker characteristics... solaris2.11 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... no
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... g++ -E
checking for ld used by g++... /bin/ld -64
checking if the linker (/bin/ld -64) is GNU ld... no
checking whether the g++ linker (/bin/ld -64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... rm: conftest*: No such file or directory
yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/bin/ld -64) supports shared libraries... yes
checking dynamic linker characteristics... solaris2.11 ld.so
checking how to hardcode library paths into programs... immediate
checking pkg-config is at least version 0.9.0... yes
checking for an ANSI C-conforming const... yes
checking for strndup... yes
checking for strtok_r... yes
checking for sigaction... yes
checking for aligned_alloc... yes
checking for posix_memalign... yes
checking for _aligned_malloc... no
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for prctl... no
checking for thread local storage (TLS) class... _Thread_local
checking whether gcc is Clang... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking whether more special flags are required for pthreads... -D_POSIX_PTHREAD_SEMANTICS
checking for PTHREAD_PRIO_INHERIT... yes
checking for threads.h... yes
checking whether the -Werror option is usable... yes
checking for __attribute__((visibility("default"))) & __attribute__((visibility("hidden")))... yes
checking for native Win32... no
checking for Cygwin... no
checking for 64-bit Apple OSX... no
checking for locale_t in locale.h... no
checking for locale_t in xlocale.h... yes
checking xlocale.h usability... yes
checking xlocale.h presence... yes
checking for xlocale.h... yes
checking for stdatomic.h... checking for stdatomic.h... yes
checking sqlite3.h usability... no
checking sqlite3.h presence... no
checking for sqlite3.h... no
checking for hunspell... no
checking hunspell.h usability... no
checking hunspell.h presence... no
checking for hunspell.h... no
checking for aspell... no
checking aspell.h usability... no
checking aspell.h presence... no
checking for aspell.h... no
checking for new_aspell_config in -laspell... no
checking for libedit... no
configure: Checking for REGEX implementation:
checking for pcre2.h... no
checking tre/regex.h usability... no
checking tre/regex.h presence... no
checking for tre/regex.h... no
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking for regex in -lregex... no
... libregex not found, continuing
checking for regexec... yes
... found REGEX implementation: -lc
checking argp.h usability... yes
checking argp.h presence... yes
checking for argp.h... yes
checking for library containing argp_parse... -largp
checking for supported warning flags... 
checking whether gcc supports -Wstrict-prototypes... yes
checking whether gcc supports -Wmissing-prototypes... yes
checking whether gcc supports -Wformat-signedness... yes
checking whether gcc supports -Wnested-externs... yes
checking whether gcc supports -Wold-style-definition... yes
checking whether gcc supports -Werror-implicit-function-declaration... yes
checking whether gcc supports -Wall... yes
checking whether gcc supports -Wextra... yes
checking whether gcc supports -Wsign-compare... yes
checking whether gcc supports -Wpointer-arith... yes
checking whether gcc supports -Wwrite-strings... yes
checking whether gcc supports -Wmissing-declarations... yes
checking whether gcc supports -Wpacked... yes
checking whether gcc supports -Wswitch-enum... yes
checking whether gcc supports -Wmissing-format-attribute... yes
checking whether gcc supports -Wstrict-aliasing... yes
checking whether gcc supports -Winit-self... yes
checking whether gcc supports -Wshadow... yes
checking whether gcc supports -Wno-missing-field-initializers... yes
checking whether gcc supports -Wno-unused-parameter... yes
checking whether gcc supports -Wno-attributes... yes
checking whether gcc supports -Wno-long-long... yes
checking whether gcc supports -Winline... yes
checking which warning flags were supported...  -Wstrict-prototypes -Wmissing-prototypes -Wformat-signedness -Wnested-externs -Wold-style-definition -Werror-implicit-function-declaration
checking whether gcc supports -Wmaybe-uninitialized -Werror... yes
checking whether strerror_r is declared... no
checking for strerror_r... yes
checking whether strerror_r returns char *... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating link-grammar.pc
config.status: creating link-grammar.spec
config.status: creating link-grammar/Makefile
config.status: creating link-grammar/minisat/Makefile
config.status: creating link-grammar/sat-solver/Makefile
config.status: creating link-grammar/link-features.h
config.status: creating bindings/Makefile
config.status: creating bindings/java-jni/Makefile
config.status: creating bindings/java/Makefile
config.status: creating bindings/java/build.xml
config.status: creating bindings/ocaml/Makefile
config.status: creating bindings/perl/Makefile
config.status: creating bindings/python/Makefile
config.status: creating bindings/python/__init__.py
config.status: creating bindings/python-examples/Makefile
config.status: creating morphology/Makefile
config.status: creating link-parser/Makefile
config.status: creating tests/Makefile
config.status: creating data/Makefile
config.status: creating data/ady/Makefile
config.status: creating data/amy/Makefile
config.status: creating data/any/Makefile
config.status: creating data/gen/Makefile
config.status: creating data/ar/Makefile
config.status: creating data/ar/words/Makefile
config.status: creating data/de/Makefile
config.status: creating data/en/Makefile
config.status: creating data/en/words/Makefile
config.status: creating data/fa/Makefile
config.status: creating data/fa/words/Makefile
config.status: creating data/he/Makefile
config.status: creating data/id/Makefile
config.status: creating data/kz/Makefile
config.status: creating data/lt/Makefile
config.status: creating data/ru/Makefile
config.status: creating data/ru/words/Makefile
config.status: creating data/tr/Makefile
config.status: creating data/vn/Makefile
config.status: creating data/demo-sql/Makefile
config.status: creating man/Makefile
config.status: executing depfiles commands
config.status: executing libtool commands
rm: libtoolT: No such file or directory

link-grammar-5.10.2  build configuration settings

	prefix:                         /opt/pkg
	datadir:                        ${prefix}/share
	C compiler:                     gcc -I/opt/pkg/include -D_DEFAULT_SOURCE -std=c11 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -D_ISOC11_SOURCE -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -fvisibility=hidden -D_POSIX_PTHREAD_SEMANTICS -pthread
	C++ compiler:                   g++ -I/opt/pkg/include -D_DEFAULT_SOURCE -std=c++11 -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -Wall -fvisibility=hidden
	Regex library:                  
	TLS:                            yes
	Editline command-line history:  no
	UTF8 editline support:          no
	Java libraries:                 no
	Java interfaces:                
	Swig interfaces generator:      no
	Perl interfaces:                no
	Perl install location:          
	Python interfaces:              no
	ASpell spell checker:           no
	HunSpell spell checker:         no
	HunSpell dictionary location:   
	Boolean SAT parser:             no
	SQLite-backed dictionary:       no
	Definitions:                    -DPACKAGE_NAME=\"link-grammar\" -DPACKAGE_TARNAME=\"link-grammar\" -DPACKAGE_VERSION=\"5.10.2\" -DPACKAGE_STRING=\"link-grammar\ 5.10.2\" -DPACKAGE_BUGREPORT=\"https://github.com/opencog/link-grammar\" -DPACKAGE_URL=\"https://www.abisource.com/projects/link-grammar\" -DPACKAGE=\"link-grammar\" -DVERSION=\"5.10.2\" -DYYTEXT_POINTER=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_STRNDUP=1 -DHAVE_STRTOK_R=1 -DHAVE_SIGACTION=1 -DHAVE_ALIGNED_ALLOC=1 -DHAVE_POSIX_MEMALIGN=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -D__STDC_FORMAT_MACROS=1 -D__STDC_LIMIT_MACROS=1 -DTLS=_Thread_local -DHAVE_PTHREAD_PRIO_INHERIT=1 -DHAVE_PTHREAD=1 -DHAVE_THREADS_H=1 -DHAVE_VISIBILITY=1 -DHAVE_LOCALE_T_IN_XLOCALE_H=1 -DHAVE_XLOCALE_H=1 -DHAVE_STDATOMIC_H=1 -DUSE_WORDGRAPH_DISPLAY=1 -DHAVE_REGEX_H=1 -DHAVE_REGEXEC=1 -DHAVE_MAYBE_UNINITIALIZED=1 -DHAVE_DECL_STRERROR_R=0 -DHAVE_STRERROR_R=1
	Libraries:                       -largp 

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