summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2012-09-20 11:53:18 +0000
committerobache <obache@pkgsrc.org>2012-09-20 11:53:18 +0000
commitdbfe58304f49064bd6d311df0fdca745130173ee (patch)
treefba0f18e8cf2021d69ec534579c21e94f18eec9c /mail
parent7c4aa1a2a174ae5e138f9bde26e5f41c31694719 (diff)
downloadpkgsrc-dbfe58304f49064bd6d311df0fdca745130173ee.tar.gz
apply patch for new API by libxml2-2.9.0, taken form upsteam master branch.
Diffstat (limited to 'mail')
-rw-r--r--mail/evolution-data-server/distinfo3
-rw-r--r--mail/evolution-data-server/patches/patch-calendar_backends_caldav_e-cal-backend-caldav.c112
2 files changed, 114 insertions, 1 deletions
diff --git a/mail/evolution-data-server/distinfo b/mail/evolution-data-server/distinfo
index 0a106e7f0bb..ee5f1670913 100644
--- a/mail/evolution-data-server/distinfo
+++ b/mail/evolution-data-server/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.81 2012/05/06 04:34:03 dholland Exp $
+$NetBSD: distinfo,v 1.82 2012/09/20 11:53:18 obache Exp $
SHA1 (evolution-data-server-2.32.3.tar.bz2) = cbf32c3438c4f1650b35b87007a337ebc1c56cec
RMD160 (evolution-data-server-2.32.3.tar.bz2) = adc8b07aef41a89d16fc426541c12190a3688b8f
@@ -7,6 +7,7 @@ SHA1 (patch-aa) = 117f3ce1f2c948cae502486afdb62078e952afc0
SHA1 (patch-ab) = fd27fd0a521899be568c843b24d9b6eeeb99a2bb
SHA1 (patch-bd) = 8df85b9ab7ae71558fb939565e944b614de628bb
SHA1 (patch-ca) = e879d29105997045e1293fe627ec55a05e5ba88d
+SHA1 (patch-calendar_backends_caldav_e-cal-backend-caldav.c) = 756ce60a8b684369bf7b0c14f2f52e735253c381
SHA1 (patch-calendar_libegdbus_Makefile.in) = ac5aabae5160967c498f12c0f29be3e206e03622
SHA1 (patch-cc) = a59bbc664a96f467888cae89cb00eb9a9033a925
SHA1 (patch-cd) = 6e366e65e68cd0c5a8eafa67c7f9152c6521de12
diff --git a/mail/evolution-data-server/patches/patch-calendar_backends_caldav_e-cal-backend-caldav.c b/mail/evolution-data-server/patches/patch-calendar_backends_caldav_e-cal-backend-caldav.c
new file mode 100644
index 00000000000..450d9b17618
--- /dev/null
+++ b/mail/evolution-data-server/patches/patch-calendar_backends_caldav_e-cal-backend-caldav.c
@@ -0,0 +1,112 @@
+$NetBSD: patch-calendar_backends_caldav_e-cal-backend-caldav.c,v 1.1 2012/09/20 11:53:19 obache Exp $
+
+* Support both old and new-buf libxml2 APIs
+ http://git.gnome.org/browse/evolution-data-server/commit/calendar/backends/caldav/e-cal-backend-caldav.c?id=679b10d75730e81fa268e11cfda289a27fd3e306
+
+--- calendar/backends/caldav/e-cal-backend-caldav.c.orig 2011-04-21 19:35:36.000000000 +0000
++++ calendar/backends/caldav/e-cal-backend-caldav.c
+@@ -1024,6 +1024,19 @@ caldav_server_open_calendar (ECalBackend
+ return FALSE;
+ }
+
++static gconstpointer
++compat_libxml_output_buffer_get_content (xmlOutputBufferPtr buf,
++ gsize *out_len)
++{
++#ifdef LIBXML2_NEW_BUFFER
++ *out_len = xmlOutputBufferGetSize (buf);
++ return xmlOutputBufferGetContent (buf);
++#else
++ *out_len = buf->buffer->use;
++ return buf->buffer->content;
++#endif
++}
++
+ /* Returns whether calendar changed on the server. This works only when server
+ supports 'getctag' extension. */
+ static gboolean
+@@ -1035,6 +1048,8 @@ check_calendar_changed_on_server (ECalBa
+ xmlDocPtr doc;
+ xmlNodePtr root, node;
+ xmlNsPtr ns, nsdav;
++ gconstpointer buf_content;
++ gsize buf_size;
+ gboolean result = TRUE;
+
+ g_return_val_if_fail (cbdav != NULL, TRUE);
+@@ -1069,11 +1084,11 @@ check_calendar_changed_on_server (ECalBa
+ soup_message_headers_append (message->request_headers,
+ "Depth", "0");
+
++ buf_content = compat_libxml_output_buffer_get_content (buf, &buf_size);
+ soup_message_set_request (message,
+ "application/xml",
+ SOUP_MEMORY_COPY,
+- (gchar *) buf->buffer->content,
+- buf->buffer->use);
++ buf_content, buf_size);
+
+ /* Send the request now */
+ send_and_handle_redirection (priv->session, message, NULL);
+@@ -1131,6 +1146,8 @@ caldav_server_list_objects (ECalBackendC
+ xmlDocPtr doc;
+ xmlNsPtr nsdav;
+ xmlNsPtr nscd;
++ gconstpointer buf_content;
++ gsize buf_size;
+ gboolean result;
+
+ priv = E_CAL_BACKEND_CALDAV_GET_PRIVATE (cbdav);
+@@ -1211,11 +1228,11 @@ caldav_server_list_objects (ECalBackendC
+ soup_message_headers_append (message->request_headers,
+ "Depth", "1");
+
++ buf_content = compat_libxml_output_buffer_get_content (buf, &buf_size);
+ soup_message_set_request (message,
+ "application/xml",
+ SOUP_MEMORY_COPY,
+- (gchar *) buf->buffer->content,
+- buf->buffer->use);
++ buf_content, buf_size);
+
+ /* Send the request now */
+ send_and_handle_redirection (priv->session, message, NULL);
+@@ -1499,6 +1516,8 @@ caldav_receive_schedule_outbox_url (ECal
+ xmlDocPtr doc;
+ xmlNodePtr root, node;
+ xmlNsPtr nsdav;
++ gconstpointer buf_content;
++ gsize buf_size;
+ gchar *owner = NULL;
+
+ g_return_val_if_fail (cbdav != NULL, FALSE);
+@@ -1527,11 +1546,11 @@ caldav_receive_schedule_outbox_url (ECal
+ soup_message_headers_append (message->request_headers, "User-Agent", "Evolution/" VERSION);
+ soup_message_headers_append (message->request_headers, "Depth", "0");
+
++ buf_content = compat_libxml_output_buffer_get_content (buf, &buf_size);
+ soup_message_set_request (message,
+ "application/xml",
+ SOUP_MEMORY_COPY,
+- (gchar *) buf->buffer->content,
+- buf->buffer->use);
++ buf_content, buf_size);
+
+ /* Send the request now */
+ send_and_handle_redirection (priv->session, message, NULL);
+@@ -1577,11 +1596,11 @@ caldav_receive_schedule_outbox_url (ECal
+ soup_message_headers_append (message->request_headers, "User-Agent", "Evolution/" VERSION);
+ soup_message_headers_append (message->request_headers, "Depth", "0");
+
++ buf_content = compat_libxml_output_buffer_get_content (buf, &buf_size);
+ soup_message_set_request (message,
+- "application/xml",
+- SOUP_MEMORY_COPY,
+- (gchar *) buf->buffer->content,
+- buf->buffer->use);
++ "application/xml",
++ SOUP_MEMORY_COPY,
++ buf_content, buf_size);
+
+ /* Send the request now */
+ send_and_handle_redirection (priv->session, message, NULL);