[Nix-dev] Patching uname in stdenv?

2011-08-17 Thread Michael Raskin
Hi all, What would people think of a patch that made stdenv's uname return the same value on every linux? I've only just had the idea and haven't had time to think through the possible downsides, but my initial thought is that most packages shouldn't need to know the kernel version, and that

Re: [Nix-dev] Patching uname in stdenv?

2011-08-17 Thread Eelco Dolstra
Hi, On 08/17/2011 05:03 AM, s...@shealevy.com 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

Re: [Nix-dev] Patching uname in stdenv?

2011-08-17 Thread Eelco Dolstra
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

Re: [Nix-dev] Patching uname in stdenv?

2011-08-17 Thread Michael Raskin
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? As I remember,

[***SPAM***] Re: [Nix-dev] Patching uname in stdenv?

2011-08-17 Thread Michael Raskin
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. Actually, maybe it is not worth the effort to have two unames - my point is

Re: [Nix-dev] Patching uname in stdenv?

2011-08-17 Thread Lluís Batlle i Rossell
On Wed, Aug 17, 2011 at 12:59:22PM +0400, Michael Raskin wrote: e1qtafh-0003g2-00.7c6f434c-mail...@smtp4.mail.ru) Mime-Version: 1.0 Content-type: text/plain; charset=UTF-8 What would people think of a patch that made stdenv's uname return the same value on every linux? I've only just had

[***SPAM***] Re: [Nix-dev] Patching uname in stdenv?

2011-08-17 Thread Michael Raskin
16b0358b83ffeaf7d2876f231de4e64d.squir...@webmail.shealevy.com e1qtbry-0003pi-00.7c6f434c-mail...@smtp8.mail.ru) Mime-Version: 1.0 Content-type: text/plain; charset=UTF-8 I guess default uname should say version of kernel from kernelheaders used for glibc, and kernelPackages one should say

Re: [Nix-dev] Patching uname in stdenv?

2011-08-17 Thread Marco Maggesi
On Aug 17, 2011, at 11:46 AM, Eelco Dolstra wrote: Hi, On 08/17/2011 05:03 AM, s...@shealevy.com 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

[Nix-commits] SVN commit: nix - r28639 - nixpkgs/trunk/pkgs/development/libraries/haskell/graphviz

2011-08-17 Thread Peter Simons
Author: simons Date: Wed Aug 17 10:39:37 2011 New Revision: 28639 URL: https://svn.nixos.org/websvn/nix/?rev=28639sc=1 Log: haskell-graphviz: updated to version 2999.12.0.3 Modified: nixpkgs/trunk/pkgs/development/libraries/haskell/graphviz/default.nix Modified:

Re: [Nix-dev] Patching uname in stdenv?

2011-08-17 Thread Lluís Batlle i Rossell
On Wed, Aug 17, 2011 at 12:33:37PM +0200, Marco Maggesi wrote: On Aug 17, 2011, at 11:46 AM, Eelco Dolstra wrote: Hi, On 08/17/2011 05:03 AM, s...@shealevy.com wrote: What would people think of a patch that made stdenv's uname return the same value on every linux? I assume

Re: [Nix-dev] Patching uname in stdenv?

2011-08-17 Thread Marco Maggesi
[sorry for the previous incomplete message] On Aug 17, 2011, at 12:47 PM, Lluís Batlle i Rossell wrote: The point is that these scripts depend on the version of the running kernel. Also they do work on Linux in general, not necessarily on NixOS, and they need to be re-run each time the

[Nix-dev] Nix on ubuntu 11.04

2011-08-17 Thread Marco Maggesi
Does anybody runs nix on Ubuntu 11.04 (Natty Narwhal)? It does not work for me. E.g.: maggesi@bantu:~$ nix-env -i fossil installing `fossil-1.18' error: unable to fork: Cannot allocate memory maggesi@bantu:~$ I tried nix version 0.16, first with the deb package then I compiled the sources

[Nix-dev] Nix on ubuntu 11.04

2011-08-17 Thread Michael Raskin
maggesi@bantu:~$ nix-env -i fossil installing `fossil-1.18' error: unable to fork: Cannot allocate memory maggesi@bantu:~$ ulimit -a output may help also, free -m I tried nix version 0.16, first with the deb package then I compiled the sources myself. I would like to try the svn trunk version

