+ 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/xscorch-0.2.1nb2/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/xscorch-0.2.1nb2/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Checksum BLAKE2s OK for xscorch_0.2.1.orig.tar.gz
=> Checksum SHA512 OK for xscorch_0.2.1.orig.tar.gz
===> Installing dependencies for xscorch-0.2.1nb2
==========================================================================
The following variables will affect the build process of this package,
xscorch-0.2.1nb2.  Their current value is shown below:

        * CURSES_DEFAULT = ncurses
        * JPEG_DEFAULT = jpeg
        * READLINE_DEFAULT = readline

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

        * CURSES_TYPE = ncurses
        * JPEGBASE (defined, but empty)
        * JPEG_TYPE = jpeg
        * 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 glib2-tools-[0-9]*: found glib2-tools-2.70.5
=> Tool dependency libtool-base>=2.4.2nb9: found libtool-base-2.4.6nb3
=> Tool dependency mktools-[0-9]*: found mktools-20220614
=> Tool dependency perl>=5.0: found perl-5.34.1
=> 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 xorgproto>=2016.1: found xorgproto-2022.1
=> Build dependency xcb-proto>=1.4: found xcb-proto-1.15.2
=> Full dependency libmikmod>=3.2.0: found libmikmod-3.3.11.1nb9
=> Full dependency readline>=6.0: found readline-8.1.2
=> Full dependency gtk2+>=2.24.33nb3: found gtk2+-2.24.33nb4
=> Full dependency libXpm>=3.5.4.2: found libXpm-3.5.13
===> Overriding tools for xscorch-0.2.1nb2
===> Extracting for xscorch-0.2.1nb2
===> Patching for xscorch-0.2.1nb2
=> Applying pkgsrc patches for xscorch-0.2.1nb2
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/games/xscorch/patches/patch-libj_jstr_str__trim.c
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/games/xscorch/patches/patch-libj_jstr_str__trim.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-libj_jstr_str__trim.c,v 1.1 2020/11/20 15:15:24 nia Exp $
|
|Use memmove() instead of memcpy() for overlapping memory.
|
|From Debian:
|https://sources.debian.org/patches/xscorch/0.2.1-1+nmu5/overlapping-memcpy/
|
|--- libj/jstr/str_trim.c.orig	2009-04-26 17:39:30.000000000 +0000
|+++ libj/jstr/str_trim.c
--------------------------
Patching file libj/jstr/str_trim.c using Plan A...
Hunk #1 succeeded at 47.
Hunk #2 succeeded at 93.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/games/xscorch/patches/patch-sgtk_sgtk.h
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/games/xscorch/patches/patch-sgtk_sgtk.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-sgtk_sgtk.h,v 1.1 2020/11/20 15:15:24 nia Exp $
|
|Avoid implicit function declaration.
|
|From Debian:
|https://sources.debian.org/patches/xscorch/0.2.1-1+nmu5/gdk-include/
|
|--- sgtk/sgtk.h.orig	2009-04-26 17:39:48.000000000 +0000
|+++ sgtk/sgtk.h
--------------------------
Patching file sgtk/sgtk.h using Plan A...
Hunk #1 succeeded at 24.
done
===> Creating toolchain wrappers for xscorch-0.2.1nb2
===> Configuring for xscorch-0.2.1nb2
=> 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
configure: WARNING: unrecognized options: --with-libiconv-prefix
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... /opt/pkg/bin/nawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for libj version number... 4.1.3
checking build system type... x86_64-sun-solaris2.11
checking host system type... x86_64-sun-solaris2.11
checking for style of include used by make... GNU
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 dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for an ANSI C-conforming const... yes
checking for inline... inline
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 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 sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for gettimeofday... yes
checking for snprintf... yes
checking size of short... 2
checking size of int... 4
checking size of long... 8
checking size of long long... 8
checking size of int16_t... 2
checking size of int32_t... 4
checking size of int64_t... 8
checking whether gcc and cc understand -c and -o together... yes
checking how to print strings... print -r
checking for a sed that does not truncate output... /opt/pkg/bin/nbsed
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 whether ln -s works... yes
checking the maximum length of command line arguments... 786240
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
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... print -r --
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 x86_64-sun-solaris2.11-mt... no
checking for mt... mt
checking if mt is a manifest tool... no
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) 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 whether ln -s works... yes
checking for --enable-network flag... Network enabled
checking for --with-readline flag... maybe
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking for rl_callback_handler_install in -lreadline... yes
checking whether readline works at runtime... _ yes
checking for pkg-config... /home/pbulk/build/games/xscorch/work/.tools/bin/pkg-config
checking for GTK+ - version >= 2.20.0... yes (version 2.24.33)
GTK libs:  -L/opt/pkg/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lintl -lharfbuzz -Wl,-R/opt/pkg/lib -lfontconfig -lfreetype 
GTK flags:  -I/opt/pkg/include/gtk-2.0 -I/opt/pkg/lib/gtk-2.0/include -I/opt/pkg/include/pango-1.0 -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/harfbuzz -I/opt/pkg/include/freetype2 -I/opt/pkg/include/libpng16 -I/opt/pkg/include/fribidi -I/opt/pkg/include/cairo -I/opt/pkg/include/pixman-1 -D_REENTRANT -D_REENTRANT -D_REENTRANT -D_REENTRANT -I/opt/pkg/include/gdk-pixbuf-2.0 -I/opt/pkg/include/atk-1.0 -D_REENTRANT -pthread -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT 
checking for --enable-sound flag... Sound/music enabled
checking for libmikmod-config... /opt/pkg/bin/libmikmod-config
checking for libmikmod - version >= 3.1.5... yes, `/opt/pkg/bin/libmikmod-config --version`
libmikmod libs:  -L/opt/pkg/lib -lmikmod -lm
libmikmod flags:  -I/opt/pkg/include
checking for sys/time.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for unistd.h... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) yes
checking for sys/types.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for string.h... (cached) yes
checking for gettimeofday... (cached) yes
checking for usleep... yes
checking for memcpy... yes
checking for memset... yes
checking for vsnprintf... yes
checking for stat... yes
checking for strnlen... yes
checking for getopt_long... yes
checking for gethostbyname... no
checking for gethostbyname in -lnsl... yes
checking for socket... no
checking for socket in -lsocket... yes
Network libraries we're linking against:  -lnsl -lsocket
checking for struct hostent.h_addr_list... yes
checking for convolution in -lreality... no
checking for X... libraries , headers 
checking for gethostbyname... (cached) no
checking for gethostbyname in -lnsl... (cached) yes
checking for connect... no
checking for connect in -lsocket... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... no
checking for XOpenDisplay in -lX11... yes
GCC compiler found, trying GCC-specific optimizations and warnings.
checking if compiler supports C99 standard... yes
checking for --enable-opt flag... not enabled
checking for --enable-warn flag... not enabled
checking for --enable-warn-error flag... not enabled
checking for --enable-debug flag... not enabled
CFLAGS = -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz    
configure: creating ./config.status
config.status: creating Makefile
config.status: creating xscorch.h
config.status: creating libj/libj.h
config.status: creating sai/Makefile
config.status: creating sconsole/Makefile
config.status: creating sgame/Makefile
config.status: creating sgtk/Makefile
config.status: creating sgtk/swidgets/Makefile
config.status: creating snet/Makefile
config.status: creating snet/tcpnet/Makefile
config.status: creating ssound/Makefile
config.status: creating sutil/Makefile
config.status: creating libj/Makefile
config.status: creating libj/jreg/Makefile
config.status: creating libj/jstr/Makefile
config.status: creating data/Makefile
config.status: creating doc/Makefile
config.status: creating img/Makefile
config.status: creating snd/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
rm: libtoolT: No such file or directory
configure: WARNING: unrecognized options: --with-libiconv-prefix

xscorch 0.2.1 Configuration:
   Prefix:        /opt/pkg
   Datadir:       /opt/pkg/share
   Mandir:        /opt/pkg/share/man
   CFLAGS:        -pipe -fno-aggressive-loop-optimizations -pipe -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/usr/include -I/opt/pkg/include/freetype2 -I/opt/pkg/include/harfbuzz    
   Sound:         Yes
   Network:       Yes
   Readline:      Yes
   GTK 2+:        Yes

*** WARNING ***
Network games are UNSTABLE.  PLEASE read doc/NETWORK before sending in bug
reports.  Also, check out the document if you are interested in network
development.  We appreciate any feedback/bugfixes on the networking code.

*** NOTE ***
You have enabled sound support, but currently there is no music, nor are
there sound effects in the game.  xscorch will be linked to mikmod but the
sound options will currently do nothing.  We are currently looking for
volunteers to create music for xscorch.  If you'd like to write us some
tracks, please drop us an e-mail!

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