=> 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 tokyodystopia-0.9.15.tar.gz
=> Checksum RMD160 OK for tokyodystopia-0.9.15.tar.gz
=> Checksum SHA512 OK for tokyodystopia-0.9.15.tar.gz
===> Installing dependencies for tokyodystopia-0.9.15
=> 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 cwrappers>=20150314: found cwrappers-20180325
=> Full dependency tokyocabinet>=1.4.41: found tokyocabinet-1.4.48
===> Overriding tools for tokyodystopia-0.9.15
===> Extracting for tokyodystopia-0.9.15
/bin/rm -f /data/scratch/textproc/tokyodystopia/work/tokyodystopia-0.9.15/doc/index.html~
===> Patching for tokyodystopia-0.9.15
=> Applying pkgsrc patches for tokyodystopia-0.9.15
=> Verifying /data/pkgsrc/textproc/tokyodystopia/patches/patch-aa
=> Applying pkgsrc patch /data/pkgsrc/textproc/tokyodystopia/patches/patch-aa
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-aa,v 1.2 2008/10/06 10:42:56 obache Exp $
|
|--- Makefile.in.orig	2008-09-29 03:14:57.000000000 +0000
|+++ Makefile.in
--------------------------
Patching file Makefile.in using Plan A...
Hunk #1 succeeded at 51.
done
=> Verifying /data/pkgsrc/textproc/tokyodystopia/patches/patch-ab
=> Applying pkgsrc patch /data/pkgsrc/textproc/tokyodystopia/patches/patch-ab
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-ab,v 1.3 2009/06/14 06:04:12 obache Exp $
|
|--- configure.orig	2009-06-14 03:07:08.000000000 +0000
|+++ configure
--------------------------
Patching file configure using Plan A...
Hunk #1 succeeded at 2046 (offset 313 lines).
done
===> Creating toolchain wrappers for tokyodystopia-0.9.15
===> Configuring for tokyodystopia-0.9.15
=> Substituting "pthread" in configure
=> 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
ERROR: [check-portability.awk] => Found test ... == ...:
ERROR: [check-portability.awk] Makefile.in:129: 	[ "$$UID" == 0 ] && ldconfig || true
ERROR: [check-portability.awk] Makefile.in:150: 	[ "$$UID" == 0 ] && ldconfig || true

Explanation:
===========================================================================
The "test" command, as well as the "[" command, are not required to know
the "==" operator. Only a few implementations like bash and some
versions of ksh support it.

When you run "test foo == foo" on a platform that does not support the
"==" operator, the result will be "false" instead of "true". This can
lead to unexpected behavior.

There are two ways to fix this error message. If the file that contains
the "test ==" is needed for building the package, you should create a
patch for it, replacing the "==" operator with "=". If the file is not
needed, add its name to the CHECK_PORTABILITY_SKIP variable in the
package Makefile.
===========================================================================

*** Error code 1

Stop.
make[1]: stopped in /data/pkgsrc/textproc/tokyodystopia
*** Error code 1

Stop.
make: stopped in /data/pkgsrc/textproc/tokyodystopia