Announcement

Collapse
No announcement yet.

Jivelite needs a version bump

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Jivelite needs a version bump

    > The big hassle now would be replacing the default lua-jit interpreter
    > for all jivelite builds with the lua 5.1.5 sources from squeezeplay.


    Isn't this what you said you did for pCP?
    Michael

    "It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
    (LMS: Settings/Information)

    #2
    Jivelite needs a version bump

    Hi @ralphy

    Jivelite seems to be stuck at version 0.1.0. This fails installation of some applets which require something like "7.*". See eg. http://forums.slimdevices.com/showthread.php?t=110089. Could that version be bumped to something a bit more current?
    Michael

    "It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
    (LMS: Settings/Information)

    Comment


      #3
      Triode hard coded the JIVE_VERSION to 0.1.0 in jivelite during development because he used lua-jit which is not 100% syntax compatible with the lua 5.1 used in the jive based players.

      Most of the 3rd party applets I've tried don't work with a lua-jit based jivelite.

      It's the main reason I changed jivelite for picoreplayer to use the same lua 5.1 version as the squeezeplay players.

      For picoreplayer I will change the version with an update to the extension, but that's going take a bit as I don't have my pcp build environments online.

      In the meantime, here's how to temporarily override the version in pcp.

      # create jive folder and copy JiveMain.lua

      sudo mkdir -p /home/tc/.jivelite/userpath/jive
      sudo cp -p /opt/jivelite/share/jive/jive/JiveMain.lua /home/tc/.jivelite/userpath/jive/

      # Using vi add the line _G["jive"].JIVE_VERSION = "8.0.0" above the comment line before local io as shown in the patch below.
      # Don't include the leading + sign(s).

      sudo vi /home/tc/.jivelite/userpath/jive/JiveMain.lua

      Code:
      --- /opt/jivelite/share/jive/jive/JiveMain.lua
      +++ /home/tc/.jivelite/userpath/jive/JiveMain.lua
      @@ -18,6 +18,8 @@
       =cut
       --]]
       
      +_G["jive"].JIVE_VERSION = "8.0.0"
      +
       -----------------------------------------------------------------------------------------
       local io            = require("io")
       -----------------------------------------------------------------------------------------
      Quit jivelite from the menu and when it restarts version 8.0.0 will be reported from the applet installer.

      Code:
      [22-11-07 07:24:24.1760] Slim::Plugin::Extensions::Plugin::_parseXML (501) searching http://ralph.irving.sdf.org/extensions/sigen.xml for type: [B]applet target: jivelite version: 8.0.0[/B]
      After you've confirmed the change, don't forget to backup the pcp configuration pcp bu or you'll loose it at the next reboot.

      NB: /var/log/jivelite.log will still report JiveLite 0.1.0 as the version.
      Ralphy

      1-Touch, 5-Classics, 3-Booms, 2-UE Radio
      Squeezebox client builds donations always appreciated.

      Comment


        #4
        Jivelite needs a version bump

        > Triode hard coded the JIVE_VERSION to 0.1.0 in jivelite during
        > development because he used lua-jit which is not 100% syntax compatible
        > with the lua 5.1 used in the jive based players.


        Ah, I see. I wonder why he didn't opt for a custom target. That would
        have given applet developers more flexibility.

        Is the difference in Lua runtime worth the hassle?

        Thanks for this insight!
        Michael

        "It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
        (LMS: Settings/Information)

        Comment


          #5
          @ralphy

          Thanks, just verified the work around you provided.

          Applets now show and can be installed!

          It is working but had a question

          You wrote:
          [22-11-07 07:24:24.1760] Slim::Plugin::Extensions::Plugin::_parseXML (501) searching http://ralph.irving.sdf.org/extensions/sigen.xml for type: applet target: jivelite version: 8.0.0

          Where would I see this? In the regular LMS logs? Somewhere else?

          Comment


            #6
            Note: Both ScreenSwitcher and CustomClock work when manually installed.

            CustomClock and ScreenSwitcher are installable now with the work around.

            Boith show installed.

            ScreenSwitcher works.
            CustomClock does not work, new custom clock menu items are not selectable.

            Comment


              #7
              Thanks Michael
              Thanks Ralphy

              Comment


                #8
                Jivelite needs a version bump

                > [22-11-07 07:24:24.1760] Slim::Plugin::Extensions::Plugin::_parseXML
                > (501) searching http://ralph.irving.sdf.org/extensions/sigen.xml for
                > type: applet target: jivelite version: 8.0.0
                >
                > Where would I see this? In the regular LMS logs? Somewhere else?


                Enable logging for plugin.extensions.
                Michael

                "It doesn't work - what shall I do?" - "Please check your server.log and/or scanner.log file!"
                (LMS: Settings/Information)

                Comment


                  #9
                  Originally posted by bengaldave View Post
                  @ralphy

                  Thanks, just verified the work around you provided.

                  Applets now show and can be installed!

                  It is working but had a question

                  You wrote:
                  [22-11-07 07:24:24.1760] Slim::Plugin::Extensions::Plugin::_parseXML (501) searching http://ralph.irving.sdf.org/extensions/sigen.xml for type: applet target: jivelite version: 8.0.0

                  Where would I see this? In the regular LMS logs? Somewhere else?
                  I was just highlighting the fact that the jivelite version 8.0.0 is now reported. You won't see this exact log entry unless you have the above url setup in LMS.
                  Ralphy

                  1-Touch, 5-Classics, 3-Booms, 2-UE Radio
                  Squeezebox client builds donations always appreciated.

                  Comment


                    #10
                    Originally posted by mherger View Post
                    Ah, I see. I wonder why he didn't opt for a custom target. That would
                    have given applet developers more flexibility.

                    Is the difference in Lua runtime worth the hassle?

                    Thanks for this insight!
                    lua-jit is "suppose" to be faster than standard lua, but I've never seen any significant speed improvements between lua-jit jivelite and lua 5.1 based jivelite.

                    The big hassle now would be replacing the default lua-jit interpreter for all jivelite builds with the lua 5.1.5 sources from squeezeplay.
                    Ralphy

                    1-Touch, 5-Classics, 3-Booms, 2-UE Radio
                    Squeezebox client builds donations always appreciated.

                    Comment


                      #11
                      Originally posted by mherger View Post
                      > The big hassle now would be replacing the default lua-jit interpreter
                      > for all jivelite builds with the lua 5.1.5 sources from squeezeplay.


                      Isn't this what you said you did for pCP?
                      Yes. that's correct.

                      I was talking in general as I build jivelite for many platforms and most of them are still using lua-jit.
                      Ralphy

                      1-Touch, 5-Classics, 3-Booms, 2-UE Radio
                      Squeezebox client builds donations always appreciated.

                      Comment


                        #12
                        The jivelite extension has been upgraded for picoreplayer 8.x, it now reports 8.0.0 as the version to LMS.

                        To update, navigate to the Tweaks page in the pcp webadmin and click the Update button in the Jivelite Setup section.

                        If you've installed the work around from post #2 you should delete the file /home/tc/.jivelite/userpath/jive/JiveMain.lua and backup the configuration to remove it before installed the new build.

                        Using the work around jivelite still reports the version as 0.1.0 in /var/log/jivelite.log
                        Code:
                        cat /var/log/jivelite.log 
                        Using /dev/fb0 as frame buffer device.
                        Frame rate set to 22 frames per second.
                        Frame buffer color bit depth set to 32.
                        
                        JiveLite 0.1.0
                        The updated extension reports the modified version and revision.
                        Code:
                        cat /var/log/jivelite.log 
                        Using /dev/fb0 as frame buffer device.
                        Frame rate set to 22 frames per second.
                        Frame buffer color bit depth set to 32.
                        
                        JiveLite 8.0.0-r208
                        Ralphy

                        1-Touch, 5-Classics, 3-Booms, 2-UE Radio
                        Squeezebox client builds donations always appreciated.

                        Comment


                          #13
                          @ralphy

                          Thanks for updating this!

                          looks good.

                          Deleted the directory
                          /home/tc/.jivelite/userpath/jive

                          Rebooted

                          Ran the tweaks update

                          after another reboot,

                          plugins that should be showing as "available to be installed" are still there.

                          All that is left is to fix installing custom clock. Custom Clock was always instalable, but would try to install the one NOT meant for picoreplayer and fails, needs to be manually installed.
                          Last edited by bengaldave; 2022-11-21, 23:09.

                          Comment

                          Working...
                          X