From 8ce73bdec4aa265bb473c92a96f02dec6693a11c Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Tue, 21 Nov 2023 19:45:42 +0100 Subject: [PATCH] add missing includes to fix build with libxml2 >= 2.12 --- gnome-builder.spec | 2 ++ missing-includes.patch | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 missing-includes.patch 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 + #include ++#include + + #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 + #include + #include + -- 2.44.0