diff --git a/3825abc637ac2d3bc6ff997503b0631ac14e16b5.patch b/3825abc637ac2d3bc6ff997503b0631ac14e16b5.patch new file mode 100644 index 0000000..e402a2a --- /dev/null +++ b/3825abc637ac2d3bc6ff997503b0631ac14e16b5.patch @@ -0,0 +1,26 @@ +From 3825abc637ac2d3bc6ff997503b0631ac14e16b5 Mon Sep 17 00:00:00 2001 +From: Sergei Trofimovich +Date: Tue, 30 Nov 2021 10:11:20 +0000 +Subject: [PATCH] Initializes string with empty string + +src/io/file.h: fix build on gcc-12 +--- + src/io/file.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/io/file.h b/src/io/file.h +index 5d2ec6d86d..eb5c0d8a0f 100644 +--- a/src/io/file.h ++++ b/src/io/file.h +@@ -26,7 +26,7 @@ class RefPtr; + + class SPDocument; + +-SPDocument* ink_file_new(const std::string &Template = nullptr); ++SPDocument* ink_file_new(const std::string &Template = ""); + SPDocument* ink_file_open(const Glib::ustring &data); + SPDocument* ink_file_open(const Glib::RefPtr& file, bool *cancelled = nullptr); + +-- +GitLab + diff --git a/inkscape.spec b/inkscape.spec index d82a0dd..fb4a4e5 100644 --- a/inkscape.spec +++ b/inkscape.spec @@ -17,6 +17,7 @@ Source2: Fedora-Color-Palette.gpl Patch0: b3dabef2245d4e4e977ee9d6776be9a134493515.patch Patch1: 5724c21b9cb7b6176a7b36ca24068b148c817e82.patch +Patch2: 3825abc637ac2d3bc6ff997503b0631ac14e16b5.patch Provides: bundled(libcroco) Provides: bundled(autotrace) @@ -216,7 +217,7 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.inkscape.Inksc %changelog * Thu Jan 13 2022 Gwyn Ciesla - 1.1.1-3 -- Poppler rebuild, with upstream patch. +- Poppler rebuild, with upstream patches. * Wed Nov 10 2021 Gwyn Ciesla - 1.1.1-2 - Patch for Pango multiline issue.