Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 5 123 ... LastLast
Results 1 to 10 of 42
  1. #1

    Perl 5.26 support?

    Hi,
    I see that new stable version of Perl 5.26 was issued some time ago.
    Are you going to add to LMS support to this new Perl's version?
    Regards,

  2. #2
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    19,779

    Perl 5.26 support?

    > I see that new stable version of Perl 5.26 was issued some time ago.

    Yeah, more than a month ago!

    > Are you going to add to LMS support to this new Perl's version?


    At some point for sure. This mostly likely will happen when one of the
    major (and most popular) distributions used in the LMS community is
    updating. What are you using?

    --

    Michael

  3. #3
    Thanks Michael
    Quote Originally Posted by mherger View Post
    What are you using?
    I use LFS (Linux From Scratch) so I always build components (e.g. Perl, LMS) from source...
    I will try to modify CPAN/buildme.sh (to add Perl 5.26 support) for my new LMS build.
    Regards,
    bernid

  4. #4
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    19,779

    Perl 5.26 support?

    > I use 'LFS' (https://en.wikipedia.org/wiki/Linux_From_Scratch) (Linux
    > From Scratch) so I always build components (e.g. Perl, LMS) from
    > source...
    > I will try to modify CPAN/buildme.sh (to add Perl 5.26 support) for my
    > new LMS build.


    Hehe... just wanted to say: if you're running LFS, then you won't rely
    on pre-built binaries anyway, would you :-P

    Should be fairly simple to extend the script. Please file a pull request
    when done :-).

    --

    Michael

  5. #5

    Perl 5.26 support?

    Hi all,

    I'm now hit by this issue as well as Debian updated to Perl 5.26 and I
    have again to "keep on hold" a log of packages to avoid broken
    dependencies.

    Greetings,
    Stefan

    --
    Stefan Bellon

  6. #6

    Perl 5.26 support?

    This Perl issue is really becoming more and more of a problem.

    I know that here on the lists instructions where given of how to
    compile the CPAN modules for oneself. But this had to be done whenever
    one installed a new version of the LMS. So, not really a choice for
    people using the nightlies (like me).

    On the other hand, https://github.com/sbellon/slimserver-vendor hasn't
    changed for quite some time.

    So, wouldn't it be possible to build the Perl modules *once* per new
    Perl version and reuse them whenever one installs a new nightly LMS?

    Problem right now is that Debian unstable (x86_64) is on Perl 5.26, but
    LMS does not come with CPAN binaries for 5.26, so a lot of packages
    have to be put "on hold" (currently 88, daily growing) which makes
    maintaining the system more and more complex - besides not getting
    security updates for packages on hold.

    I'd appreciate a solution to this issue very much!

    Greetings,
    Stefan

  7. #7
    Senior Member
    Join Date
    Aug 2012
    Location
    Austria
    Posts
    649
    Quote Originally Posted by sbellon View Post
    So, wouldn't it be possible to build the Perl modules *once* per new
    Perl version and reuse them whenever one installs a new nightly LMS?
    Yes, and it's quite simple. Basically, you install the binary perl parts somewhere outside of the regular system (e.g. /opt/lms-perlmodules/5.26), and after installing a new LMS version, you symlink / copy them to the new version (lmsdir/CPAN/arch/5.26/...)
    Alternatively, install you own perl outside of the regular system (e.g. /opt/perl-5.24) and run LMS with that, then you can use the pre-compiled version.

  8. #8
    Senior Member
    Join Date
    Oct 2005
    Location
    Ireland
    Posts
    15,324
    Quote Originally Posted by Roland0 View Post
    Alternatively, install you own perl outside of the regular system (e.g. /opt/perl-5.24) and run LMS with that, then you can use the pre-compiled version.
    You can use perlbrew to help admin of multiple Perl versions.

  9. #9

    Perl 5.26 support?

    Ok, I thought I would give it a try, if it was that easy ...

    First thing I had to fix was the "cd EV-4.*" in buildme.sh because that
    expands to "cd EV-4.22 EV-4.22.tar.gz" which then does not work. That
    was easy to fix.

    Next problem however is (pasted from build.log):


    build_module run tests:0 clean:1 hints 1 Module-Build-0.4220
    tar zxvf Module-Build-0.4220.tar.gz
    tar done
    cp: cannot stat '../hints': No such file or directory
    Died at Makefile.PL line 11.
    BEGIN failed--compilation aborted at Makefile.PL line 11.
    make: *** No targets specified and no makefile found. Stop.
    make failed, aborting


    Where in line 11 at Module-Build-0.4220/Makefile.PL I see:


    BEGIN { do 'inc/bootstrap.pl' or die defined($@) ? $@ : $! }


    The file Module-Build-0.4220/inc/bootstrap.pl is present and readable,
    and as I do not know anything about Perl, I'm now lost what's wrong
    here.

    Any hints?

    Luckily I tried the build with the old Perl 5.24 before updating Debian
    to the current 5.26 as otherwise I would now have a broken LMS
    installation.

    Greetings,
    Stefan


  10. #10
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    895
    Might be easier to use perlbrew. That way upgrades in the future wont break lms.

    Code:
    $~/sudo apt-get install perlbrew         
    $~/perlbrew init                                        (This will give you a line to put in your bashrc file)
    $~/perlbrew install -j 4 perl-5.24.1 --multi --thread    (the -j 4 is parallel builds, change the 4 to how many processor cores you have)
    $~/perlbrew switch perl-5.24.1
    *NOTE: if anyone else is doing this on 32 bit OS, you need to add --64int to the install line.

    run perl -V to make sure it is using the new perl that you installed.
    You will probably need to add IO::Socket::SSL

    Code:
    $~/sudo apt-get install libssl-dev
    $~/cpan install IO::Socket::SSL
    This will setup perl 5.24.1 for your shell environment (installed in your home directory by default) the only thing remains is to make sure this perl version is used when launching LMS.
    That will depend on how you start LMS.
    Last edited by paul-; 2017-10-14 at 08:55.

Posting Permissions

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