Accepting request 959288 from home:iznogood:branches:graphics
- Update to version 1.1.2: + Dependencies updated, fixing bitmap exports + Graphic tablet pens erasors switch to the correct tool + Fix lost styling of text converted to path + Fix relative position of clones pasted to a new document + Fix various crashes - Drop ebc4de4bfe34d6c5f2e27da47f5d62e4de0394fd.patch: Fixed upstream. - Add Fix_build_poppler_22030.patch: Fix build with poppler 22.03.0 OBS-URL: https://build.opensuse.org/request/show/959288 OBS-URL: https://build.opensuse.org/package/show/graphics/inkscape?expand=0&rev=85
This commit is contained in:
parent
7b67ce36ce
commit
b2a89be85a
35
Fix_build_poppler_22030.patch
Normal file
35
Fix_build_poppler_22030.patch
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
From 15ab83e02b07018c3ffd4952a2623393187659e0 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Evangelos Foutras <evangelos@foutrelis.com>
|
||||||
|
Date: Wed, 2 Mar 2022 19:50:02 +0200
|
||||||
|
Subject: [PATCH] Fix build with poppler 22.03.0
|
||||||
|
|
||||||
|
PDFDoc's constructor now takes an std::unique_ptr as the filename and
|
||||||
|
the rest of the parameters are std::optional and can be left out.
|
||||||
|
|
||||||
|
Also, remove an obsolete comment regarding special handling on win32;
|
||||||
|
the "ifndef _WIN32" it was referring to has been removed by commit
|
||||||
|
ad8effaa6ec3 ("Fix PDF import with non-ASCII filename on Windows").
|
||||||
|
---
|
||||||
|
src/extension/internal/pdfinput/pdf-input.cpp | 8 +++++---
|
||||||
|
1 file changed, 5 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
Index: inkscape-1.1.2_2022-02-04_0a00cf5339/src/extension/internal/pdfinput/pdf-input.cpp
|
||||||
|
===================================================================
|
||||||
|
--- inkscape-1.1.2_2022-02-04_0a00cf5339.orig/src/extension/internal/pdfinput/pdf-input.cpp
|
||||||
|
+++ inkscape-1.1.2_2022-02-04_0a00cf5339/src/extension/internal/pdfinput/pdf-input.cpp
|
||||||
|
@@ -666,10 +666,12 @@ PdfInput::open(::Inkscape::Extension::In
|
||||||
|
// PDFDoc is from poppler. PDFDoc is used for preview and for native import.
|
||||||
|
std::shared_ptr<PDFDoc> pdf_doc;
|
||||||
|
|
||||||
|
- // poppler does not use glib g_open. So on win32 we must use unicode call. code was copied from
|
||||||
|
- // glib gstdio.c
|
||||||
|
+#if POPPLER_CHECK_VERSION(22, 3, 0)
|
||||||
|
+ pdf_doc = std::make_shared<PDFDoc>(std::make_unique<GooString>(uri)); // TODO: Could ask for password
|
||||||
|
+#else
|
||||||
|
GooString *filename_goo = new GooString(uri);
|
||||||
|
- pdf_doc = std::make_shared<PDFDoc>(filename_goo, nullptr, nullptr, nullptr); // TODO: Could ask for password
|
||||||
|
+ pdf_doc = std::make_shared<PDFDoc>(filename_goo, nullptr, nullptr, nullptr); // TODO: Could ask for password
|
||||||
|
+#endif
|
||||||
|
|
||||||
|
if (!pdf_doc->isOk()) {
|
||||||
|
int error = pdf_doc->getErrorCode();
|
@ -1,30 +0,0 @@
|
|||||||
From ebc4de4bfe34d6c5f2e27da47f5d62e4de0394fd Mon Sep 17 00:00:00 2001
|
|
||||||
From: Evangelos Foutras <evangelos@foutrelis.com>
|
|
||||||
Date: Mon, 1 Nov 2021 21:45:38 +0200
|
|
||||||
Subject: [PATCH] Fix build with poppler 21.11.0
|
|
||||||
|
|
||||||
GfxFont::tag is now of type std::string instead of GooString *.
|
|
||||||
(cherry picked from commit 5724c21b9cb7b6176a7b36ca24068b148c817e82)
|
|
||||||
---
|
|
||||||
src/extension/internal/pdfinput/pdf-parser.cpp | 4 ++++
|
|
||||||
1 file changed, 4 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/src/extension/internal/pdfinput/pdf-parser.cpp b/src/extension/internal/pdfinput/pdf-parser.cpp
|
|
||||||
index e3d04d544b..feecefa043 100644
|
|
||||||
--- a/src/extension/internal/pdfinput/pdf-parser.cpp
|
|
||||||
+++ b/src/extension/internal/pdfinput/pdf-parser.cpp
|
|
||||||
@@ -2169,7 +2169,11 @@ void PdfParser::opSetFont(Object args[], int /*numArgs*/)
|
|
||||||
}
|
|
||||||
if (printCommands) {
|
|
||||||
printf(" font: tag=%s name='%s' %g\n",
|
|
||||||
+#if POPPLER_CHECK_VERSION(21,11,0)
|
|
||||||
+ font->getTag().c_str(),
|
|
||||||
+#else
|
|
||||||
font->getTag()->getCString(),
|
|
||||||
+#endif
|
|
||||||
font->getName() ? font->getName()->getCString() : "???",
|
|
||||||
args[1].getNum());
|
|
||||||
fflush(stdout);
|
|
||||||
--
|
|
||||||
GitLab
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:aeca0b9d33b5b1cfa9aa70433bdee6a8c3d020ffafc2e6f0c9a60eed7a7978af
|
|
||||||
size 34221284
|
|
Binary file not shown.
3
inkscape-1.1.2_2022-02-04_0a00cf5339.tar.xz
Normal file
3
inkscape-1.1.2_2022-02-04_0a00cf5339.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:3ffe54a06d0b25a4cd8b6eb424536ef1ed205be13443a39cd437c8c7b89b96d1
|
||||||
|
size 34222832
|
BIN
inkscape-1.1.2_2022-02-04_0a00cf5339.tar.xz.sig
Normal file
BIN
inkscape-1.1.2_2022-02-04_0a00cf5339.tar.xz.sig
Normal file
Binary file not shown.
@ -1,3 +1,16 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 3 19:02:54 UTC 2022 - Bjørn Lie <bjorn.lie@gmail.com>
|
||||||
|
|
||||||
|
- Update to version 1.1.2:
|
||||||
|
+ Dependencies updated, fixing bitmap exports
|
||||||
|
+ Graphic tablet pens erasors switch to the correct tool
|
||||||
|
+ Fix lost styling of text converted to path
|
||||||
|
+ Fix relative position of clones pasted to a new document
|
||||||
|
+ Fix various crashes
|
||||||
|
- Drop ebc4de4bfe34d6c5f2e27da47f5d62e4de0394fd.patch: Fixed
|
||||||
|
upstream.
|
||||||
|
- Add Fix_build_poppler_22030.patch: Fix build with poppler 22.03.0
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jan 17 18:59:38 UTC 2022 - Mykola Krachkovsky <w01dnick@gmail.com>
|
Mon Jan 17 18:59:38 UTC 2022 - Mykola Krachkovsky <w01dnick@gmail.com>
|
||||||
|
|
||||||
|
@ -16,24 +16,23 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define _version 1.1.1_2021-09-20_3bf5ae0d25
|
%define _version 1.1.2_2022-02-04_0a00cf5339
|
||||||
|
|
||||||
Name: inkscape
|
Name: inkscape
|
||||||
Version: 1.1.1
|
Version: 1.1.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Vector Illustration Program
|
Summary: Vector Illustration Program
|
||||||
License: GPL-3.0-only
|
License: GPL-3.0-only
|
||||||
URL: https://inkscape.org/
|
URL: https://inkscape.org/
|
||||||
|
|
||||||
Source: https://inkscape.org/gallery/item/29255/inkscape-%{version}.tar.xz#/inkscape-%{_version}.tar.xz
|
Source: https://inkscape.org/gallery/item/31668/inkscape-%{version}.tar.xz#/inkscape-%{_version}.tar.xz
|
||||||
# openSUSE palette file
|
# openSUSE palette file
|
||||||
Source1: openSUSE.gpl
|
Source1: openSUSE.gpl
|
||||||
Source2: inkscape-split-extensions-extra.py
|
Source2: inkscape-split-extensions-extra.py
|
||||||
Source98: https://media.inkscape.org/media/resources/sigs/inkscape-%{_version}.tar.xz.sig
|
Source98: https://media.inkscape.org/media/resources/sigs/inkscape-%{_version}.tar.xz.sig
|
||||||
Source99: https://inkscape.org/~MarcJeanmougin/gpg#/%name.keyring
|
Source99: https://inkscape.org/~MarcJeanmougin/gpg#/%name.keyring
|
||||||
|
# PATCH-FIX-UPSTREAM Fix_build_poppler_22030.patch -- Fix build with poppler 22.03.0
|
||||||
# PATCH-FIX-UPSTREAM ebc4de4bfe34d6c5f2e27da47f5d62e4de0394fd.patch -- Fix build with poppler 21.11.0
|
Patch0: Fix_build_poppler_22030.patch
|
||||||
Patch0: https://gitlab.com/inkscape/inkscape/-/commit/ebc4de4bfe34d6c5f2e27da47f5d62e4de0394fd.patch
|
|
||||||
|
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: double-conversion-devel
|
BuildRequires: double-conversion-devel
|
||||||
@ -172,7 +171,7 @@ export CXX=g++-10
|
|||||||
# Only useful for translators.
|
# Only useful for translators.
|
||||||
rm %{buildroot}%{_datadir}/inkscape/extensions/genpofiles.sh
|
rm %{buildroot}%{_datadir}/inkscape/extensions/genpofiles.sh
|
||||||
# Packaging/distribution info.
|
# Packaging/distribution info.
|
||||||
rm %{buildroot}%{_datadir}/inkscape/extensions/{LICENSE.txt,MANIFEST.in,README.md,STYLEGUIDE.md,TESTING.md}
|
rm %{buildroot}%{_datadir}/inkscape/extensions/{LICENSE.txt,MANIFEST.in,README.md,TESTING.md}
|
||||||
# Test framework.
|
# Test framework.
|
||||||
rm %{buildroot}%{_datadir}/inkscape/extensions/setup.{cfg,py} \
|
rm %{buildroot}%{_datadir}/inkscape/extensions/setup.{cfg,py} \
|
||||||
%{buildroot}%{_datadir}/inkscape/extensions/tox.ini \
|
%{buildroot}%{_datadir}/inkscape/extensions/tox.ini \
|
||||||
|
Loading…
Reference in New Issue
Block a user