[Bug 590025] New: Come up with a sensible policy of g-ir files packaging
http://bugzilla.novell.com/show_bug.cgi?id=590025 http://bugzilla.novell.com/show_bug.cgi?id=590025#c0 Summary: Come up with a sensible policy of g-ir files packaging Classification: openSUSE Product: openSUSE 11.3 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Enhancement Priority: P5 - None Component: GNOME AssignedTo: bnc-team-gnome@forge.provo.novell.com ReportedBy: dominique.leuenberger@tmf-group.com QAContact: qa@suse.de Found By: --- Blocker: --- Current situation of gobject-introspection: - The .typelib and .gir are packaged into the library package. -> only the .typelib (in %_libdir subfolder) is required at runtime. The gir-files should be moved to the -devel package There is no dependency chain between an application based on gobject-introspection typelibs and the library. For example, lightsoff depends on clutter-gtk, but this is not reflected on the rpm requires and as such it's too simple to 'break' the system. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=590025 https://bugzilla.novell.com/show_bug.cgi?id=590025#c Dominique Leuenberger <dimstar@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|GNOME |GNOME Product|openSUSE 11.3 |openSUSE 11.4 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=590025 https://bugzilla.novell.com/show_bug.cgi?id=590025#c1 Vincent Untz <vuntz@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vuntz@novell.com --- Comment #1 from Vincent Untz <vuntz@novell.com> 2010-08-18 14:02:42 UTC --- We should probably just do the same thing as what is done for pkg-config: have a script in rpm that generates some typelib() (or gir-typelib()) provides. Also, we should tweak rpmlint to output a warning if a gir file is in a non-devel package (like the warning for .pc files ;-)). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=590025 https://bugzilla.novell.com/show_bug.cgi?id=590025#c2 --- Comment #2 from Dominique Leuenberger <dimstar@opensuse.org> 2010-08-19 08:29:10 UTC --- first attempt to hack on rpmlint (*.gir belongs to -devel) submitted to Base:Factory (SR#45807) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=590025 https://bugzilla.novell.com/show_bug.cgi?id=590025#c3 --- Comment #3 from Dominique Leuenberger <dimstar@opensuse.org> 2011-04-27 10:18:00 UTC --- (In reply to comment #0)
For example, lightsoff depends on clutter-gtk, but this is not reflected on the rpm requires and as such it's too simple to 'break' the system.
Started on implementing a autoreq/prov for typelib() based symbols. A found .typelib file provides in the rpm metadate (Example Avahi-0.6.typelib) typelib(Avahi) = 0.6 The 'Requires' part is pending. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=590025 https://bugzilla.novell.com/show_bug.cgi?id=590025#c4 --- Comment #4 from Dominique Leuenberger <dimstar@opensuse.org> 2011-04-27 12:38:14 UTC --- SR #68556 adds support to auto create Requires: and Provides: Provides typelib() for *.typelib found in a package Requires are extracted from *.js and *.py, can easily be extended in gi-find-deps.sh in gobject-introspection. Downside: we need to BuildRequire gobject-introspection-devel in more packages. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=590025 https://bugzilla.novell.com/show_bug.cgi?id=590025#c5 Dominique Leuenberger <dimstar@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Dominique Leuenberger <dimstar@opensuse.org> 2011-06-03 13:54:31 UTC --- The prov/req handler has been ported to RPM 4.9 hooks. as seen in G:F, this works already rather good (we get Provides and Requires. The part which adds Provides: has been submitted to openSUSE:Factory. That should probably be it... Based on the example given in c0, lightsoff now has:
rpm -q lightsoff --requires /bin/sh /bin/sh /bin/sh /bin/sh /bin/sh /usr/bin/env /usr/bin/gconftool-2 coreutils diffutils gnome-games-support = 3.0.0 rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 seed typelib(Clutter) typelib(GConf) typelib(GLib) typelib(Gio) typelib(GnomeGamesSupport) typelib(Gtk) typelib(GtkClutter) rpmlib(PayloadIsLzma) <= 4.4.6-1
=> Which is sufficient and more than what we'd ever have come up with manual Requires anyway :) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com