nixpkgs/pkgs
aszlig f19c961b4e
linux-testing: Fix arg list too long in modinst
With the default kernel and thus with the build I have tested in
74ec94bfa2, we get an error during
modules_install:

make[2]: execvp: /nix/store/.../bin/bash: Argument list too long

I haven't noticed this build until I actually tried booting using this
kernel because make didn't fail here.

The reason this happens within Nix and probably didn't yet surface in
other distros is that programs only have a limited amount of memory
available for storing the environment and the arguments.

Environment variables however are quite common on Nix and thus we
stumble on problems like this way earlier - in this case Linux 4.8 - but
I have noticed this in 4.7-next as well already.

The fix is far from perfect and suffers performance overhead because we
now run grep for every *.mod file instead of passing all *.mod files
into one single invocation of grep.

But comparing the performance overhead (around 1s on my machine) with
the overall build time of the kernel I think the overhead really is
neglicible.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2016-08-30 06:55:52 +02:00
..
applications Merge pull request #18080 from vbgl/qarte-3 2016-08-29 21:47:26 +02:00
build-support Merge branch 'master' into staging 2016-08-29 12:44:17 +01:00
data oxygenfonts: minor cleanups 2016-08-28 21:18:10 +02:00
desktops Merge branch 'master' into staging 2016-08-28 12:20:59 +01:00
development build-rebar3: Append postPatch to original hook 2016-08-29 23:31:50 +02:00
games fsg: disable format hardening 2016-08-29 17:01:03 +00:00
misc ataripp: add missing libSM dependency 2016-08-29 17:15:10 +00:00
os-specific linux-testing: Fix arg list too long in modinst 2016-08-30 06:55:52 +02:00
servers xorg.xf86videoxgi: add patch to fix build 2016-08-29 08:25:12 +00:00
shells Merge branch 'master' into staging 2016-08-27 23:54:54 +01:00
stdenv Revert "make-bootstrap-tools.darwin: upgrade to llvm 3.8" 2016-08-29 16:19:36 +01:00
test
tools nix: maintenance 1.11.2 -> 1.11.3 2016-08-29 22:44:01 +02:00
top-level linux-testing: Fix arg list too long in modinst 2016-08-30 06:55:52 +02:00