[Nix-dev] nixpkgs haskell system got into inconsistent state broken

Utku Demir utdemir at gmail.com
Tue Sep 22 20:07:59 CEST 2015


Also, there is a slightly faster way to recover from that bug mentioned in
Nixpkgs Manual[1], which is to just rebuild the problematic package and its
dependencies.

[1]
http://nixos.org/nixpkgs/manual/#how-to-recover-from-ghcs-infamous-non-deterministic-library-id-bug

On Mon, 21 Sep 2015 at 14:19 Thomas Hunger <tehunger at gmail.com> wrote:

> It's possible you hit the infamous non-deterministic package hash
> generation [1] for which Peter collected data recently [2]. AFAICT the only
> solution is to remove and rebuild or refetch all haskell packages.
>
> This bug has high priority for GHC 8 so I hope it'll eventually go away.
>
>
>
> [1]
> https://ghc.haskell.org/trac/ghc/ticket/4012
>
> [2]
> http://lists.science.uu.nl/pipermail/nix-dev/2015-June/017405.html
>
> On 21 September 2015 at 10:41, Miguel Negrão <
> miguel.negrao-lists at friendlyvirus.org> wrote:
>
>> Hi
>>
>> This week I encountered a situation where when I tried to build one of my
>> own packages which was working fine before, it would fail claiming that
>> every single Haskell package it needed was missing:
>>
>> http://pastebin.com/agqw9dn2
>> http://pastebin.com/Vyqc5U3e
>>
>> I had not changed anything or installed anything in nix for quite a while,
>> the only thing I can think that could have caused this was that my
>> filesystem had died (btrfs) and I had to restore from backup the whole of
>> /.
>> I have not used binary cache to build any of the haskell packages, they
>> were
>> built from source.
>>
>> Is it possible that the restore of / via rsync could have caused this ?
>>
>> In the meantime I had did a rm -r /nix and installed everything again and
>> my
>> system is working again, exactly as before this issue (I had everything
>> specified in my config.nix), which is a testament to how easy it is to
>> rebuild a system with nix if you have a declarative description of your
>> packages.
>>
>> Thanks,
>> Miguel
>>
>> _______________________________________________
>> nix-dev mailing list
>> nix-dev at lists.science.uu.nl
>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>>
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150922/e19ac3be/attachment.html 


More information about the nix-dev mailing list