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
slimserver: add perlPackages.NetHTTPSNB as a dependency #109299
Conversation
pkgs/top-level/perl-packages.nix
Outdated
description = "Non-blocking HTTPS client"; | ||
license = stdenv.lib.licenses.artistic1; /* source states "you can redistribute it and/or modify it under the same terms as Perl itself" */ | ||
}; | ||
doCheck = false; /* wants network */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doCheck = false; /* wants network */ | |
# requires network | |
doCheck = false; |
pkgs/top-level/perl-packages.nix
Outdated
meta = { | ||
homepage = "https://github.com/olegwtf/p5-Net-HTTPS-NB/blob/master/lib/Net/HTTPS/NB.pm"; | ||
description = "Non-blocking HTTPS client"; | ||
license = stdenv.lib.licenses.artistic1; /* source states "you can redistribute it and/or modify it under the same terms as Perl itself" */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
license = stdenv.lib.licenses.artistic1; /* source states "you can redistribute it and/or modify it under the same terms as Perl itself" */ | |
# source states "you can redistribute it and/or modify it under the same terms as Perl itself" | |
license = stdenv.lib.licenses.artistic1; /* */ |
I tested this change by rebasing it onto |
9ba4a63
to
b218ba8
Compare
Applied/rebased the coding style suggestions outlined above into |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HI there!
Please see the suggestions:
This is a semi-automatic executed nixpkgs-review which does not build all packages (e.g. lumo, tensorflow or pytorch) Result of 3 packages built:
|
This is a semi-automatic executed nixpkgs-review which does not build all packages (e.g. lumo, tensorflow or pytorch) Result of 2 packages built:
|
f13308d
to
e42b515
Compare
Hi @stigtsp, thank you very much for your corrections! I have again rebased them into |
Slimserver v. 7.9.2 introduced the CPAN package `Net::HTTPS::NB`[1][2] as a dependency (distributed directly inside the Git repository, cf. [3]). Without this package present in the Perl include path, the new version fails to load the repository database for squeezebox server plugins (configured via `Settings > Plugins`) and thus does not list any plugins that aren't already installed on the respective system. [1]: https://metacpan.org/pod/Net::HTTPS::NB [2]: https://github.com/olegwtf/p5-Net-HTTPS-NB [3]: https://github.com/Logitech/slimserver/blob/7938c061194816970c05fcfdd9607bf359f532ca/CPAN/Net/HTTPS/NB.pm
e42b515
to
52f6216
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thanks for the contribution!
- Tested
perlPackages.NetHTTPSNB
OK on linux x64 - Basic test of the
slimserver
service OK on linux x64 via nixos-shell, plugins appear. (Would be great to have anixos/tests/
for it).
Result of nixpkgs-review pr 109299
run on x86_64-linux 1
3 packages built:
- perl530Packages.NetHTTPSNB
- perl532Packages.NetHTTPSNB
- slimserver
@SuperSandro2000 Can you recheck |
Motivation for this change
This PR fixes #108617.
slimserver
v. 7.9.2 introduced the CPAN moduleNet::HTTPS::NB
as a new dependency. Because this dependency is currently not added through the package's derivation, the installation of plugins is no longer possible because the application fails to download its plugin repository database. Instead, the server logs the following message:Note that the initial error message (
Unable to load IO::Socket::SSL [...]
) is an explicitly logged message that is not correct in this specific case.Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)