+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/local/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/mupdf-1.24.10nb3/work.log
+ su pbulk -c '"$@"' make /opt/local/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/mupdf-1.24.10nb3/work.log
=> Checksum BLAKE2s OK for mupdf-1.24.10-source.tar.gz
=> Checksum SHA512 OK for mupdf-1.24.10-source.tar.gz
===> Installing dependencies for mupdf-1.24.10nb3
==========================================================================
The supported build options for mupdf are:

	curl opengl

The currently selected options are:

	curl 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.24.10nb3.  Their current value is shown below:

        * JPEG_DEFAULT = libjpeg-turbo
        * SSLBASE (defined)
        * SSLCERTBUNDLE (not defined)
        * SSLCERTS = /opt/local/etc/openssl/certs
        * SSLDIR = /opt/local/etc/openssl
        * SSLKEYS = /opt/local/etc/openssl/private

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
`/opt/local/bin/bmake clean' after the changes.
==========================================================================
=> Tool dependency glib2-tools-[0-9]*: found glib2-tools-2.82.2
=> Tool dependency gmake>=3.81: found gmake-4.4.1
=> Tool dependency pkgconf-[0-9]*: found pkgconf-2.3.0
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency gcc13>=13.1.0: found gcc13-13.3.0
=> Full dependency MesaLib>=21.3.9nb3: found MesaLib-21.3.9nb4
=> Full dependency curl>=8.11.0nb2: found curl-8.11.1nb1
=> Full dependency freeglut>=3.2.2nb1: found freeglut-3.4.0nb1
=> Full dependency freetype2>=2.13.2nb1: found freetype2-2.13.3
=> Full dependency gcc13-libs>=13.2.0: found gcc13-libs-13.3.0
=> Full dependency gumbo-parser>=0.12.1: found gumbo-parser-0.12.2
=> Full dependency harfbuzz>=8.2.2nb1: found harfbuzz-10.1.0
=> Full dependency jbig2dec>=0.19nb2: found jbig2dec-0.20
=> Full dependency libXext>=1.1: found libXext-1.3.6
=> Full dependency libjpeg-turbo>=1.1.0: found libjpeg-turbo-3.0.4
=> Full dependency mujs>=1.3.3: found mujs-1.3.4
=> Full dependency openjpeg>=2.1.0: found openjpeg-2.5.3
=> Full dependency openssl>=3: found openssl-3.3.2
=> Full dependency png>=1.6.0nb1: found png-1.6.44
=> Full dependency zlib>=1.2.7: found zlib-1.3.1
=> Build dependency xcb-proto>=1.4: found xcb-proto-1.17.0nb4
=> Build dependency xorgproto>=2016.1: found xorgproto-2024.1
=> Full dependency brotli>=1.0.1: found brotli-1.1.0
=> Full dependency bzip2>=1.0.1: found bzip2-1.0.8
=> Full dependency cyrus-sasl>=2.1.12: found cyrus-sasl-2.1.28nb1
=> Full dependency gettext-lib>=0.22: found gettext-lib-0.22.5
=> Full dependency glib2>=2.4.0: found glib2-2.82.2
=> Full dependency glu>=6.0: found glu-9.0.3
=> Full dependency graphite2>=1.2: found graphite2-1.3.14nb3
=> Full dependency libiconv>=1.9.1: found libiconv-1.17
=> Full dependency libX11>=1.5: found libX11-1.8.10
=> Full dependency libXau>=1.0: found libXau-1.0.11
=> Full dependency libXdamage>=1.0.3: found libXdamage-1.1.6
=> Full dependency libXdmcp>=0.99: found libXdmcp-1.1.5
=> Full dependency libXfixes>=4.0.1: found libXfixes-6.0.1
=> Full dependency libXi>=1.0.0: found libXi-1.8.2
=> Full dependency libXrandr>=1.1.2: found libXrandr-1.5.4
=> Full dependency libXrender>=0.9.2: found libXrender-0.9.11
=> Full dependency libXxf86vm>=1.1.0: found libXxf86vm-1.1.5
=> Full dependency libdrm>=2.4.15: found libdrm-2.4.123
=> Full dependency libffi>=1.20: found libffi-3.4.6
=> Full dependency libidn2>=2.0.0: found libidn2-2.3.7
=> Full dependency libssh2>=0.18: found libssh2-1.11.1
=> Full dependency libunistring>=0.9.3: found libunistring-1.2
=> Full dependency libxcb>=1.6: found libxcb-1.17.0
=> Full dependency libxml2>=2.6.2: found libxml2-2.12.9nb3
=> Full dependency libxshmfence>=1.2: found libxshmfence-1.3.2nb1
=> Full dependency nghttp2>=1.0.0: found nghttp2-1.64.0nb3
=> Full dependency openldap-client>=2.4.6: found openldap-client-2.6.9
=> Full dependency pcre2>=10.21: found pcre2-10.44
=> Full dependency xz>=5.0.0: found xz-5.6.3
===> Overriding tools for mupdf-1.24.10nb3
===> Extracting for mupdf-1.24.10nb3
===> Patching for mupdf-1.24.10nb3
=> Applying pkgsrc patches for mupdf-1.24.10nb3
=> Verifying /data/jenkins/workspace/pkgsrc-trunk-x86_64/print/mupdf/patches/patch-Makefile
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-trunk-x86_64/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.2 2024/10/22 09:34:44 leot Exp $
|
|- Install target cleanup
|- Also install muthreads and mupkcs7 libraries (needed by various tools)
|- Use sh instead of bash
|
|--- Makefile.orig	2024-10-02 17:10:33.000000000 +0000
|+++ Makefile
--------------------------
Patching file Makefile using Plan A...
Hunk #1 succeeded at 245.
Hunk #2 succeeded at 474.
Hunk #3 succeeded at 647.
done
=> Verifying /data/jenkins/workspace/pkgsrc-trunk-x86_64/print/mupdf/patches/patch-Makelists
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-trunk-x86_64/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-trunk-x86_64/print/mupdf/patches/patch-Makerules
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-trunk-x86_64/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.1 2024/08/14 05:55:32 adam 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	2024-03-19 15:31:58.000000000 +0000
|+++ Makerules
--------------------------
Patching file Makerules using Plan A...
Hunk #1 succeeded at 54 (offset 6 lines).
Hunk #2 succeeded at 160 (offset 6 lines).
Hunk #3 succeeded at 215 (offset 6 lines).
Hunk #4 succeeded at 240 (offset 6 lines).
done
=> Verifying /data/jenkins/workspace/pkgsrc-trunk-x86_64/print/mupdf/patches/patch-docs_man_mupdf.1
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-trunk-x86_64/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-trunk-x86_64/print/mupdf/patches/patch-platform_gl_gl-app.h
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-trunk-x86_64/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-trunk-x86_64/print/mupdf/patches/patch-platform_x11_curl__stream.c
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-trunk-x86_64/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-trunk-x86_64/print/mupdf/patches/patch-platform_x11_pdfapp.c
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-trunk-x86_64/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 155 (offset -20 lines).
Hunk #2 succeeded at 1575 (offset 27 lines).
Hunk #3 succeeded at 1545 (offset -20 lines).
Hunk #4 succeeded at 1668 (offset 27 lines).
Hunk #5 succeeded at 1630 (offset -20 lines).
Hunk #6 succeeded at 1685 (offset 27 lines).
Hunk #7 succeeded at 1685 (offset -20 lines).
Hunk #8 succeeded at 1844 (offset 27 lines).
done
=> Verifying /data/jenkins/workspace/pkgsrc-trunk-x86_64/print/mupdf/patches/patch-source_fitz_crypt-sha2.c
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-trunk-x86_64/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 /data/jenkins/workspace/pkgsrc-trunk-x86_64/print/mupdf/patches/patch-source_fitz_load-jpx.c
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-trunk-x86_64/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-trunk-x86_64/print/mupdf/patches/patch-source_helpers_pkcs7_pkcs7-openssl.c
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-trunk-x86_64/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.24.10nb3
/usr/bin/sed  -e '/^#/d'  -e 's,@LINK_ARCH_DEFAULT@,link_arch64,g'  -e 's,@LINK_LIBGCC_DEFAULT@,link_libgcc_arch64,g'  -e 's,@LIBGCC_PREFIX@,/opt/local/gcc13/x86_64-sun-solaris2.11,g'  < ../../extra/gcc13-libs/files/specs.pkgsrc  > /home/pbulk/build/print/mupdf/work/.cwrapper/specs.pkgsrc
===> Configuring for mupdf-1.24.10nb3
=> Replacing shell interpreter in scripts/hexdump.sh.