diff options
author | Sam James <sam@gentoo.org> | 2022-10-17 19:32:20 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-10-17 19:32:20 +0100 |
commit | 09eaf06963809bbcbabf0903bf203ad5bf2ee893 (patch) | |
tree | b34745527c80f7249b52379156e42f94532c944f /eclass | |
parent | dev-python/oslo-concurrency: Stabilize 5.0.1 ALLARCHES, #877131 (diff) | |
download | gentoo-09eaf06963809bbcbabf0903bf203ad5bf2ee893.tar.gz gentoo-09eaf06963809bbcbabf0903bf203ad5bf2ee893.tar.bz2 gentoo-09eaf06963809bbcbabf0903bf203ad5bf2ee893.zip |
kernel-build.eclass: add workaround for < xz 5.3.3_alpha 32-bit issue
With older versions of xz, xz -T0 will on 32-bit systems
try to allocate too much memory and bail out.
After discussing with upstream, we set --memlimit-compress=50% as a
way to make things work with both older & newer versions. This limiting
is essentially already present with >= 5.3.3_alpha as -T0 includes it.
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/kernel-build.eclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/kernel-build.eclass b/eclass/kernel-build.eclass index 1fa25cbc9574..7086297bf52a 100644 --- a/eclass/kernel-build.eclass +++ b/eclass/kernel-build.eclass @@ -91,7 +91,7 @@ kernel-build_src_configure() { ) if type -P xz &>/dev/null ; then - export XZ_OPT="-T$(makeopts_jobs)" + export XZ_OPT="-T$(makeopts_jobs) --memlimit-compress=50%" fi if type -P zstd &>/dev/null ; then |