From 28cb75774279edc0456d138e2686aaa30caaeff3 Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Fri, 24 Sep 2021 22:01:21 +0200 Subject: [PATCH] do not run xz and zstd with --threads=0 There are now systems with 160 cores (debci runs on two Ampere Altra ARMv8 Neoverse-N1), which makes xz fail with: "xz: (stdin): Cannot allocate memory" --- mmdebstrap | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mmdebstrap b/mmdebstrap index 117f6c4..9b774b4 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -244,9 +244,9 @@ sub get_tar_compressor { } elsif ($filename =~ /\.lz4$/) { return ['lz4']; } elsif ($filename =~ /\.(xz|txz)$/) { - return ['xz', '--threads=0']; + return ['xz']; } elsif ($filename =~ /\.zst$/) { - return ['zstd', '--threads=0']; + return ['zstd']; } return; } @@ -7135,9 +7135,9 @@ extension to compressor applies: .tlz lzma .lzo lzop .lz4 lz4 - .xz xz --threads=0 - .txz xz --threads=0 - .zst zstd --threads=0 + .xz xz + .txz xz + .zst zstd To change compression specific options, either use the respecitve environment variables like B or send B output to your compressor of