From 44a9851be6721d9776f772980a903ac1f94df62f Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 16 Feb 2025 13:26:59 +0000 Subject: [PATCH] archive writer: Don't use --long for Zstandard This seems to be too complicated and there is too little value in it. Packages cannot be uncompressed using the zstd command without enabling long mode, too. libarchive requires the same which is also not implemented. Signed-off-by: Michael Tremer --- src/pakfire/archive_writer.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/pakfire/archive_writer.c b/src/pakfire/archive_writer.c index 493e05a9..660e1b75 100644 --- a/src/pakfire/archive_writer.c +++ b/src/pakfire/archive_writer.c @@ -209,16 +209,6 @@ static int pakfire_archive_writer_setup_archive(struct pakfire_archive_writer* s archive_error_string(self->archive)); return -ENOTSUP; } - -#if ARCHIVE_VERSION_NUMBER >= 3007002 - // Enable long mode (supported from libarchive >= 3.7.2) - r = archive_write_set_filter_option(self->archive, NULL, "long", "31"); - if (r) { - ERROR(self->ctx, "Failed to enable Zstandard long mode: %s\n", - archive_error_string(self->archive)); - return -ENOTSUP; - } -#endif /* ARCHIVE_VERSION_NUMBER >= 3007002 */ break; } -- 2.39.5