[packages/gdome2] - build fix from Debian
hawk
hawk at pld-linux.org
Tue Jul 2 16:58:49 CEST 2013
commit c7926aa4890bd2fba339def47460c0a28420a499
Author: Marcin Krol <hawk at tld-linux.org>
Date: Tue Jul 2 15:26:47 2013 +0000
- build fix from Debian
gdome2-build_fix.patch | 14 ++++++++++++++
gdome2.spec | 4 +++-
2 files changed, 17 insertions(+), 1 deletion(-)
---
diff --git a/gdome2.spec b/gdome2.spec
index 44dbf3b..0c94b9a 100644
--- a/gdome2.spec
+++ b/gdome2.spec
@@ -6,12 +6,13 @@ Summary: DOM level2 library for accessing XML files
Summary(pl.UTF-8): Biblioteka dostępu do plików XML, DOM poziom 2
Name: gdome2
Version: 0.8.1
-Release: 9
+Release: 10
License: LGPL
Group: Libraries
Source0: http://gdome2.cs.unibo.it/tarball/%{name}-%{version}.tar.gz
# Source0-md5: bfc114e59eec50cbda8e4ece751ff022
Patch0: %{name}-glib2.patch
+Patch1: %{name}-build_fix.patch
URL: http://gdome2.cs.unibo.it/
BuildRequires: autoconf
BuildRequires: automake
@@ -122,6 +123,7 @@ oprogramowania opartego o gdome2.
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
echo 'AM_DEFUN([AM_PATH_GLIB], [$3])' >> acinclude.m4
diff --git a/gdome2-build_fix.patch b/gdome2-build_fix.patch
new file mode 100644
index 0000000..54f42c0
--- /dev/null
+++ b/gdome2-build_fix.patch
@@ -0,0 +1,14 @@
+Bug-Debian: http://bugs.debian.org/713596
+Index: gdome2-0.8.1+debian/libgdome/gdomecore/gdome-xml-documentt.c
+===================================================================
+--- gdome2-0.8.1+debian.orig/libgdome/gdomecore/gdome-xml-documentt.c 2003-07-13 14:47:54.000000000 +0400
++++ gdome2-0.8.1+debian/libgdome/gdomecore/gdome-xml-documentt.c 2013-07-02 14:09:18.304613703 +0400
+@@ -342,7 +342,7 @@
+ }
+ xmlNodeDumpOutput (out_buff, NULL, (xmlNode *)is, 0, 0, NULL);
+ xmlOutputBufferFlush(out_buff);
+- ret = g_strndup (out_buff->buffer->content, out_buff->buffer->use);
++ ret = g_strndup (xmlBufContent(out_buff), xmlBufUse(out_buff));
+ (void)xmlOutputBufferClose(out_buff);
+
+ return gdome_xml_str_mkref_own (ret);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gdome2.git/commitdiff/c7926aa4890bd2fba339def47460c0a28420a499
More information about the pld-cvs-commit
mailing list