=> Bootstrap dependency digest>=20211023: found digest-20220214 => Checksum BLAKE2s OK for leptonica-1.84.1.tar.gz => Checksum SHA512 OK for leptonica-1.84.1.tar.gz ===> Installing dependencies for leptonica-1.84.1nb1 ========================================================================== The following variables will affect the build process of this package, leptonica-1.84.1nb1. Their current value is shown below: * JPEG_DEFAULT = jpeg Based on these variables, the following variables have been set: * JPEGBASE (defined, but empty) * JPEG_TYPE = jpeg You may want to abort the process now with CTRL-C and change the value of variables in the first group before continuing. Be sure to run `/usr/bin/make clean' after the changes. ========================================================================== => Tool dependency cmake>=0: found cmake-3.28.3 => Tool dependency mktools-[0-9]*: found mktools-20220614 => Tool dependency pkgconf-[0-9]*: found pkgconf-2.1.1 => Tool dependency cwrappers>=20150314: found cwrappers-20220403 => Tool dependency checkperms>=1.1: found checkperms-1.12 => Build dependency gcc10>=10.3.0nb2: found gcc10-10.5.0 => Full dependency giflib>=5.2.1nb4: found giflib-5.2.1nb6 => Full dependency libwebp>=0.6.0: found libwebp-1.3.2nb1 => Full dependency openjpeg>=2.1.0: found openjpeg-2.5.1 => Full dependency png>=1.6.0nb1: found png-1.6.43 => Full dependency tiff>=4.6.0: found tiff-4.6.0nb3 => Full dependency jpeg>=9: found jpeg-9e => Full dependency gcc10-libs>=10.2.0: found gcc10-libs-10.5.0nb1 ===> Skipping vulnerability checks. WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'. ===> Overriding tools for leptonica-1.84.1nb1 ===> Extracting for leptonica-1.84.1nb1 ===> Patching for leptonica-1.84.1nb1 => Applying pkgsrc patches for leptonica-1.84.1nb1 => Verifying /amd/pkgsrc/CHROOT/P/pkgsrc/graphics/leptonica/patches/patch-CMakeLists.txt => Applying pkgsrc patch /amd/pkgsrc/CHROOT/P/pkgsrc/graphics/leptonica/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 2024/01/19 15:17:11 adam Exp $ | |Prefer lept.pc for pkg-config file. | |--- CMakeLists.txt.orig 2024-01-02 23:48:24.000000000 +0000 |+++ CMakeLists.txt -------------------------- Patching file CMakeLists.txt using Plan A... Hunk #1 succeeded at 358. Hunk #2 succeeded at 368. done => Verifying /amd/pkgsrc/CHROOT/P/pkgsrc/graphics/leptonica/patches/patch-src_environ.h => Applying pkgsrc patch /amd/pkgsrc/CHROOT/P/pkgsrc/graphics/leptonica/patches/patch-src_environ.h Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-src_environ.h,v 1.1 2023/12/20 10:31:34 nros Exp $ | |* Illumos gcc defines __STDC_VERSION__ in C++ mode, | this causes problems for leptonica C++ consumers | when gcc 12 is used. In gcc 12 atomic_int is not | defined in stdatomic.h in C++ mode. | Make sure this path in not chosen in C++ mode, | like gcc on GNU Linux, NetBSD etc. | |--- src/environ.h.orig 2023-01-26 06:12:24.000000000 +0000 |+++ src/environ.h -------------------------- Patching file src/environ.h using Plan A... Hunk #1 succeeded at 65. done ===> Creating toolchain wrappers for leptonica-1.84.1nb1 ===> Configuring for leptonica-1.84.1nb1 => Generating pkg-config files for builtin xz package. => Checking for portability problems in extracted files CMake Deprecation Warning at CMakeLists.txt:11 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake. Update the VERSION argument value or use a ... suffix to tell CMake that the project does not need compatibility with older versions. -- The C compiler identification is GNU 10.5.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /tmp/graphics/leptonica/work/.cwrapper/bin/gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Found ZLIB: /usr/lib/libz.so (found version "1.2.10") -- Found PNG: /usr/pkg/lib/libpng16.so (found version "1.6.43") -- Found GIF: /usr/pkg/lib/libgif.so (found suitable version "5.2.1", minimum required is "5") -- Found JPEG: /usr/pkg/lib/libjpeg.so (found version "90") -- Found TIFF: /usr/pkg/lib/libtiff.so (found version "4.6.0") -- Could NOT find WebP (missing: WebP_DIR) -- Found non-cmake WebP: /usr/pkg/lib/libwebp.so -- Found WebP: /usr/pkg/lib/libwebp.so;/usr/pkg/lib/libwebpmux.so () CMake Error at /tmp/graphics/leptonica/work/.buildlink/lib/cmake/openjpeg-2.5/OpenJPEGTargets.cmake:101 (message): The imported target "opj_decompress" references the file "/tmp/graphics/leptonica/work/.buildlink/bin/opj_decompress" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/tmp/graphics/leptonica/work/.buildlink/lib/cmake/openjpeg-2.5/OpenJPEGTargets.cmake" but not all the files it references. Call Stack (most recent call first): /tmp/graphics/leptonica/work/.buildlink/lib/cmake/openjpeg-2.5/OpenJPEGConfig.cmake:53 (include) CMakeLists.txt:186 (find_package) -- Configuring incomplete, errors occurred! *** Error code 1 Stop. make[1]: stopped in /amd/pkgsrc/CHROOT/P/pkgsrc/graphics/leptonica *** Error code 1 Stop. make: stopped in /amd/pkgsrc/CHROOT/P/pkgsrc/graphics/leptonica