Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure: opencolorio-2.2.0.drv, prevents blender-3.5.1.drv and system-path.drv from building #241125

Closed
spacebanana420 opened this issue Jul 2, 2023 · 6 comments · Fixed by #241563
Labels
0.kind: build failure A package fails to build

Comments

@spacebanana420
Copy link

spacebanana420 commented Jul 2, 2023

Steps To Reproduce

  1. Change branch to nixos-unstable
  2. Add to your configuration.nix environment.systemPackages = with pkgs; [blender]
  3. Update with sudo nixos-rebuild switch --upgrade

Build log

Full log here

error: builder for '/nix/store/kk0vyrxba9ijf7gl6jiy67ckdpc90r0z-opencolorio-2.2.0.drv' failed with exit code 1
error: 1 dependencies of derivation '/nix/store/ylg6cfg3s85wkipf6v9qnvjvn7f3if0k-blender-3.5.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/931ax5x0d41xhrw5kgzvivjv1n19x9fv-system-path.drv' failed to build
building '/nix/store/a5rwmsfv8y0pvq84d0hqzl28fs49n8rd-unit-nix-daemon.service.drv'...
building '/nix/store/3rg3cdv41npwik7sxi9q9qq7ynzwfzkv-unit-nix-optimise.service.drv'...
building '/nix/store/xgk3k2msw2igzmx0ly0szziliyqykybg-unit-nix-optimise.timer.drv'...
building '/nix/store/yzxblpvyizr6nyci5vyh5rra70kj4wsz-unit-pipewire.service-disabled.drv'...
building '/nix/store/57s2927128nh4bj5iiv8mclsifkb28gy-unit-pipewire.socket-disabled.drv'...
building '/nix/store/526h7v9cn446xf53z7pscy7y2359saai-unit-script-nix-gc-start.drv'...
building '/nix/store/754x0yfghqw288mmr97m6djak4p5cvf6-unit-systemd-udevd.service.drv'...
building '/nix/store/ly5hhn2mb93jvlfx79x3b9mf4qi5h2jd-unit-wireplumber.service-disabled.drv'...
error: 1 dependencies of derivation '/nix/store/0rbhvciky3bk7lfvaw8qkjv7yrnnfnqm-nixos-system-CirnOS-23.11pre500267.645ff62e09d.drv' failed to build

Notify maintainers

@cillianderoiste
@veprbl
@rastertail

Metadata

 - system: `"x86_64-linux"`
 - host os: `Linux 6.3.9, NixOS, 23.11 (Tapir), 23.11pre498616.6b3d1b1cf13`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.15.1`
 - channels(space): `"nixos"`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
@spacebanana420 spacebanana420 added the 0.kind: build failure A package fails to build label Jul 2, 2023
@amarshall
Copy link
Member

amarshall commented Jul 3, 2023

Bisect has identified #238978 (specifically 0fe7fee) as the source of this failure in nixpkgs, cc @fpletz. See also upstream issue AcademySoftwareFoundation/OpenColorIO#1800.

@cafkafk
Copy link
Member

cafkafk commented Jul 4, 2023

If you're using a flake, this is how I was able to mitigate this until it's fixed.

I rolled back the changes from #238978 in a branch on my fork, and used it as an overlay for the affected packages like this:

  inputs = {
    ...
    nixpkgs-colorio-fix.url =
      "github:cafkafk/nixpkgs/cafkafkdev-colorio-downgrade";
    ...
  };

This is how you would add them to your overlay:

overlay = final: prev: {
  ...
  inherit (nixpkgs-colorio-fix.legacyPackages.${prev.system})
    zlib-ng minizip-ng;
  ...
}

Ofc, depending on how you do stuff, you'll have to fiddle with it a bit to get it to work.

I found this helpful: https://astrid.tech/2022/11/03/0/overlay-nixpkgs-pr/

@spacebanana420
Copy link
Author

The fix is now on the nixos-unstable branch, but I still cannot build my system after updating, with the same build failure for opencolorio. Is this expected?

@wegank
Copy link
Member

wegank commented Jul 6, 2023

Probably not, since opencolorio and blender both build on Hydra.

@spacebanana420
Copy link
Author

Oh thank you, this is very bizarre. I will ask on the forum what's going on

@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/something-is-wrong-with-my-system-update/30077/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants