From: Michael Tremer Date: Sun, 16 Feb 2025 13:26:59 +0000 (+0000) Subject: archive writer: Don't use --long for Zstandard X-Git-Tag: 0.9.30~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=44a9851be6721d9776f772980a903ac1f94df62f;p=pakfire.git 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 --- 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; }