Il 03/01/2024 22:59, Simon McVittie ha scritto:
This is off-topic for #1059678, really, so I'm converting it into a separate bug report.Yes, if your application does this:import gi gi.require_version('Gtk', '3.0') gi.require_version('XApp', '1.0') from gi.repository import GLib, Gio, Gtk, Gdk, XAppin a required component, then it should have dependencies on gir1.2-gtk-3.0, gir1.2-xapp-1.0, gir1.2-glib-2.0, gir1.2-gio-2.0 and gir1.2-gdk-3.0, as well as python3-gi. (gir1.2-gio-2.0 is a virtual package provided by gir1.2-glib-2.0, and gir1.2-gdk-3.0 is a virtual package provided by gir1.2-gtk-3.0, so strictly speaking you don't need to add those two dependencies, but I think it's clearer and more robust to write them out explicitly rather than thinking about how to minimize the list.) If the dependencies are in an unimportant part of the package (like the plugins in exaile, #1059625), then it would be OK to downgrade them to Recommends or Suggests, or perhaps even close this bug with no action. Conversely, if cinnamon-session-quit.py is an important part of this package, then they should be hard dependencies (and this bug report should be RC). More generally, if your application loads FooBar-2.3.typelib, then it should usually have a dependency on gir1.2-foobar-2.3. The package names are mechanically derived from the typelib name. Please seefile:///usr/share/doc/gobject-introspection/policy.txt.gz for more information. If there are other Cinnamon components that import typelibs via PyGObject (or cjs or gjs) but don't have a dependency on the required typelib, then please fix those too.
Thanks for the report, cinnamon-session 5.8.1-2 don't have python files, cinnamon-session-quit.py was added in 6.0, is in salsa git for next upload to experimental for now, I have added the python and gir deps and I'll add other gir deps for the packages will be splitted, based on what you wrote in cjs bugreport, I'll check also other components when preparing 6.0 packages
OpenPGP_signature.asc
Description: OpenPGP digital signature