Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 10 of 10

Thread: order of INC

  1. #1
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    3,284

    order of INC

    Hi - LMS seems to do all the magic to add the right data to INC based on what's under lib/ and the os version. But it add that at the beginning of INC, not at the end which means that isf the system has 'eg) a shared lib already installed, my local plugin version will take precedence, which is not what I want. Any way to change that?

    Thanks
    LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5

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

    order of INC

    > Hi - LMS seems to do all the magic to add the right data to INC based on
    > what's under lib/ and the os version. But it add that at the beginning
    > of INC, not at the end which means that isf the system has 'eg) a shared
    > lib already installed, my local plugin version will take precedence,
    > which is not what I want. Any way to change that?


    But it's exactly why it's put at the beginning: we want to use our own
    modules first, because there are some dependencies. In some cases we
    want to be sure we get the version we are expecting, as newer ones might
    not work.

    What issue are you trying to address?

    --

    Michael

  3. #3
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    3,284
    Quote Originally Posted by mherger View Post
    > Hi - LMS seems to do all the magic to add the right data to INC based on
    > what's under lib/ and the os version. But it add that at the beginning
    > of INC, not at the end which means that isf the system has 'eg) a shared
    > lib already installed, my local plugin version will take precedence,
    > which is not what I want. Any way to change that?


    But it's exactly why it's put at the beginning: we want to use our own
    modules first, because there are some dependencies. In some cases we
    want to be sure we get the version we are expecting, as newer ones might
    not work.

    What issue are you trying to address?

    --

    Michael
    I want to address the problem where I've compiled some binaries for Perl 5.24.0 but the system has 5.24.2 installed and I'l like to allow system's one to be used, i.e. I only want mine to be used when there is nothing available at the system level. I seem to face an issue where 5.24.0 shared objects are not working on a 5.24.2 system (which I think should not be the case)

    [edit]: and BTW, I used to add a "use lib ..." sentence in my plugins, I guess it is not necessary (is this true for all LMS versions >= 7.7?
    Last edited by philippe_44; 2017-08-10 at 08:51.
    LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5

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

    order of INC

    > I want to address the problem where I've compiled some binaries for Perl
    > 5.24.0 but the system has 5.24.2 installed and I'l like to allow
    > system's one to be used, i.e. I only want mine to be used when there is
    > nothing available at the system level. I seem to face an issue where
    > 5.24.0 shared objects are not working on a 5.24.2 system (which I think
    > should not be the case)


    But if the modules can easily be installed in the OS, why would you
    include them? I would avoid including binaries wherever possible. It's
    asking for problems.

    --

    Michael

  5. #5
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    3,284
    Quote Originally Posted by mherger View Post
    > I want to address the problem where I've compiled some binaries for Perl
    > 5.24.0 but the system has 5.24.2 installed and I'l like to allow
    > system's one to be used, i.e. I only want mine to be used when there is
    > nothing available at the system level. I seem to face an issue where
    > 5.24.0 shared objects are not working on a 5.24.2 system (which I think
    > should not be the case)


    But if the modules can easily be installed in the OS, why would you
    include them? I would avoid including binaries wherever possible. It's
    asking for problems.

    --

    Michael
    I agree but I did that because most users don't know how to add perl packages and on a NAS it's even more difficult. So that was the solution to improve ease of use. Hence ideally, I would give priority so existing modules if any. For example, shairtunes was a great plugin but lots of people where lost with the extra needed to install it and I removed all of them
    LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5

  6. #6
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    892
    Im not sure about forward compatibility with modules.....but I wouldn't think a maintenance release oils cause a problem. How are you compiling the arm binaries? Make sure you are armv6 compatable.

    For what it's worth, with spotty. Many have figured out how to add modules to NAS boxes. pCP is still probably the hardest, I build perl packages when I see them needed.

  7. #7
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    3,284

    order of INC

    What I've done is rebuilding all my packages with/for version x.y.0 of Perl, which according to what I've read should provide forward compatibility.
    LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5

  8. #8
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    3,284
    Quote Originally Posted by philippe_44 View Post
    What I've done is rebuilding all my packages with/for version x.y.0 of Perl, which according to what I've read should provide forward compatibility.
    In fact, the problem I was having with my modules is that I compiled perlbrew version w/o multi, thread and 64int, hence they were not compatible with default installl
    LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5

  9. #9
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    892
    I bet that was fun to figure out. Glad you got it.

  10. #10
    Senior Member
    Join Date
    May 2008
    Location
    Canada
    Posts
    3,284
    Quote Originally Posted by paul- View Post
    I bet that was fun to figure out. Glad you got it.
    You're so right - that was super painful as I'm certainly not a Perl guru
    LMS 7.7, 7.8 and 7.9 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBoxOne, XBMC, Foobar2000, ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2, , Pi B3, B2, Pi B+, 2xPi A+, Odroid-C1, Odroid-C2, Cubie2, Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5

Posting Permissions

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