Package: deb-gview
Version: 0.2.7
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 and because deb-gview uses a
symbol which has been dropped in the latest libarchive release (namely
archive_version_number), this requires deb-gview to be rebuilt. Attached is a
patch that will allow deb-gview to be built with either the current version of
libarchive in unstable (2.8.5) or the latest version of libarchive (3.0.2). This
patch will provide the same functionality as what it currently has.

-- 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 when building with libarchive 3.0.2.
Author: Andres Mejia <[email protected]>

--- a/src/main.c	2011-12-25 12:59:50.356201098 -0500
+++ b/src/main.c	2011-12-25 13:03:18.896199110 -0500
@@ -142,7 +142,8 @@
 	bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
 	textdomain (GETTEXT_PACKAGE);
 #endif
-	g_assert (archive_api_version () == ARCHIVE_API_VERSION);
+	g_assert ((archive_version_number() / 1000000) ==
+	          (ARCHIVE_VERSION_NUMBER   / 1000000));
 	remaining_args = NULL;
 	window1 = NULL;
 	option_context = g_option_context_new ("");

Reply via email to