Skip to content

Build failure: recordbox #540999

Closed
Closed

Description

@dignifiedalpaca

Nixpkgs version

  • Unstable (26.11)

Steps to reproduce

Run nix build github:NixOS/nixpkgs/nixpkgs-unstable#recordbox

Can Hydra reproduce this build failure?

Yes, Hydra can reproduce this build failure.

Link to Hydra build job

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

Relevant log output

...
   Compiling cairo-rs v0.22.0
   Compiling graphene-rs v0.22.0
   Compiling glycin-utils v4.1.0
   Compiling ashpd v0.13.9
   Compiling mpris-server v0.9.0
   Compiling search-provider v0.13.0
   Compiling diesel_migrations v2.3.1
   Compiling deadpool-diesel v0.6.1
   Compiling gstreamer-base v0.25.0
   Compiling gstreamer-video v0.25.0
   Compiling gstreamer-audio v0.25.0
   Compiling gdk-pixbuf v0.22.0
   Compiling pango v0.22.0
   Compiling gstreamer-play v0.25.0
   Compiling gstreamer-pbutils v0.25.0
   Compiling gdk4 v0.11.1
   Compiling gsk4 v0.11.1
   Compiling glycin v3.1.0
   Compiling gtk4 v0.11.1
   Compiling libadwaita v0.9.1
   Compiling recordbox v0.11.0 (/build/source)
error[E0446]: private type `LyricsSaveDestination` in public interface
   --> src/lyrics/edit_dialog.rs:131:45
    |
 10 | enum LyricsSaveDestination {
    | -------------------------- `LyricsSaveDestination` declared as private
...
131 |     async fn ask_for_save_options(&self) -> Option<LyricsSaveDestination> {
    |                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private type

warning: type `LyricsSaveDestination` is more private than the item `edit_dialog::LyricEditDialog::ask_for_save_options::{anon_assoc#0}`
   --> src/lyrics/edit_dialog.rs:131:45
    |
131 |     async fn ask_for_save_options(&self) -> Option<LyricsSaveDestination> {
    |                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ opaque type `edit_dialog::LyricEditDialog::ask_for_save_options::{anon_assoc#0}` is reachable at visibility `pub(in crate::lyrics)`
    |
note: but type `LyricsSaveDestination` is only usable at visibility `pub(self)`
   --> src/lyrics/edit_dialog.rs:10:1
    |
 10 | enum LyricsSaveDestination {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^
    = note: `#[warn(private_bounds)]` on by default

For more information about this error, try `rustc --explain E0446`.
warning: `recordbox` (bin "recordbox") generated 1 warning
error: could not compile `recordbox` (bin "recordbox") due to 1 previous error; 1 warning emitted
FAILED: [code=101] src/recordbox 
/nix/store/cp7wjv1pl4wapfk48svvizxd089v9h0a-coreutils-9.11/bin/env CARGO_HOME=/build/source/build/cargo-home /nix/store/wjqh444sdwagpwyw25wdhk9rxl77rn6c-cargo-1.96.1/bin/cargo build --manifest-path /build/source/Cargo.toml --target-dir /build/source/build/src --release && cp src/release/recordbox src/recordbox
ninja: build stopped: subcommand failed.

Additional context

No response

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.18.37, NixOS, 26.11 (Zokor), 26.11.20260701.e8273b2
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Lix, like Nix) 2.95.2 System type: x86_64-linux Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux, x86_64-v4-linux Features: gc, signed-caches System configuration file: /etc/nix/nix.conf User configuration files: /home/.../.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/.../.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/.../.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/.../etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/vjdi2nfyh74xnych9c6hk51il4jch2c6-lix-2.95.2/share
  • nixpkgs: /nix/store/fafnljsz5sckb1vzpns5dc2l6z4xkakm-source

Notify maintainers

@getchoo


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 👍 reaction to issues you find important.

Activity

  1. io12 commented on Jul 12, 2026

    @io12
    Member

    It seems like a rustc update (intentionally) caused this. rust-lang/rust#152543

  2. illegalprime commented on Aug 12, 2026

    @illegalprime
    Member

    Looks like this should work on nixpkgs 26.05 since it has the right older rustc version.
    Can't be fixed until the maintainer updates their project to support the newer compiler.

  3. StarryReverie commented on Sep 4, 2026

    @StarryReverie
    Contributor

    The following patch can fix the build failure:

    diff --git a/src/lyrics/edit_dialog.rs b/src/lyrics/edit_dialog.rs
    index 318176d..3188c45 100644
    --- a/src/lyrics/edit_dialog.rs
    +++ b/src/lyrics/edit_dialog.rs
    @@ -7,7 +7,7 @@ use crate::utils::settings;
    
     use super::TrackLyrics;
    
    -enum LyricsSaveDestination {
    +pub enum LyricsSaveDestination {
         Metadata,
         ExternalFile(bool, ExternalLyricsFilename),
     }

    Can we apply the patch now? The upstream repository has not been active for several month. It's unlikely that the upstream will fix this in short term.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: build failure

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions