diff mbox series

[meta-gnome,1/2] gnome-online-accounts: Fix build with libxml2 2.12

Message ID 20240308062947.1258485-1-raj.khem@gmail.com
State Accepted, archived
Headers show
Series [meta-gnome,1/2] gnome-online-accounts: Fix build with libxml2 2.12 | expand

Commit Message

Khem Raj March 8, 2024, 6:29 a.m. UTC
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 ...abackend-Fix-build-with-libxml2-2.12.patch | 28 +++++++++++++++++++
 .../gnome-online-accounts_3.48.0.bb           |  3 +-
 2 files changed, 30 insertions(+), 1 deletion(-)
 create mode 100644 meta-gnome/recipes-gnome/gnome-online-accounts/gnome-online-accounts/0001-goabackend-Fix-build-with-libxml2-2.12.patch
diff mbox series

Patch

diff --git a/meta-gnome/recipes-gnome/gnome-online-accounts/gnome-online-accounts/0001-goabackend-Fix-build-with-libxml2-2.12.patch b/meta-gnome/recipes-gnome/gnome-online-accounts/gnome-online-accounts/0001-goabackend-Fix-build-with-libxml2-2.12.patch
new file mode 100644
index 0000000000..3d13779c2e
--- /dev/null
+++ b/meta-gnome/recipes-gnome/gnome-online-accounts/gnome-online-accounts/0001-goabackend-Fix-build-with-libxml2-2.12.patch
@@ -0,0 +1,28 @@ 
+From a2867ebcf184695eed00aab4e7b47c1d4a53b2b2 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?J=C3=BCrg=20Billeter?= <j@bitron.ch>
+Date: Fri, 24 Nov 2023 16:19:47 +0100
+Subject: [PATCH] goabackend: Fix build with libxml2 2.12
+
+libxml/xmlIO.h no longer includes libxml/parser.h.
+
+Upstream-Status: Backport [https://github.com/GNOME/gnome-online-accounts/commit/b9638e2418408be4906752297e700506766dcf20]
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ src/goabackend/goaewsclient.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/goabackend/goaewsclient.c b/src/goabackend/goaewsclient.c
+index 4cb2358..01a52d1 100644
+--- a/src/goabackend/goaewsclient.c
++++ b/src/goabackend/goaewsclient.c
+@@ -27,6 +27,7 @@
+ #include <glib/gi18n-lib.h>
+ 
+ #include <libsoup/soup.h>
++#include <libxml/parser.h>
+ #include <libxml/xmlIO.h>
+ 
+ #include "goaewsclient.h"
+-- 
+2.44.0
+
diff --git a/meta-gnome/recipes-gnome/gnome-online-accounts/gnome-online-accounts_3.48.0.bb b/meta-gnome/recipes-gnome/gnome-online-accounts/gnome-online-accounts_3.48.0.bb
index 47b234e235..fd61d797d0 100644
--- a/meta-gnome/recipes-gnome/gnome-online-accounts/gnome-online-accounts_3.48.0.bb
+++ b/meta-gnome/recipes-gnome/gnome-online-accounts/gnome-online-accounts_3.48.0.bb
@@ -7,7 +7,8 @@  inherit gnomebase gsettings gobject-introspection gtk-icon-cache vala features_c
 
 DEPENDS = "gdk-pixbuf dbus glib-2.0"
 
-SRC_URI += "file://0001-Replace-filename-with-basename.patch"
+SRC_URI += "file://0001-Replace-filename-with-basename.patch \
+            file://0001-goabackend-Fix-build-with-libxml2-2.12.patch"
 SRC_URI[archive.sha256sum] = "418bb9fcffdbd72a98205ad365137617fc1e3551a54de74f6a98d45d266175bf"
 
 PACKAGECONFIG ?= "goabackend kerberos owncloud lastfm google windows_live"