[packages/gnome-builder] add missing includes to fix build with libxml2 >= 2.12
atler
atler at pld-linux.org
Tue Nov 21 20:09:27 CET 2023
commit 8ce73bdec4aa265bb473c92a96f02dec6693a11c
Author: Jan Palus <atler at pld-linux.org>
Date: Tue Nov 21 19:45:42 2023 +0100
add missing includes to fix build with libxml2 >= 2.12
gnome-builder.spec | 2 ++
missing-includes.patch | 20 ++++++++++++++++++++
2 files changed, 22 insertions(+)
---
diff --git a/gnome-builder.spec b/gnome-builder.spec
index 4dbb20d..aed84a3 100644
--- a/gnome-builder.spec
+++ b/gnome-builder.spec
@@ -15,6 +15,7 @@ License: GPL v3+
Group: X11/Applications
Source0: https://download.gnome.org/sources/gnome-builder/45/%{name}-%{version}.tar.xz
# Source0-md5: dc095a68d1b4d44b7ee7eda5fd3c9c10
+Patch0: missing-includes.patch
URL: https://wiki.gnome.org/Apps/Builder
BuildRequires: appstream-glib
BuildRequires: clang-devel >= 3.5
@@ -163,6 +164,7 @@ Dokumentacja API bibliotek GNOME Buildera.
%prep
%setup -q
+%patch0 -p1
# drop useless shebang
grep -q /usr/bin/env src/libide/Ide.py || exit 1
diff --git a/missing-includes.patch b/missing-includes.patch
new file mode 100644
index 0000000..fd0f44d
--- /dev/null
+++ b/missing-includes.patch
@@ -0,0 +1,20 @@
+--- gnome-builder-45.0/src/plugins/xml-pack/ide-xml-formatter.c.orig 2023-09-17 02:27:21.000000000 +0200
++++ gnome-builder-45.0/src/plugins/xml-pack/ide-xml-formatter.c 2023-11-21 19:40:25.054481533 +0100
+@@ -27,6 +27,7 @@
+
+ #include <libxml/tree.h>
+ #include <libxml/parser.h>
++#include <libxml/xmlsave.h>
+
+ #include "ide-xml-formatter.h"
+
+--- gnome-builder-45.0/src/plugins/xml-pack/ide-xml-rng-parser.c.orig 2023-09-17 02:27:21.000000000 +0200
++++ gnome-builder-45.0/src/plugins/xml-pack/ide-xml-rng-parser.c 2023-11-21 19:42:19.008516795 +0100
+@@ -23,6 +23,7 @@
+ * Whole refactoring to match the GNOME Builder needs.
+ */
+
++#include <libxml/parser.h>
+ #include <libxml/tree.h>
+ #include <libxml/uri.h>
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gnome-builder.git/commitdiff/63e0b54c7a1676e505a6034eeec4300c0166e035
More information about the pld-cvs-commit
mailing list