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

Bug 874306

Summary: dev-ruby/ruby-gtk3-4.0.5: version bump (and gtk4 support)
Product: Gentoo Linux Reporter: Rafał Mużyło <galtgendo>
Component: Current packagesAssignee: Gentoo Ruby Team <ruby>
Status: CONFIRMED ---    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Rafał Mużyło 2022-10-02 19:55:08 UTC
So, the whole ruby-gnome set is due to a bump.

Builds fine with old ebuilds.

Though two important points:

- it now supports gtk4, so needs new ruby-gdk4 and ruby-gtk4 packages; ebuilds for ruby-g{d,t}k3, after obvious correction, work

- ruby-gtksourceview5 is *technically* missing, but minor edits to ruby-gtksourceview4 (changing the require lines in loader.rb and 'loader.version = "5"' in gtksourceview5.rb) result in a working package (well, not sure about the old deprecation warnings, but apps using sourceview4 ported from gtk3 to gtk4 work with sourceview5) (wasn't sure how to do it properly with the eclass (like would need some pushd/popd and seding/patching after coping, but I feared build process would fail due to the new dir being initially missing in the unpacked tarball), so just copied the three files with mentioned name and content changes - seems to work)

I've imported the three git patches - 2 for ruby-glib and one for gtk4 (that one is somewhat important, as it affect the constructor of ScrolledWindow).
Comment 1 Rafał Mużyło 2022-12-15 16:29:00 UTC
So, 4.0.5 has been released - now the missing gtksouceview5 has been added.

Also, I've just noticed ruby-g{d,t}k3 had never been added to the tree...
Comment 2 Rafał Mużyło 2024-02-12 22:42:26 UTC
So, comment 2 happened during time of total nonsense, that is between commits bef117fb18f532904a0185e320c6d3861e32717e and 94e1d66dc18dc27d84be13a388739e0aa362f1ab - congratulations for the first one BTW.

In the meantime, there have been quite a few updates to ruby-gnome...

Yet gtk4 bindings haven't been added.

Neither ruby-gtksouceview had been restored and for all the stupidity of the solution in gtksourceview/gtksourcecontextengine.c:analyze_line (by my reading of sources, there's no way to restore the widget to a fully working condition once the timeout is hit, as GtkSourceContextEngine is private...well, other than patching that part out), a widget with working syntax highlighting is quite useful.
Comment 3 Rafał Mużyło 2024-02-12 23:43:25 UTC
...well, actually, (though I've got yet to test it) resetting the language *might* fix that problem (by dropping the broken instance of the engine), but other than 'use the source, Luke', it's not documented anywhere AFAICT.