File gnome-autoar-disable-encrypted-archives.patch of Package gnome-autoar.7877
From 94a2049fb2952b922b394a01b4043cdfdcc75bba Mon Sep 17 00:00:00 2001
From: Federico Mena Quintero <federico@gnome.org>
Date: Tue, 13 Jun 2017 17:42:43 -0500
Subject: [PATCH 1/2] configure.ac: Roll back version requirement for
libarchive to 3.1.2
SLE-12-SP2 only has libarchive 3.1.2. We will simply disable
support for encrypted archives in gnome-autoar.
---
configure.ac | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 160e635..9595b30 100644
--- a/configure.ac
+++ b/configure.ac
@@ -59,12 +59,12 @@ VAPIGEN_CHECK([0.22])
# Checks for libraries.
GLIB_REQUIRED=2.35.6
GTK_REQUIRED=3.2
-LIBARCHIVE_REQUIRED=3.2.0
+LIBARCHIVE_REQUIRED=3.1.2
PKG_CHECK_MODULES([LIBARCHIVE], [libarchive >= $LIBARCHIVE_REQUIRED],
[GNOME_AUTOAR_LIBARCHIVE_REQUIRES="libarchive"
AC_SUBST([GNOME_AUTOAR_LIBARCHIVE_REQUIRES])],
- [AC_SEARCH_LIBS([archive_entry_is_encrypted], [archive],
+ [AC_SEARCH_LIBS([archive_read_new], [archive],
[GNOME_AUTOAR_LIBARCHIVE_LIBS="-larchive"
AC_SUBST([GNOME_AUTOAR_LIBARCHIVE_LIBS])],
[AC_MSG_ERROR([libarchive not found])])])
--
2.12.2
From 78b4cbb682083bf7ee83e490139efee8c60ff3c8 Mon Sep 17 00:00:00 2001
From: Federico Mena Quintero <federico@gnome.org>
Date: Tue, 13 Jun 2017 17:53:29 -0500
Subject: [PATCH 2/2] Disable detection of encrypted archives
---
gnome-autoar/autoar-extractor.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gnome-autoar/autoar-extractor.c b/gnome-autoar/autoar-extractor.c
index 043054f..71b3cc4 100644
--- a/gnome-autoar/autoar-extractor.c
+++ b/gnome-autoar/autoar-extractor.c
@@ -1588,9 +1588,11 @@ autoar_extractor_step_scan_toplevel (AutoarExtractor *self)
return;
}
+#if 0
if (archive_entry_is_encrypted (entry)) {
break;
}
+#endif
pathname = archive_entry_pathname (entry);
g_debug ("autoar_extractor_step_scan_toplevel: %d: pathname = %s",
@@ -1604,6 +1606,7 @@ autoar_extractor_step_scan_toplevel (AutoarExtractor *self)
archive_read_data_skip (a);
}
+#if 0
if (entry && archive_entry_is_encrypted (entry)) {
g_debug ("autoar_extractor_step_scan_toplevel: encrypted entry");
if (self->error == NULL) {
@@ -1614,6 +1617,7 @@ autoar_extractor_step_scan_toplevel (AutoarExtractor *self)
archive_read_free (a);
return;
}
+#endif
if (self->files_list == NULL) {
if (self->error == NULL) {
--
2.12.2