nixpkgs icon indicating copy to clipboard operation
nixpkgs copied to clipboard

Build failure: oculante

Open clakoclast opened this issue 8 months ago • 2 comments

Nixpkgs version

  • Unstable (26.05)

Steps to reproduce

During a NixOS system upgrade (using nixpkgs nixpkgs-unstable branch), oculante failed to build.

I can reproduce the build failure on nixpkgs master branch:

$ git clone https://github.com/NixOS/nixpkgs
$ cd nixpkgs
$ nix-build default.nix --attr oculante
this derivation will be built:
  /nix/store/r79wypd0yv7mpxcd13aa6s11lkgizbp8-oculante-0.9.2.1-unstable-2025-10-08.drv
building '/nix/store/r79wypd0yv7mpxcd13aa6s11lkgizbp8-oculante-0.9.2.1-unstable-2025-10-08.drv'...
Running phase: unpackPhase
unpacking source archive /nix/store/i1m5k0lalyg0306m5w62y28654ydz9x2-source
source root is source
Executing cargoSetupPostUnpackHook
Finished cargoSetupPostUnpackHook
Running phase: patchPhase
applying patch /nix/store/ls4953cqhgp9jhh07bg6ifg2sixsfj5v-libaom-sys-0.17.2+libaom.3.11.0-cmake-nasm-fix.patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/libaom-sys-0.17.2+libaom.3.11.0/vendor/build/cmake/aom_optimization.cmake
|+++ b/libaom-sys-0.17.2+libaom.3.11.0/vendor/build/cmake/aom_optimization.cmake
--------------------------
File to patch: 
Skip this patch? [y] 
Skipping patch.
2 out of 2 hunks ignored
error: Cannot build '/nix/store/r79wypd0yv7mpxcd13aa6s11lkgizbp8-oculante-0.9.2.1-unstable-2025-10-08.drv'.
       Reason: builder failed with exit code 1.
       Output paths:
         /nix/store/6vzskhwsvmmwl82pf4wqjhvmmyk3k1fc-oculante-0.9.2.1-unstable-2025-10-08
       Last 18 log lines:
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/i1m5k0lalyg0306m5w62y28654ydz9x2-source
       > source root is source
       > Executing cargoSetupPostUnpackHook
       > Finished cargoSetupPostUnpackHook
       > Running phase: patchPhase
       > applying patch /nix/store/ls4953cqhgp9jhh07bg6ifg2sixsfj5v-libaom-sys-0.17.2+libaom.3.11.0-cmake-nasm-fix.patch
       > can't find file to patch at input line 3
       > Perhaps you used the wrong -p or --strip option?
       > The text leading up to this was:
       > --------------------------
       > |--- a/libaom-sys-0.17.2+libaom.3.11.0/vendor/build/cmake/aom_optimization.cmake
       > |+++ b/libaom-sys-0.17.2+libaom.3.11.0/vendor/build/cmake/aom_optimization.cmake
       > --------------------------
       > File to patch:
       > Skip this patch? [y]
       > Skipping patch.
       > 2 out of 2 hunks ignored
       For full logs, run:
         nix log /nix/store/r79wypd0yv7mpxcd13aa6s11lkgizbp8-oculante-0.9.2.1-unstable-2025-10-08.drv

Can Hydra reproduce this build failure?

Yes, Hydra can reproduce this build failure.

Link to Hydra build job

https://hydra.nixos.org/build/324268196

Relevant log output

Running phase: unpackPhase
unpacking source archive /nix/store/i1m5k0lalyg0306m5w62y28654ydz9x2-source
source root is source
Executing cargoSetupPostUnpackHook
Finished cargoSetupPostUnpackHook
Running phase: patchPhase
applying patch /nix/store/ls4953cqhgp9jhh07bg6ifg2sixsfj5v-libaom-sys-0.17.2+libaom.3.11.0-cmake-nasm-fix.patch
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- a/libaom-sys-0.17.2+libaom.3.11.0/vendor/build/cmake/aom_optimization.cmake
|+++ b/libaom-sys-0.17.2+libaom.3.11.0/vendor/build/cmake/aom_optimization.cmake
--------------------------
File to patch: 
Skip this patch? [y] 
Skipping patch.
2 out of 2 hunks ignored

Additional context

The last commit that directly touched pkgs/by-name/oc/oculante/package.nix is ca363a08a9be5ac34fc9fb85f471e54e505f0340 but this commit builds oculante successfully.

