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: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -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<XZ_OPT> or send B<mmdebstrap> output to your compressor of