[gtkada] Obsolescent packages

Thomas De Contes d.l.tDeContes at free.fr
Wed Jan 27 05:54:36 CET 2021


Hi :-)



As RAPID maintainer, I try to update RAPID to compile with more recent GtkAda.

Currently, it compiles with GtkAda 2.24.4, from ubuntu 16.04.
I try to update it to GtkAda 16.1.0, from ubuntu 18.04, before the end of life of ubuntu 16.04 soon.
(I don't understand if it's actually version 16.1.0 or 17.0:
https://packages.ubuntu.com/bionic/libgtkada16.1.0-dev )



I start from the Releases Tags:
https://github.com/AdaCore/gtkada/tags

Then I look at gtkada-2.24.3:
https://github.com/AdaCore/gtkada/commit/124db892040cd356942b28b9286414857126c1dd
and gtkada-3.4.0:
https://github.com/AdaCore/gtkada/commit/f405b9e6f5b77a55e312cd54f9155ecd03619bf9


When I compile, I get:
mcc-tki-widget-dropdown.adb:30:09: warning: with of obsolescent package "Combo" declared at gtk-combo.ads:64

Then in gtkada-2.24.3, I look at gtk-combo.ads:
https://github.com/AdaCore/gtkada/blob/124db892040cd356942b28b9286414857126c1dd/src/generated/gtk-combo.ads

l54:
--  </description>
--  <screenshot>gtk-combo</screenshot>
--  <group>Obsolescent widgets</group>
--  <see>Gtk.Combo_Box</see>

l70:
package Gtk.Combo is
   pragma Obsolescent;

Fine. So I'm not surprised to not find gtk-combo.ads in gtkada-3.4.0.


Now, I have something to do with Gtk.Pixmap. So I look at gtk-pixmap.ads:
https://github.com/AdaCore/gtkada/blob/124db892040cd356942b28b9286414857126c1dd/src/generated/gtk-pixmap.ads

l30:
--  <description>
--
--
--  </description>
--  <group>Obsolescent widgets</group>

l47:
package Gtk.Pixmap is

... and no "pragma Obsolescent;" !

Then, I AM surprised to not find gtk-pixmap.ads in gtkada-3.4.0 !

I deduce from that Gtk.Pixmap is actually Obsolescent.



Well, there are 2 questions:

1
Why "pragma Obsolescent;" was not set for Gtk.Pixmap ?

2
How to know the list of Obsolescent packages that my project uses ?

Maybe I can recover it if it is possible to:
- get a list of actually Obsolescent packages of gtkada-2.24.3 or 2.24.4
- get a list of all GtkAda packages that my project actually uses

Then, I could find packages that are in both lists, and have an idea of work ahead of me.
I'll just have to find where they are used ...


Hope there'll be someone to help me. :-)



-- 
RAPID maintainer
http://savannah.nongnu.org/projects/rapid/



More information about the gtkada mailing list