Monday, December 31, 2018

fix graphics/inkscape with newer poppler

This will fix inkscape after the update of print/poppler to 0.72.0.

Mainly based on cherry-picked archlinux diffs with some changes
directlry fetched from upstream.

ok (after the poppler update)?

Ciao,
Kili

Index: patches/patch-src_extension_internal_pdfinput_pdf-input_cpp
===================================================================
RCS file: patches/patch-src_extension_internal_pdfinput_pdf-input_cpp
diff -N patches/patch-src_extension_internal_pdfinput_pdf-input_cpp
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_extension_internal_pdfinput_pdf-input_cpp 31 Dec 2018 17:57:07 -0000
@@ -0,0 +1,16 @@
+$OpenBSD$
+
+Fix with new poppler. From archlinux.
+
+Index: src/extension/internal/pdfinput/pdf-input.cpp
+--- src/extension/internal/pdfinput/pdf-input.cpp.orig
++++ src/extension/internal/pdfinput/pdf-input.cpp
+@@ -793,7 +793,7 @@ PdfInput::open(::Inkscape::Extension::Input * /*mod*/,
+ dlg->getImportSettings(prefs);
+
+ // Apply crop settings
+- PDFRectangle *clipToBox = NULL;
++ _POPPLER_CONST PDFRectangle *clipToBox = NULL;
+ double crop_setting;
+ sp_repr_get_double(prefs, "cropTo", &crop_setting);
+
Index: patches/patch-src_extension_internal_pdfinput_pdf-input_h
===================================================================
RCS file: patches/patch-src_extension_internal_pdfinput_pdf-input_h
diff -N patches/patch-src_extension_internal_pdfinput_pdf-input_h
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_extension_internal_pdfinput_pdf-input_h 31 Dec 2018 17:57:07 -0000
@@ -0,0 +1,15 @@
+$OpenBSD$
+
+Fix with new poppler. From archlinux.
+
+Index: src/extension/internal/pdfinput/pdf-input.h
+--- src/extension/internal/pdfinput/pdf-input.h.orig
++++ src/extension/internal/pdfinput/pdf-input.h
+@@ -15,6 +15,7 @@
+

No comments:

Post a Comment