[arch-commits] Commit in mono/trunk (PKGBUILD fix-zlib-helper.patch)

Daniel Isenmann daniel at archlinux.org
Wed Jun 10 22:49:50 UTC 2015


    Date: Thursday, June 11, 2015 @ 00:49:49
  Author: daniel
Revision: 240488

upgpkg: mono 4.0.1.44-1

New upstream release

Added:
  mono/trunk/fix-zlib-helper.patch
Modified:
  mono/trunk/PKGBUILD

-----------------------+
 PKGBUILD              |   14 +++++++++-----
 fix-zlib-helper.patch |   26 ++++++++++++++++++++++++++
 2 files changed, 35 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-06-10 20:56:07 UTC (rev 240487)
+++ PKGBUILD	2015-06-10 22:49:49 UTC (rev 240488)
@@ -3,7 +3,7 @@
 # Contributor: Brice Carpentier <brice at dlfp.org>
 
 pkgname=mono
-pkgver=4.0.1.28
+pkgver=4.0.1.44
 _pkgver=4.0.1
 pkgrel=1
 pkgdesc="Free implementation of the .NET platform including runtime and compiler"
@@ -18,16 +18,20 @@
         mono.binfmt.d
         sgen_fix.patch
 	build_fix.patch
-	Microsoft.Portable.Common.targets)
-md5sums=('2e71b347e23408548349492f75bfd2ca'
+	Microsoft.Portable.Common.targets
+	fix-zlib-helper.patch)
+md5sums=('d55c9d8aab2cdfde53f830ae6ea75358'
          'b9ef8a65fea497acf176cca16c1e2402'
          '8a700b94bff7a913f920e95890d2fb4c'
          '30a5af1a4ff50b98f9e73cc2ae554115'
-         'acbffadb0ac233c494b40dd5e79209a5')
+         'acbffadb0ac233c494b40dd5e79209a5'
+         '62912ad289535bf841c140727e5c1165')
 
 build() {
   cd "${srcdir}"/${pkgname}-${_pkgver}
-
+  
+  patch -Np1 -i ${srcdir}/fix-zlib-helper.patch
+	
   # build mono
   ./configure --prefix=/usr \
     --sysconfdir=/etc \

Added: fix-zlib-helper.patch
===================================================================
--- fix-zlib-helper.patch	                        (rev 0)
+++ fix-zlib-helper.patch	2015-06-10 22:49:49 UTC (rev 240488)
@@ -0,0 +1,26 @@
+@@ -, +, @@ 
+---
+ support/zlib-helper.c | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+--- a/support/zlib-helper.c	
++++ a/support/zlib-helper.c	
+@@ -90,6 +90,8 @@ CreateZStream (gint compress, guchar gzip, read_write_func func, void *gchandle)
+ 	result->gchandle = gchandle;
+ 	result->compress = compress;
+ 	result->buffer = g_new (guchar, BUFFER_SIZE);
++	result->stream->next_out = result->buffer;
++	result->stream->avail_out = BUFFER_SIZE;
+ 	return result;
+ }
+ 
+@@ -148,7 +150,7 @@ flush_internal (ZStream *stream, gboolean is_final)
+ 	if (!stream->compress)
+ 		return 0;
+ 
+-	if (!is_final) {
++	if (!is_final && stream->stream->avail_in != 0) {
+ 		status = deflate (stream->stream, Z_PARTIAL_FLUSH);
+ 		if (status != Z_OK && status != Z_STREAM_END)
+ 			return status;
+-- 
+



More information about the arch-commits mailing list