[Nix-dev] Patching uname in stdenv?
Lluís Batlle i Rossell
viriketo at gmail.com
Wed Aug 17 11:50:13 CEST 2011
Hello,
On Wed, Aug 17, 2011 at 11:46:32AM +0200, Eelco Dolstra wrote:
> BTW, the kernel version does matter sometimes, for instance, APR
> (IIRC) at compile-time decides whether to use the accept4() system
> call based on the kernel version of the build system. So if you try
> to run the resulting library on an older kernel, it doesn't work.
> Arguably the kernel version should be part of the "system" value,
> but that would be too painful.
The API of the kernel used by the build system is that of the kernel headers.
uname returns the *running kernel*, not that of the API available at build time.
If APR checks the kernel API using 'uname', I think they are the wrong thing.
More information about the nix-dev
mailing list