Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 874306 - dev-ruby/ruby-gtk3-4.0.5: version bump (and gtk4 support)
Summary: dev-ruby/ruby-gtk3-4.0.5: version bump (and gtk4 support)
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-02 19:55 UTC by Rafał Mużyło
Modified: 2024-02-12 23:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.