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

spotifyd: update cargoSha256 hash #66233

Merged
merged 1 commit into from Aug 7, 2019
Merged

Conversation

BenSchZA
Copy link
Contributor

@BenSchZA BenSchZA commented Aug 6, 2019

Motivation for this change

When installing, the Cargo package hash is incorrect - this means the package fails to install. The expected hash is different from the actual cargoSha256 hash. This PR is a simple update to this hash, and has been tested and works locally.

I'm playing music using spotifyd as we speak. Great package!

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
Notify maintainers

cc @anderslundstedt

When installing, the Cargo package hash is incorrect. This has been updated, and works locally.
@anderslundstedt
Copy link
Contributor

Are you on a Raspberry Pi or any other AArch64? I experienced the same problem on my Raspberry Pi 3, but not on my x86_64 machine. I do not think the solution is to change the hash, because then the package will be broken on x86_64 machines. I have meant to investigate it further but have not had the time yet. Hear are some readings I had planned to check out:

@BenSchZA
Copy link
Contributor Author

BenSchZA commented Aug 7, 2019 via email

@Kazicata747
Copy link

Kazicata747 commented Aug 7, 2019 via email

@anderslundstedt
Copy link
Contributor

I have now investigated a bit. The cargo-vendor version bump #57017 requires a change of cargoSha256hash, as discussed in #60668. Current hash is the hash required (on x86_64 at least) prior to that version bump. The hash in this PR is the one required after the version bump.

The reason that the current hash worked for me is that I have backported spotifyd to my local 19.03 clone, which does not have the cargo-vendor version bump.

All in all, the hash should be updated and thus this should be merged.

@nixos-discourse
Copy link

This pull request has been mentioned on Nix community. There might be relevant details there:

https://discourse.nixos.org/t/prs-already-reviewed/2617/51

@BenSchZA
Copy link
Contributor Author

BenSchZA commented Aug 7, 2019

Great. Thanks @anderslundstedt . This was my first Nix PR, so it's been cool to see the process work! I'm sure it won't be my last.

@timokau
Copy link
Member

timokau commented Aug 7, 2019

I'm more and more convinced that we need some better way to deal with fixed output derivations.

Anyway, thanks for the contribution @BenSchZA and the review @anderslundstedt!

@timokau timokau merged commit 6c6276c into NixOS:master Aug 7, 2019
@marsam marsam mentioned this pull request Aug 9, 2019
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants