[Bug 1200614] New: difficult to detect that python3-gobject-Gdk is missing
http://bugzilla.opensuse.org/show_bug.cgi?id=1200614 Bug ID: 1200614 Summary: difficult to detect that python3-gobject-Gdk is missing Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.3 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: screening-team-bugs@suse.de Reporter: ossman@cendio.se QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- This is an issue that mostly affects third party or user installed programs, but would still be nice to get fixed. A Python GTK program generally does:
import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk
Error management should be around gi.require_version() to handle if GTK is missing. On all other distributions this works, but not on SUSE. The reason being that some critical components have been packaged in python3-gobject-Gdk. This causes the above code to succeed. But things will crash on random places later, whenever the code hits something that is missing. This is similar to bug 1179584, but doesn't have a similar obvious fix. Ideally, GTK's typelib should have a requirement on python3-gobject-Gdk if python3-gobject is installed. I think this is possible on newer RPM, but I don't know if openSUSE LEAP 15 has a sufficiently new RPM. Packages designed specifically for SUSE can solve this by explicitly depending on python3-gobject-Gdk. But things installed in other ways can't rely on that. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1200614 Pierre Ossman <ossman@cendio.se> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugzilla.opensuse.or | |g/show_bug.cgi?id=1179584 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1200614 http://bugzilla.opensuse.org/show_bug.cgi?id=1200614#c1 Dominique Leuenberger <dimstar@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dimstar@opensuse.org Resolution|--- |FIXED --- Comment #1 from Dominique Leuenberger <dimstar@opensuse.org> --- Added this to gtk3 (and gtk4 as well): Index: gtk3.changes =================================================================== --- gtk3.changes (revision 413) +++ gtk3.changes (revision 132) @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Fri Jun 17 08:35:00 UTC 2022 - Dominique Leuenberger <dimstar@opensuse.org> + +- Add dependency "python3x-gobject-Gdk if python3x-gobject" to the + typelib package (boo#1200614). + +------------------------------------------------------------------- Thu May 19 09:52:28 UTC 2022 - Antoine Belvire <antoine.belvire@opensuse.org> - Update to version 3.24.34: Index: gtk3.spec =================================================================== --- gtk3.spec (revision 413) +++ gtk3.spec (revision 132) @@ -143,6 +143,9 @@ %package -n typelib-1_0-Gtk-3_0 Summary: Introspection bindings for the GTK+ toolkit library (version 3) Group: System/Libraries +Requires: (python310-gobject-Gdk if python310-gobject) +Requires: (python38-gobject-Gdk if python38-gobject) +Requires: (python39-gobject-Gdk if python398-gobject) %description -n typelib-1_0-Gtk-3_0 GTK+ is a multi-platform toolkit for creating graphical user interfaces. both changes are submitted to the devel project and should land reasonably soon. That should make things a bit more robust -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1200614 http://bugzilla.opensuse.org/show_bug.cgi?id=1200614#c2 --- Comment #2 from Pierre Ossman <ossman@cendio.se> --- Awesome! Will this be updated in both Tumbleweed and LEAP? And what's the relationship with SLE? Will SLE 15 (or even SLE 12) get this fix?
+Requires: (python39-gobject-Gdk if python398-gobject)
Was "398" perhaps a typo? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1200614 http://bugzilla.opensuse.org/show_bug.cgi?id=1200614#c3 Dominique Leuenberger <dimstar@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Other |GNOME Version|Leap 42.3 |Leap 15.4 Assignee|screening-team-bugs@suse.de |yfjiang@suse.com --- Comment #3 from Dominique Leuenberger <dimstar@opensuse.org> --- (In reply to Pierre Ossman from comment #2)
Awesome!
Will this be updated in both Tumbleweed and LEAP?
Will pass the bug to Yifan for SLE/Leap (SLE and Leap share this package)
And what's the relationship with SLE? Will SLE 15 (or even SLE 12) get this fix?
+Requires: (python39-gobject-Gdk if python398-gobject)
Was "398" perhaps a typo?
Yup - of course that was also python39- -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1200614 http://bugzilla.opensuse.org/show_bug.cgi?id=1200614#c4 Dominique Leuenberger <dimstar@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |--- --- Comment #4 from Dominique Leuenberger <dimstar@opensuse.org> --- Reopening - to keep the Leap part visible -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1200614 http://bugzilla.opensuse.org/show_bug.cgi?id=1200614#c5 --- Comment #5 from OBSbugzilla Bot <bwiedemann+obsbugzillabot@suse.com> --- This is an autogenerated message for OBS integration: This bug (1200614) was mentioned in https://build.opensuse.org/request/show/983440 Factory / gtk3 https://build.opensuse.org/request/show/983441 Factory / gtk4 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1200614 http://bugzilla.opensuse.org/show_bug.cgi?id=1200614#c6 --- Comment #6 from OBSbugzilla Bot <bwiedemann+obsbugzillabot@suse.com> --- This is an autogenerated message for OBS integration: This bug (1200614) was mentioned in https://build.opensuse.org/request/show/986586 Factory / gtk4 https://build.opensuse.org/request/show/986587 Factory / gtk3 -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com