+ 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.21.1/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake configure BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/mupdf-1.21.1/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 => Checksum BLAKE2s OK for mupdf-1.21.1-source.tar.gz => Checksum SHA512 OK for mupdf-1.21.1-source.tar.gz ===> Installing dependencies for mupdf-1.21.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.21.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.74.4 => Tool dependency libtool-base>=2.4.2nb9: found libtool-base-2.4.7nb1 => Tool dependency mktools-[0-9]*: found mktools-20220614 => Tool dependency gmake>=3.81: found gmake-4.4 => 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.2 => Build dependency xcb-proto>=1.4: found xcb-proto-1.15.2nb1 => Full dependency MesaLib>=20.0.1nb1: found MesaLib-21.3.9nb1 => Full dependency libXext>=1.1: found libXext-1.3.5 => Full dependency freeglut>=3.2.2nb1: found freeglut-3.2.2nb1 => Full dependency zlib>=1.2.7: found zlib-1.2.13 => Full dependency harfbuzz>=3.1.2: found harfbuzz-5.3.1 => Full dependency freetype2>=2.8.1: found freetype2-2.12.1 => Full dependency png>=1.6.0nb1: found png-1.6.39 => 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.0nb1 => Full dependency mujs>=1.2.0: found mujs-1.3.0 => Full dependency gumbo-parser>=0.10.1: found gumbo-parser-0.10.1 ===> Overriding tools for mupdf-1.21.1 ===> Extracting for mupdf-1.21.1 /usr/bin/rm -fr /home/pbulk/build/print/mupdf/work/mupdf-1.21.1-source/thirdparty/curl /home/pbulk/build/print/mupdf/work/mupdf-1.21.1-source/thirdparty/freeglut /home/pbulk/build/print/mupdf/work/mupdf-1.21.1-source/thirdparty/freetype /home/pbulk/build/print/mupdf/work/mupdf-1.21.1-source/thirdparty/gumbo-parser /home/pbulk/build/print/mupdf/work/mupdf-1.21.1-source/thirdparty/harfbuzz /home/pbulk/build/print/mupdf/work/mupdf-1.21.1-source/thirdparty/jbig2dec /home/pbulk/build/print/mupdf/work/mupdf-1.21.1-source/thirdparty/leptonica /home/pbulk/build/print/mupdf/work/mupdf-1.21.1-source/thirdparty/lcms2 /home/pbulk/build/print/mupdf/work/mupdf-1.21.1-source/thirdparty/libjpeg /home/pbulk/build/print/mupdf/work/mupdf-1.21.1-source/thirdparty/mujs /home/pbulk/build/print/mupdf/work/mupdf-1.21.1-source/thirdparty/openjpeg /home/pbulk/build/print/mupdf/work/mupdf-1.21.1-source/thirdparty/tesseract /home/pbulk/build/print/mupdf/work/mupdf-1.21.1-source/thirdparty/zlib ===> Patching for mupdf-1.21.1 => Applying pkgsrc patches for mupdf-1.21.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 139 (offset 9 lines). Hunk #2 succeeded at 195 (offset 9 lines). 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.14 2022/09/01 13:56:53 nia Exp $ | |- Avoid to need third party lcms2 |- Add mujs building support with libtool | |--- Makethird.orig 2022-06-14 12:19:22.000000000 +0000 |+++ Makethird -------------------------- Patching file Makethird using Plan A... Hunk #1 succeeded at 120. Hunk #2 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.25 2022/07/23 15:09:43 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 2022-06-14 12:19:22.000000000 +0000 |+++ Makerules -------------------------- Patching file Makerules using Plan A... Hunk #1 succeeded at 39 (offset 12 lines). Hunk #2 succeeded at 121 (offset 12 lines). 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.29 2022/07/24 10:13:38 leot Exp $ | |- libtool support |- Install target cleanup |- Also install muthreads and mupkcs7 libraries (needed by various tools) |- Do not force `-O0' flag when building |- Use sh instead of bash |- 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 2022-06-14 12:19:22.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 133. Hunk #6 succeeded at 159. Hunk #7 succeeded at 214 (offset 33 lines). Hunk #8 succeeded at 280 (offset 33 lines). Hunk #9 succeeded at 320 (offset 33 lines). Hunk #10 succeeded at 334 (offset 33 lines). Hunk #11 succeeded at 342 (offset 33 lines). Hunk #12 succeeded at 353 (offset 33 lines). Hunk #13 succeeded at 364 (offset 33 lines). Hunk #14 succeeded at 379 (offset 33 lines). Hunk #15 succeeded at 373 (offset 2 lines). Hunk #16 succeeded at 435 (offset 33 lines). 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.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-scripts_hexdump.sh => Applying pkgsrc patch /data/jenkins/workspace/pkgsrc-upstream-trunk/print/mupdf/patches/patch-scripts_hexdump.sh Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$NetBSD: patch-scripts_hexdump.sh,v 1.1 2022/07/24 10:13:38 leot Exp $ | |Avoid bash dependency, there is not any bash-ism in the script. | |--- scripts/hexdump.sh.orig 2022-06-14 12:19:22.000000000 +0000 |+++ scripts/hexdump.sh -------------------------- Patching file scripts/hexdump.sh using Plan A... Hunk #1 succeeded at 1. 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 ===> Creating toolchain wrappers for mupdf-1.21.1 ===> Configuring for mupdf-1.21.1 => Checking for portability problems in extracted files => Modifying libtool scripts to use pkgsrc libtool => Modifying libtool scripts to use pkgsrc depcomp