From db4aadeae5d3d326f3919db39b27ad7a5ea5f71ac2bc7fc3a2b094f368a35823 Mon Sep 17 00:00:00 2001 From: Dirk Stoecker Date: Thu, 18 Apr 2024 18:11:48 +0000 Subject: [PATCH] Accepting request 1168895 from home:dimstar:Factory - Add inkscape-libxml2.12.patch: Fix build with libxml 2.12. OBS-URL: https://build.opensuse.org/request/show/1168895 OBS-URL: https://build.opensuse.org/package/show/graphics/inkscape?expand=0&rev=115 --- inkscape-libxml2.12.patch | 33 +++++++++++++++++++++++++++++++++ inkscape.changes | 5 +++++ inkscape.spec | 2 ++ 3 files changed, 40 insertions(+) create mode 100644 inkscape-libxml2.12.patch diff --git a/inkscape-libxml2.12.patch b/inkscape-libxml2.12.patch new file mode 100644 index 0000000..786a696 --- /dev/null +++ b/inkscape-libxml2.12.patch @@ -0,0 +1,33 @@ +From 694d8ae43d06efff21adebf377ce614d660b24cd Mon Sep 17 00:00:00 2001 +From: Christian Hesse +Date: Fri, 17 Nov 2023 22:30:42 +0100 +Subject: [PATCH] include missing header file +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +This fixes build error: +``` +/build/inkscape/src/inkscape/src/object/uri.cpp: In constructor ‘Inkscape::URI::URI(const gchar*, const char*)’: +/build/inkscape/src/inkscape/src/object/uri.cpp:86:9: error: ‘xmlFree’ was not declared in this scope; did you mean ‘xmlFreeURI’? + 86 | xmlFree(full); +``` +--- + src/object/uri.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/object/uri.h b/src/object/uri.h +index 381adec58cf..d5b211fe2b2 100644 +--- a/src/object/uri.h ++++ b/src/object/uri.h +@@ -13,6 +13,7 @@ + #define INKSCAPE_URI_H + + #include ++#include + #include + #include + +-- +GitLab + diff --git a/inkscape.changes b/inkscape.changes index 808eb00..edc9e30 100644 --- a/inkscape.changes +++ b/inkscape.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Apr 18 14:13:05 UTC 2024 - Dominique Leuenberger + +- Add inkscape-libxml2.12.patch: Fix build with libxml 2.12. + ------------------------------------------------------------------- Fri Mar 8 09:14:00 UTC 2024 - Dominique Leuenberger diff --git a/inkscape.spec b/inkscape.spec index 13f3383..b34c996 100644 --- a/inkscape.spec +++ b/inkscape.spec @@ -34,6 +34,8 @@ Source99: https://inkscape.org/~MarcJeanmougin/gpg#/%name.keyring # PATCH-FIX-UPSTREAM https://gitlab.com/inkscape/inkscape/-/merge_requests/6209 Patch0: inkscape-poppler-24.03.0.patch +# PATCH-FIX-UPSTREAM +Patch1: https://gitlab.com/inkscape/inkscape/-/merge_requests/6089.patch#/inkscape-libxml2.12.patch BuildRequires: cmake BuildRequires: double-conversion-devel