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

cantata: make qtmultimedia and vlc optional #83799

Merged
merged 1 commit into from Apr 3, 2020
Merged

Conversation

cole-h
Copy link
Member

@cole-h cole-h commented Mar 30, 2020

Upstream defaults vlc to off. Its only purpose is as an alternative to
QtMultimedia for "MPD HTTP stream playback" [1]. Similarly, provide a
toggle for qtmultimedia, in case somebody wants to disable HTTP stream
playback.

[1] https://github.com/CDrummond/cantata/blob/efa907c8e03d052718f14834eb968da86d1c34d8/CMakeLists.txt#L51

Motivation for this change

vlc was declared as a dependency, but was never actually linked to cantata. Now, if the user so chooses, it can be used for HTTP stream playback.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • 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 nixpkgs-review --run "nixpkgs-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.

Would be nice to get somebody on NixOS to test the binary and make sure I didn't muck anything up. Inspecting the binary with ldd shows it linked to QtMultimedia by default, not linked to it when withHttpStream = false, as well as not linked to vlc by default, and linked when withLibVlc = true.

Upstream defaults vlc to off. Its only purpose is as an alternative to
QtMultimedia for "MPD HTTP stream playback" [1]. Similarly, provide a
toggle for qtmultimedia, in case somebody wants to disable HTTP stream
playback.

[1] https://github.com/CDrummond/cantata/blob/efa907c8e03d052718f14834eb968da86d1c34d8/CMakeLists.txt#L51
@grahamc
Copy link
Member

grahamc commented Mar 30, 2020

@GrahamcOfBorg eval

@cole-h
Copy link
Member Author

cole-h commented Apr 2, 2020

Ping @peterhoeg. Got a second to review this?

@peterhoeg
Copy link
Member

Looks good, 👍 from here.

@peterhoeg peterhoeg merged commit 81bc738 into NixOS:master Apr 3, 2020
@cole-h cole-h deleted the cantata branch April 3, 2020 17:42
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

3 participants