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"
This commit is contained in:
Johannes Schauer Marin Rodrigues 2021-09-24 22:01:21 +02:00
parent 932a3716bc
commit 28cb757742
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -244,9 +244,9 @@ sub get_tar_compressor {
} elsif ($filename =~ /\.lz4$/) { } elsif ($filename =~ /\.lz4$/) {
return ['lz4']; return ['lz4'];
} elsif ($filename =~ /\.(xz|txz)$/) { } elsif ($filename =~ /\.(xz|txz)$/) {
return ['xz', '--threads=0']; return ['xz'];
} elsif ($filename =~ /\.zst$/) { } elsif ($filename =~ /\.zst$/) {
return ['zstd', '--threads=0']; return ['zstd'];
} }
return; return;
} }
@ -7135,9 +7135,9 @@ extension to compressor applies:
.tlz lzma .tlz lzma
.lzo lzop .lzo lzop
.lz4 lz4 .lz4 lz4
.xz xz --threads=0 .xz xz
.txz xz --threads=0 .txz xz
.zst zstd --threads=0 .zst zstd
To change compression specific options, either use the respecitve environment To change compression specific options, either use the respecitve environment
variables like B<XZ_OPT> or send B<mmdebstrap> output to your compressor of variables like B<XZ_OPT> or send B<mmdebstrap> output to your compressor of