+ 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.19.1/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/mupdf-1.19.1/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
=> Checksum BLAKE2s OK for mupdf-1.19.1-source.tar.gz
=> Checksum SHA512 OK for mupdf-1.19.1-source.tar.gz
===> Installing dependencies for mupdf-1.19.1
==========================================================================
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.19.1.  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.70.5
=> Tool dependency libtool-base>=2.4.2nb9: found libtool-base-2.4.6nb3
=> Tool dependency mktools-[0-9]*: found mktools-20220614
=> Tool dependency gmake>=3.81: found gmake-4.3nb3
=> Tool dependency pkgconf-[0-9]*: found pkgconf-1.8.0
=> Tool dependency cwrappers>=20150314: found cwrappers-20220403
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency xorgproto>=2016.1: found xorgproto-2022.1
=> Build dependency xcb-proto>=1.4: found xcb-proto-1.15.2
=> Full dependency MesaLib>=20.0.1nb1: found MesaLib-21.3.7
=> Full dependency libXext>=1.1: found libXext-1.3.4
=> Full dependency freeglut>=3.2.1nb2: found freeglut-3.2.2
=> Full dependency zlib>=1.2.7: found zlib-1.2.12nb1
=> Full dependency harfbuzz>=3.1.2: found harfbuzz-4.3.0nb2
=> Full dependency freetype2>=2.8.1: found freetype2-2.12.1
=> Full dependency png>=1.6.0nb1: found png-1.6.37nb1
=> Full dependency jbig2dec>=0.16: found jbig2dec-0.19nb1
=> Full dependency jpeg>=9: found jpeg-9e
=> Full dependency openjpeg>=2.1.0: found openjpeg-2.5.0
=> Full dependency gumbo-parser>=0.10.1: found gumbo-parser-0.10.1
===> Overriding tools for mupdf-1.19.1
===> Extracting for mupdf-1.19.1
/usr/bin/rm -fr  /home/pbulk/build/print/mupdf/work/mupdf-1.19.1-source/thirdparty/curl  /home/pbulk/build/print/mupdf/work/mupdf-1.19.1-source/thirdparty/freeglut  /home/pbulk/build/print/mupdf/work/mupdf-1.19.1-source/thirdparty/freetype  /home/pbulk/build/print/mupdf/work/mupdf-1.19.1-source/thirdparty/gumbo-parser  /home/pbulk/build/print/mupdf/work/mupdf-1.19.1-source/thirdparty/harfbuzz  /home/pbulk/build/print/mupdf/work/mupdf-1.19.1-source/thirdparty/jbig2dec  /home/pbulk/build/print/mupdf/work/mupdf-1.19.1-source/thirdparty/leptonica  /home/pbulk/build/print/mupdf/work/mupdf-1.19.1-source/thirdparty/lcms2  /home/pbulk/build/print/mupdf/work/mupdf-1.19.1-source/thirdparty/libjpeg  /home/pbulk/build/print/mupdf/work/mupdf-1.19.1-source/thirdparty/openjpeg  /home/pbulk/build/print/mupdf/work/mupdf-1.19.1-source/thirdparty/tesseract  /home/pbulk/build/print/mupdf/work/mupdf-1.19.1-source/thirdparty/zlib
===> Patching for mupdf-1.19.1
=> Applying pkgsrc patches for mupdf-1.19.1
=> 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.1 2021/10/23 15:22:07 leot Exp $
|
|Avoid to unconditionally pass -DHAVE_* flags: this breaks lcms2 that
|gets recognized as lcms2mt.
|
|--- Makelists.orig	2021-10-05 10:44:43.000000000 +0000
|+++ Makelists
--------------------------
Patching file Makelists using Plan A...
Hunk #1 succeeded at 130.
Hunk #2 succeeded at 186.
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/print/mupdf/patches/patch-Makethird
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/print/mupdf/patches/patch-Makethird
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-Makethird,v 1.13 2021/10/23 15:22:07 leot Exp $
|
|- Avoid to need third party lcms2
|- Add mujs building support with libtool
|
|--- Makethird.orig	2021-10-05 10:44:43.000000000 +0000
|+++ Makethird
--------------------------
Patching file Makethird using Plan A...
Hunk #1 succeeded at 120.
Hunk #2 succeeded at 131.
Hunk #3 succeeded at 235.
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.24 2021/10/23 15:22:07 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.
|- Avoid internal version of lcms2 and try to pick it up via pkg-config and
|  set SYS_LCMS2_{CFLAGS,LIBS} accordingly.
|  If no lcms2 is available just pass `-DFZ_ENABLE_ICC=0' to disable it via
|  CFLAGS.
|
|--- Makerules.orig	2021-10-05 10:44:43.000000000 +0000
|+++ Makerules
--------------------------
Patching file Makerules using Plan A...
Hunk #1 succeeded at 27.
Hunk #2 succeeded at 109.
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.27 2021/10/23 15:22:07 leot Exp $
|
|- libtool support 
|- Install target cleanup
|- Also install muthreads and mupkcs7 libraries (needed by various tools)
|- Do not force `-O0' flag when building
|- Get rid of unused VERSION variable and `version:' target (otherwise `git' can
|  be invoked during the building phase)
|- Install mupdf with curl support as `mupdf-curl'
|
|--- Makefile.orig	2021-10-05 10:44:43.000000000 +0000
|+++ Makefile
--------------------------
Patching file Makefile using Plan A...
Hunk #1 succeeded at 54.
Hunk #2 succeeded at 68.
Hunk #3 succeeded at 77.
Hunk #4 succeeded at 93.
Hunk #5 succeeded at 154.
Hunk #6 succeeded at 182.
Hunk #7 succeeded at 242.
Hunk #8 succeeded at 282.
Hunk #9 succeeded at 296.
Hunk #10 succeeded at 304.
Hunk #11 succeeded at 315.
Hunk #12 succeeded at 326.
Hunk #13 succeeded at 341.
Hunk #14 succeeded at 366.
Hunk #15 succeeded at 397.
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-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.4 2020/05/07 20:42:57 leot Exp $
|
|- Do not force freeglut GLUT implementation to every non-APPLE platforms.
|- Adjust the glut.h include.
|
|--- 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_gl_gl-main.c
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/print/mupdf/patches/patch-platform_gl_gl-main.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-platform_gl_gl-main.c,v 1.3 2020/05/07 20:42:57 leot Exp $
|
|glutLeaveMainLoop() is present only on freeglut, define it otherwise.
|
|--- platform/gl/gl-main.c.orig	2020-05-05 11:29:09.000000000 +0000
|+++ platform/gl/gl-main.c
--------------------------
Patching file platform/gl/gl-main.c using Plan A...
Hunk #1 succeeded at 50 (offset 24 lines).
done
=> Verifying /data/jenkins/workspace/pkgsrc-upstream-trunk/print/mupdf/patches/patch-source_fitz_color-lcms.c
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/print/mupdf/patches/patch-source_fitz_color-lcms.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-source_fitz_color-lcms.c,v 1.1 2021/10/23 15:22:07 leot Exp $
|
|memset(3) needs string.h.
|
|--- source/fitz/color-lcms.c.orig	2021-10-05 10:44:43.000000000 +0000
|+++ source/fitz/color-lcms.c
--------------------------
Patching file source/fitz/color-lcms.c using Plan A...
Hunk #1 succeeded at 22.
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-thirdparty_mujs_Makefile
=> Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/print/mupdf/patches/patch-thirdparty_mujs_Makefile
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-thirdparty_mujs_Makefile,v 1.8 2021/10/23 15:22:07 leot Exp $
|
|- Add libtool support to mujs.
|- Avoid to set (unused) VERSION variable.
|
|--- thirdparty/mujs/Makefile.orig	2021-06-08 11:41:51.000000000 +0000
|+++ thirdparty/mujs/Makefile
--------------------------
Patching file thirdparty/mujs/Makefile using Plan A...
Hunk #1 succeeded at 9.
Hunk #2 succeeded at 48.
Hunk #3 succeeded at 62.
Hunk #4 succeeded at 78.
Hunk #5 succeeded at 108.
done
===> Creating toolchain wrappers for mupdf-1.19.1
===> Configuring for mupdf-1.19.1
=> Checking for portability problems in extracted files
=> Modifying libtool scripts to use pkgsrc libtool
=> Modifying libtool scripts to use pkgsrc depcomp