=> Bootstrap dependency digest>=20010302: found digest-20160304
===> 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 xsane-0.999.tar.gz
=> Checksum RMD160 OK for xsane-0.999.tar.gz
=> Checksum SHA512 OK for xsane-0.999.tar.gz
===> Installing dependencies for xsane-0.99.9nb5
==========================================================================
The following variables will affect the build process of this package,
xsane-0.99.9nb5.  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 their value
before continuing.  Be sure to run `/usr/bin/make clean' after
the changes.
==========================================================================
=> Tool dependency gmake>=3.81: found gmake-4.1nb3
=> Tool dependency pkgconf-[0-9]*: found pkgconf-1.0.1
=> Tool dependency checkperms>=1.1: found checkperms-1.11nb1
=> Build dependency x11-links>=1.04: found x11-links-1.05
=> Build dependency cwrappers>=20150314: found cwrappers-20170112
=> Full dependency jpeg>=9: found jpeg-9b
=> Full dependency png>=1.6.0nb1: found png-1.6.28
=> Full dependency tiff>=4.0.3nb5: found tiff-4.0.7nb1
=> Full dependency gimp>=2.8.20nb1: found gimp-2.8.20nb1
=> Full dependency sane-backends>=1.0.24: found sane-backends-1.0.25nb4
=> Full dependency desktop-file-utils>=0.10nb1: found desktop-file-utils-0.23
===> Overriding tools for xsane-0.99.9nb5
===> Extracting for xsane-0.99.9nb5
===> Patching for xsane-0.99.9nb5
=> Applying pkgsrc patches for xsane-0.99.9nb5
=> Verifying /data/pkgsrc-current/graphics/xsane/patches/patch-src_xsane-save.c
=> Applying pkgsrc patch /data/pkgsrc-current/graphics/xsane/patches/patch-src_xsane-save.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_xsane-save.c,v 1.1 2011/02/01 10:32:00 wiz Exp $
|
|Fix build with png-1.5.
|
|--- src/xsane-save.c.orig	2007-03-03 08:59:45.000000000 +0000
|+++ src/xsane-save.c
--------------------------
Patching file src/xsane-save.c using Plan A...
Hunk #1 succeeded at 4910 (offset 77 lines).
Hunk #2 succeeded at 5023 (offset -3 lines).
done
===> Creating toolchain wrappers for xsane-0.99.9nb5
src=/usr/X11R7/lib/pkgconfig/fixesproto.pc  dst=/data/scratch/graphics/xsane/work/.buildlink/lib/pkgconfig/fixesext.pc;  /bin/mkdir -p /data/scratch/graphics/xsane/work/.buildlink/lib/pkgconfig;  if test -f ${src}; then  /bin/ln -sf ${src} ${dst};  fi
src=/usr/X11R7/lib/pkgconfig/compositeproto.pc  dst=/data/scratch/graphics/xsane/work/.buildlink/lib/pkgconfig/compositeext.pc;  /bin/mkdir -p /data/scratch/graphics/xsane/work/.buildlink/lib/pkgconfig;  if test -f ${src}; then  /bin/ln -sf ${src} ${dst};  fi
===> Configuring for xsane-0.99.9nb5
=> Generating pkg-config file for builtin expat package.
=> 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.
INFO: [subst.mk:pkglocaledir] Nothing changed in ./Makefile.in.
INFO: [subst.mk:pkglocaledir] Nothing changed in ./doc/Makefile.in.
INFO: [subst.mk:pkglocaledir] Nothing changed in ./include/Makefile.in.
INFO: [subst.mk:pkglocaledir] Nothing changed in ./lib/Makefile.in.
INFO: [subst.mk:pkglocaledir] Nothing changed in ./src/Makefile.in.
INFO: [subst.mk:pkglocaledir] Nothing changed in ./src/Makefile.in.WIN32.
=> Checking for portability problems in extracted files

**************************************************************************

checking whether GTK+-2.0 is requested... yes
checking whether GIMP plugin is requested... yes
checking whether GIMP-2.0 is requested... yes
checking whether JPEG support is requested... yes
checking whether PNG support is requested... yes
checking whether TIFF support is requested... yes
checking whether LCMS (color management) support is requested... yes

**************************************************************************

checking for x86_64--netbsd-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 how to run the C preprocessor... gcc -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 for library containing strerror... none required
checking for x86_64--netbsd-gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for a BSD-compatible install... /usr/bin/install -c -o pbulkXXX -g users
checking whether make sets $(MAKE)... yes
checking how to run the C preprocessor... gcc -E
checking whether gcc needs -traditional... no
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking for ANSI C header files... (cached) yes
checking for windows.h... (cached) no
checking os2.h usability... no
checking os2.h presence... no
checking for os2.h... no
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking libc.h usability... no
checking libc.h presence... no
checking for libc.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking return type of signal handlers... void
checking for size_t... yes
checking for pid_t... yes
checking for ssize_t... yes
checking for u_char... yes
checking for u_int... yes
checking for u_long... yes
checking for sqrt in -lm... yes
checking for deflateInit_ in -lz... yes
checking for jpeg_start_decompress in -ljpeg... yes
checking for TIFFOpen in -ltiff... yes
checking for cmsOpenProfileFromFile in -llcms... yes
checking for working alloca.h... no
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking for atexit... yes
checking for mkdir... yes
checking for sigprocmask... yes
checking for strdup... yes
checking for strndup... yes
checking for strftime... yes
checking for strstr... yes
checking for strsep... yes
checking for strtod... yes
checking for snprintf... yes
checking for usleep... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for lstat... yes
checking for x86_64--netbsd-ranlib... no
checking for ranlib... ranlib
checking for off_t... yes
checking argz.h usability... no
checking argz.h presence... no
checking for argz.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking values.h usability... no
checking values.h presence... no
checking for values.h... no
checking for sys/param.h... (cached) yes
checking for getcwd... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for strchr... yes
checking for strcasecmp... (cached) yes
checking for __argz_count... no
checking for __argz_stringify... no
checking for __argz_next... no
checking for stpcpy... yes
checking for LC_MESSAGES... yes
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for gettext in libc... no
checking for bindtextdomain in -lintl... yes
checking for gettext in libintl... no
checking whether catgets can be used... no
checking for msgfmt... /data/scratch/graphics/xsane/work/.tools/bin/msgfmt
checking for gmsgfmt... /data/scratch/graphics/xsane/work/.tools/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for catalogs to be installed...  ca cs da de es fi fr hu it ja nl pa pl pt pt_BR ro ru sk sl sr sv vi tr zh zh_CN
checking for sane-config... /usr/pkg/bin/sane-config
checking for SANE - version >= 1.0.0... yes
checking for pkg-config... /data/scratch/graphics/xsane/work/.tools/bin/pkg-config
checking for GIMP - version >= 1.3.23... yes (version 2.8.20)
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for png_create_info_struct in -lpng... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING:  'Makefile.in' seems to ignore the --datarootdir setting
config.status: creating intl/Makefile
config.status: WARNING:  'intl/Makefile.in' seems to ignore the --datarootdir setting
config.status: creating po/Makefile
config.status: creating lib/Makefile
config.status: WARNING:  'lib/Makefile.in' seems to ignore the --datarootdir setting
config.status: creating src/Makefile
config.status: WARNING:  'src/Makefile.in' seems to ignore the --datarootdir setting
config.status: creating include/Makefile
config.status: creating doc/Makefile
config.status: WARNING:  'doc/Makefile.in' seems to ignore the --datarootdir setting
config.status: creating xsane.spec
config.status: creating include/config.h
config.status: linking intl/libgettext.h to intl/libintl.h
****************************************************************
*                                                              *
* XSANE configure status:                                      *
* -----------------------                                      *
* - NLS activated (package internal)                           *
* - GIMP plugin  activated                                     *
* - JPEG support activated                                     *
* - TIFF support activated                                     *
* - PNG  support activated                                     *
* - LCMS (color management) support activated                  *
*                                                              *
****************************************************************
*                                                              *
* To compile XSANE:                                            *
* -----------------                                            *
*   make                                                       *
*   make install                                               *
*                                                              *
* ------------------------------------------------------------ *
* ... PLEASE READ SANE DOCUMENTATION BEFORE STARTING XSANE ... *
* ------------------------------------------------------------ *
****************************************************************

 NEWS:

  Due to changes in the configuration file routines
  you have to enter some data in preferences->setup.

  In general there is nothing special you have to care
  about to get xsane to work.
  Read xsane.CHANGES if you are interested in details of
  what has changed.

  If you experience any problems after you upgraded xsane 
  it may help to remove the setup and preferences files
  of xsane:

  rm -rf ~/.sane/xsane