=> Bootstrap dependency digest>=20010302: found digest-20160304
WARNING: [license.mk] Every package should define a LICENSE.
===> 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 libdrm-2.4.75.tar.bz2
=> Checksum RMD160 OK for libdrm-2.4.75.tar.bz2
=> Checksum SHA512 OK for libdrm-2.4.75.tar.bz2
===> Installing dependencies for libdrm-2.4.75
=> Tool dependency libtool-base>=2.4.2nb9: found libtool-base-2.4.6
=> 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
===> Overriding tools for libdrm-2.4.75
===> Extracting for libdrm-2.4.75
===> Patching for libdrm-2.4.75
=> Applying pkgsrc patches for libdrm-2.4.75
=> Verifying /data/pkgsrc-current/x11/libdrm/patches/patch-ab
=> Applying pkgsrc patch /data/pkgsrc-current/x11/libdrm/patches/patch-ab
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-ab,v 1.8 2015/08/14 17:12:35 wiz Exp $
|
|--- xf86drm.c.orig	2015-08-13 22:27:03.000000000 +0000
|+++ xf86drm.c
--------------------------
Patching file xf86drm.c using Plan A...
Hunk #1 succeeded at 87 (offset 8 lines).
done
=> Verifying /data/pkgsrc-current/x11/libdrm/patches/patch-ac
=> Applying pkgsrc patch /data/pkgsrc-current/x11/libdrm/patches/patch-ac
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-ac,v 1.4 2012/02/16 20:30:56 hans Exp $
|
|--- xf86drm.h.orig	2010-03-05 23:21:13.000000000 +0000
|+++ xf86drm.h
--------------------------
Patching file xf86drm.h using Plan A...
Hunk #1 succeeded at 35.
Hunk #2 succeeded at 63 (offset 4 lines).
Hunk #3 succeeded at 357 (offset 17 lines).
done
=> Verifying /data/pkgsrc-current/x11/libdrm/patches/patch-include_drm_drm.h
=> Applying pkgsrc patch /data/pkgsrc-current/x11/libdrm/patches/patch-include_drm_drm.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-include_drm_drm.h,v 1.4 2016/04/29 11:17:34 wiz Exp $
|
|Fix compilation on systems that don't provide O_CLOEXEC.
|
|--- include/drm/drm.h.orig	2016-04-28 00:44:16.000000000 +0000
|+++ include/drm/drm.h
--------------------------
Patching file include/drm/drm.h using Plan A...
Hunk #1 succeeded at 679 (offset 5 lines).
done
=> Verifying /data/pkgsrc-current/x11/libdrm/patches/patch-libkms_vmwgfx.c
=> Applying pkgsrc patch /data/pkgsrc-current/x11/libdrm/patches/patch-libkms_vmwgfx.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-libkms_vmwgfx.c,v 1.3 2015/05/07 06:31:06 wiz Exp $
|
|Provide compatibility errno number for non-Linux.
|
|--- libkms/vmwgfx.c.orig	2015-05-06 23:04:31.000000000 +0000
|+++ libkms/vmwgfx.c
--------------------------
Patching file libkms/vmwgfx.c using Plan A...
Hunk #1 succeeded at 39.
done
=> Verifying /data/pkgsrc-current/x11/libdrm/patches/patch-radeon_radeon__bo__gem.c
=> Applying pkgsrc patch /data/pkgsrc-current/x11/libdrm/patches/patch-radeon_radeon__bo__gem.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-radeon_radeon__bo__gem.c,v 1.1 2014/10/26 10:20:10 wiz Exp $
|
|--- radeon/radeon_bo_gem.c.orig	2014-09-28 16:19:54.000000000 +0000
|+++ radeon/radeon_bo_gem.c
--------------------------
Patching file radeon/radeon_bo_gem.c using Plan A...
Hunk #1 succeeded at 178.
Hunk #2 succeeded at 252.
done
=> Verifying /data/pkgsrc-current/x11/libdrm/patches/patch-radeon_radeon__cs__gem.c
=> Applying pkgsrc patch /data/pkgsrc-current/x11/libdrm/patches/patch-radeon_radeon__cs__gem.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-radeon_radeon__cs__gem.c,v 1.1 2014/10/26 10:20:10 wiz Exp $
|
|--- radeon/radeon_cs_gem.c.orig	2014-09-28 16:19:54.000000000 +0000
|+++ radeon/radeon_cs_gem.c
--------------------------
Patching file radeon/radeon_cs_gem.c using Plan A...
Hunk #1 succeeded at 528 (offset 3 lines).
done
=> Verifying /data/pkgsrc-current/x11/libdrm/patches/patch-xf86drmMode.c
=> Applying pkgsrc patch /data/pkgsrc-current/x11/libdrm/patches/patch-xf86drmMode.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-xf86drmMode.c,v 1.2 2015/04/11 10:02:11 sevan Exp $
|
|Disable checking for hw.dri.%d.modesetting.
|This sysctl is only available if a KMS module is loaded. But the libdrm
|check happens before X got a chance of loading the KMS module.
|
|--- xf86drmMode.c.orig	2015-03-18 17:33:36.000000000 +0000
|+++ xf86drmMode.c
--------------------------
Patching file xf86drmMode.c using Plan A...
Hunk #1 succeeded at 797 (offset 26 lines).
Hunk #2 succeeded at 922 (offset 33 lines).
done
=> Verifying /data/pkgsrc-current/x11/libdrm/patches/patch-xf86drmMode.h
=> Applying pkgsrc patch /data/pkgsrc-current/x11/libdrm/patches/patch-xf86drmMode.h
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-xf86drmMode.h,v 1.1 2014/10/26 10:20:10 wiz Exp $
|
|--- xf86drmMode.h.orig	2014-06-14 12:33:26.000000000 +0000
|+++ xf86drmMode.h
--------------------------
Patching file xf86drmMode.h using Plan A...
Hunk #1 succeeded at 484 (offset 35 lines).
done
===> Creating toolchain wrappers for libdrm-2.4.75
===> Configuring for libdrm-2.4.75
=> Configuring xf86drm.h's atomic operations.
=> 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.
=> Fixing locale directory references.
=> Checking for portability problems in extracted files
checking for xsltproc... no
configure: WARNING: xsltproc not found - cannot transform XML documents
checking build system type... x86_64--netbsd
checking host system type... x86_64--netbsd
checking for a sed that does not truncate output... /usr/bin/sed
checking for a BSD-compatible install... /usr/bin/install -c -o pbulkXXX -g users
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... /usr/bin/awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) 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 whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking how to run the C preprocessor... gcc -std=gnu99 -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 special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for size_t... yes
checking for working alloca.h... no
checking for alloca... yes
checking whether sys/types.h defines makedev... yes
checking sys/sysctl.h usability... yes
checking sys/sysctl.h presence... yes
checking for sys/sysctl.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc -std=gnu99... /data/scratch/x11/libdrm/work/.cwrapper/bin/ld
checking if the linker (/data/scratch/x11/libdrm/work/.cwrapper/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... (cached) 262144
checking how to convert x86_64--netbsd file names to x86_64--netbsd format... func_convert_file_noop
checking how to convert x86_64--netbsd file names to toolchain format... func_convert_file_noop
checking for /data/scratch/x11/libdrm/work/.cwrapper/bin/ld option to reload object files... -r
checking for x86_64--netbsd-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... match_pattern /lib[^/]+(\.so|_pic\.a)$
checking for x86_64--netbsd-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64--netbsd-ar... no
checking for ar... ar
checking for archiver @FILE support... @
checking for x86_64--netbsd-strip... no
checking for strip... strip
checking for x86_64--netbsd-ranlib... no
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc -std=gnu99 object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for x86_64--netbsd-mt... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no
checking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC
checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes
checking if gcc -std=gnu99 static flag -static works... yes
checking if gcc -std=gnu99 supports -c -o file.o... rm: conftest*: No such file or directory
yes
checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes
checking whether the gcc -std=gnu99 linker (/data/scratch/x11/libdrm/work/.cwrapper/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... rm: conftest*: No such file or directory
no
checking dynamic linker characteristics... NetBSD ld.elf_so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for clock_gettime... yes
checking for open_memstream... no
checking for supported warning flags... 
checking whether gcc -std=gnu99 supports -Wall... yes
checking whether gcc -std=gnu99 supports -Wextra... yes
checking whether gcc -std=gnu99 supports -Wsign-compare... yes
checking whether gcc -std=gnu99 supports -Werror-implicit-function-declaration... yes
checking whether gcc -std=gnu99 supports -Wpointer-arith... yes
checking whether gcc -std=gnu99 supports -Wwrite-strings... yes
checking whether gcc -std=gnu99 supports -Wstrict-prototypes... yes
checking whether gcc -std=gnu99 supports -Wmissing-prototypes... yes
checking whether gcc -std=gnu99 supports -Wmissing-declarations... yes
checking whether gcc -std=gnu99 supports -Wnested-externs... yes
checking whether gcc -std=gnu99 supports -Wpacked... yes
checking whether gcc -std=gnu99 supports -Wswitch-enum... yes
checking whether gcc -std=gnu99 supports -Wmissing-format-attribute... yes
checking whether gcc -std=gnu99 supports -Wstrict-aliasing=2... yes
checking whether gcc -std=gnu99 supports -Winit-self... yes
checking whether gcc -std=gnu99 supports -Wdeclaration-after-statement... yes
checking whether gcc -std=gnu99 supports -Wold-style-definition... yes
checking whether gcc -std=gnu99 supports -Wno-unused-parameter... yes
checking whether gcc -std=gnu99 supports -Wno-attributes... yes
checking whether gcc -std=gnu99 supports -Wno-long-long... yes
checking whether gcc -std=gnu99 supports -Winline... yes
checking whether gcc -std=gnu99 supports -Wshadow... yes
checking whether gcc -std=gnu99 supports -Wno-missing-field-initializers... yes
checking which warning flags were supported...  -Wall -Wextra -Wsign-compare -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Winline -Wshadow -Wno-missing-field-initializers
checking for native atomic primitives... Intel
checking pkg-config is at least version 0.9.0... yes
checking for PCIACCESS... yes
checking for CUNIT... no
checking for CU_initialize_registry in -lcunit... no
configure: WARNING: Could not find cunit library. Disabling amdgpu tests
checking for CAIRO... no
checking whether to enable Cairo tests... no
checking for docbook manpages stylesheet... no
checking whether to enable Valgrind support... no
checking whether gcc -std=gnu99 supports __attribute__(("hidden"))... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libkms/Makefile
config.status: creating libkms/libkms.pc
config.status: creating intel/Makefile
config.status: creating intel/libdrm_intel.pc
config.status: creating radeon/Makefile
config.status: creating radeon/libdrm_radeon.pc
config.status: creating amdgpu/Makefile
config.status: creating amdgpu/libdrm_amdgpu.pc
config.status: creating nouveau/Makefile
config.status: creating nouveau/libdrm_nouveau.pc
config.status: creating omap/Makefile
config.status: creating omap/libdrm_omap.pc
config.status: creating exynos/Makefile
config.status: creating exynos/libdrm_exynos.pc
config.status: creating freedreno/Makefile
config.status: creating freedreno/libdrm_freedreno.pc
config.status: creating tegra/Makefile
config.status: creating tegra/libdrm_tegra.pc
config.status: creating vc4/Makefile
config.status: creating vc4/libdrm_vc4.pc
config.status: creating etnaviv/Makefile
config.status: creating etnaviv/libdrm_etnaviv.pc
config.status: creating tests/Makefile
config.status: creating tests/modeprint/Makefile
config.status: creating tests/modetest/Makefile
config.status: creating tests/kms/Makefile
config.status: creating tests/kmstest/Makefile
config.status: creating tests/proptest/Makefile
config.status: creating tests/radeon/Makefile
config.status: creating tests/amdgpu/Makefile
config.status: creating tests/vbltest/Makefile
config.status: creating tests/exynos/Makefile
config.status: creating tests/tegra/Makefile
config.status: creating tests/nouveau/Makefile
config.status: creating tests/etnaviv/Makefile
config.status: creating tests/util/Makefile
config.status: creating man/Makefile
config.status: creating libdrm.pc
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
rm: libtoolT: No such file or directory

libdrm 2.4.75 will be compiled with:

  libkms         no
  Intel API      yes
  vmwgfx API     yes
  Radeon API     yes
  AMDGPU API     yes
  Nouveau API    yes
  OMAP API       no
  EXYNOS API     no
  Freedreno API  no (kgsl: no)
  Tegra API      no
  VC4 API        no
  Etnaviv API    no

=> Modifying libtool scripts to use pkgsrc libtool
=> Modifying libtool scripts to use pkgsrc depcomp