From 19b0b09fc571a2913fe10f8801d31008c16a6d05 Mon Sep 17 00:00:00 2001 From: pirofti Date: Mon, 14 Aug 2017 09:59:07 +0000 Subject: [PATCH] Fix debug build for programs including fitz/context.h. Details at https://bugs.ghostscript.com/show_bug.cgi?id=698353. OK sthen@ --- textproc/mupdf/Makefile | 4 ++-- .../patches/patch-include_mupdf_fitz_context_h | 17 +++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 textproc/mupdf/patches/patch-include_mupdf_fitz_context_h diff --git a/textproc/mupdf/Makefile b/textproc/mupdf/Makefile index b943fc0c0ec..7719591430a 100644 --- a/textproc/mupdf/Makefile +++ b/textproc/mupdf/Makefile @@ -1,11 +1,11 @@ -# $OpenBSD: Makefile,v 1.75 2017/08/03 17:47:07 sthen Exp $ +# $OpenBSD: Makefile,v 1.76 2017/08/14 09:59:07 pirofti Exp $ SHARED_LIBS += mupdf 6.0 COMMENT = graphic library, pdf parser, viewer and utilities V = 1.11 -REVISION = 0 +REVISION = 1 DISTNAME = mupdf-$V-source PKGNAME = mupdf-$V diff --git a/textproc/mupdf/patches/patch-include_mupdf_fitz_context_h b/textproc/mupdf/patches/patch-include_mupdf_fitz_context_h new file mode 100644 index 00000000000..91dfe66ca9c --- /dev/null +++ b/textproc/mupdf/patches/patch-include_mupdf_fitz_context_h @@ -0,0 +1,17 @@ +$OpenBSD: patch-include_mupdf_fitz_context_h,v 1.1 2017/08/14 09:59:07 pirofti Exp $ + +Fix DEBUG builds for programs that include this header. +See https://bugs.ghostscript.com/show_bug.cgi?id=698353. + +Index: include/mupdf/fitz/context.h +--- include/mupdf/fitz/context.h.orig ++++ include/mupdf/fitz/context.h +@@ -570,7 +570,7 @@ extern fz_alloc_context fz_alloc_default; + /* Default locks */ + extern fz_locks_context fz_locks_default; + +-#if defined(MEMENTO) || !defined(NDEBUG) ++#if defined(MEMENTO) + #define FITZ_DEBUG_LOCKING + #endif +