lsb

Type entries can't move

Bug #1333876 reported by Jeff Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lsb
In Progress
Medium
Unassigned
Mandriva
In Progress
Medium

Bug Description

During the gtk-stack uplift work, it apparently turned out one type had to be
moved, gfloat. The old gfloat belonged to headergroup 612 (Default Header
Section for glib-2.0/glib-object.h), and was listed as belonging to
libgobject-2.0. The new gfloat belongs to headergroup 928 (Arch Specific
Header Section for glib-2.0/glib.h) and listed as belonging to libglib-2.0.

The problem is, the schema doesn't really have any support for moving types.
For several changes recently we've ignored the issue and treated is as a "bug"
- just changing globally. With Theadgroup and Tlibrary part of the Type
record, you can't really do other than create a new entry with new values if
this isn't what you want. For the gfloat case, the ArchType entries were
expired and a new one was made. But two very important uses for Type entries,
interface return types and parameters, were not updated with the new type.
Right now, no parameters using the new one.

Navigator consistency checker sees this, without being able to spot the reason
(although that's not necessarily a requirement):

Excluded Types Used as Parameters of Included Interfaces (37 entries)
Name Ttype Header Library
...
gfloat Typedef glib-2.0/glib-object.h libgobject-2.0

Not sure I see how to make this better, but promised to file a bug to record
the issue.

We have these interfaces with old gfloat as the return type:

+-------+------------------------------------+----------+
| AIint | Iname | AIreturn |
+-------+------------------------------------+----------+
| 31368 | g_value_get_float | 11843 |
| 33664 | gtk_entry_get_alignment | 11843 |
| 34429 | gtk_tree_view_column_get_alignment | 11843 |
+-------+------------------------------------+----------+

and these interfaces with old gfloat as a parameter:

+------------------------------------+-------+------+-------+
| Iname | Pint | Ppos | Ptype |
+------------------------------------+-------+------+-------+
| g_value_set_float | 31252 | 2 | 11843 |
| g_param_spec_float | 31322 | 4 | 11843 |
| g_param_spec_float | 31322 | 5 | 11843 |
| g_param_spec_float | 31322 | 6 | 11843 |
| gdk_pixbuf_saturate_and_pixelate | 32111 | 3 | 11843 |
| gtk_frame_set_label_align | 33003 | 2 | 11843 |
| gtk_frame_set_label_align | 33003 | 3 | 11843 |
| gtk_aspect_frame_new | 33110 | 2 | 11843 |
| gtk_aspect_frame_new | 33110 | 3 | 11843 |
| gtk_aspect_frame_new | 33110 | 4 | 11843 |
| gtk_curve_set_gamma | 33115 | 2 | 11843 |
| gtk_curve_set_range | 33264 | 2 | 11843 |
| gtk_curve_set_range | 33264 | 3 | 11843 |
| gtk_curve_set_range | 33264 | 4 | 11843 |
| gtk_curve_set_range | 33264 | 5 | 11843 |
| gtk_aspect_frame_set | 33823 | 2 | 11843 |
| gtk_aspect_frame_set | 33823 | 3 | 11843 |
| gtk_aspect_frame_set | 33823 | 4 | 11843 |
| gtk_tree_view_scroll_to_cell | 34057 | 5 | 11843 |
| gtk_tree_view_scroll_to_cell | 34057 | 6 | 11843 |
| gtk_tree_view_column_set_alignment | 34349 | 2 | 11843 |
| gtk_alignment_new | 34572 | 1 | 11843 |
| gtk_alignment_new | 34572 | 2 | 11843 |
| gtk_alignment_new | 34572 | 3 | 11843 |
| gtk_alignment_new | 34572 | 4 | 11843 |
| gtk_misc_set_alignment | 34592 | 2 | 11843 |
| gtk_misc_set_alignment | 34592 | 3 | 11843 |
| gtk_button_set_alignment | 34727 | 2 | 11843 |
| gtk_button_set_alignment | 34727 | 3 | 11843 |
| gtk_alignment_set | 34730 | 2 | 11843 |
| gtk_alignment_set | 34730 | 3 | 11843 |
| gtk_alignment_set | 34730 | 4 | 11843 |
| gtk_alignment_set | 34730 | 5 | 11843 |
| gtk_entry_set_alignment | 35009 | 2 | 11843 |
| gdk_pixbuf_simple_anim_new | 97497 | 2 | 11843 |
| gtk_icon_view_scroll_to_path | 97506 | 3 | 11843 |
| gtk_icon_view_scroll_to_path | 97506 | 4 | 11843 |
+------------------------------------+-------+------+-------+

Changed in mandriva:
importance: Unknown → Medium
status: Unknown → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.