Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1

    perl-IO-Socket-SSL

    Hi,

    Is there a reason why perl-IO-Socket-SSL isn't included in the logitech media server RPM package? All other needed Perl modules are packaged with the LMS package.

    Regards, Johan

  2. #2
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    20,851
    My assumption is that version that can installed on your may be "tied" to the version of OpenSSL on your system which is not associated with the version of Perl.

    So instead of LMS just supporting a number of version of Perl for x number of archs, for each version of Perl there would be a number of version of the SSL modules - complicated.

    I'm not sure but there may also a dependency on Net::SSLeay and its version.

  3. #3

    requisites in RPM

    Quote Originally Posted by bpa View Post
    My assumption is that version that can installed on your may be "tied" to the version of OpenSSL on your system which is not associated with the version of Perl.

    So instead of LMS just supporting a number of version of Perl for x number of archs, for each version of Perl there would be a number of version of the SSL modules - complicated.

    I'm not sure but there may also a dependency on Net::SSLeay and its version.
    That is a reasonable ground. But then it would maybe be a good idea to add that perl-IO-Socket-SSL as a requisites in the RPM package. That way yum and zypper would be able to pull in the package at installation time (and rpm warn about the dependency for those using that tool).

    Regards, Johan

  4. #4
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    4,898
    Perhaps a reason for not making it a pre-req is that, I think, LMS can be used without it - especially if it is being used to only play local music.
    Is there a way to have a pre-req that is recommended rather than mandatory so that failing to find/install a module gives a warning but does not break things?
    Paul Webster
    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
    and, via the extra "Radio Now Playing" plugin, AllZIC Radio, Caroline Flashback, Cesky rozhlas, Dandelion Radio, Europa Radio Jazz, Frequence3, FSK, JukeRadio, KlassikRadio.de, Linn Radio, Mother Earth, Naim Radio, Nova.fr, RadioBlues Flac, Radio Espace, Radio Swiss, RTE Ireland, Somehow Jazz, Supla Finland

  5. #5
    Quote Originally Posted by Paul Webster View Post
    Perhaps a reason for not making it a pre-req is that, I think, LMS can be used without it - especially if it is being used to only play local music.
    Is there a way to have a pre-req that is recommended rather than mandatory so that failing to find/install a module gives a warning but does not break things?
    OK, that could be a reason, however, every time I have installed LMS on a new Linux server, it has refused to run until I have also installed the perl-IO-Socket-SSL. How would I need to configure LMS to make it run without that perl library.

    There are recommendations for the spec files. The recommendation will be picked up by yum and zypper, but not by the rpm command itself. Zypper and yum will install a recommended package if it is found. If it isn't found it will just continue without any complaints.

    Regards, Johan

  6. #6
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    4,898
    There is an internal routine call hasSSL that tests for SSL being available ... and, in general, it switches to http if not available.
    So it looks like it should be able to run otherwise that code would be redundant.

    However, that is a side issue if the install routines can handle the finding (or not) of the module and making it work in the typical case when it is found.
    Paul Webster
    Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
    and, via the extra "Radio Now Playing" plugin, AllZIC Radio, Caroline Flashback, Cesky rozhlas, Dandelion Radio, Europa Radio Jazz, Frequence3, FSK, JukeRadio, KlassikRadio.de, Linn Radio, Mother Earth, Naim Radio, Nova.fr, RadioBlues Flac, Radio Espace, Radio Swiss, RTE Ireland, Somehow Jazz, Supla Finland

  7. #7
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    20,851
    Quote Originally Posted by Johan S View Post
    OK, that could be a reason, however, every time I have installed LMS on a new Linux server, it has refused to run until I have also installed the perl-IO-Socket-SSL. How would I need to configure LMS to make it run without that perl library.
    Have you tried the nomysqueezbox option ?
    Many 3rd party plugin & services are hosted on sites that require https.

  8. #8
    Quote Originally Posted by bpa View Post
    Have you tried the nomysqueezbox option ?
    Many 3rd party plugin & services are hosted on sites that require https.
    You are right. With --nomysqueezebox LMS will run without that perl library. I have never noticed this because I have always just installed the library after the installation of LMS.

    So basically the only option would be to add a recommends statement in the RPM file, something like this

    Recommends: perl(Socket:IO:SSL)

    Is it worthwhile though? It would make things easier for people with not much experience with LMS on RPM based Linux distributions. How is it on Debian-like systems, is the packages required/recommended there?

    Regards, Johan
    Last edited by Johan S; 2021-04-18 at 05:30.

  9. #9
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    20,851
    Quote Originally Posted by Johan S View Post
    Is it worthwhile though? It would make things easier for people with not much experience with LMS on RPM based Linux distributions. How is it on Debian-like systems, is the packages required/recommended there?
    SSL/TLS has really become crtical in the last 6-12 month with some sites/station changing over to "https required" quietly and overnight. Additions to LMS to fully support https has been going on and IIRC some https related changes in 8.1.* so it is not surprising that packaging changes have been slow to catch up.

    For Debian, I think people (i.e including me as I occasionally do a clean install on a Pi) - just follow the "standard" steps in additional to the package- which include install Perl IO-Socket-SSL and Net::SSLeay and maybe a few other items (e.g. lame, codec libraries).

    It does feel like showing the modules are requirements would be sensible.

  10. #10
    I'll be happy to amend the RPM spec file. That is easy, but what should be used, Recommends or Require. As SSL/TLS gets more and more important maybe Requires is the best choice.

    Also when I am anyway doing this a Recommends statement for lame an flac might be a good idea, or?

    Regards, Johan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •