Technical support > Linux

gtksourceview2 is unmaintained, port to gtksourceview3?

(1/2) > >>

apo:
Hi,

I just wanted to forward a bug report to you. Apparently gtksourceview2 is obsolete and unmaintained upstream and gtksourceview3 is now the next best thing.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=885685

AFAICT SourceView.cpp is the only file that makes use of this library. Not sure how much work is required to port radiant to gtksourceview3 but I wanted to let you know anyway.

geever:

--- Quote from: apo on March 03, 2018, 04:48:26 pm ---I just wanted to forward a bug report to you. Apparently gtksourceview2 is obsolete and unmaintained upstream and gtksourceview3 is now the next best thing.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=885685
AFAICT SourceView.cpp is the only file that makes use of this library. Not sure how much work is required to port radiant to gtksourceview3 but I wanted to let you know anyway.

--- End quote ---

Thanks for the info. Do you happen to know if all GTK2 libraries will be gone or only the sourceview one is the problem? Also how much time we have to resolve the dependency issue?

I believe to use gtksourceview3 we need to port the whole mapeditor to gtk3 which is quite a big task - especially for me, I never worked with GTK before.

We have a few options: (from best to worst)

* Port UFORadiant to GTK3
* Switch to GTK-SourceView3 but stay on GTK2 (90% sure it is not possible, helps only if GTK2 will be still supported)
* Remove the TextEditor feature from UFORadiant (helps only if GTK2 will be still supported)
* Remove UFORadiant debian package (the game runs fine without it), upgrade to GTK3 later
So, worst case Debian repo will lose the map editor (temporarily), but obviously not ideal.

-geever

apo:

--- Quote from: geever on March 03, 2018, 11:44:25 pm ---Thanks for the info. Do you happen to know if all GTK2 libraries will be gone or only the sourceview one is the problem? Also how much time we have to resolve the dependency issue?

I believe to use gtksourceview3 we need to port the whole mapeditor to gtk3 which is quite a big task - especially for me, I never worked with GTK before.

We have a few options: (from best to worst)

* Port UFORadiant to GTK3
* Switch to GTK-SourceView3 but stay on GTK2 (90% sure it is not possible, helps only if GTK2 will be still supported)
* Remove the TextEditor feature from UFORadiant (helps only if GTK2 will be still supported)
* Remove UFORadiant debian package (the game runs fine without it), upgrade to GTK3 later
So, worst case Debian repo will lose the map editor (temporarily), but obviously not ideal.

- geever

--- End quote ---

Here is the complete list with all obsolete Gnome libraries:
https://lists.debian.org/debian-devel/2017/10/msg00300.html

At the moment only gtksourceview2 is a problem. I expect the next Debian development freeze at the end of the year so there is still some time left. We could also wait a little bit longer. At the moment the bug is not release-critical but it is very likely that this will change in the future.

I agree that porting to GTK3 would be ideal but I guess we could live with removing the Texteditor feature which seems to be the most reasonable and efficient solution for now. I would also take solution 2 if that's doable.  :) Removing UFORadiant is really a worst case scenario and I don't think it will be necessary.

P.S.: I know that you're short on contributors but if you want to get 2.6 into Debian I suggest to set autumn 2018 at the latest as a target otherwise it would be probably too late for Debian 10 aka Buster. It depends mostly on how quickly I can wrap my mind around the new build system and if there are any new (build-)dependencies although I believe we have everything related to C++ already  ;)

geever:
Status:
As I confirmed that GtkSourceView3 depends on Gtk3, I prepared the switch in small steps... but it failed:

Beside GtkSourceView UFORadiant depends on GtkGlExt for it's OpenGL rendering and gtkglext1 is not compatible with Gtk3.
I found a Gtkglext3 port on GitHub, but it is broken and abandoned - neither its automake scripts working..
Gtk 3.16+ supports GL rendering natively in a GlArea widget, so I tried to port our glwidget to it... GlArea widget however need OpenGL 3.2+ core profile at least.... so I failed for now.

What I'm gonna do is make gtksourceview2 an optional dependency, you you can compile UFORadiant with or without it. For Gtk3 I'm going to open a branch and will be a mid-term goal.

Yes, I would like to get 2.6 ready for Buster. The build system didn't change I believe. We have an experimental CMake setup, but it is unfinished. You can use our regular (custom) ./configure + make system. I'm not aware of any new dependencies.

Btw would it be possible to upgrade libpng in Buster? As I see testing still has 6.2 which is quite old. (8.0 we are compatible with for sure, 9.0 maybe not..)

hth,
-geever

apo:
Hi,

was there any progress with porting Radiant to GTKSourceView3 or even GTKSourceView4? The moment of truth has arrived and our Gnome team wants to remove GTKSourceView2 which has seen its last release in 2010.

Alternatively I could probably delay the removal by taking over maintainership of GtkSourceView2 but then in two years it really has to go.


--- Quote from: geever on May 16, 2018, 09:08:40 pm ---
Btw would it be possible to upgrade libpng in Buster? As I see testing still has 6.2 which is quite old. (8.0 we are compatible with for sure, 9.0 maybe not..)

hth,
-geever

--- End quote ---

libpng in Debian is pretty much up-to-date (current upstream version is 1.6.35 and Debian has 1.6.34)

Navigation

[0] Message Index

[#] Next page

Go to full version