This reduces the footprint of libpakfire in memory as well as not
opening us up to any vulnerabilities in filters and formats of
libarchive that we do not use.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
AC_SUBST(SOLV_LIBS)
LIBS="$save_LIBS"
-PKG_CHECK_MODULES([ARCHIVE], [libarchive])
+PKG_CHECK_MODULES([ARCHIVE], [libarchive >= 3.3.3])
PKG_CHECK_MODULES([PYTHON_DEVEL], [python-${PYTHON_VERSION}])
PKG_CHECK_MODULES([LZMA], [liblzma])
};
static void configure_archive(struct archive* a) {
- archive_read_support_filter_all(a);
- archive_read_support_format_all(a);
+ // All of our packages are tar balls
+ archive_read_support_format_tar(a);
+
+ // They are compressed using XZ or ZSTD
+ archive_read_support_filter_xz(a);
+ archive_read_support_filter_zstd(a);
}
static int archive_open(PakfireArchive archive, struct archive** a) {