Re: [Nix-dev] Nix on ubuntu 11.04

2011-08-17 Thread Lluís Batlle i Rossell
On Wed, Aug 17, 2011 at 03:45:36PM +0400, Michael Raskin wrote: I tried nix version 0.16, first with the deb package then I compiled the sources myself. I would like to try the svn trunk version of nix but I get the following compile error during the installation: make[3]: Entering

Re: [Nix-dev] Patching uname in stdenv?

2011-08-17 Thread Lluís Batlle i Rossell
On Wed, Aug 17, 2011 at 01:11:53PM +0200, Marco Maggesi wrote: On Aug 17, 2011, at 12:47 PM, Lluís Batlle i Rossell wrote: BLCR should fail to work in kernels older to the kernelHeaders in nixpkgs. And the kernelHeaders in nixpkgs should be the only determinant of what kernels blcr

[Nix-dev] Re: SVN commit: nix - r28625 - in nixpkgs/trunk/pkgs: applications/networking/browsers/firefox top-level

2011-08-17 Thread Peter Simons
Hi Michael, Adding Firefox 6.0. maybe the expression should be set to low priority until it actually compiles? The current situation prevents me from running nix-env -u *, and I guess other people will have that problem, too. Take care, Peter ___

Re: [Nix-dev] Nix on ubuntu 11.04

