diff options
author | 2013-01-02 02:59:39 +0000 | |
---|---|---|
committer | 2013-01-02 02:59:39 +0000 | |
commit | a8d77f32b7a8800a27f0c27b7f39bb90fb52a1b9 (patch) | |
tree | e3773959d082ac62adc68ed9c5fe879323696419 /dev-libs/gdome2/files | |
parent | Add missing call to qt4-build_pkg_postinst(). Fixes bug 449362 and duplicates. (diff) | |
download | gentoo-2-a8d77f32b7a8800a27f0c27b7f39bb90fb52a1b9.tar.gz gentoo-2-a8d77f32b7a8800a27f0c27b7f39bb90fb52a1b9.tar.bz2 gentoo-2-a8d77f32b7a8800a27f0c27b7f39bb90fb52a1b9.zip |
Fix building with libxml2-2.9.0 caused by an API change as announced on
https://mail.gnome.org/archives/xml/2012-August/msg00005.html
Fixes bug 448236. Thanks to Harris Landgarten for investigating the issue
and for submitting the patch.
(Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key BB0E6E98)
Diffstat (limited to 'dev-libs/gdome2/files')
-rw-r--r-- | dev-libs/gdome2/files/gdome2-0.8.1-libxml2.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/dev-libs/gdome2/files/gdome2-0.8.1-libxml2.patch b/dev-libs/gdome2/files/gdome2-0.8.1-libxml2.patch new file mode 100644 index 000000000000..bf493bc224ac --- /dev/null +++ b/dev-libs/gdome2/files/gdome2-0.8.1-libxml2.patch @@ -0,0 +1,18 @@ +Patch by Harris Landgarten. + +The patch was submitted on bug 448236, following the announcement on +https://mail.gnome.org/archives/xml/2012-August/msg00005.html +--- libgdome/gdomecore/gdome-xml-documentt.c.orig 2003-07-13 06:47:54.000000000 -0400 ++++ libgdome/gdomecore/gdome-xml-documentt.c 2012-12-23 08:57:23.000000000 -0500 +@@ -342,7 +342,11 @@ + } + xmlNodeDumpOutput (out_buff, NULL, (xmlNode *)is, 0, 0, NULL); + xmlOutputBufferFlush(out_buff); ++#if LIBXML_VERSION < 20900 + ret = g_strndup (out_buff->buffer->content, out_buff->buffer->use); ++#else ++ ret = g_strndup (xmlBufContent(out_buff->buffer), xmlBufUse(out_buff->buffer)); ++#endif + (void)xmlOutputBufferClose(out_buff); + + return gdome_xml_str_mkref_own (ret); |