Re: [Nix-dev] Hash Collisions

2014-04-10 Thread Vladimír Čunát
On 04/08/2014 11:43 PM, Ben Franksen wrote: BTW, it is currently a common limitation (e.g. in debian) that although one can have multiple versions of a binary package installed, there can be only one version of the development package. I think NixOS should be able to easily avoid such a

Re: [Nix-dev] Hash Collisions

2014-04-08 Thread Marc Weber
Excerpts from Raahul Kumar's message of Tue Apr 08 03:11:03 + 2014: Thanks Marc, Kiril. Is there a way to create packages such that they don't provide redundant files? It's a waste of bandwidth to download a file, then be unable to use it because there is already a copy there. I guess

Re: [Nix-dev] Hash Collisions

2014-04-08 Thread Eelco Dolstra
Hi, On 08/04/14 09:54, Marc Weber wrote: I'll give you another useful tip: If you want to save bandwidth then switch to binary distro. While nixos has had the ability to create binary differences I'm unsure wether its activated/available at the moment. It was disabled in the past. Maybe

Re: [Nix-dev] Hash Collisions

2014-04-08 Thread Ben Franksen
Eelco Dolstra wrote: On 08/04/14 09:54, Marc Weber wrote: Also waste of space/bandwidth always happens because: - nixos always ships with header files for all libraries (this could be fixed because nix supports multiple outputs) Yeah, multiple outputs will fix this eventually

[Nix-dev] Hash Collisions

2014-04-07 Thread Raahul Kumar
I just ran a nixos-rebuild switch --upgrade. I saw a whole bunch of hash collisions and some other error messages. How do I make them go away? collision between `/nix/store/fsymx7fx3bxhr2p1gprvzgdxhxyi77b1-kmod-16/sbin/modprobe' and

Re: [Nix-dev] Hash Collisions

2014-04-07 Thread Thomas Bereknyei
I have seen these collisions as well, but I do not understand them. They don't seem to have a detrimental effect on anything. -Tom On Mon, Apr 7, 2014 at 4:28 AM, Raahul Kumar raahul.ku...@gmail.com wrote: I just ran a nixos-rebuild switch --upgrade. I saw a whole bunch of hash collisions

Re: [Nix-dev] Hash Collisions

2014-04-07 Thread Kirill Elagin
First of all, those are not hash collisions, obviously. If those were SHA-256 collisions, you'd already be famous =). Those are file collisions, and as you can see, this time the file in question is /share/man/man2/llistxattr.2.gz, it is provided by two packages: `man-pages` and `attr`. Since your

Re: [Nix-dev] Hash Collisions

2014-04-07 Thread Marc Weber
Excerpts from Thomas Bereknyei's message of Mon Apr 07 13:48:45 + 2014: I have seen these collisions as well, but I do not understand them. They don't seem to have a detrimental effect on anything. Let me explain: nixos builds a system profile. Eg ls -l /run/current-system/sw When two

Re: [Nix-dev] Hash Collisions

2014-04-07 Thread Raahul Kumar
Thanks Marc, Kiril. Is there a way to create packages such that they don't provide redundant files? It's a waste of bandwidth to download a file, then be unable to use it because there is already a copy there. I guess deduplication is what I am looking for. The /run/current-system was a useful