=> Bootstrap dependency digest>=20211023: found digest-20220214 => Checksum BLAKE2s OK for mupdf-1.26.7-source.tar.gz => Checksum SHA512 OK for mupdf-1.26.7-source.tar.gz ===> Installing dependencies for mupdf-1.26.7nb1 ========================================================================== The supported build options for mupdf are: curl opengl The currently selected options are: opengl You can select which build options to use by setting PKG_DEFAULT_OPTIONS or the following variable. Its current value is shown: PKG_OPTIONS.mupdf (not defined) ========================================================================== ========================================================================== The following variables will affect the build process of this package, mupdf-1.26.7nb1. Their current value is shown below: * JPEG_DEFAULT = libjpeg-turbo Based on these variables, the following variables have been set: * JPEGBASE (defined, but empty) * JPEG_TYPE = libjpeg-turbo 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 glib2-tools-[0-9]*: found glib2-tools-2.84.4 => Tool dependency mktools-[0-9]*: found mktools-20250213 => Tool dependency gmake>=3.81: found gmake-4.4.1 => Tool dependency pkgconf-[0-9]*: found pkgconf-2.4.3nb1 => Tool dependency cwrappers>=20150314: found cwrappers-20220403 => Tool dependency checkperms>=1.1: found checkperms-1.12 => Build dependency x11-links>=1.36: found x11-links-1.36 => Full dependency freeglut>=3.2.2nb1: found freeglut-3.6.0 => Full dependency freetype2>=2.13.2nb1: found freetype2-2.13.3nb1 => Full dependency gumbo-parser>=0.13.0: found gumbo-parser-0.13.2 => Full dependency harfbuzz>=8.4.0: found harfbuzz-11.4.5 => Full dependency jbig2dec>=0.19nb2: found jbig2dec-0.20 => Full dependency libjpeg-turbo>=1.1.0: found libjpeg-turbo-3.1.2 => Full dependency mujs>=1.3.3: found mujs-1.3.4 => Full dependency openjpeg>=2.1.0: found openjpeg-2.5.3nb2 => Full dependency png>=1.6.0nb1: found png-1.6.50 ===> 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 mupdf-1.26.7nb1 ===> Extracting for mupdf-1.26.7nb1 ===> Patching for mupdf-1.26.7nb1 => Applying pkgsrc patches for mupdf-1.26.7nb1 => Verifying /amd/pkgsrc/CHROOT/P/pkgsrc/print/mupdf/patches/patch-Makefile => Applying pkgsrc patch /amd/pkgsrc/CHROOT/P/pkgsrc/print/mupdf/patches/patch-Makefile Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-Makefile,v 1.3 2025/08/29 09:17:06 leot Exp $ | |- Install target cleanup |- Also install muthreads and mupkcs7 libraries (needed by various tools) |- Use sh instead of bash | |--- Makefile.orig 2025-08-22 20:10:30.000000000 +0000 |+++ Makefile -------------------------- Patching file Makefile using Plan A... Hunk #1 succeeded at 240. Hunk #2 succeeded at 442. Hunk #3 succeeded at 500. done => Verifying /amd/pkgsrc/CHROOT/P/pkgsrc/print/mupdf/patches/patch-Makelists => Applying pkgsrc patch /amd/pkgsrc/CHROOT/P/pkgsrc/print/mupdf/patches/patch-Makelists Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-Makelists,v 1.3 2023/08/03 03:57:28 ryoon Exp $ | |* Disable JPEX XR support. | |--- Makelists.orig 2021-10-05 10:44:43.000000000 +0000 |+++ Makelists -------------------------- Patching file Makelists using Plan A... Hunk #1 succeeded at 140 (offset 10 lines). done => Verifying /amd/pkgsrc/CHROOT/P/pkgsrc/print/mupdf/patches/patch-Makerules => Applying pkgsrc patch /amd/pkgsrc/CHROOT/P/pkgsrc/print/mupdf/patches/patch-Makerules Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-Makerules,v 1.2 2025/08/29 09:17:06 leot Exp $ | |- Handle the various operating systems in the same way avoiding hardcoding |- Avoid to use objcopy by setting HAVE_OBJCOPY to no (if `yes', and with | `USE_TOOLS+= objcopy' the objcopy-ing fails as follow: | OBJCOPY build/release/resources/fonts/urw/Dingbats.cff.o | build/release/resources/fonts/urw/Dingbats.cff.o:1: warning: NUL character seen; rest of line ignored | build/release/resources/fonts/urw/Dingbats.cff.o:1: *** missing separator. Stop. | (also for other fonts)). This needs to be investigated further. |- Avoid internal version of freeglut and try to pick it up via pkg-config and | set SYS_GLUT_{CFLAGS,LIBS} accordingly. | |--- Makerules.orig 2025-08-22 20:10:30.000000000 +0000 |+++ Makerules -------------------------- Patching file Makerules using Plan A... Hunk #1 succeeded at 100. Hunk #2 succeeded at 199. Hunk #3 succeeded at 301. done => Verifying /amd/pkgsrc/CHROOT/P/pkgsrc/print/mupdf/patches/patch-docs_man_mupdf.1 => Applying pkgsrc patch /amd/pkgsrc/CHROOT/P/pkgsrc/print/mupdf/patches/patch-docs_man_mupdf.1 Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-docs_man_mupdf.1,v 1.1 2023/09/07 14:36:54 vins Exp $ | |Document fine-grained zoom function. | |--- docs/man/mupdf.1.orig 2023-09-05 11:51:19.000000000 +0000 |+++ docs/man/mupdf.1 -------------------------- Patching file docs/man/mupdf.1 using Plan A... Hunk #1 succeeded at 119 (offset 25 lines). done => Verifying /amd/pkgsrc/CHROOT/P/pkgsrc/print/mupdf/patches/patch-platform_gl_gl-app.h => Applying pkgsrc patch /amd/pkgsrc/CHROOT/P/pkgsrc/print/mupdf/patches/patch-platform_gl_gl-app.h Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-platform_gl_gl-app.h,v 1.5 2022/09/01 13:56:53 nia Exp $ | |- Use freeglut everywhere. | |--- platform/gl/gl-app.h.orig 2020-05-05 11:29:09.000000000 +0000 |+++ platform/gl/gl-app.h -------------------------- Patching file platform/gl/gl-app.h using Plan A... Hunk #1 succeeded at 32 (offset 25 lines). done => Verifying /amd/pkgsrc/CHROOT/P/pkgsrc/print/mupdf/patches/patch-platform_x11_curl__stream.c => Applying pkgsrc patch /amd/pkgsrc/CHROOT/P/pkgsrc/print/mupdf/patches/patch-platform_x11_curl__stream.c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-platform_x11_curl__stream.c,v 1.2 2023/09/07 14:52:50 vins Exp $ | |offset is a 64-bit integer. | |--- platform/x11/curl_stream.c.orig 2023-09-05 11:51:19.000000000 +0000 |+++ platform/x11/curl_stream.c -------------------------- Patching file platform/x11/curl_stream.c using Plan A... Hunk #1 succeeded at 397. Hunk #2 succeeded at 411. Hunk #3 succeeded at 434. Hunk #4 succeeded at 457. Hunk #5 succeeded at 482. done => Verifying /amd/pkgsrc/CHROOT/P/pkgsrc/print/mupdf/patches/patch-platform_x11_pdfapp.c => Applying pkgsrc patch /amd/pkgsrc/CHROOT/P/pkgsrc/print/mupdf/patches/patch-platform_x11_pdfapp.c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-platform_x11_pdfapp.c,v 1.4 2025/08/29 10:05:56 leot Exp $ | |* Implement fine-grained zoom control (from OpenBSD ports). | |--- platform/x11/pdfapp.c.orig 2023-09-05 11:51:19.000000000 +0000 |+++ platform/x11/pdfapp.c -------------------------- Patching file platform/x11/pdfapp.c using Plan A... Hunk #1 succeeded at 173 (offset -2 lines). Hunk #2 succeeded at 1702 (offset 44 lines). Hunk #3 succeeded at 1703 (offset -2 lines). Hunk #4 succeeded at 1861 (offset 44 lines). done => Verifying /amd/pkgsrc/CHROOT/P/pkgsrc/print/mupdf/patches/patch-source_fitz_crypt-sha2.c => Applying pkgsrc patch /amd/pkgsrc/CHROOT/P/pkgsrc/print/mupdf/patches/patch-source_fitz_crypt-sha2.c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-source_fitz_crypt-sha2.c,v 1.1 2024/08/14 05:55:33 adam Exp $ | |Avoid namespace conflicts with bswap(3). | |--- source/fitz/crypt-sha2.c.orig 2015-11-10 16:19:51.000000000 +0000 |+++ source/fitz/crypt-sha2.c -------------------------- Patching file source/fitz/crypt-sha2.c using Plan A... Hunk #1 succeeded at 19 (offset 2 lines). Hunk #2 succeeded at 27 (offset 2 lines). Hunk #3 succeeded at 101 (offset 2 lines). Hunk #4 succeeded at 194 (offset 2 lines). Hunk #5 succeeded at 206 (offset 2 lines). Hunk #6 succeeded at 273 (offset 2 lines). Hunk #7 succeeded at 366 (offset 2 lines). Hunk #8 succeeded at 378 (offset 2 lines). done => Verifying /amd/pkgsrc/CHROOT/P/pkgsrc/print/mupdf/patches/patch-source_fitz_load-jpx.c => Applying pkgsrc patch /amd/pkgsrc/CHROOT/P/pkgsrc/print/mupdf/patches/patch-source_fitz_load-jpx.c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-source_fitz_load-jpx.c,v 1.10 2020/05/07 20:42:57 leot Exp $ | |- MuPDF does some locking around its allocation calls; it overrides openjpeg's | allocators to do this locking too. However mupdf tries to manually align things | in a way that doesn't match what openjpeg does, which we noticed when frees | were segfaulting because the addresses didn't match up. | | In the case of the openjpeg port it's relying on malloc(3)'s guarantee | "The allocated space is suitably aligned (after possible pointer coercion) | for storage of any type of object" so patch mupdf to do the same. | | Fixes crash noticed by jca@ in https://www.broadband-forum.org/technical/download/TR-177.pdf | | From OpenBSD ports textproc/mupdf/patch-source_fitz_load-jpx_c,v 1.5. | |--- source/fitz/load-jpx.c.orig 2020-05-05 11:29:09.000000000 +0000 |+++ source/fitz/load-jpx.c -------------------------- Patching file source/fitz/load-jpx.c using Plan A... Hunk #1 succeeded at 163 (offset -421 lines). Hunk #2 succeeded at 178 (offset -421 lines). done => Verifying /amd/pkgsrc/CHROOT/P/pkgsrc/print/mupdf/patches/patch-source_helpers_pkcs7_pkcs7-openssl.c => Applying pkgsrc patch /amd/pkgsrc/CHROOT/P/pkgsrc/print/mupdf/patches/patch-source_helpers_pkcs7_pkcs7-openssl.c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-source_helpers_pkcs7_pkcs7-openssl.c,v 1.1 2023/09/07 14:36:54 vins Exp $ | |Add default_paths to STORE for checking signatures. |From OpenBSD ports. | |--- source/helpers/pkcs7/pkcs7-openssl.c.orig 2023-09-05 11:51:19.000000000 +0000 |+++ source/helpers/pkcs7/pkcs7-openssl.c -------------------------- Patching file source/helpers/pkcs7/pkcs7-openssl.c using Plan A... Hunk #1 succeeded at 203. Hunk #2 succeeded at 519. done ===> Creating toolchain wrappers for mupdf-1.26.7nb1 ===> Configuring for mupdf-1.26.7nb1 => Replacing shell interpreter in scripts/hexdump.sh. => Checking for portability problems in extracted files