A git bisect start --first-parent identifies commit 321621130e822a991888f5b6b9051b37c0f256ff as the first bad commit.

> git bisect log
git bisect start '--first-parent'
# status: waiting for both good and bad commits
# bad: [00dd6917473470936c8db81f49b58fc6d8da9f1c] terraform-providers.kreuzwerker_docker: 3.6.2 -> 3.9.0 (#503985)
git bisect bad 00dd6917473470936c8db81f49b58fc6d8da9f1c
# status: waiting for good commit(s), bad commit known
# good: [ca363a08a9be5ac34fc9fb85f471e54e505f0340] various: switch buildRustPackage packages to finalAttrs pattern
git bisect good ca363a08a9be5ac34fc9fb85f471e54e505f0340
# good: [e330da915688c3053b01cf61963f31b893d1282e] duckstation: drop (#499706)
git bisect good e330da915688c3053b01cf61963f31b893d1282e
# bad: [5086fc8c6038862ecd27de5b61a5c778aba580e3] iwd: 3.11 -> 3.12 (#499859)
git bisect bad 5086fc8c6038862ecd27de5b61a5c778aba580e3
# good: [82690ff5edd0dfa58956c6de6efe99ae56acf37e] lasuite-meet: 1.9.0 -> 1.10.0 (#501151)
git bisect good 82690ff5edd0dfa58956c6de6efe99ae56acf37e
# bad: [02fe6fa6814705ba2272401ee22b6a0aa99a8f70] home-assistant-custom-lovelace-modules.universal-remote-card: 4.10.6 -> 4.10.7 (#501596)
git bisect bad 02fe6fa6814705ba2272401ee22b6a0aa99a8f70
# good: [9bb45e1ee25bf31aac4a4c64d909a35f191623eb] ssh-vault: 1.2.2 -> 1.2.3 (#500982)
git bisect good 9bb45e1ee25bf31aac4a4c64d909a35f191623eb
# good: [d560f32efb041b089fa4e0d36732f36b18a201ac] nixtamal: split into two outputs (bin/lib) (#500843)
git bisect good d560f32efb041b089fa4e0d36732f36b18a201ac
# good: [5384a5ec94d6dab1f3b6e77b1f6f7f0ef8f48279] mongodb-ce: 8.2.5 -> 8.2.6 (#501518)
git bisect good 5384a5ec94d6dab1f3b6e77b1f6f7f0ef8f48279
# bad: [d915d008581d6523b504f22f6b2d760d050cb6b6] itgmania: 1.1.0 -> 1.2.0 (#501549)
git bisect bad d915d008581d6523b504f22f6b2d760d050cb6b6
# bad: [e9fcb577583aa30987cb33f35b89d000dbafdd7e] python3Packages.rubymarshal: fix build (#501422)
git bisect bad e9fcb577583aa30987cb33f35b89d000dbafdd7e
# bad: [3e806238d09bc8cfcc2d74cd8ae854a7776bc33a] signal-export: 3.8.2 -> 3.8.3 (#501538)
git bisect bad 3e806238d09bc8cfcc2d74cd8ae854a7776bc33a
# bad: [321621130e822a991888f5b6b9051b37c0f256ff] staging-next 2026-03-07 (#497493)
git bisect bad 321621130e822a991888f5b6b9051b37c0f256ff
# good: [993b134e7278042bc6216311d0aeb736a62a2394] vscode-extensions.jjk.jjk: 0.9.1 -> 0.9.3 (#501517)
git bisect good 993b134e7278042bc6216311d0aeb736a62a2394
# first bad commit: [321621130e822a991888f5b6b9051b37c0f256ff] staging-next 2026-03-07 (#497493)

I am looking into what the cause of the problem is. It seems like, for some reason, the libaom-sys-0.17.2+libaom.3.11.0-cmake-nasm-fix.patch patch process suddenly cannot find the file to patch.

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.19.8, NixOS, 26.05 (Yarara), 26.05pre963857.f8573b9c935c
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.31.3
  • nixpkgs: /nix/store/dgmmhy3y4chhi8w2vj87h7shfxv2adqn-source

Notify maintainers


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a :+1: reaction to issues you find important.

clakoclast avatar Mar 28 '26 00:03 clakoclast

Should be fixed by https://github.com/NixOS/nixpkgs/pull/502921

thunze avatar Mar 28 '26 15:03 thunze

Should be fixed by #502921

I somehow missed this PR, thanks.

clakoclast avatar Mar 31 '26 18:03 clakoclast