Add patch for new xmlOutputBuffer API

This commit is contained in:
Milan Crha 2012-08-20 16:19:57 +02:00
parent f35b080f87
commit b5971448f7
2 changed files with 39 additions and 0 deletions

View File

@ -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);

View File

@ -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@redhat.com> - 3.5.90-1
- Update to 3.5.90
- Add patch for new xmlOutputBuffer API
* Mon Aug 06 2012 Milan Crha <mcrha@redhat.com> - 3.5.5-1
- Update to 3.5.5