Upgrade 20.03 to 20.09 failes due to broken libguestfs-1.40.2

My attempt to upgrade 20.03.2648.69af91469be (Markhor) to 20.9 failed due to libguestfs-1.40.2

# nix-channel --list 
nixos https://nixos.org/channels/nixos-20.09
# nixos-rebuild test --upgrade 
unpacking channels...
building Nix...
building the system configuration...
error: Package ‘libguestfs-1.40.2’ in /nix/store/rcq8cqxfypnr06fimibw19dvdypjhig5-nixos-20.09.1500.edb26126d98/nixos/pkgs/development/libraries/libguestfs/default.nix:88 is marked as broken, refusing to evaluate.

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.

(use '--show-trace' to show detailed location information)

Does anyone faced the issue?
Does anyone know how to fix it?

2 Likes

It was marked broken in [20.09] treewide: mark broken for 20.09 by jonringer · Pull Request #101736 · NixOS/nixpkgs · GitHub

a “flavor” of libguestfs was failing: Hydra - Evaluation 1622004 of jobset nixos:release-20.09 and this got marked broken by accident.

1 Like

PR to remedy: [20.09] libguestfs: unmark broken by jonringer · Pull Request #102077 · NixOS/nixpkgs · GitHub

Apologize, we don’t have really any great tooling around marking the failing builds as broken. And manually doing a few hundred is very error prone.

4 Likes

Thank you very much for your help, @jonringer!

2 Likes

I had the same problem, and as a fairly new NixOS user had no idea how to fix it. Thanks to @palik for posting the question, and to @jonringer for fixing it so quickly!

3 Likes

interesting though, as the other package already had hydraPlatforms = [];, so it shouldn’t have been building it.

1 Like

If you want to try a rebuild with the changes include, you can do:

sudo nixos-rebuild -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/6741f33b11e77dd8e19563300ac06940cd9e8d45.tar.gz dry-run
3 Likes

That run error-free.

2 Likes

It’s now merged into the release branch, should be available in around 24 hrs

or, if you’re impatient:

sudo nixos-rebuild -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/release-20.09.tar.gz switch
5 Likes