Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package inkscape for openSUSE:Factory checked in at 2022-09-14 13:44:36 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/inkscape (Old) and /work/SRC/openSUSE:Factory/.inkscape.new.2083 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "inkscape" Wed Sep 14 13:44:36 2022 rev:123 rq:1003293 version:1.2.1 Changes: -------- --- /work/SRC/openSUSE:Factory/inkscape/inkscape.changes 2022-07-31 23:00:25.903602446 +0200 +++ /work/SRC/openSUSE:Factory/.inkscape.new.2083/inkscape.changes 2022-09-14 13:44:42.153852024 +0200 @@ -1,0 +2,5 @@ +Tue Sep 13 10:19:29 UTC 2022 - Bj??rn Lie <bjorn....@gmail.com> + +- Add 2f3101417.patch: Fix build with Poppler 22.09.0. + +------------------------------------------------------------------- New: ---- 2f3101417.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ inkscape.spec ++++++ --- /var/tmp/diff_new_pack.64xq52/_old 2022-09-14 13:44:44.113856958 +0200 +++ /var/tmp/diff_new_pack.64xq52/_new 2022-09-14 13:44:44.117856968 +0200 @@ -31,6 +31,9 @@ Source2: inkscape-split-extensions-extra.py Source98: https://media.inkscape.org/media/resources/sigs/inkscape-%{_version}.tar.xz.sig Source99: https://inkscape.org/~MarcJeanmougin/gpg#/%name.keyring +# PATCH-FIX-UPSTREAM 2f3101417.patch -- Fix build with Poppler 22.09.0 +Patch0: https://gitlab.com/inkscape/inkscape/-/commit/2f3101417.patch + BuildRequires: cmake BuildRequires: double-conversion-devel BuildRequires: fdupes ++++++ 2f3101417.patch ++++++ >From 2f3101417a04721c42b6b101dde07fa961a56f1b Mon Sep 17 00:00:00 2001 From: Sam James <s...@cmpct.info> Date: Tue, 6 Sep 2022 10:10:25 +0000 Subject: [PATCH] Fix build with Poppler 22.09.0 Adapt to changes in Poppler's getLineDash/setLineDash interface to allow building with Poppler 22.09.0. --- src/extension/internal/pdfinput/pdf-parser.cpp | 4 ++++ src/extension/internal/pdfinput/svg-builder.cpp | 9 ++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/extension/internal/pdfinput/pdf-parser.cpp b/src/extension/internal/pdfinput/pdf-parser.cpp index cca1e84096..80d64c9b86 100644 --- a/src/extension/internal/pdfinput/pdf-parser.cpp +++ b/src/extension/internal/pdfinput/pdf-parser.cpp @@ -697,7 +697,11 @@ void PdfParser::opSetDash(Object args[], int /*numArgs*/) _POPPLER_FREE(obj); } } +#if POPPLER_CHECK_VERSION(22, 9, 0) + state->setLineDash(std::vector<double> (dash, dash + length), args[1].getNum()); +#else state->setLineDash(dash, length, args[1].getNum()); +#endif builder->updateStyle(state); } diff --git a/src/extension/internal/pdfinput/svg-builder.cpp b/src/extension/internal/pdfinput/svg-builder.cpp index 12f71dd921..9fc56fe63c 100644 --- a/src/extension/internal/pdfinput/svg-builder.cpp +++ b/src/extension/internal/pdfinput/svg-builder.cpp @@ -389,10 +389,17 @@ void SvgBuilder::_setStrokeStyle(SPCSSAttr *css, GfxState *state) { sp_repr_css_set_property(css, "stroke-miterlimit", os_ml.str().c_str()); // Line dash - double *dash_pattern; int dash_length; double dash_start; +#if POPPLER_CHECK_VERSION(22, 9, 0) + const double *dash_pattern; + const std::vector<double> &dash = state->getLineDash(&dash_start); + dash_pattern = dash.data(); + dash_length = dash.size(); +#else + double *dash_pattern; state->getLineDash(&dash_pattern, &dash_length, &dash_start); +#endif if ( dash_length > 0 ) { Inkscape::CSSOStringStream os_array; for ( int i = 0 ; i < dash_length ; i++ ) { -- GitLab