[arch-commits] Commit in gdome2/trunk (PKGBUILD gdome2-0.8.1-libxml2.patch)

Eric Bélanger eric at nymeria.archlinux.org
Tue Oct 29 18:42:48 UTC 2013


    Date: Tuesday, October 29, 2013 @ 19:42:47
  Author: eric
Revision: 197758

upgpkg: gdome2 0.8.1-5

Rebuild without static libraries, Add build patch

Added:
  gdome2/trunk/gdome2-0.8.1-libxml2.patch
Modified:
  gdome2/trunk/PKGBUILD

----------------------------+
 PKGBUILD                   |   21 ++++++++++++++-------
 gdome2-0.8.1-libxml2.patch |   18 ++++++++++++++++++
 2 files changed, 32 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-10-29 18:41:16 UTC (rev 197757)
+++ PKGBUILD	2013-10-29 18:42:47 UTC (rev 197758)
@@ -4,23 +4,30 @@
 
 pkgname=gdome2
 pkgver=0.8.1
-pkgrel=4
+pkgrel=5
 pkgdesc="Gnome DOM Engine"
+arch=('i686' 'x86_64')
 url="http://gdome2.cs.unibo.it/"
-arch=('i686' 'x86_64')
 license=('LGPL')
 depends=('libxml2' 'glib2')
-options=(!libtool)
-source=("http://gdome2.cs.unibo.it/tarball/${pkgname}-${pkgver}.tar.gz")
-md5sums=('bfc114e59eec50cbda8e4ece751ff022')
+source=("http://gdome2.cs.unibo.it/tarball/${pkgname}-${pkgver}.tar.gz"
+        gdome2-0.8.1-libxml2.patch)
+md5sums=('bfc114e59eec50cbda8e4ece751ff022'
+         'bde155107f30bf65d441adf70efc3c00')
 
+prepare() {
+  cd ${pkgname}-${pkgver}
+  patch -p0 -i "${srcdir}/gdome2-0.8.1-libxml2.patch"
+}
+
+
 build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd ${pkgname}-${pkgver}
   ./configure --prefix=/usr --mandir=/usr/share/man
   make
 }
 
 package() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
+  cd ${pkgname}-${pkgver}
   make DESTDIR="${pkgdir}" install
 }

Added: gdome2-0.8.1-libxml2.patch
===================================================================
--- gdome2-0.8.1-libxml2.patch	                        (rev 0)
+++ gdome2-0.8.1-libxml2.patch	2013-10-29 18:42:47 UTC (rev 197758)
@@ -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);




More information about the arch-commits mailing list