2011-08-17 Thread Marco Maggesi
On Aug 17, 2011, at 1:43 PM, Eelco Dolstra wrote: Hi, On 08/17/2011 01:30 PM, Marco Maggesi wrote: Does anybody runs nix on Ubuntu 11.04 (Natty Narwhal)? It does not work for me. E.g.: maggesi@bantu:~$ nix-env -i fossil installing `fossil-1.18' error: unable to fork: Cannot

Re: [Nix-dev] Patching uname in stdenv?

2011-08-17 Thread Marc Weber
Excerpts from Lluís Batlle i Rossell's message of Wed Aug 17 10:45:39 +0200 2011: I'd like a list of the problems this would solve. Eventually build of python-2.7 on linux-3.0 and the like which use uname to determine kernel version, and they don't know about linux-3 yet. The alternative would

[Nix-commits] SVN commit: nix - r28641 - nix/trunk/scripts

2011-08-17 Thread Eelco Dolstra
Author: eelco Date: Wed Aug 17 14:17:19 2011 New Revision: 28641 URL: https://svn.nixos.org/websvn/nix/?rev=28641sc=1 Log: * Use last_insert_id instead of sqlite_last_insert_rowid, which you're not really supposed to use according to the DBD::SQLite docs, and fails on some systems (e.g.

[Nix-commits] SVN commit: nix - r28642 - nixpkgs/trunk/pkgs/os-specific/linux/blcr

2011-08-17 Thread Marco Maggesi
Author: maggesi Date: Wed Aug 17 14:25:56 2011 New Revision: 28642 URL: https://svn.nixos.org/websvn/nix/?rev=28642sc=1 Log: Update BLCR to version 0.8.3 Modified: nixpkgs/trunk/pkgs/os-specific/linux/blcr/default.nix Modified: nixpkgs/trunk/pkgs/os-specific/linux/blcr/default.nix

Re: [Nix-dev] Patching uname in stdenv?

2011-08-17 Thread Lluís Batlle i Rossell
On Wed, Aug 17, 2011 at 04:21:40PM +0200, Marc Weber wrote: Excerpts from Lluís Batlle i Rossell's message of Wed Aug 17 10:45:39 +0200 2011: I'd like a list of the problems this would solve. Eventually build of python-2.7 on linux-3.0 and the like which use uname to determine kernel

Re: [Nix-dev] Patching uname in stdenv?

2011-08-17 Thread Shea Levy
On 08/17/2011 03:16 AM, Michael Raskin wrote: Hi all, What would people think of a patch that made stdenv's uname return the same value on every linux? I've only just had the idea and haven't had time to think through the possible downsides, but my initial thought is that most packages

Re: [Nix-dev] Patching uname in stdenv?

2011-08-17 Thread Shea Levy
On 08/17/2011 04:45 AM, Lluís Batlle i Rossell wrote: On Wed, Aug 17, 2011 at 11:16:12AM +0400, Michael Raskin wrote: Hi all, What would people think of a patch that made stdenv's uname return the same value on every linux? I've only just had the idea and haven't had time to think through the

Re: [Nix-dev] Patching uname in stdenv?

2011-08-17 Thread Shea Levy
On 08/17/2011 05:46 AM, Eelco Dolstra wrote: Hi, On 08/17/2011 05:03 AM, s...@shealevy.com 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

Re: [Nix-dev] Patching uname in stdenv?

2011-08-17 Thread Shea Levy
On 08/17/2011 06:20 AM, Lluís Batlle i Rossell wrote: On Wed, Aug 17, 2011 at 12:59:22PM +0400, Michael Raskin wrote: e1qtafh-0003g2-00.7c6f434c-mail...@smtp4.mail.ru) Mime-Version: 1.0 Content-type: text/plain; charset=UTF-8 What would people think of a patch that made stdenv's uname return

Re: [Nix-dev] Nix on ubuntu 11.04

2011-08-17 Thread Marco Maggesi
On Aug 17, 2011, at 4:20 PM, Eelco Dolstra wrote: Hi, On 08/17/2011 04:14 PM, Marco Maggesi wrote: maggesi@bantu:~$ export GC_INITIAL_HEAP_SIZE=10 maggesi@bantu:~$ time nix-env -i nix x86_64-linux x86_64-linux x86_64-linux 0 What version of Nix is this? That last line (a stray

Re: [Nix-dev] Patching uname in stdenv?

2011-08-17 Thread Marc Weber
Why they want the kernel version? Don't ask me. I have't had time to debug it. All I found out was that it python configured itself to use different modules and some fail. for older xulunner which got removed there were similar problems. It looked to me like they are configuring based on target

Re: [Nix-dev] Patching uname in stdenv?

2011-08-17 Thread Michael Raskin
On 08/17/2011 06:20 AM, Lluís Batlle i Rossell wrote: On Wed, Aug 17, 2011 at 12:59:22PM +0400, Michael Raskin wrote: e1qtafh-0003g2-00.7c6f434c-mail...@smtp4.mail.ru) Mime-Version: 1.0 Content-type: text/plain; charset=UTF-8 What would people think of a patch that made stdenv's uname return

Re: [Nix-dev] Patching uname in stdenv?

2011-08-17 Thread Shea Levy
On 08/17/2011 10:59 AM, Michael Raskin wrote: On 08/17/2011 06:20 AM, Lluís Batlle i Rossell wrote: On Wed, Aug 17, 2011 at 12:59:22PM +0400, Michael Raskin wrote: e1qtafh-0003g2-00.7c6f434c-mail...@smtp4.mail.ru) Mime-Version: 1.0 Content-type: text/plain; charset=UTF-8 What would people

Re: [Nix-dev] Patching uname in stdenv?

2011-08-17 Thread Marc Weber
Excerpts from Lluís Batlle i Rossell's message of Wed Aug 17 10:45:39 +0200 2011: I'd like a list of the problems this would solve. And we should add a list of worms this may introduce. Kernel should be compatible. But software development is never perfect (although it comes close). Many

Re: [Nix-dev] Patching uname in stdenv?

2011-08-17 Thread Michael Raskin
On 08/17/2011 03:16 AM, Michael Raskin wrote: Hi all, What would people think of a patch that made stdenv's uname return the same value on every linux? I've only just had the idea and haven't had time to think through the possible downsides, but my initial thought is that most packages

Re: [Nix-dev] Patching uname in stdenv?

2011-08-17 Thread Shea Levy
On 08/17/2011 05:46 AM, Eelco Dolstra wrote: Hi, On 08/17/2011 05:03 AM, s...@shealevy.com 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’. Actually, I'm not

[Nix-commits] SVN commit: nix - r28643 - disnix/disnix-activation-scripts/trunk

2011-08-17 Thread Sander van der Burg
Author: sandervanderburg Date: Wed Aug 17 15:01:04 2011 New Revision: 28643 URL: https://svn.nixos.org/websvn/nix/?rev=28643sc=1 Log: Replaces implicit Nixpkgs/NixOS location assumptions Modified: disnix/disnix-activation-scripts/trunk/release.nix Modified:

[Nix-commits] SVN commit: nix - r28644 - nixpkgs/trunk/pkgs/development/tools/haskell/bnfc

2011-08-17 Thread Peter Simons
Author: simons Date: Wed Aug 17 15:05:48 2011 New Revision: 28644 URL: https://svn.nixos.org/websvn/nix/?rev=28644sc=1 Log: dropped empty bnfc directory Deleted: nixpkgs/trunk/pkgs/development/tools/haskell/bnfc/ ___ nix-commits mailing list

[Nix-dev] Re: bncf and BNCF

2011-08-17 Thread Peter Simons
Hi Marco, thanks for pointing that out! I have deleted the obsolete bnfc directory moments ago. That happened, because I renamed bnfc/default.nix to BNFC/default.nix using git-svn. Git doesn't track directories on their own, it just tracks file, so the old directory was left over in SVN. Take

Solved: Re: [Nix-dev] Nix on ubuntu 11.04

2011-08-17 Thread Marco Maggesi
On Aug 17, 2011, at 2:24 PM, Lluís Batlle i Rossell wrote: On Wed, Aug 17, 2011 at 03:45:36PM +0400, Michael Raskin wrote: I tried nix version 0.16, first with the deb package then I compiled the sources myself. I would like to try the svn trunk version of nix but I get the following

[Nix-dev] Re: bncf and BNCF

2011-08-17 Thread Yury G. Kudryashov
Peter Simons wrote: Hi Marco, thanks for pointing that out! I have deleted the obsolete bnfc directory moments ago. That happened, because I renamed bnfc/default.nix to BNFC/default.nix using git-svn. Git doesn't track directories on their own, it just tracks file, so the old directory was

Re: [Nix-dev] Re: bncf and BNCF

2011-08-17 Thread Marc Weber
Dear Peter, you can avoid this in the future by setting: [svn] rmdir = yes in your ~/.gitconfig or .git/config project specific config file. Marc Weber ___ nix-dev mailing list nix-dev@cs.uu.nl https://mail.cs.uu.nl/mailman/listinfo/nix-dev

[Nix-commits] SVN commit: nix - r28646 - nixpkgs/trunk/pkgs/os-specific/linux/blcr

2011-08-17 Thread Marco Maggesi
Author: maggesi Date: Wed Aug 17 16:32:20 2011 New Revision: 28646 URL: https://svn.nixos.org/websvn/nix/?rev=28646sc=1 Log: Simplify expression for BLCR (again) Modified: nixpkgs/trunk/pkgs/os-specific/linux/blcr/default.nix Modified: nixpkgs/trunk/pkgs/os-specific/linux/blcr/default.nix

[Nix-commits] SVN commit: nix - r28647 - nixpkgs/trunk/pkgs/os-specific/linux/blcr

2011-08-17 Thread Marco Maggesi
Author: maggesi Date: Wed Aug 17 16:52:38 2011 New Revision: 28647 URL: https://svn.nixos.org/websvn/nix/?rev=28647sc=1 Log: Ooops, over-simplified Modified: nixpkgs/trunk/pkgs/os-specific/linux/blcr/default.nix Modified: nixpkgs/trunk/pkgs/os-specific/linux/blcr/default.nix

[Nix-dev] Toward a Purer stdenv

2011-08-17 Thread Shea Levy
Hello, I've been thinking about creating a nixpkgs branch to find and eliminate some of the remaining impurities in the Linux stdenv. Before I get started, I wanted to poll the list with a few questions that will shape how I go about things. 1. What impurities does the current stdenv have?

Re: [Nix-dev] Toward a Purer stdenv

2011-08-17 Thread Marc Weber
Excerpts from Shea Levy's message of Wed Aug 17 21:37:32 +0200 2011: I've been thinking about creating a nixpkgs branch to find and eliminate some of the remaining impurities in the Linux stdenv. linux stdenv ? What are you referring to exactly? Impurities: - cosmic ray (they may change

[Nix-dev] Re: Toward a Purer stdenv

2011-08-17 Thread Yury G. Kudryashov
Marc Weber wrote: Excerpts from Shea Levy's message of Wed Aug 17 21:37:32 +0200 2011: I've been thinking about creating a nixpkgs branch to find and eliminate some of the remaining impurities in the Linux stdenv. linux stdenv ? What are you referring to exactly? Impurities: - network

[Nix-dev] Toward a Purer stdenv

2011-08-17 Thread Michael Raskin
I've been thinking about creating a nixpkgs branch to find and eliminate some of the remaining impurities in the Linux stdenv. Before I get started, I wanted to poll the list with a few questions that will shape how I go about things. 1. What impurities does the current stdenv have? I can

Re: Solved: Re: [Nix-dev] Nix on ubuntu 11.04

2011-08-17 Thread Bjørn Forsman
On 17 August 2011 17:42, Marco Maggesi magg...@math.unifi.it wrote: Finally I was able to build and install the trunk version of nix. I installed flex and bison (and perhaps other things that I can't remember now) and I run trough make distclean ./configure make The build process seems

Re: [Nix-dev] Re: Toward a Purer stdenv

2011-08-17 Thread Marc Weber
Excerpts from Yury G. Kudryashov's message of Wed Aug 17 22:21:21 +0200 2011: - the store location (for completeness) This is OK since changing store path changes all hashes. But For one package I had to change a generated file resulting in a crash because I didn't change the length field

[Nix-dev] Re: Toward a Purer stdenv

2011-08-17 Thread Yury G. Kudryashov
Michael Raskin wrote: We pass /dev/ inside chroot as-is. There are many readable sources of disaster there. I am not sure foozjs doesn't have a mode where it tries to detect your printer during installation. I read foo2zjs sources ;). It doesn't.

Re: [Nix-dev] Toward a Purer stdenv

2011-08-17 Thread Shea Levy
Thanks for this list! Lots of good targets to attack. Marc Weber marco-owe...@gmx.de wrote: Excerpts from Shea Levy's message of Wed Aug 17 21:37:32 +0200 2011: I've been thinking about creating a nixpkgs branch to find and eliminate some of the remaining impurities in the Linux stdenv.

[Nix-commits] SVN commit: nix - r28648 - nixpkgs/trunk/pkgs/os-specific/linux/blcr

2011-08-17 Thread Shea Levy
Author: shlevy Date: Wed Aug 17 22:06:59 2011 New Revision: 28648 URL: https://svn.nixos.org/websvn/nix/?rev=28648sc=1 Log: blcr: Use the modDirVersion attribute to access the module dir Modified: nixpkgs/trunk/pkgs/os-specific/linux/blcr/default.nix Modified:

[Nix-commits] SVN commit: nix - r28649 - nixpkgs/trunk/pkgs/servers/http/redstore

2011-08-17 Thread Michael Raskin
Author: raskin Date: Wed Aug 17 22:22:06 2011 New Revision: 28649 URL: https://svn.nixos.org/websvn/nix/?rev=28649sc=1 Log: Update Redstore Modified: nixpkgs/trunk/pkgs/servers/http/redstore/default.nix Modified: nixpkgs/trunk/pkgs/servers/http/redstore/default.nix

[Nix-commits] SVN commit: nix - r28650 - nixpkgs/trunk/pkgs/os-specific/linux/kernel

2011-08-17 Thread Shea Levy
Author: shlevy Date: Wed Aug 17 22:48:14 2011 New Revision: 28650 URL: https://svn.nixos.org/websvn/nix/?rev=28650sc=1 Log: linux-3.0.nix: Bump to 3.0.3. Not sure what happened to 3.0.2... Modified: nixpkgs/trunk/pkgs/os-specific/linux/kernel/linux-3.0.nix Modified: