glib/GTK update tentative [Split from Pidgin thread]

Discussion in 'Pandora OS (SuperZaxxon GNU/Linux)' started by notaz, Sep 29, 2014.

  1. notaz

    notaz Certified Guru

    Joined:
    Aug 23, 2005
    Messages:
    4,911
    Location:
    Lithuania
    glib could probably be updated in OS, it shouldn't be as problematic as updating something like QT.
     
    Tags:
    Silent-Hunter likes this.
  2. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,316
    Location:
    France, near Lyon
    OOOh ! That would be great if you could do that, as many things are rather difficult to compile because they need a more recent glib (like at least a 2.30).
     
  3. sebt3

    sebt3 homebrew player (P. & C.)

    Joined:
    Sep 9, 2008
    Messages:
    4,745
    Location:
    France
    And if you do so, update GTK too please.
     
  4. notaz

    notaz Certified Guru

    Joined:
    Aug 23, 2005
    Messages:
    4,911
    Location:
    Lithuania
    It looks like there were quite a few ABI changes though, chances are some PNDs will break:

    http://upstream-tracker.org/versions/glib.html

    Hopefully benefits will outweight the problems..

    That's a whole different weight category..
     
  5. notaz

    notaz Certified Guru

    Joined:
    Aug 23, 2005
    Messages:
    4,911
    Location:
    Lithuania
    Ok compiled glib 2.34, installed on my pandora and Xfce no longer starts, seems to be crashing.

    glib is really not keeping binary compatibility, good thing I haven't pushed out an update for everyone..

    About making different versions coexist, OE doesn't offer such functionality, and it's like creating a fork anyway, maintaining compatibility for these PNDs linked against a fork will only bring headaches in future. It won't solve the problem anyway - say some PND is linked against a forked glib and a few other libs in firmware; but one of those firmware libs is linked against "main" glib. You end up having both glibs loaded into the same process, lots of duplicate name functions (but with different content) in symbol table, and the dynamic linker will link random function to your program, so you crash anyway.
     
    Last edited by a moderator: Sep 30, 2014
  6. Silent-Hunter

    Silent-Hunter Hardcore Member

    Joined:
    May 29, 2010
    Messages:
    2,996
    Well, if you can figure it out, great! If not, oh well at least you tried. Right?
     
  7. Ziz

    Ziz Advanced Member

    Joined:
    Sep 10, 2006
    Messages:
    1,584
    I don't really understand, why they don't release ABI changed versions with a new name like glibc234.so or similar... However: Static linking?
     
    Last edited by a moderator: Sep 30, 2014
  8. notaz

    notaz Certified Guru

    Joined:
    Aug 23, 2005
    Messages:
    4,911
    Location:
    Lithuania
    Sort of a progress report from last night:

    After recompiling xfce4-session Xfce started again, but it's broken all over the place, gnome-keyring errors out so no wifi, even terminal doesn't start. Logs show lots of errors from gtk, so I tried recompiling it but of course it failed because it relies on some macros in old glib. Then tried updating gtk, but problems there again as newer gtk was split into 2 libs (gdk-pixbuf split out). Recipe from newer OE failed but after more hacking it finally compiled, after more pain gtk compiled too. Starting OS build now resulted in yet another failure of atk lib, again because of glib, updating that we get glade failing to build, but haven't checked that one yet.

    So it's horrible dependency hell, I wish I never started this. Makes me wonder how distribution maintainers cope with all this, I guess picking all newest versions of everything results in somewhat working system as the developers are using everything this way, but it seems updating single gnome component is just suicide.
     
  9. Silent-Hunter

    Silent-Hunter Hardcore Member

    Joined:
    May 29, 2010
    Messages:
    2,996
    Ah well, I wouldn't bother then. Will the Pyra at least have the right version?
     
  10. ptitSeb

    ptitSeb Serial Porter

    Joined:
    Aug 15, 2012
    Messages:
    8,316
    Location:
    France, near Lyon
    I do agree and share the pain! I tried also to updated glib and friends for codeblocks... And yes, dependencies hell!
     
  11. mcobit

    mcobit Advanced Member

    Joined:
    Jul 28, 2008
    Messages:
    6,755
    Only solution I could think of is to install them seperately in /usr/local for example and package them in a pnd that overlays them to the correct system path when mounted. So application maintainers need to get them from there if newer programs need them.
     
    Silent-Hunter likes this.
  12. notaz

    notaz Certified Guru

    Joined:
    Aug 23, 2005
    Messages:
    4,911
    Location:
    Lithuania
    It still won't work if the PND loads any "usual" libs that use glib too, it all will just crash.
     
    dimag0g likes this.
  13. Silent-Hunter

    Silent-Hunter Hardcore Member

    Joined:
    May 29, 2010
    Messages:
    2,996
    Then it just needs to include ALL libs that use glib inside the PND. Yes, that will make the PND very large, but it's worth it.
     
  14. mcobit

    mcobit Advanced Member

    Joined:
    Jul 28, 2008
    Messages:
    6,755
    I built glic, gtk3 and all the dependencies in codeblocks and installed them in a separate folder. Then compiled apps against them and it was working fine actually.
     
  15. Silent-Hunter

    Silent-Hunter Hardcore Member

    Joined:
    May 29, 2010
    Messages:
    2,996
    Well hopefully Fahrstuhl can do that with Pidgin.
     
  16. comradekingu

    comradekingu Glowing ember

    Joined:
    Apr 15, 2011
    Messages:
    4,935
    In debian glibc is behind, and xfce4 isnt new. I hope LXqt can replace it so that one is more free to ship updated libraries.
     
  17. notaz

    notaz Certified Guru

    Joined:
    Aug 23, 2005
    Messages:
    4,911
    Location:
    Lithuania
    glibc is not involved, it's doing a real good job maintaining the ABI and has versioned symbols in case they need to change anything.

    It's GLib (GNOME Lib?).
     
  18. notaz

    notaz Certified Guru

    Joined:
    Aug 23, 2005
    Messages:
    4,911
    Location:
    Lithuania
    Ok after lots of pain I have got the latest glib and gtk2 building, xfce seems to be booting and working.
     
    I hope I can get some help with testing before it's all pushed to main OS update as lots of other libs had to be updated to build and work with latest glib.
     
    To test, you have to change /etc/opkg/openpandora.org-feed.conf to point to my test feed instead:

    Then run OS update as usual.
     
    Edit: everything has been pushed to official feeds as 1.62-rc, see 1.62 thread:

    http://boards.openpandora.org/topic/17176-superzaxxon-v162rc-released/
     
    Last edited by a moderator: Feb 6, 2016
  19. Silent-Hunter

    Silent-Hunter Hardcore Member

    Joined:
    May 29, 2010
    Messages:
    2,996
    As I need my Pandora, I can't help you test this, but I really hope it works out! :D
     
  20. EvilDragon

    EvilDragon Administrator Staff Member

    Joined:
    Mar 4, 2003
    Messages:
    19,624
    Location:
    Ingolstadt
    Just upgraded as well and have to give out a small warning:

    After upgrading and rebooting, XFCE4 didn't run (always went back to the login screen).

    I booted into CLI mode and renamed my home-directory in order to get a clean one.

    After doing that, it booted up find and is working without issues so far.

    On my old profile, I changed some things such as font sizes, etc.

    Seems like the profiles are not 100% compatible, so for an official update, we probably need to delete custom XFCE4-Settings before the upgrade.
     

Share This Page

Loading...