=> Bootstrap dependency digest>=20010302: found digest-20190127
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
=> Checksum SHA1 OK for grub-2.04.tar.gz
=> Checksum RMD160 OK for grub-2.04.tar.gz
=> Checksum SHA512 OK for grub-2.04.tar.gz
===> Installing dependencies for grub2-2.04nb1
==========================================================================
The supported build options for grub2 are:

	debug freetype fuse

The currently selected options are:

	freetype

You can select which build options to use by setting PKG_DEFAULT_OPTIONS
or the following variable.  Its current value is shown:

	PKG_OPTIONS.grub2 (not defined)

==========================================================================
=> Tool dependency bison>=1.0: found bison-3.4.2
=> Tool dependency gmake>=3.81: found gmake-4.2.1nb1
=> Tool dependency pkgconf-[0-9]*: found pkgconf-1.6.0
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency help2man>=1.36: found help2man-1.47.15
=> Build dependency dejavu-ttf>=2.34nb1: found dejavu-ttf-2.37
=> Build dependency unifont-[0-9]*: found unifont-13.0.02
=> Build dependency cwrappers>=20150314: found cwrappers-20180325
=> Full dependency freetype2>=2.8.1: found freetype2-2.10.1
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
===> Overriding tools for grub2-2.04nb1
===> Extracting for grub2-2.04nb1
===> Patching for grub2-2.04nb1
=> Applying pkgsrc patches for grub2-2.04nb1
=> Verifying /data/pkgsrc/sysutils/grub2/patches/patch-configure
=> Applying pkgsrc patch /data/pkgsrc/sysutils/grub2/patches/patch-configure
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-configure,v 1.3 2020/05/09 12:17:52 triaxx Exp $
|
|* Fix font search paths for dejavu-tff and unifont.
|
|--- configure.orig	2019-07-04 14:06:35.000000000 +0000
|+++ configure
--------------------------
Patching file configure using Plan A...
Hunk #1 succeeded at 33881.
Hunk #2 succeeded at 33903.
done
=> Verifying /data/pkgsrc/sysutils/grub2/patches/patch-grub-core_osdep_bsd_hostdisk.c
=> Applying pkgsrc patch /data/pkgsrc/sysutils/grub2/patches/patch-grub-core_osdep_bsd_hostdisk.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-grub-core_osdep_bsd_hostdisk.c,v 1.2 2020/05/02 16:53:54 triaxx Exp $
|
|Fix build error for NetBSD:
| * undefined RAW_FLOPPY_MAJOR macro
| * undefined fd variable
|
|--- grub-core/osdep/bsd/hostdisk.c.orig	2018-11-24 17:13:02.000000000 +0000
|+++ grub-core/osdep/bsd/hostdisk.c
--------------------------
Patching file grub-core/osdep/bsd/hostdisk.c using Plan A...
Hunk #1 succeeded at 50.
Hunk #2 succeeded at 64.
Hunk #3 succeeded at 84.
Hunk #4 succeeded at 93.
done
=> Verifying /data/pkgsrc/sysutils/grub2/patches/patch-grub-core_osdep_generic_blocklist.c
=> Applying pkgsrc patch /data/pkgsrc/sysutils/grub2/patches/patch-grub-core_osdep_generic_blocklist.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-grub-core_osdep_generic_blocklist.c,v 1.1 2020/05/02 16:53:54 triaxx Exp $
|
|* Fix implicit declaration of function grub_file_filter_disable_compression()
|  (http://git.savannah.gnu.org/cgit/grub.git/commit/?id=dabdfa1)
|
|--- grub-core/osdep/generic/blocklist.c.orig	2018-11-24 17:13:02.000000000 +0000
|+++ grub-core/osdep/generic/blocklist.c
--------------------------
Patching file grub-core/osdep/generic/blocklist.c using Plan A...
Hunk #1 succeeded at 59.
Hunk #2 succeeded at 116.
done
=> Verifying /data/pkgsrc/sysutils/grub2/patches/patch-util_getroot.c
=> Applying pkgsrc patch /data/pkgsrc/sysutils/grub2/patches/patch-util_getroot.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-util_getroot.c,v 1.3 2018/11/25 15:51:01 maya Exp $
|
|Be consistent about macros. The required headers are only
|included if both libzfs and libnvpair are detected.
|
|--- util/getroot.c.orig	2017-04-24 09:16:00.000000000 +0000
|+++ util/getroot.c
--------------------------
Patching file util/getroot.c using Plan A...
Hunk #1 succeeded at 456.
done
===> Creating toolchain wrappers for grub2-2.04nb1
===> Configuring for grub2-2.04nb1
=> Fixing fonts search paths in configure.
=> Fixing installation of OS configuration scripts.
=> Fixing configuration paths in scripts.
=> Fixing tabulations for sed in scripts.
WARNING: [subst.mk:fix-sed-tabs] Nothing changed in "util/grub.d/00_header.in".
WARNING: [subst.mk:fix-sed-tabs] Nothing changed in "util/grub.d/10_illumos.in".
WARNING: [subst.mk:fix-sed-tabs] Nothing changed in "util/grub.d/10_windows.in".
WARNING: [subst.mk:fix-sed-tabs] Nothing changed in "util/grub.d/10_xnu.in".
WARNING: [subst.mk:fix-sed-tabs] Nothing changed in "util/grub.d/40_custom.in".
WARNING: [subst.mk:fix-sed-tabs] Nothing changed in "util/grub.d/41_custom.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
=> Fixing locale directory references.
=> Checking for portability problems in extracted files
checking build system type... x86_64--netbsd
checking host system type... x86_64--netbsd
checking target system type... x86_64--netbsd
checking for a BSD-compatible install... /usr/bin/install -c -o pbulkXXX -g users
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... /usr/bin/awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking pkg-config is at least version 0.9.0... yes
checking for cmp... /usr/bin/cmp
checking for bison... /usr/pkg/bin/bison -y
checking for x86_64--netbsd-ranlib... no
checking for ranlib... ranlib
checking for gawk... (cached) /usr/bin/awk
checking for style of include used by make... GNU
checking for x86_64--netbsd-gcc... clang
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 clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking whether clang understands -c and -o together... yes
checking dependency style of clang... gcc3
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... -lfl
checking whether yytext is a pointer... yes
checking for bison... (cached) /usr/pkg/bin/bison -y
checking whether make sets $(MAKE)... (cached) yes
checking whether ln -s works... yes
checking for makeinfo... /data/scratch/sysutils/grub2/work/.tools/bin/makeinfo
checking for x86_64--netbsd-gcc... (cached) clang
checking whether we are using the GNU C compiler... (cached) yes
checking whether clang accepts -g... (cached) yes
checking for clang option to accept ISO C89... (cached) none needed
checking whether clang understands -c and -o together... (cached) yes
checking dependency style of clang... (cached) gcc3
checking how to run the C preprocessor... clang -E
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether _XOPEN_SOURCE should be defined... no
checking for Minix Amsterdam compiler... no
checking for x86_64--netbsd-ar... no
checking for ar... ar
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking whether we are using the GNU C++ compiler... yes
checking whether clang++ accepts -g... yes
checking dependency style of clang++... gcc3
checking dependency style of clang... gcc3
checking for a Python interpreter with version >= 2.6... none
configure: error: no suitable Python interpreter found
*** Error code 1

Stop.
make[1]: stopped in /data/pkgsrc/sysutils/grub2
*** Error code 1

Stop.
make: stopped in /data/pkgsrc/sysutils/grub2