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

        * FAM_DEFAULT = fam
        * 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:

        * FAMBASE (defined, but empty)
        * FAM_TYPE = fam
        * 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 cmake>=2.8.1nb1: found cmake-3.7.2
=> Tool dependency pkgconf-[0-9]*: found pkgconf-1.0.1
=> Tool dependency checkperms>=1.1: found checkperms-1.11nb1
=> Build dependency automoc4>=0.9.83: found automoc4-0.9.88nb24
=> Build dependency dri2proto>=2.1: found dri2proto-2.8
=> Build dependency dri3proto>=1.0: found dri3proto-1.0
=> Build dependency xproto>=7.0.13: found xproto-7.0.31
=> Build dependency presentproto>=1.0: found presentproto-1.1
=> Build dependency glproto>=1.4.11: found glproto-1.4.17
=> Build dependency damageproto>=1.1.0: found damageproto-1.2.1
=> Build dependency fixesproto>=4.0.0: found fixesproto-5.0
=> Build dependency xextproto>=7.0.99.1: found xextproto-7.3.0
=> Build dependency inputproto>=2.3: found inputproto-2.3.2
=> Build dependency kbproto>=1.0.2: found kbproto-1.0.7
=> Build dependency xcb-proto>=1.4: found xcb-proto-1.12
=> Build dependency xf86vidmodeproto>=2.3: found xf86vidmodeproto-2.3.1
=> Build dependency xf86driproto>=2.0.3: found xf86driproto-2.1.1nb1
=> Build dependency renderproto>=0.9.3nb1: found renderproto-0.11.1
=> Build dependency randrproto>=1.4: found randrproto-1.5.0
=> Build dependency xineramaproto>=1.1.1: found xineramaproto-1.2.1
=> Build dependency qt4-tools>=4.8.7nb1: found qt4-tools-4.8.7nb2
=> Build dependency boost-headers-1.63.*: found boost-headers-1.63.0
=> Build dependency recordproto>=1.13.1: found recordproto-1.14.2
=> Build dependency cwrappers>=20150314: found cwrappers-20170112
=> Full dependency qt4-libs>=4.8.7nb1: found qt4-libs-4.8.7nb6
=> Full dependency qt4-qdbus>=4.8.7nb1: found qt4-qdbus-4.8.7nb1
=> Full dependency opencv>=3.0.0: found opencv-3.2.0
=> Full dependency opencv-contrib-face>=3.0.0: found opencv-contrib-face-3.2.0
=> Full dependency kdelibs4>=4.14.15nb4: found kdelibs4-4.14.27
===> Overriding tools for libkface-4.13.0nb4
===> Extracting for libkface-4.13.0nb4
===> Patching for libkface-4.13.0nb4
=> Applying pkgsrc patches for libkface-4.13.0nb4
=> Verifying /data/pkgsrc/graphics/libkface/patches/patch-CMakeLists.txt
=> Applying pkgsrc patch /data/pkgsrc/graphics/libkface/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.1 2015/11/03 20:28:57 markd Exp $
|
|opencv3 support. https://bugs.kde.org/show_bug.cgi?id=349601
|
|--- CMakeLists.txt.orig	2015-09-03 21:22:44.000000000 +0000
|+++ CMakeLists.txt
--------------------------
Patching file CMakeLists.txt using Plan A...
Hunk #1 succeeded at 10.
Hunk #2 succeeded at 32.
done
=> Verifying /data/pkgsrc/graphics/libkface/patches/patch-README
=> Applying pkgsrc patch /data/pkgsrc/graphics/libkface/patches/patch-README
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-README,v 1.1 2015/11/03 20:28:57 markd Exp $
|
|opencv3 support. https://bugs.kde.org/show_bug.cgi?id=349601
|
|--- README.orig	2015-09-03 21:22:44.000000000 +0000
|+++ README
--------------------------
Patching file README using Plan A...
Hunk #1 succeeded at 21.
done
=> Verifying /data/pkgsrc/graphics/libkface/patches/patch-libkface_CMakeLists.txt
=> Applying pkgsrc patch /data/pkgsrc/graphics/libkface/patches/patch-libkface_CMakeLists.txt
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-libkface_CMakeLists.txt,v 1.1 2015/11/03 20:28:57 markd Exp $
|
|opencv3 support. https://bugs.kde.org/show_bug.cgi?id=349601
|
|--- libkface/CMakeLists.txt.orig	2015-09-03 21:22:44.000000000 +0000
|+++ libkface/CMakeLists.txt
--------------------------
Patching file libkface/CMakeLists.txt using Plan A...
Hunk #1 succeeded at 1.
Hunk #2 succeeded at 52.
done
=> Verifying /data/pkgsrc/graphics/libkface/patches/patch-libkface_detection_opencvfacedetector.cpp
=> Applying pkgsrc patch /data/pkgsrc/graphics/libkface/patches/patch-libkface_detection_opencvfacedetector.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-libkface_detection_opencvfacedetector.cpp,v 1.1 2015/11/03 20:28:57 markd Exp $
|
|opencv3 support. https://bugs.kde.org/show_bug.cgi?id=349601
|
|--- libkface/detection/opencvfacedetector.cpp.orig	2015-09-03 21:22:44.000000000 +0000
|+++ libkface/detection/opencvfacedetector.cpp
--------------------------
Patching file libkface/detection/opencvfacedetector.cpp using Plan A...
Hunk #1 succeeded at 18.
Hunk #2 succeeded at 136.
done
=> Verifying /data/pkgsrc/graphics/libkface/patches/patch-libkface_libopencv.h.cmake.in
=> Applying pkgsrc patch /data/pkgsrc/graphics/libkface/patches/patch-libkface_libopencv.h.cmake.in
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-libkface_libopencv.h.cmake.in,v 1.1 2015/11/03 20:28:57 markd Exp $
|
|opencv3 support. https://bugs.kde.org/show_bug.cgi?id=349601
|
|--- libkface/libopencv.h.cmake.in.orig	2015-09-03 21:22:44.000000000 +0000
|+++ libkface/libopencv.h.cmake.in
--------------------------
Patching file libkface/libopencv.h.cmake.in using Plan A...
Hunk #1 succeeded at 7.
Hunk #2 succeeded at 31.
Hunk #3 succeeded at 51.
done
=> Verifying /data/pkgsrc/graphics/libkface/patches/patch-libkface_recognition-opencv-lbph_facerec_borrowed.cpp
=> Applying pkgsrc patch /data/pkgsrc/graphics/libkface/patches/patch-libkface_recognition-opencv-lbph_facerec_borrowed.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-libkface_recognition-opencv-lbph_facerec_borrowed.cpp,v 1.2 2016/03/29 10:14:05 markd Exp $
|
|opencv3 support. https://bugs.kde.org/show_bug.cgi?id=349601
|opencv3.1 - https://git.reviewboard.kde.org/r/126833/ with test reversed
|
|--- libkface/recognition-opencv-lbph/facerec_borrowed.cpp.orig	2015-09-03 21:22:44.000000000 +0000
|+++ libkface/recognition-opencv-lbph/facerec_borrowed.cpp
--------------------------
Patching file libkface/recognition-opencv-lbph/facerec_borrowed.cpp using Plan A...
Hunk #1 succeeded at 36.
Hunk #2 succeeded at 377.
Hunk #3 succeeded at 400.
Hunk #4 succeeded at 416.
Hunk #5 succeeded at 440.
Hunk #6 succeeded at 463.
Hunk #7 succeeded at 487.
Hunk #8 succeeded at 505.
Hunk #9 succeeded at 515.
Hunk #10 succeeded at 542.
Hunk #11 succeeded at 568.
done
=> Verifying /data/pkgsrc/graphics/libkface/patches/patch-libkface_recognition-opencv-lbph_facerec_borrowed.h
=> Applying pkgsrc patch /data/pkgsrc/graphics/libkface/patches/patch-libkface_recognition-opencv-lbph_facerec_borrowed.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-libkface_recognition-opencv-lbph_facerec_borrowed.h,v 1.2 2016/03/29 10:14:05 markd Exp $
|
|opencv3 support. https://bugs.kde.org/show_bug.cgi?id=349601
|opencv3.1 - https://git.reviewboard.kde.org/r/126833/ with test reversed
|
|--- libkface/recognition-opencv-lbph/facerec_borrowed.h.orig	2015-09-03 21:22:44.000000000 +0000
|+++ libkface/recognition-opencv-lbph/facerec_borrowed.h
--------------------------
Patching file libkface/recognition-opencv-lbph/facerec_borrowed.h using Plan A...
Hunk #1 succeeded at 45.
Hunk #2 succeeded at 103.
Hunk #3 succeeded at 125.
Hunk #4 succeeded at 136.
Hunk #5 succeeded at 157.
Hunk #6 succeeded at 193.
done
=> Verifying /data/pkgsrc/graphics/libkface/patches/patch-libkface_recognition-opencv-lbph_lbphfacemodel.cpp
=> Applying pkgsrc patch /data/pkgsrc/graphics/libkface/patches/patch-libkface_recognition-opencv-lbph_lbphfacemodel.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-libkface_recognition-opencv-lbph_lbphfacemodel.cpp,v 1.1 2015/11/03 20:28:57 markd Exp $
|
|opencv3 support. https://bugs.kde.org/show_bug.cgi?id=349601
|
|--- libkface/recognition-opencv-lbph/lbphfacemodel.cpp.orig	2015-09-03 21:22:44.000000000 +0000
|+++ libkface/recognition-opencv-lbph/lbphfacemodel.cpp
--------------------------
Patching file libkface/recognition-opencv-lbph/lbphfacemodel.cpp using Plan A...
Hunk #1 succeeded at 61.
Hunk #2 succeeded at 84.
Hunk #3 succeeded at 98.
Hunk #4 succeeded at 212.
Hunk #5 succeeded at 271.
done
===> Creating toolchain wrappers for libkface-4.13.0nb4
src=/usr/pkg/lib/pkgconfig/fixesproto.pc  dst=/data/scratch/graphics/libkface/work/.buildlink/lib/pkgconfig/fixesext.pc;  /bin/mkdir -p /data/scratch/graphics/libkface/work/.buildlink/lib/pkgconfig;  if test -f ${src}; then  /bin/ln -sf ${src} ${dst};  fi
===> Configuring for libkface-4.13.0nb4
/bin/ln -sf /usr/pkg/qt4/bin/qmake /data/scratch/graphics/libkface/work/.buildlink/bin/
=> Generating pkg-config file for builtin expat package.
=> Adding run-time search paths to pkg-config files.
WARNING: [subst.mk:_pkgconfig] Ignoring non-existent file "./libkface.pc.cmake".
=> Fixing locale directory references.
=> 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
-- Check for working C compiler: /data/scratch/graphics/libkface/work/.cwrapper/bin/clang
-- Check for working C compiler: /data/scratch/graphics/libkface/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
-- Check for working CXX compiler: /data/scratch/graphics/libkface/work/.cwrapper/bin/clang++
-- Check for working CXX compiler: /data/scratch/graphics/libkface/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
-- ----------------------------------------------------------------------------------
-- Starting CMake configuration for: libkface
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found
-- Found Qt4: /usr/pkg/qt4/bin/qmake (found suitable version "4.8.7", minimum required is "4.6.0") 
-- Found Qt-Version 4.8.7 (using /usr/pkg/qt4/bin/qmake)
-- Looking for XOpenDisplay in /usr/pkg/lib/libX11.so;/usr/pkg/lib/libXext.so;/usr/pkg/lib/libXft.so;/usr/pkg/lib/libXau.so;/usr/pkg/lib/libXdmcp.so;/usr/pkg/lib/libXpm.so
-- Looking for XOpenDisplay in /usr/pkg/lib/libX11.so;/usr/pkg/lib/libXext.so;/usr/pkg/lib/libXft.so;/usr/pkg/lib/libXau.so;/usr/pkg/lib/libXdmcp.so;/usr/pkg/lib/libXpm.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/pkg/lib/libX11.so
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Looking for _POSIX_TIMERS
-- Looking for _POSIX_TIMERS - found
-- Found Automoc4: /usr/pkg/bin/automoc4  
-- Found Perl: /data/scratch/graphics/libkface/work/.tools/bin/perl  
-- Found Phonon: /usr/pkg/include (Required is at least version "4.3.80") 
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Found KDE 4.12 include dir: /usr/pkg/include
-- Found KDE 4.12 library dir: /usr/pkg/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/pkg/bin/kconfig_compiler
-- Found automoc4: /usr/pkg/bin/automoc4
-- First try at finding OpenCV...
-- Could NOT find OpenCV (missing:  face) (found version "3.2.0")
CMake Warning at cmake/modules/MacroOpenCV.cmake:27 (find_package):
  Found package configuration file:

    /usr/pkg/share/OpenCV/OpenCVConfig.cmake

  but it set OpenCV_FOUND to FALSE so package "OpenCV" is considered to be
  NOT FOUND.
Call Stack (most recent call first):
  CMakeLists.txt:37 (DETECT_OPENCV)


-- Great, found OpenCV on the first try.
-- OpenCV Root directory is: /usr/pkg/share/OpenCV
-- OpenCV: Found version 3.2.0 (required: 3.0.0)
-- OpenCV headers: /usr/pkg/include;/usr/pkg/include/opencv
-- OpenCV libs   : opencv_core;opencv_highgui;opencv_objdetect;opencv_imgproc
CMake Error at CMakeLists.txt:121 (message):
  LibKface cannot be compiled.


-- Configuring incomplete, errors occurred!
See also "/data/scratch/graphics/libkface/work/digikam-4.13.0/extra/libkface/CMakeFiles/CMakeOutput.log".
See also "/data/scratch/graphics/libkface/work/digikam-4.13.0/extra/libkface/CMakeFiles/CMakeError.log".
*** Error code 1

Stop.
make[1]: stopped in /data/pkgsrc/graphics/libkface
WARNING: Please add USE_TOOLS+=perl to the package Makefile.
WARNING: Please add USE_TOOLS+=perl to the package Makefile.
*** Error code 1

Stop.
make: stopped in /data/pkgsrc/graphics/libkface