[Nix-dev] Patching uname in stdenv?

Eelco Dolstra e.dolstra at tudelft.nl
Wed Aug 17 11:58:03 CEST 2011


On 08/17/2011 12:00 PM, Michael Raskin wrote:

>>> What would people think of a patch that made stdenv's uname return the
>>> same value on every linux?
>>
>> I assume you're referring to the kernel version returned by ‘uname -r’.
>>
>> Since ‘uname’ is also used outside of builders, this is not a good idea — it
>> would change the behaviour that users expect from it.
>
> We already have distinct bash in stdenv and user's environment.

How so?

Anyway, this would be breaking a feature of uname, namely that ‘uname -r’ 
returns the kernel version.  Users would find it very surprising if they're 
running a X.Y kernel and uname returns something different than X.Y.

-- 
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/



More information about the nix-dev mailing list