From 20e25bdde36ecd33b0bac19709a949ac111dc450 Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Tue, 1 Aug 2023 11:07:04 +0200 Subject: 29.1: Support decompressing pigz-compressed files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: https://bugs.gentoo.org/911539 Signed-off-by: Ulrich Müller --- emacs/29.1/03_all_zlib-inflate.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 emacs/29.1/03_all_zlib-inflate.patch diff --git a/emacs/29.1/03_all_zlib-inflate.patch b/emacs/29.1/03_all_zlib-inflate.patch new file mode 100644 index 0000000..b31847a --- /dev/null +++ b/emacs/29.1/03_all_zlib-inflate.patch @@ -0,0 +1,22 @@ +Support decompressing pigz-compressed files +Patch from master branch +https://bugs.gentoo.org/911539 +https://debbugs.gnu.org/64893 + +commit 46b6d175054e8f6bf7cb45e112048c0cf02bfee9 +Author: Amritpal Singh +Date: Fri Jun 2 10:51:21 2023 +0530 + + Support files compressed by 'pigz' + +--- a/src/decompress.c ++++ b/src/decompress.c +@@ -151,7 +151,7 @@ + return -1; + + accumulate_and_process_md5 (out, MD5_BLOCKSIZE - stream.avail_out, &ctx); +- } while (!stream.avail_out); ++ } while (stream.avail_in && !stream.avail_out); + + } while (res != Z_STREAM_END); + -- cgit v1.2.3-65-gdbad