Package: gmameui
Version: 0.2.12-1
Severity: normal
Tags: patch

I am getting ready for an upload of the latest stable release of libarchive
version 3.0.2 to unstable. Because of a SONAME bump, this requires packages
using libarchive to be rebuilt. I found that gmameui fails to build using
libarchive 3.0.2. Attached is a patch that will allow gmameui to be built with
either the current version of libarchive in unstable (2.8.5) or the latest
version of libarchive (3.0.2).

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.1.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Description: Fix build failure because of removal of
 archive_read_data_into_buffer. Use archive_read_data instead.
Author: Andres Mejia <[email protected]>

--- a/src/gmameui-zip-utils.c
+++ b/src/gmameui-zip-utils.c
@@ -91,7 +91,7 @@
 			buffer_data = (gchar *) g_malloc0 (filesize);
 			
 			/* Read the zipped pixbuf into memory */
-			archive_read_data_into_buffer (zipfile, buffer_data, filesize);
+			archive_read_data(zipfile, buffer_data, filesize);
 			
 			pixbuf = load_pixbuf_data (buffer_data, filesize);
 									 

Reply via email to