+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/mupdf-1.23.3/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/mupdf-1.23.3/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Checksum BLAKE2s OK for mupdf-1.23.3-source.tar.gz
=> Checksum SHA512 OK for mupdf-1.23.3-source.tar.gz
===> Installing dependencies for mupdf-1.23.3
==========================================================================
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.23.3.  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
`/opt/pkg/bin/bmake clean' after the changes.
==========================================================================
=> Tool dependency glib2-tools-[0-9]*: found glib2-tools-2.76.5
=> Tool dependency mktools-[0-9]*: found mktools-20220614
=> Tool dependency gmake>=3.81: found gmake-4.4.1
=> Tool dependency pkgconf-[0-9]*: found pkgconf-2.0.3
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency xorgproto>=2016.1: found xorgproto-2023.2
=> Build dependency xcb-proto>=1.15.2nb3: found xcb-proto-1.16.0
=> Full dependency MesaLib>=21.3.9nb3: found MesaLib-21.3.9nb3
=> Full dependency libXext>=1.1: found libXext-1.3.5
=> Full dependency freeglut>=3.2.2nb1: found freeglut-3.4.0
=> Full dependency zlib>=1.2.7: found zlib-1.2.13
=> Full dependency harfbuzz>=8.0.1nb1: found harfbuzz-8.1.1
=> Full dependency freetype2>=2.13.0: found freetype2-2.13.2
=> Full dependency png>=1.6.0nb1: found png-1.6.40
=> Full dependency jbig2dec>=0.19nb2: found jbig2dec-0.19nb2
=> Full dependency jpeg>=9: found jpeg-9e
=> Full dependency openjpeg>=2.1.0: found openjpeg-2.5.0nb1
=> Full dependency mujs>=1.3.3: found mujs-1.3.3nb2
=> Full dependency gumbo-parser>=0.10.1: found gumbo-parser-0.10.1
===> Overriding tools for mupdf-1.23.3
===> Extracting for mupdf-1.23.3
===> Patching for mupdf-1.23.3
=> Applying pkgsrc patches for mupdf-1.23.3
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/print/mupdf/patches/patch-Makelists
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/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 /data/jenkins/workspace/pkgsrc-upstream-trunk/print/mupdf/patches/patch-ab
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/print/mupdf/patches/patch-ab
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-ab,v 1.28 2023/09/07 14:36:54 vins 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	2023-09-05 11:51:19.000000000 +0000
|+++ Makerules
--------------------------
Patching file Makerules using Plan A...
Hunk #1 succeeded at 42.
Hunk #2 succeeded at 130.
Hunk #3 succeeded at 179.
Hunk #4 succeeded at 205.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/print/mupdf/patches/patch-ac
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/print/mupdf/patches/patch-ac
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-ac,v 1.31 2023/09/07 14:36:54 vins Exp $
|
|- Install target cleanup
|- Also install muthreads and mupkcs7 libraries (needed by various tools)
|- Use sh instead of bash
|
|--- Makefile.orig	2023-09-05 11:51:19.000000000 +0000
|+++ Makefile
--------------------------
Patching file Makefile using Plan A...
Hunk #1 succeeded at 214.
Hunk #2 succeeded at 440.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/print/mupdf/patches/patch-ae
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/print/mupdf/patches/patch-ae
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-ae,v 1.5 2016/02/04 11:50:24 leot 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 /data/jenkins/workspace/pkgsrc-upstream-trunk/print/mupdf/patches/patch-docs_man_mupdf.1
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/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 94.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/print/mupdf/patches/patch-platform_gl_gl-app.h
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/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 /data/jenkins/workspace/pkgsrc-upstream-trunk/print/mupdf/patches/patch-platform_x11_curl__stream.c
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/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 /data/jenkins/workspace/pkgsrc-upstream-trunk/print/mupdf/patches/patch-platform_x11_pdfapp.c
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/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.3 2023/09/07 14:36:54 vins Exp $
|
|* Implement fine-grained zoom control (from OpenBSD ports).
|* Fix up/down scrolling with vi-like keys (from FreeBSD 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 175.
Hunk #2 succeeded at 1548.
Hunk #3 succeeded at 1565.
Hunk #4 succeeded at 1641.
Hunk #5 succeeded at 1650.
Hunk #6 succeeded at 1658.
Hunk #7 succeeded at 1705.
Hunk #8 succeeded at 1817.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/print/mupdf/patches/patch-source_fitz_load-jpx.c
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/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 /data/jenkins/workspace/pkgsrc-upstream-trunk/print/mupdf/patches/patch-source_helpers_pkcs7_pkcs7-openssl.c
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/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.23.3
===> Configuring for mupdf-1.23.3
=> Replacing shell interpreter in scripts/hexdump.sh.
=> Checking for portability problems in extracted files