+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /usr/pkg/bin/bmake stage-install BATCH=1 DEPENDS_TARGET=/nonexistent RUBY_VERSION_REQD=31 WRKLOG=/tmp/bulklog/ruby31-curses-1.4.4/work.log
+ su pbulk -c '"$@"' make /usr/pkg/bin/bmake stage-install BATCH=1 DEPENDS_TARGET=/nonexistent RUBY_VERSION_REQD=31 WRKLOG=/tmp/bulklog/ruby31-curses-1.4.4/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Installing for ruby31-curses-1.4.4
=> Generating pre-install file lists
=> Installing gem into installation root
Building native extensions. This could take a while...
ERROR:  Error installing /home/pbulk/build/devel/ruby-curses/work/curses-1.4.4/curses-1.4.4.gem:
	ERROR: Failed to build gem native extension.

    current directory: /home/pbulk/build/devel/ruby-curses/work/.inst/usr/pkg/lib/ruby/gems/3.1.0/gems/curses-1.4.4/ext/curses
/usr/pkg/bin/ruby31 -I /usr/pkg/lib/ruby/3.1.0 extconf.rb
checking for tgetent() in -ltinfow... no
checking for tgetent() in -ltinfo... no
checking for tgetent() in -ltermcap... yes
checking for ncursesw/curses.h... no
checking for ncurses.h... yes
checking for initscr() in -lncursesw... no
checking for initscr() in -lncurses... yes
header: ncurses.h
library: ncurses
checking for beep()... yes
checking for bkgd()... yes
checking for bkgdset()... yes
checking for curs_set()... yes
checking for deleteln()... yes
checking for doupdate()... yes
checking for flash()... yes
checking for getbkgd()... yes
checking for getnstr()... yes
checking for init()... no
checking for init in ncurses.h... no
checking for isendwin()... yes
checking for keyname()... yes
checking for keypad()... yes
checking for resizeterm()... yes
checking for scrl()... yes
checking for set()... no
checking for set in ncurses.h... no
checking for setscrreg()... yes
checking for ungetch()... yes
checking for addnwstr()... no
checking for addnwstr in ncurses.h... no
checking for wattroff()... yes
checking for wattron()... yes
checking for wattrset()... yes
checking for wbkgd()... yes
checking for wbkgdset()... yes
checking for wdeleteln()... yes
checking for wgetnstr()... yes
checking for wresize()... yes
checking for wscrl()... yes
checking for wsetscrreg()... yes
checking for werase()... yes
checking for redrawwin()... yes
checking for waddnwstr()... no
checking for waddnwstr in ncurses.h... no
checking for mvderwin()... yes
checking for derwin()... yes
checking for touchwin()... yes
checking for untouchwin()... yes
checking for wtouchln()... yes
checking for is_linetouched()... yes
checking for is_wintouched()... yes
checking for def_prog_mode()... yes
checking for reset_prog_mode()... yes
checking for timeout()... yes
checking for wtimeout()... yes
checking for nodelay()... yes
checking for init_color()... yes
checking for wcolor_set()... yes
checking for use_default_colors()... yes
checking for assume_default_colors()... yes
checking for newpad()... yes
checking for unget_wch()... no
checking for unget_wch in ncurses.h... no
checking for get_wch()... no
checking for get_wch in ncurses.h... no
checking for wget_wch()... no
checking for wget_wch in ncurses.h... no
checking for PDC_get_key_modifiers()... no
checking for PDC_get_key_modifiers in ncurses.h... no
checking for convertible type of chtype... failed
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
	--with-opt-dir
	--without-opt-dir
	--with-opt-include
	--without-opt-include=${opt-dir}/include
	--with-opt-lib
	--without-opt-lib=${opt-dir}/lib
	--with-make-prog
	--without-make-prog
	--srcdir=.
	--curdir
	--ruby=/usr/pkg/bin/$(RUBY_BASE_NAME)31
	--use-system-libraries
	--with-curses-dir
	--without-curses-dir
	--with-curses-include
	--without-curses-include=${curses-dir}/include
	--with-curses-lib
	--without-curses-lib=${curses-dir}/lib
	--with-ncurses-dir
	--without-ncurses-dir
	--with-ncurses-include
	--without-ncurses-include=${ncurses-dir}/include
	--with-ncurses-lib
	--without-ncurses-lib=${ncurses-dir}/lib
	--with-termcap-dir
	--without-termcap-dir
	--with-termcap-include
	--without-termcap-include=${termcap-dir}/include
	--with-termcap-lib
	--without-termcap-lib=${termcap-dir}/lib
	--with-tinfow-dir
	--without-tinfow-dir
	--with-tinfow-include
	--without-tinfow-include=${tinfow-dir}/include
	--with-tinfow-lib
	--without-tinfow-lib=${tinfow-dir}/lib
	--with-tinfowlib
	--without-tinfowlib
	--with-tinfo-dir
	--without-tinfo-dir
	--with-tinfo-include
	--without-tinfo-include=${tinfo-dir}/include
	--with-tinfo-lib
	--without-tinfo-lib=${tinfo-dir}/lib
	--with-tinfolib
	--without-tinfolib
	--with-termcaplib
	--without-termcaplib
	--with-ncursesw-dir
	--without-ncursesw-dir
	--with-ncursesw-include
	--without-ncursesw-include=${ncursesw-dir}/include
	--with-ncursesw-lib
	--without-ncursesw-lib=${ncursesw-dir}/lib
	--with-ncurseswlib
	--without-ncurseswlib
	--with-ncurseslib
	--without-ncurseslib

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /home/pbulk/build/devel/ruby-curses/work/.inst/usr/pkg/lib/ruby/gems/3.1.0/extensions/x86_64-linux/3.1.0/curses-1.4.4/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /home/pbulk/build/devel/ruby-curses/work/.inst/usr/pkg/lib/ruby/gems/3.1.0/gems/curses-1.4.4 for inspection.
Results logged to /home/pbulk/build/devel/ruby-curses/work/.inst/usr/pkg/lib/ruby/gems/3.1.0/extensions/x86_64-linux/3.1.0/curses-1.4.4/gem_make.out
*** Error code 1

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-el9-trunk-x86_64/devel/ruby-curses
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-el9-trunk-x86_64/devel/ruby-curses