=> 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 libvirt-1.2.9.tar.gz
=> Checksum RMD160 OK for libvirt-1.2.9.tar.gz
=> Checksum SHA512 OK for libvirt-1.2.9.tar.gz
===> Installing dependencies for libvirt-1.2.9nb36
==========================================================================
The supported build options for libvirt are:

	avahi dbus hal libssh2 lvm xen

The currently selected options are:

	libssh2

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

	PKG_OPTIONS.libvirt (not defined)

==========================================================================
==========================================================================
The following variables will affect the build process of this package,
libvirt-1.2.9nb36.  Their current value is shown below:

        * KRB5_DEFAULT = heimdal
        * PYTHON_VERSION_DEFAULT = 37
        * READLINE_DEFAULT = editline
        * SSLBASE = /usr
        * SSLCERTS = /etc/openssl/certs
        * SSLDIR = /etc/openssl
        * SSLKEYS = /etc/openssl/private
        * VARBASE = /var

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

        * KRB5BASE (defined, but empty)
        * KRB5_TYPE = heimdal
        * PYPACKAGE = python27
        * READLINE_TYPE = editline
        * TERMCAP_TYPE = termcap

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 libtool-base>=2.4.2nb9: found libtool-base-2.4.6nb2
=> Tool dependency gmake>=3.81: found gmake-4.2.1nb1
=> Tool dependency perl>=5.0: found perl-5.30.2
=> 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 libssh2>=1.9.0nb1: found libssh2-1.9.0nb1
=> Full dependency python27>=2.7.1nb2: found python27-2.7.17nb2
=> Full dependency yajl>=1.0.9: found yajl-2.1.0
=> Full dependency gnutls>=3.6.12nb1: found gnutls-3.6.13
=> Full dependency cyrus-sasl>=2.1.26: found cyrus-sasl-2.1.27
=> Full dependency libgcrypt>=1.6.0: found libgcrypt-1.8.5
=> Full dependency libxml2>=2.8.0nb2: found libxml2-2.9.10nb1
=> Full dependency py27-xml>=0.8.4nb2: found py27-xml-0.8.4nb5
=> Full dependency curl>=7.69.0nb1: found curl-7.69.1
===> Overriding tools for libvirt-1.2.9nb36
===> Extracting for libvirt-1.2.9nb36
===> Patching for libvirt-1.2.9nb36
=> Applying pkgsrc patches for libvirt-1.2.9nb36
=> Verifying /data/pkgsrc/sysutils/libvirt/patches/patch-configure
=> Applying pkgsrc patch /data/pkgsrc/sysutils/libvirt/patches/patch-configure
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-configure,v 1.1 2014/01/28 18:00:41 agc Exp $
|
|Portability bug - test should use '=' for string equality
|
|--- configure	2014/01/25 02:05:59	1.1
|+++ configure	2014/01/25 02:06:27
--------------------------
Patching file configure using Plan A...
Hunk #1 succeeded at 63731 (offset 1050 lines).
done
=> Verifying /data/pkgsrc/sysutils/libvirt/patches/patch-gnulib-lib-base64.h
=> Applying pkgsrc patch /data/pkgsrc/sysutils/libvirt/patches/patch-gnulib-lib-base64.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-gnulib-lib-base64.h,v 1.1 2014/01/25 02:54:27 agc Exp $
|
|Avoid native header definitions
|
|--- gnulib/lib/base64.h.orig	2014-01-07 19:14:57.000000000 -0800
|+++ gnulib/lib/base64.h	2014-01-24 18:03:33.000000000 -0800
--------------------------
Patching file gnulib/lib/base64.h using Plan A...
Hunk #1 succeeded at 15.
Hunk #2 succeeded at 65.
done
=> Verifying /data/pkgsrc/sysutils/libvirt/patches/patch-gnulib-lib-fflush.c
=> Applying pkgsrc patch /data/pkgsrc/sysutils/libvirt/patches/patch-gnulib-lib-fflush.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-gnulib-lib-fflush.c,v 1.2 2014/01/25 02:54:27 agc Exp $
|
|fix for fpos_t/fgetpos/fsetpos from joerg
|
|--- gnulib/lib/fflush.c	2014/01/25 02:18:50	1.1
|+++ gnulib/lib/fflush.c	2014/01/25 02:19:22
--------------------------
Patching file gnulib/lib/fflush.c using Plan A...
Hunk #1 succeeded at 96.
done
=> Verifying /data/pkgsrc/sysutils/libvirt/patches/patch-gnulib-lib-fseeko.c
=> Applying pkgsrc patch /data/pkgsrc/sysutils/libvirt/patches/patch-gnulib-lib-fseeko.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-gnulib-lib-fseeko.c,v 1.2 2014/01/25 02:54:27 agc Exp $
|
|Fix for fpos_t from joerg
|
|--- gnulib/lib/fseeko.c	2014/01/25 02:09:09	1.1
|+++ gnulib/lib/fseeko.c	2014/01/25 02:17:10
--------------------------
Patching file gnulib/lib/fseeko.c using Plan A...
Hunk #1 succeeded at 125.
done
=> Verifying /data/pkgsrc/sysutils/libvirt/patches/patch-src-network-bridge_driver.c
=> Applying pkgsrc patch /data/pkgsrc/sysutils/libvirt/patches/patch-src-network-bridge_driver.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src-network-bridge_driver.c,v 1.1 2014/07/26 20:25:04 schnoebe Exp $
|
|--- src/network/bridge_driver.c.orig	2014-06-27 14:51:07.000000000 +0000
|+++ src/network/bridge_driver.c
--------------------------
Patching file src/network/bridge_driver.c using Plan A...
Hunk #1 succeeded at 328.
done
=> Verifying /data/pkgsrc/sysutils/libvirt/patches/patch-src-rpc-virnetmessage.c
=> Applying pkgsrc patch /data/pkgsrc/sysutils/libvirt/patches/patch-src-rpc-virnetmessage.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src-rpc-virnetmessage.c,v 1.1 2014/01/25 02:54:27 agc Exp $
|
|fix for # of args in xdrproc_t on NetBSD
|
|--- src/rpc/virnetmessage.c	2014/01/25 02:27:37	1.1
|+++ src/rpc/virnetmessage.c	2014/01/25 02:30:04
--------------------------
Patching file src/rpc/virnetmessage.c using Plan A...
Hunk #1 succeeded at 347 (offset 2 lines).
Hunk #2 succeeded at 408 (offset 2 lines).
done
=> Verifying /data/pkgsrc/sysutils/libvirt/patches/patch-src-util-virutil.c
=> Applying pkgsrc patch /data/pkgsrc/sysutils/libvirt/patches/patch-src-util-virutil.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src-util-virutil.c,v 1.1 2014/01/25 02:54:27 agc Exp $
|
|Only use uselocale() if we have it
|
|--- src/util/virutil.c	2014/01/25 02:40:22	1.1
|+++ src/util/virutil.c	2014/01/25 02:41:41
--------------------------
Patching file src/util/virutil.c using Plan A...
Hunk #1 succeeded at 474 (offset 46 lines).
done
=> Verifying /data/pkgsrc/sysutils/libvirt/patches/patch-tools--virsh-secret.c
=> Applying pkgsrc patch /data/pkgsrc/sysutils/libvirt/patches/patch-tools--virsh-secret.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-tools--virsh-secret.c,v 1.1 2014/01/25 02:54:27 agc Exp $
|
|bring forward previous patch to allocate the context with the correct args
|"There is a problem expanding the macro in base64.h, so we'll do it here"
|
|--- tools/virsh-secret.c	2014/01/25 01:56:56	1.1
|+++ tools/virsh-secret.c	2014/01/25 01:57:41
--------------------------
Patching file tools/virsh-secret.c using Plan A...
Hunk #1 succeeded at 212.
done
===> Creating toolchain wrappers for libvirt-1.2.9nb36
===> Configuring for libvirt-1.2.9nb36
=> Generating pkg-config files for builtin xz package.
=> 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
=> Replacing python interpreter in docs/apibuild.py src/esx/esx_vi_generator.py src/hyperv/hyperv_wmi_generator.py src/util/virkeycode-mapgen.py.
=> Checking for portability problems in extracted files
ERROR: [check-portability.awk] => Found test ... == ...:
ERROR: [check-portability.awk] docs/news.html.in:14876:       don't test "res == NULL" after we've already dereferenced "res" (Jim Meyering),<br/>

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.
===========================================================================

WARNING: [check-portability.awk] => Found $RANDOM:
WARNING: [check-portability.awk] libvirt.spec.in:1627:    mac4=`printf '%X' $(($RANDOM % 256))`
WARNING: [check-portability.awk] libvirt.spec.in:1628:    mac5=`printf '%X' $(($RANDOM % 256))`
WARNING: [check-portability.awk] libvirt.spec.in:1629:    mac6=`printf '%X' $(($RANDOM % 256))`

Explanation:
===========================================================================
The variable $RANDOM is not required for a POSIX-conforming shell, and
many implementations of /bin/sh do not support it. It should therefore
not be used in shell programs that are meant to be portable across a
large number of POSIX-like systems.
===========================================================================

*** Error code 1

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

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