summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2023-08-01 11:07:04 +0200
committerUlrich Müller <ulm@gentoo.org>2023-08-01 11:07:04 +0200
commit20e25bdde36ecd33b0bac19709a949ac111dc450 (patch)
tree860c46ddec6ba590eb6a5cca8e716d6920ae8a66
parentRemove 28.3 patchset (diff)
downloademacs-patches-20e25bdde36ecd33b0bac19709a949ac111dc450.tar.gz
emacs-patches-20e25bdde36ecd33b0bac19709a949ac111dc450.tar.bz2
emacs-patches-20e25bdde36ecd33b0bac19709a949ac111dc450.zip
29.1: Support decompressing pigz-compressed filesemacs-29.1-patches-2
Bug: https://bugs.gentoo.org/911539 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r--emacs/29.1/03_all_zlib-inflate.patch22
1 files changed, 22 insertions, 0 deletions
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 <sysgrammer@protonmail.com>
+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);
+