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

puddletag: remove chromaprint #190213

Merged
merged 1 commit into from
Sep 8, 2022

Conversation

Maxwell-lt
Copy link
Contributor

Chromaprint depends on m2r, which depends on mistune <2.0.0, but only mistune >2.0.0 is available.

Description of changes

Puddletag currently refuses to build due to m2r being marked broken. This is a transitive dependency through the python module chromaprint, which appears to only be a soft dependency of Puddletag. To get Puddletag building again, the easiest option is to remove the build input and patch requirements.txt.

I've successfully run Puddletag with nix run .#puddletag in my clone of nixpkgs, though I'm not sure what features even use the removed dependency, so did not test that.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.11 Release Notes (or backporting 22.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

Chromaprint depends on m2r, which depends on mistune <2.0.0, but only mistune >2.0.0 is available.
@ofborg ofborg bot requested review from dschrempf and peterhoeg September 8, 2022 00:10
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 10.rebuild-linux: 1 labels Sep 8, 2022
Copy link
Contributor

@dschrempf dschrempf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi!

In principle, the PR is good. However, according to the puddletags README, chromaprint is a recommended dependency. Did you briefly check why m2r is broken? Can we probably fix that instead? If not, go ahead!

@peterhoeg
Copy link
Member

The mistune/m2r issue is affecting a lot of projects. Not likely to have an easy fix.

@peterhoeg
Copy link
Member

But will the sed invocation not break requirements.txt? I'd say do this instead:

sed -i -e '/chromaprint/d' requirements.txt

@peterhoeg
Copy link
Member

Forget what I said - we're copying over the .in file before. I think I wrote that.........

@dschrempf
Copy link
Contributor

dschrempf commented Sep 8, 2022

The mistune/m2r issue is affecting a lot of projects. Not likely to have an easy fix.

I see.

In this case, this only fixes the tip of the iceberg. We need to mark chromaprint broken, and I guess mistune (but I am not informed)? Just for reference, are we talking about miyakogi/m2r#66?

@peterhoeg
Copy link
Member

That issue is part of it. It's basically a lot of changes in mistune v2 that has broken many downstream consumers. We used to carry the old version in tandem with v2, but it was dropped as it's insecure. There are a few competing forks but no proper path forward. m2ris already flagged as broken in its current version with mistune >= 2.0 so chromaprint is transitively broken. Don't see a reason to tag it explicitly.

@peterhoeg peterhoeg merged commit 3cd2a69 into NixOS:master Sep 8, 2022
@Maxwell-lt Maxwell-lt deleted the puddletag-remove-chromaprint branch September 8, 2022 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 10.rebuild-linux: 1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants