Merge pull request #289405 from trofi/samba-fix-i686

pkgsi686Linux.samba: don't configure `waf` in parallel on 32-bit systems
This commit is contained in:
Fabián Heredia Montiel 2024-02-16 22:19:20 -06:00 committed by GitHub
commit 6c2492ff8e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -165,8 +165,14 @@ stdenv.mkDerivation rec {
++ optional (!enablePam) "--without-pam"
++ optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
"--bundled-libraries=!asn1_compile,!compile_et"
] ++ optionals stdenv.isAarch32 [
# https://bugs.gentoo.org/683148
] ++ optionals stdenv.buildPlatform.is32bit [
# By default `waf configure` spawns as many as available CPUs. On
# 32-bit systems with many CPUs (like `i686` chroot on `x86_64`
# kernel) it can easily exhaust 32-bit address space and hang up:
# https://github.com/NixOS/nixpkgs/issues/287339#issuecomment-1949462057
# https://bugs.gentoo.org/683148
# Limit the job count down to the minimal on system with limited address
# space.
"--jobs 1"
];