> However there are alternatives: Use another machine and prebuilt your set of bootstrapping tools there. A variation on this is what I ended up using. I simply changed /bin/sh on my machine to a statically linked binary, and then proceeded to bootstrap nix. Once you get out of the bootstrap phase, nix no longer sets the LD_LIBRARY_PATH variable and it all hums along nicely.
Thanks for the help! -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Marc Weber Sent: Wednesday, 27 May 2009 6:04 PM To: [email protected] Subject: Re: [Nix-dev] Bootstrap tools aren't statically linked. On Wed, May 27, 2009 at 05:34:34PM +1000, Jeevakan Suresh wrote: > I'm using my own kernel headers with RHEL, through necessity my system > is old enough that I can't just subscribe to a channel, the pre-built > libc just isn't compatible with my RHEL kernel. > > I have no problem bootstrapping with binaries - the problem is the > binaries themselves are dynamically linked, causing a circular > dependency when trying to bootstrap. Having statically linked binaries > at the lowest level (like the previous bootstrap tools) would be ideal. > > How are the current bootstrap tools built? I think if I can reproduce > this I should be fine. It would take me too much time to look into the details. Having a look at nixpkgs/pkgs/stdenv/nativ or such is a starting point (?) Maybe someone else can give you more accurat information here. However there are alternatives: Use another machine and prebuilt your set of bootstrapping tools there. You can copy them over either by importing / exporting using nix-store or by setting NIX_OTHER_STORES or such. If you don't have another machine I could provide you with an SSH account running nixos. Then all you have to do is copy over your modifications of nixpkgs (= your kernel headers) and built some binaries finally getting them into your store. Of course this would require you to trust me and my server :-) Good luck Marc Weber _______________________________________________ nix-dev mailing list [email protected] https://mail.cs.uu.nl/mailman/listinfo/nix-dev NOTICE This e-mail and any attachments are confidential and may contain copyright material of Macquarie Group Limited or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Group Limited does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Group Limited. _______________________________________________ nix-dev mailing list [email protected] https://mail.cs.uu.nl/mailman/listinfo/nix-dev
