=> 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 kicad-4.0.7.tar.xz
=> Checksum RMD160 OK for kicad-4.0.7.tar.xz
=> Checksum SHA512 OK for kicad-4.0.7.tar.xz
===> Installing dependencies for kicad-4.0.7nb4
==========================================================================
The following variables will affect the build process of this package,
kicad-4.0.7nb4.  Their current value is shown below:

        * JPEG_DEFAULT = jpeg
        * KRB5_DEFAULT = heimdal
        * SSLBASE = /usr
        * SSLCERTS = /etc/openssl/certs
        * SSLDIR = /etc/openssl
        * SSLKEYS = /etc/openssl/private

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

        * JPEGBASE (defined, but empty)
        * JPEG_TYPE = jpeg
        * KRB5BASE (defined, but empty)
        * KRB5_TYPE = heimdal

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 glib2-tools-[0-9]*: found glib2-tools-2.56.1
=> Tool dependency cmake>=2.8.1nb1: found cmake-3.11.3
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency swig>=1.3.31<2.0: found swig-1.3.38nb1
=> Build dependency boost-headers-1.67.*: found boost-headers-1.67.0nb4
=> Build dependency cmake>=2.8.5nb1: found cmake-3.11.3
=> Build dependency xorgproto>=2016.1: found xorgproto-2018.4
=> Build dependency xcb-proto>=1.4: found xcb-proto-1.13
=> Build dependency cwrappers>=20150314: found cwrappers-20180325
=> Full dependency boost-libs-1.67.*: found boost-libs-1.67.0nb1
=> Full dependency boost-libs>=1.67.0: found boost-libs-1.67.0nb1
=> Full dependency MesaLib>=10.5.3: found MesaLib-11.2.2nb6
=> Full dependency glu>=7.11.2: found glu-9.0.0nb2
=> Full dependency glut>=7.11.2: found glut-8.0.1nb2
=> Full dependency glew>=1.11.0nb1: found glew-1.13.0
=> Full dependency cairo>=1.14.12nb1: found cairo-1.14.12nb1
=> Full dependency curl>=7.57.0nb1: found curl-7.60.0
=> Full dependency wxGTK30>=3.0.4: found wxGTK30-3.0.4
=> Full dependency desktop-file-utils>=0.10nb1: found desktop-file-utils-0.23nb1
=> Full dependency hicolor-icon-theme>=0.9nb1: found hicolor-icon-theme-0.17
===> Overriding tools for kicad-4.0.7nb4
===> Extracting for kicad-4.0.7nb4
===> Patching for kicad-4.0.7nb4
=> Applying pkgsrc patches for kicad-4.0.7nb4
=> Verifying /data/pkgsrc/cad/kicad/patches/patch-CMakeLists.txt
=> Applying pkgsrc patch /data/pkgsrc/cad/kicad/patches/patch-CMakeLists.txt
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-CMakeLists.txt,v 1.3 2016/09/08 09:32:28 bouyer Exp $
|
|Don't use ${CMAKE_MODULE_PATH} directly as it will be changed
|and containt multiple directories
|
|--- CMakeLists.txt.orig	2016-09-03 22:47:43.000000000 +0200
|+++ CMakeLists.txt	2016-09-07 18:46:48.000000000 +0200
--------------------------
Patching file CMakeLists.txt using Plan A...
Hunk #1 succeeded at 849 (offset 23 lines).
done
=> Verifying /data/pkgsrc/cad/kicad/patches/patch-CMakeModules_Functions.cmake
=> Applying pkgsrc patch /data/pkgsrc/cad/kicad/patches/patch-CMakeModules_Functions.cmake
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-CMakeModules_Functions.cmake,v 1.3 2016/09/08 09:32:28 bouyer Exp $
|
|Don't use ${CMAKE_MODULE_PATH} directly as it will be changed
|and containt multiple directories
|
|--- CMakeModules/Functions.cmake.orig	2016-09-03 22:47:43.000000000 +0200
|+++ CMakeModules/Functions.cmake	2016-09-07 18:48:08.000000000 +0200
--------------------------
Patching file CMakeModules/Functions.cmake using Plan A...
Hunk #1 succeeded at 36.
done
=> Verifying /data/pkgsrc/cad/kicad/patches/patch-CMakeModules_WriteVersionHeader.cmake
=> Applying pkgsrc patch /data/pkgsrc/cad/kicad/patches/patch-CMakeModules_WriteVersionHeader.cmake
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-CMakeModules_WriteVersionHeader.cmake,v 1.3 2018/03/01 13:59:11 mef Exp $
|
|Don't use ${CMAKE_MODULE_PATH} directly as it will be changed
|and containt multiple directories
|
|--- CMakeModules/WriteVersionHeader.cmake.orig	2017-03-06 23:58:56.000000000 +0000
|+++ CMakeModules/WriteVersionHeader.cmake
--------------------------
Patching file CMakeModules/WriteVersionHeader.cmake using Plan A...
Hunk #1 succeeded at 26.
done
=> Verifying /data/pkgsrc/cad/kicad/patches/patch-CMakeModules_config.h.cmake
=> Applying pkgsrc patch /data/pkgsrc/cad/kicad/patches/patch-CMakeModules_config.h.cmake
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-CMakeModules_config.h.cmake,v 1.3 2016/09/08 09:32:28 bouyer Exp $
|
|Fix compile problem due to ciso646.
|
|--- ./CMakeModules/config.h.cmake.orig	2015-11-29 20:57:27.000000000 +0100
|+++ ./CMakeModules/config.h.cmake	2015-12-11 17:46:32.000000000 +0100
--------------------------
Patching file ./CMakeModules/config.h.cmake using Plan A...
Hunk #1 succeeded at 36.
done
=> Verifying /data/pkgsrc/cad/kicad/patches/patch-bitmaps_png_CMakeLists.txt
=> Applying pkgsrc patch /data/pkgsrc/cad/kicad/patches/patch-bitmaps_png_CMakeLists.txt
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-bitmaps_png_CMakeLists.txt,v 1.3 2016/09/08 09:32:28 bouyer Exp $
|
|Don't use ${CMAKE_MODULE_PATH} directly as it will be changed
|and containt multiple directories
|
|--- bitmaps_png/CMakeLists.txt.orig	2015-12-14 20:13:21.000000000 +0100
|+++ bitmaps_png/CMakeLists.txt	2015-12-14 20:14:25.000000000 +0100
--------------------------
Patching file bitmaps_png/CMakeLists.txt using Plan A...
Hunk #1 succeeded at 636.
done
=> Verifying /data/pkgsrc/cad/kicad/patches/patch-common_CMakeLists.txt
=> Applying pkgsrc patch /data/pkgsrc/cad/kicad/patches/patch-common_CMakeLists.txt
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-common_CMakeLists.txt,v 1.2 2016/09/08 09:32:28 bouyer Exp $
|
|Don't use ${CMAKE_MODULE_PATH} directly as it will be changed
|and containt multiple directories
|
|--- common/CMakeLists.txt.orig	2015-12-14 20:13:21.000000000 +0100
|+++ common/CMakeLists.txt	2015-12-14 20:16:14.000000000 +0100
--------------------------
Patching file common/CMakeLists.txt using Plan A...
Hunk #1 succeeded at 24 (offset 7 lines).
Hunk #2 succeeded at 132 (offset 5 lines).
done
=> Verifying /data/pkgsrc/cad/kicad/patches/patch-common_richio.cpp
=> Applying pkgsrc patch /data/pkgsrc/cad/kicad/patches/patch-common_richio.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-common_richio.cpp,v 1.3 2016/09/08 09:32:28 bouyer Exp $
|
|Fix non-portable use of setvbuf()
|Reported upstream as bug id 1280897
|
|--- common/richio.cpp.orig	2015-12-11 17:40:20.000000000 +0100
|+++ common/richio.cpp	2015-12-11 17:39:05.000000000 +0100
--------------------------
Patching file common/richio.cpp using Plan A...
Hunk #1 succeeded at 209 (offset -6 lines).
done
=> Verifying /data/pkgsrc/cad/kicad/patches/patch-common_tool_tool_manager.cpp
=> Applying pkgsrc patch /data/pkgsrc/cad/kicad/patches/patch-common_tool_tool_manager.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-common_tool_tool_manager.cpp,v 1.1 2016/09/08 09:32:28 bouyer Exp $
|Fix for newer boost, from upstream developement branch
|
|--- common/tool/tool_manager.cpp.orig	2016-09-03 22:47:46.000000000 +0200
|+++ common/tool/tool_manager.cpp	2016-09-07 19:03:09.000000000 +0200
--------------------------
Patching file common/tool/tool_manager.cpp using Plan A...
Hunk #1 succeeded at 542.
done
=> Verifying /data/pkgsrc/cad/kicad/patches/patch-cvpcb_CMakeLists.txt
=> Applying pkgsrc patch /data/pkgsrc/cad/kicad/patches/patch-cvpcb_CMakeLists.txt
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-cvpcb_CMakeLists.txt,v 1.2 2016/09/08 09:32:28 bouyer Exp $
|
|Force proper LDFLAGS for MODULE, as cmake doens't set rpath for theses
|
|--- cvpcb/CMakeLists.txt.orig	2015-12-16 14:47:20.000000000 +0100
|+++ cvpcb/CMakeLists.txt	2015-12-16 14:49:49.000000000 +0100
--------------------------
Patching file cvpcb/CMakeLists.txt using Plan A...
Hunk #1 succeeded at 175 (offset 2 lines).
done
=> Verifying /data/pkgsrc/cad/kicad/patches/patch-eeschema_CMakeLists.txt
=> Applying pkgsrc patch /data/pkgsrc/cad/kicad/patches/patch-eeschema_CMakeLists.txt
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-eeschema_CMakeLists.txt,v 1.2 2016/09/08 09:32:28 bouyer Exp $
|
|Don't use ${CMAKE_MODULE_PATH} directly as it will be changed
|and containt multiple directories
|
|Force proper LDFLAGS for MODULE, as cmake doens't set rpath for theses
|
|--- eeschema/CMakeLists.txt.orig	2015-12-09 17:21:54.000000000 +0100
|+++ eeschema/CMakeLists.txt	2015-12-16 14:50:58.000000000 +0100
--------------------------
Patching file eeschema/CMakeLists.txt using Plan A...
Hunk #1 succeeded at 202 (offset 3 lines).
Hunk #2 succeeded at 279 (offset 1 line).
done
=> Verifying /data/pkgsrc/cad/kicad/patches/patch-eeschema_sch_component.cpp
=> Applying pkgsrc patch /data/pkgsrc/cad/kicad/patches/patch-eeschema_sch_component.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-eeschema_sch_component.cpp,v 1.4 2016/09/21 13:16:07 bouyer Exp $
|64bit time_t fix
|Reported upstream as bug id 1280901
|
|--- eeschema/sch_component.cpp.orig	2015-12-11 17:52:09.000000000 +0100
|+++ eeschema/sch_component.cpp	2015-12-11 17:52:12.000000000 +0100
--------------------------
Patching file eeschema/sch_component.cpp using Plan A...
Hunk #1 succeeded at 1240.
done
=> Verifying /data/pkgsrc/cad/kicad/patches/patch-eeschema_sch_sheet.cpp
=> Applying pkgsrc patch /data/pkgsrc/cad/kicad/patches/patch-eeschema_sch_sheet.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-eeschema_sch_sheet.cpp,v 1.3 2016/09/08 09:32:28 bouyer Exp $
|64bit time_t fix
|Reported upstream as bug id 1280901
|
|--- eeschema/sch_sheet.cpp.orig	2015-12-11 17:53:27.000000000 +0100
|+++ eeschema/sch_sheet.cpp	2015-12-11 17:54:26.000000000 +0100
--------------------------
Patching file eeschema/sch_sheet.cpp using Plan A...
Hunk #1 succeeded at 219.
done
=> Verifying /data/pkgsrc/cad/kicad/patches/patch-gerbview_CMakeLists.txt
=> Applying pkgsrc patch /data/pkgsrc/cad/kicad/patches/patch-gerbview_CMakeLists.txt
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-gerbview_CMakeLists.txt,v 1.2 2016/09/08 09:32:28 bouyer Exp $
|
|Force proper LDFLAGS for MODULE, as cmake doens't set rpath for theses
|
|--- gerbview/CMakeLists.txt.orig	2015-12-16 14:47:22.000000000 +0100
|+++ gerbview/CMakeLists.txt	2015-12-16 14:51:07.000000000 +0100
--------------------------
Patching file gerbview/CMakeLists.txt using Plan A...
Hunk #1 succeeded at 146 (offset 3 lines).
done
=> Verifying /data/pkgsrc/cad/kicad/patches/patch-include-kicad_string.h
=> Applying pkgsrc patch /data/pkgsrc/cad/kicad/patches/patch-include-kicad_string.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-include-kicad_string.h,v 1.3 2016/09/08 09:32:28 bouyer Exp $
|
|Standard string library should be included as well.
|
|--- include/kicad_string.h.orig	2015-12-11 17:57:10.000000000 +0100
|+++ include/kicad_string.h	2015-12-11 17:57:22.000000000 +0100
--------------------------
Patching file include/kicad_string.h using Plan A...
Hunk #1 succeeded at 30.
done
=> Verifying /data/pkgsrc/cad/kicad/patches/patch-include_common.h
=> Applying pkgsrc patch /data/pkgsrc/cad/kicad/patches/patch-include_common.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-include_common.h,v 1.3 2016/12/22 21:01:22 joerg Exp $
|
|Given that the constants are used in integer contexts, make sure that
|the value is a valid int.
|
|--- include/common.h.orig	2016-12-22 11:39:43.778530785 +0000
|+++ include/common.h
--------------------------
Patching file include/common.h using Plan A...
Hunk #1 succeeded at 54.
done
=> Verifying /data/pkgsrc/cad/kicad/patches/patch-include_hashtables.h
=> Applying pkgsrc patch /data/pkgsrc/cad/kicad/patches/patch-include_hashtables.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-include_hashtables.h,v 1.3 2016/09/08 09:32:28 bouyer Exp $
|
|--- include/hashtables.h.orig	2015-12-11 17:59:12.000000000 +0100
|+++ include/hashtables.h	2015-12-11 17:59:18.000000000 +0100
--------------------------
Patching file include/hashtables.h using Plan A...
Hunk #1 succeeded at 48.
done
=> Verifying /data/pkgsrc/cad/kicad/patches/patch-include_kiway.h
=> Applying pkgsrc patch /data/pkgsrc/cad/kicad/patches/patch-include_kiway.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-include_kiway.h,v 1.2 2016/09/08 09:32:28 bouyer Exp $
|
|--- include/kiway.h.orig	2015-12-14 21:13:18.000000000 +0100
|+++ include/kiway.h	2015-12-14 21:13:39.000000000 +0100
--------------------------
Patching file include/kiway.h using Plan A...
Hunk #1 succeeded at 114.
done
=> Verifying /data/pkgsrc/cad/kicad/patches/patch-include_tool_coroutine.h
=> Applying pkgsrc patch /data/pkgsrc/cad/kicad/patches/patch-include_tool_coroutine.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-include_tool_coroutine.h,v 1.1 2016/09/08 09:32:28 bouyer Exp $
|Fix for newer boost, from upstream developement branch
|
|--- include/tool/coroutine.h.orig	2016-09-07 19:04:03.000000000 +0200
|+++ include/tool/coroutine.h	2016-09-07 19:03:54.000000000 +0200
--------------------------
Patching file include/tool/coroutine.h using Plan A...
Hunk #1 succeeded at 3.
Hunk #2 succeeded at 28.
Hunk #3 succeeded at 59.
Hunk #4 succeeded at 74.
Hunk #5 succeeded at 82.
Hunk #6 succeeded at 99.
Hunk #7 succeeded at 128.
Hunk #8 succeeded at 145.
Hunk #9 succeeded at 157.
Hunk #10 succeeded at 170.
Hunk #11 succeeded at 182.
Hunk #12 succeeded at 220.
Hunk #13 succeeded at 254.
done
=> Verifying /data/pkgsrc/cad/kicad/patches/patch-include_tool_tool_base.h
=> Applying pkgsrc patch /data/pkgsrc/cad/kicad/patches/patch-include_tool_tool_base.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-include_tool_tool_base.h,v 1.1 2016/09/08 09:32:28 bouyer Exp $
|Fix for newer boost, from upstream developement branch
|
|--- include/tool/tool_base.h.orig	2016-09-03 22:47:50.000000000 +0200
|+++ include/tool/tool_base.h	2016-09-07 19:03:09.000000000 +0200
--------------------------
Patching file include/tool/tool_base.h using Plan A...
Hunk #1 succeeded at 3.
Hunk #2 succeeded at 32.
Hunk #3 succeeded at 54.
done
=> Verifying /data/pkgsrc/cad/kicad/patches/patch-include_tool_tool_interactive.h
=> Applying pkgsrc patch /data/pkgsrc/cad/kicad/patches/patch-include_tool_tool_interactive.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-include_tool_tool_interactive.h,v 1.1 2016/09/08 09:32:28 bouyer Exp $
|Fix for newer boost, from upstream developement branch
|
|--- include/tool/tool_interactive.h.orig	2016-09-03 22:47:50.000000000 +0200
|+++ include/tool/tool_interactive.h	2016-09-07 19:03:09.000000000 +0200
--------------------------
Patching file include/tool/tool_interactive.h using Plan A...
Hunk #1 succeeded at 3.
Hunk #2 succeeded at 114.
done
=> Verifying /data/pkgsrc/cad/kicad/patches/patch-pagelayout_editor_CMakeLists.txt
=> Applying pkgsrc patch /data/pkgsrc/cad/kicad/patches/patch-pagelayout_editor_CMakeLists.txt
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-pagelayout_editor_CMakeLists.txt,v 1.2 2016/09/08 09:32:28 bouyer Exp $
|
|Force proper LDFLAGS for MODULE, as cmake doens't set rpath for theses
|
|--- pagelayout_editor/CMakeLists.txt.orig	2015-12-16 14:47:22.000000000 +0100
|+++ pagelayout_editor/CMakeLists.txt	2015-12-16 14:51:27.000000000 +0100
--------------------------
Patching file pagelayout_editor/CMakeLists.txt using Plan A...
Hunk #1 succeeded at 120 (offset 3 lines).
done
=> Verifying /data/pkgsrc/cad/kicad/patches/patch-pcb_calculator_CMakeLists.txt
=> Applying pkgsrc patch /data/pkgsrc/cad/kicad/patches/patch-pcb_calculator_CMakeLists.txt
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-pcb_calculator_CMakeLists.txt,v 1.2 2016/09/08 09:32:28 bouyer Exp $
|
|Force proper LDFLAGS for MODULE, as cmake doens't set rpath for theses
|
|--- pcb_calculator/CMakeLists.txt.orig	2015-12-16 14:47:22.000000000 +0100
|+++ pcb_calculator/CMakeLists.txt	2015-12-16 14:51:42.000000000 +0100
--------------------------
Patching file pcb_calculator/CMakeLists.txt using Plan A...
Hunk #1 succeeded at 101 (offset 2 lines).
done
=> Verifying /data/pkgsrc/cad/kicad/patches/patch-pcbnew_CMakeLists.txt
=> Applying pkgsrc patch /data/pkgsrc/cad/kicad/patches/patch-pcbnew_CMakeLists.txt
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-pcbnew_CMakeLists.txt,v 1.3 2016/09/08 09:32:28 bouyer Exp $
|
|Don't use ${CMAKE_MODULE_PATH} directly as it will be changed
|and containt multiple directories
|
|Force proper LDFLAGS for MODULE, as cmake doens't set rpath for theses
|
|--- pcbnew/CMakeLists.txt.orig	2015-12-09 17:21:54.000000000 +0100
|+++ pcbnew/CMakeLists.txt	2015-12-16 14:52:03.000000000 +0100
--------------------------
Patching file pcbnew/CMakeLists.txt using Plan A...
Hunk #1 succeeded at 523 (offset 2 lines).
Hunk #2 succeeded at 615 (offset 2 lines).
done
=> Verifying /data/pkgsrc/cad/kicad/patches/patch-pcbnew_class_edge_mod.cpp
=> Applying pkgsrc patch /data/pkgsrc/cad/kicad/patches/patch-pcbnew_class_edge_mod.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-pcbnew_class_edge_mod.cpp,v 1.3 2016/09/08 09:32:28 bouyer Exp $
|64bit time_t fix
|Reported upstream as bug id 1280901
|
|--- pcbnew/class_edge_mod.cpp.orig	2015-12-11 18:00:51.000000000 +0100
|+++ pcbnew/class_edge_mod.cpp	2015-12-11 18:01:09.000000000 +0100
--------------------------
Patching file pcbnew/class_edge_mod.cpp using Plan A...
Hunk #1 succeeded at 259.
done
=> Verifying /data/pkgsrc/cad/kicad/patches/patch-pcbnew_class_track.cpp
=> Applying pkgsrc patch /data/pkgsrc/cad/kicad/patches/patch-pcbnew_class_track.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-pcbnew_class_track.cpp,v 1.3 2016/09/08 09:32:28 bouyer Exp $
|64bit time_t fix
|Reported upstream as bug id 1280901
|
|--- pcbnew/class_track.cpp.orig	2015-12-11 18:02:48.000000000 +0100
|+++ pcbnew/class_track.cpp	2015-12-11 18:03:02.000000000 +0100
--------------------------
Patching file pcbnew/class_track.cpp using Plan A...
Hunk #1 succeeded at 143.
done
=> Verifying /data/pkgsrc/cad/kicad/patches/patch-pcbnew_kicad_plugin.cpp
=> Applying pkgsrc patch /data/pkgsrc/cad/kicad/patches/patch-pcbnew_kicad_plugin.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-pcbnew_kicad_plugin.cpp,v 1.3 2016/09/08 09:32:28 bouyer Exp $
|64bit time_t fix
|Reported upstream as bug id 1280901
|
|--- pcbnew/kicad_plugin.cpp.orig	2015-12-11 18:05:12.000000000 +0100
|+++ pcbnew/kicad_plugin.cpp	2015-12-11 18:14:06.000000000 +0100
--------------------------
Patching file pcbnew/kicad_plugin.cpp using Plan A...
Hunk #1 succeeded at 795 (offset 25 lines).
Hunk #2 succeeded at 904 (offset 25 lines).
Hunk #3 succeeded at 991 (offset 25 lines).
Hunk #4 succeeded at 1028 (offset 25 lines).
Hunk #5 succeeded at 1369 (offset 25 lines).
Hunk #6 succeeded at 1477 (offset 25 lines).
Hunk #7 succeeded at 1498 (offset 25 lines).
done
=> Verifying /data/pkgsrc/cad/kicad/patches/patch-pcbnew_legacy_plugin.cpp
=> Applying pkgsrc patch /data/pkgsrc/cad/kicad/patches/patch-pcbnew_legacy_plugin.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-pcbnew_legacy_plugin.cpp,v 1.3 2016/09/08 09:32:28 bouyer Exp $
|64bit time_t fix
|Reported upstream as bug id 1280901
|
|--- pcbnew/legacy_plugin.cpp.orig	2015-12-11 18:15:36.000000000 +0100
|+++ pcbnew/legacy_plugin.cpp	2015-12-11 18:17:49.000000000 +0100
--------------------------
Patching file pcbnew/legacy_plugin.cpp using Plan A...
Hunk #1 succeeded at 2328 (offset 1 line).
Hunk #2 succeeded at 2811 (offset 1 line).
Hunk #3 succeeded at 3809 (offset 1 line).
Hunk #4 succeeded at 3824 (offset 1 line).
Hunk #5 succeeded at 3905 (offset 1 line).
Hunk #6 succeeded at 3931 (offset 1 line).
Hunk #7 succeeded at 3941 (offset 1 line).
Hunk #8 succeeded at 3976 (offset 1 line).
Hunk #9 succeeded at 3988 (offset 1 line).
Hunk #10 succeeded at 4106 (offset 1 line).
Hunk #11 succeeded at 4194 (offset 1 line).
done
=> Verifying /data/pkgsrc/cad/kicad/patches/patch-pcbnew_xchgmod.cpp
=> Applying pkgsrc patch /data/pkgsrc/cad/kicad/patches/patch-pcbnew_xchgmod.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-pcbnew_xchgmod.cpp,v 1.3 2016/09/08 09:32:28 bouyer Exp $
|64bit time_t fix
|Reported upstream as bug id 1280901
|
|--- pcbnew/xchgmod.cpp.orig	2015-12-11 18:20:54.000000000 +0100
|+++ pcbnew/xchgmod.cpp	2015-12-11 18:21:01.000000000 +0100
--------------------------
Patching file pcbnew/xchgmod.cpp using Plan A...
Hunk #1 succeeded at 542.
done
===> Creating toolchain wrappers for kicad-4.0.7nb4
===> Configuring for kicad-4.0.7nb4
=> Eliminating Mac OS X build specific for kicad-4.0.7nb4
=> Fixing locale directory references.
INFO: [subst.mk:pkglocaledir] Nothing changed in ./packaging/mac-osx/dmg-generator/Makefile.
=> Fixing CMAKE_MODULE_PATH in CMakeLists.txt
=> Checking for portability problems in extracted files
-- The C compiler identification is Clang 5.0.5
-- The CXX compiler identification is Clang 5.0.5
CMake Warning (dev) at /usr/pkg/share/cmake-3.11/Modules/Platform/NetBSD.cmake:13 (include):
  File /usr/pkg/share/cmake-3.11/Modules/Platform/NetBSD.cmake includes
  /data/scratch/cad/kicad/work/.buildlink/cmake-Modules/Platform/UnixPaths.cmake
  (found via CMAKE_MODULE_PATH) which shadows
  /usr/pkg/share/cmake-3.11/Modules/Platform/UnixPaths.cmake.  This may cause
  errors later on .

  Policy CMP0017 is not set: Prefer files from the CMake module directory
  when including from there.  Run "cmake --help-policy CMP0017" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.
Call Stack (most recent call first):
  /usr/pkg/share/cmake-3.11/Modules/CMakeSystemSpecificInformation.cmake:26 (include)
  CMakeLists.txt:32 (project)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/pkg/share/cmake-3.11/Modules/Platform/NetBSD.cmake:13 (include):
  File /usr/pkg/share/cmake-3.11/Modules/Platform/NetBSD.cmake includes
  /data/scratch/cad/kicad/work/.buildlink/cmake-Modules/Platform/UnixPaths.cmake
  (found via CMAKE_MODULE_PATH) which shadows
  /usr/pkg/share/cmake-3.11/Modules/Platform/UnixPaths.cmake.  This may cause
  errors later on .

  Policy CMP0017 is not set: Prefer files from the CMake module directory
  when including from there.  Run "cmake --help-policy CMP0017" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.
Call Stack (most recent call first):
  /usr/pkg/share/cmake-3.11/Modules/CMakeCInformation.cmake:66 (include)
  CMakeLists.txt:32 (project)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Check for working C compiler: /data/scratch/cad/kicad/work/.cwrapper/bin/clang
-- Check for working C compiler: /data/scratch/cad/kicad/work/.cwrapper/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
CMake Warning (dev) at /usr/pkg/share/cmake-3.11/Modules/Platform/NetBSD.cmake:13 (include):
  File /usr/pkg/share/cmake-3.11/Modules/Platform/NetBSD.cmake includes
  /data/scratch/cad/kicad/work/.buildlink/cmake-Modules/Platform/UnixPaths.cmake
  (found via CMAKE_MODULE_PATH) which shadows
  /usr/pkg/share/cmake-3.11/Modules/Platform/UnixPaths.cmake.  This may cause
  errors later on .

  Policy CMP0017 is not set: Prefer files from the CMake module directory
  when including from there.  Run "cmake --help-policy CMP0017" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.
Call Stack (most recent call first):
  /usr/pkg/share/cmake-3.11/Modules/CMakeCXXInformation.cmake:65 (include)
  CMakeLists.txt:32 (project)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Check for working CXX compiler: /data/scratch/cad/kicad/work/.cwrapper/bin/clang++
-- Check for working CXX compiler: /data/scratch/cad/kicad/work/.cwrapper/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Kicad install dir: </usr/pkg>
-- Performing Test GXX_HAS_VISIBILITY_FLAG
-- Performing Test GXX_HAS_VISIBILITY_FLAG - Success
-- Performing Test GXX_HAS_VISIBILITY_INLINES_FLAG
-- Performing Test GXX_HAS_VISIBILITY_INLINES_FLAG - Success
-- Looking for malloc.h
-- Looking for malloc.h - found
-- Looking for iso646.h
-- Looking for iso646.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for strncasecmp
-- Looking for strncasecmp - found
-- Looking for strtok_r
-- Looking for strtok_r - found
CMake Error at CMakeModules/CheckCXXSymbolExists.cmake:41 (_CHECK_SYMBOL_EXISTS):
  Unknown CMake command "_CHECK_SYMBOL_EXISTS".
Call Stack (most recent call first):
  CMakeModules/PerformFeatureChecks.cmake:86 (check_cxx_symbol_exists)
  CMakeLists.txt:141 (perform_feature_checks)


-- Configuring incomplete, errors occurred!
See also "/data/scratch/cad/kicad/work/kicad-4.0.7/CMakeFiles/CMakeOutput.log".
*** Error code 1

Stop.
make[1]: stopped in /data/pkgsrc/cad/kicad
*** Error code 1

Stop.
make: stopped in /data/pkgsrc/cad/kicad