Accepting request 706633 from graphics
OBS-URL: https://build.opensuse.org/request/show/706633 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/inkscape?expand=0&rev=101
This commit is contained in:
commit
df7a5f0f01
44
inkscape-fix-for-poppler-0.76.patch
Normal file
44
inkscape-fix-for-poppler-0.76.patch
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
From dc25406853353320078eca22cf817fb052c97082 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Marc Jeanmougin <marc@jeanmougin.fr>
|
||||||
|
Date: Wed, 24 Apr 2019 14:11:26 +0200
|
||||||
|
Subject: [PATCH] Tentative fix for poppler 0.76
|
||||||
|
|
||||||
|
---
|
||||||
|
src/extension/internal/pdfinput/pdf-parser.cpp | 2 +-
|
||||||
|
src/extension/internal/pdfinput/poppler-transition-api.h | 7 +++++++
|
||||||
|
2 files changed, 8 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/extension/internal/pdfinput/pdf-parser.cpp b/src/extension/internal/pdfinput/pdf-parser.cpp
|
||||||
|
index 2981d6ee51..ddbff7671f 100644
|
||||||
|
--- a/src/extension/internal/pdfinput/pdf-parser.cpp
|
||||||
|
+++ b/src/extension/internal/pdfinput/pdf-parser.cpp
|
||||||
|
@@ -426,7 +426,7 @@ void PdfParser::parse(Object *obj, GBool topLevel) {
|
||||||
|
error(errInternal, -1, "Weird page contents");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
- parser = new Parser(xref, new Lexer(xref, obj), gFalse);
|
||||||
|
+ parser = new _POPPLER_NEW_PARSER(xref, obj);
|
||||||
|
go(topLevel);
|
||||||
|
delete parser;
|
||||||
|
parser = NULL;
|
||||||
|
diff --git a/src/extension/internal/pdfinput/poppler-transition-api.h b/src/extension/internal/pdfinput/poppler-transition-api.h
|
||||||
|
index 6e4dde7dee..21a60702fa 100644
|
||||||
|
--- a/src/extension/internal/pdfinput/poppler-transition-api.h
|
||||||
|
+++ b/src/extension/internal/pdfinput/poppler-transition-api.h
|
||||||
|
@@ -3,6 +3,13 @@
|
||||||
|
|
||||||
|
#include <glib/poppler-features.h>
|
||||||
|
|
||||||
|
+#if POPPLER_CHECK_VERSION(0, 76, 0)
|
||||||
|
+#define _POPPLER_NEW_PARSER(xref, obj) Parser(xref, obj, gFalse)
|
||||||
|
+#else
|
||||||
|
+#define _POPPLER_NEW_PARSER(xref, obj) Parser(xref, new Lexer(xref, obj), gFalse)
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
+
|
||||||
|
#if POPPLER_CHECK_VERSION(0, 72, 0)
|
||||||
|
#define getCString c_str
|
||||||
|
#endif
|
||||||
|
--
|
||||||
|
2.21.0
|
||||||
|
|
@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 31 08:43:53 UTC 2019 - Bjørn Lie <bjorn.lie@gmail.com>
|
||||||
|
|
||||||
|
- Add inkscape-fix-for-poppler-0.76.patch: Fix build with poppler
|
||||||
|
0.76, patch from upstream git.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 15 13:09:07 UTC 2019 - Martin Liška <mliska@suse.cz>
|
||||||
|
|
||||||
|
- Disable LTO (boo#1135211).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Jan 20 05:26:11 UTC 2019 - seanlew@opensuse.org
|
Sun Jan 20 05:26:11 UTC 2019 - seanlew@opensuse.org
|
||||||
|
|
||||||
|
@ -35,6 +35,8 @@ Patch0: inkscape-packages.patch
|
|||||||
Patch1: build_internal_libraries_as_static.patch
|
Patch1: build_internal_libraries_as_static.patch
|
||||||
# PATCH-FIX-OPENSUSE fix_install_targets.patch -- use correct libdir etc.
|
# PATCH-FIX-OPENSUSE fix_install_targets.patch -- use correct libdir etc.
|
||||||
Patch2: fix_install_targets.patch
|
Patch2: fix_install_targets.patch
|
||||||
|
# PATCH-FIX-UPSTREAM inkscape-fix-for-poppler-0.76.patch -- Fix build with poppler 0.76
|
||||||
|
Patch3: inkscape-fix-for-poppler-0.76.patch
|
||||||
|
|
||||||
BuildRequires: gtkspell-devel
|
BuildRequires: gtkspell-devel
|
||||||
%if 0%{?suse_version} > 1325
|
%if 0%{?suse_version} > 1325
|
||||||
@ -157,12 +159,10 @@ Inkscape is a vector graphics editor.
|
|||||||
%lang_package
|
%lang_package
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup -p1
|
||||||
%patch0 -p1
|
|
||||||
%patch1 -p1
|
|
||||||
%patch2 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%define _lto_cflags %{nil}
|
||||||
%ifarch %{arm}
|
%ifarch %{arm}
|
||||||
export LDFLAGS+="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
|
export LDFLAGS+="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
Reference in New Issue
Block a user