[evolution-ews/f18] Add patch for new xmlOutputBuffer API
Milan Crha
mcrha at fedoraproject.org
Mon Aug 20 14:21:53 UTC 2012
commit 0cf3857709405d81ba9eaa45e85e1a70390109f6
Author: Milan Crha <mcrha at redhat.com>
Date: Mon Aug 20 16:21:38 2012 +0200
Add patch for new xmlOutputBuffer API
evolution-ews-3.5.90-xmlbuffer.patch | 35 ++++++++++++++++++++++++++++++++++
evolution-ews.spec | 4 +++
2 files changed, 39 insertions(+), 0 deletions(-)
---
diff --git a/evolution-ews-3.5.90-xmlbuffer.patch b/evolution-ews-3.5.90-xmlbuffer.patch
new file mode 100644
index 0000000..e6675b2
--- /dev/null
+++ b/evolution-ews-3.5.90-xmlbuffer.patch
@@ -0,0 +1,35 @@
+diff --git a/src/server/e-ews-connection.c b/src/server/e-ews-connection.c
+index e3ec167..b239e61 100644
+--- a/src/server/e-ews-connection.c
++++ b/src/server/e-ews-connection.c
+@@ -1956,8 +1956,13 @@ static void post_restarted (SoupMessage *msg, gpointer data)
+
+ soup_message_set_request (
+ msg, "text/xml; charset=utf-8", SOUP_MEMORY_COPY,
+- (gchar *) buf->buffer->content,
+- buf->buffer->use);
++ (gchar *)
++ #ifdef LIBXML2_NEW_BUFFER
++ xmlOutputBufferGetContent (buf), xmlOutputBufferGetSize (buf)
++ #else
++ buf->buffer->content, buf->buffer->use
++ #endif
++ );
+ }
+
+ static SoupMessage *
+@@ -1978,7 +1983,13 @@ e_ews_get_msg_for_url (const gchar *url,
+ if (buf != NULL) {
+ soup_message_set_request (
+ msg, "text/xml; charset=utf-8", SOUP_MEMORY_COPY,
+- (gchar *) buf->buffer->content, buf->buffer->use);
++ (gchar *)
++ #ifdef LIBXML2_NEW_BUFFER
++ xmlOutputBufferGetContent (buf), xmlOutputBufferGetSize (buf)
++ #else
++ buf->buffer->content, buf->buffer->use
++ #endif
++ );
+ g_signal_connect (
+ msg, "restarted",
+ G_CALLBACK (post_restarted), buf);
diff --git a/evolution-ews.spec b/evolution-ews.spec
index c40044b..3c6c0e1 100644
--- a/evolution-ews.spec
+++ b/evolution-ews.spec
@@ -9,6 +9,8 @@ License: LGPLv2
URL: http://projects.gnome.org/evolution
Source: http://download.gnome.org/sources/%{name}/3.5/%{name}-%{version}.tar.xz
+Patch01: evolution-ews-3.5.90-xmlbuffer.patch
+
Requires: evolution >= %{version}
Requires: evolution-data-server >= %{version}
@@ -22,6 +24,7 @@ versions 2007 and later, through its Exchange Web Services (EWS) interface.
%prep
%setup -q
+%patch01 -p1 -b .xmlbuffer
%build
%configure
@@ -67,6 +70,7 @@ rm $RPM_BUILD_ROOT%{_libdir}/pkgconfig/*.pc
%changelog
* Mon Aug 20 2012 Milan Crha <mcrha at redhat.com> - 3.5.90-1
- Update to 3.5.90
+- Add patch for new xmlOutputBuffer API
* Mon Aug 06 2012 Milan Crha <mcrha at redhat.com> - 3.5.5-1
- Update to 3.5.5
More information about the scm-commits
mailing list