commit:     f391b2cc5384fc38e99a0598cb3de2346e297c25
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Sat Aug  4 20:18:47 2018 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Sat Aug  4 20:25:23 2018 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=f391b2cc

compression_probe: decompress zstd --long=31 (bug 634980)

In order to decompress files compressed with zstd --long=31, add
--long=31 to the zstd decompress options. Even though zstd compression
does not support --long=31 on 32-bit platforms, decompression with
--long=31 still works as long as the file was compressed with a
smaller windowLog.

Reported-by: Martin Väth <martin <AT> mvath.de>
Bug: https://bugs.gentoo.org/634980

 lib/portage/util/compression_probe.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/portage/util/compression_probe.py 
b/lib/portage/util/compression_probe.py
index 29d0eedff..90880b1cd 100644
--- a/lib/portage/util/compression_probe.py
+++ b/lib/portage/util/compression_probe.py
@@ -45,7 +45,7 @@ _compressors = {
        },
        "zstd": {
                "compress": "zstd ${BINPKG_COMPRESS_FLAGS}",
-               "decompress": "zstd -d",
+               "decompress": "zstd -d --long=31",
                "package": "app-arch/zstd",
        },
 }

Reply via email to