Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 364831

Summary: [gnome-overlay] =dev-util/glade-3.10.0 must be slotted
Product: Gentoo Linux Reporter: nE0sIghT <ykonotopov>
Component: [OLD] GNOMEAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal CC: tetromino
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: glade-3.10.0 ebuild slotted to "0"
glade-3.8.0 ebuild with versioned .desktop

Description nE0sIghT 2011-04-25 18:53:32 UTC
As of now dev-util/glade-3.10.0 uses same slot "3" as dev-util/glade-3.8.0.

But this versions are very different. In the 3.10.0 support for libglade was dropped in favor of GtkBuilder.
So xml files based on libglade cann't be opened and error appears: (glade:12225): GladeUI-WARNING **: Couldnt recognize GtkBuilder xml, skipping /path/to/file.glade

I think it must be slotted if possible

Reproducible: Always

Steps to Reproduce:
1. Create .glade file with glade <=3.8 using libglade format
2. Try to open this file in newest glade-3.10.0
Actual Results:  
glade 3.10 fails with error: (glade:12225): GladeUI-WARNING **: Couldnt recognize GtkBuilder xml, skipping /path/to/file.glade

Expected Results:  
Legacy libglade files can be opened in glade 3.8
Comment 1 Rafał Mużyło 2011-04-25 19:45:03 UTC
That's more or less correct.
Actually, while I'm not 100% if that's still the case, 3.8 and 3.10 were meant to be able to be installed side-by-side.

3.10 drops everything pre-gtk+-3.0 - libglade, deprecated widgets, etc.
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-05-20 07:09:01 UTC
Created attachment 274079 [details]
glade-3.10.0 ebuild slotted to "0"

glade-3.10.0 and 3.8.0 are *almost* parallel-installable. The only problem is that their API documentation and gnome help files collide, and to avoid those collisions, we need to do a bit of sedding in the 3.10.0 ebuild. In addition, I believe that the Name fields in the .desktop file should be adjusted so that the user can easily pick the correct version of glade from an application chooser.

Since glade-3.8.0 installs its executable as /usr/bin/glade-3, while glade-3.10.0 use /usr/bin/glade, I believe it's most logical to make glade-3.10.0 slot "0".

The 3.10.0 ebuild incorporating these changes is attached. Note: to use it with the gnome overlay in its current state, you will probably need to override several ebuilds (e.g. libpeas) using a local overlay in order to specify the correct slot dependencies.
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-05-20 07:11:29 UTC
Created attachment 274081 [details]
glade-3.8.0 ebuild with versioned .desktop

And for the sake of completeness, here is a glade-3.8.0 ebuild that adjusts the Name parameters in its .desktop file to make it easier to tell which version of glade you are picking in an application selector.
Comment 4 Sebastian Pipping gentoo-dev 2011-06-14 18:19:14 UTC
I'm not on the gnome team but it looks like SLOT="3.10" in the gnome overlay by now.  If you need more changes applied provided patches (instead of whole ebuilds) may speed things up, just my 2 cents.
Comment 5 Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-06-14 18:29:38 UTC
This should be fixed in the overlay now. glade-3.10.0-r1 has been slotted to "3.10" and dependencies on glade in other ebuilds have been adjusted.
Comment 6 nE0sIghT 2011-06-15 14:42:20 UTC
Dependency must be fixed for dev-libs/libpeas. It depends on dev-util/glade-3.9.1:3
Comment 7 Nirbheek Chauhan (RETIRED) gentoo-dev 2011-06-15 16:06:34 UTC
(In reply to comment #6)
> Dependency must be fixed for dev-libs/libpeas. It depends on
> dev-util/glade-3.9.1:3

Fixed, thanks!
Comment 8 nE0sIghT 2011-06-15 18:40:19 UTC
Thanks a lot! I see no more problems with it.
3.8 and 3.10 successfully installs and works
Comment 9 Pacho Ramos gentoo-dev 2011-07-15 11:38:12 UTC
This was also solved in main tree