From 7f4a6ec2c73c5f64af0f5f4e3808e8a1820d1ca9 Mon Sep 17 00:00:00 2001 From: Mikle Kolyada Date: Sun, 27 Oct 2019 13:52:08 +0300 Subject: [PATCH] app-text/zathura-pdf-mupdf: fix build Closes: https://bugs.gentoo.org/693354 Package-Manager: Portage-2.3.76, Repoman-2.3.16 Signed-off-by: Mikle Kolyada --- .../zathura-pdf-mupdf/files/0.3.5-compile-fix.patch | 11 +++++++++++ .../zathura-pdf-mupdf/zathura-pdf-mupdf-0.3.5.ebuild | 1 + 2 files changed, 12 insertions(+) create mode 100644 app-text/zathura-pdf-mupdf/files/0.3.5-compile-fix.patch diff --git a/app-text/zathura-pdf-mupdf/files/0.3.5-compile-fix.patch b/app-text/zathura-pdf-mupdf/files/0.3.5-compile-fix.patch new file mode 100644 index 000000000000..e031db3c9188 --- /dev/null +++ b/app-text/zathura-pdf-mupdf/files/0.3.5-compile-fix.patch @@ -0,0 +1,11 @@ +--- a/zathura-pdf-mupdf/search.c 2019-09-12 11:29:21.527194069 +0200 ++++ b/zathura-pdf-mupdf/search.c 2019-09-12 11:30:11.648675352 +0200 +@@ -39,7 +39,7 @@ + mupdf_page_extract_text(mupdf_document, mupdf_page); + } + +- fz_quad* hit_bbox = fz_malloc_array(mupdf_page->ctx, N_SEARCH_RESULTS, fz_quad); ++ fz_quad* hit_bbox = fz_malloc_array(mupdf_page->ctx, N_SEARCH_RESULTS, sizeof(fz_quad)); + int num_results = fz_search_stext_page(mupdf_page->ctx, mupdf_page->text, + text, hit_bbox, N_SEARCH_RESULTS); + diff --git a/app-text/zathura-pdf-mupdf/zathura-pdf-mupdf-0.3.5.ebuild b/app-text/zathura-pdf-mupdf/zathura-pdf-mupdf-0.3.5.ebuild index a8c73f86302b..ec8c60cf28ef 100644 --- a/app-text/zathura-pdf-mupdf/zathura-pdf-mupdf-0.3.5.ebuild +++ b/app-text/zathura-pdf-mupdf/zathura-pdf-mupdf-0.3.5.ebuild @@ -35,5 +35,6 @@ BDEPEND="virtual/pkgconfig" src_prepare() { sed -i -e '/mupdfthird/d' meson.build || die "sed failed" + eapply "${FILESDIR}"/${PV}-compile-fix.patch default } -- 2.26.2