Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 167890 - dev-perl/gtk2-perl: wrong mapping of Gtk2::TreeModelSort->convert_child_iter_to_iter() - patch suggestion
Summary: dev-perl/gtk2-perl: wrong mapping of Gtk2::TreeModelSort->convert_child_iter_...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Perl team
URL: http://www.mail-archive.com/debian-bu...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-21 16:44 UTC by Jan Holecek
Modified: 2007-02-26 15:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
A suggested patch. (gtk2-perl-1.142-iter.patch,585 bytes, patch)
2007-02-21 16:47 UTC, Jan Holecek
Details | Diff
A new ebuild I have in my portage overlay. (gtk2-perl-1.142-r1.ebuild,761 bytes, text/plain)
2007-02-21 16:54 UTC, Jan Holecek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Holecek 2007-02-21 16:44:56 UTC
The bug is described in detail and located at http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg301434.html

Basically, it is a cut-and-paste error which effectively maps Gtk2::TreeModelSort->convert_child_iter_to_iter() to gtk_tree_model_sort_convert_iter_to_child_iter().

The bug is present both in version 1.102 and version 1.142 (and all in between, I guess). I will try to get the Perl module fixed. In the meantime, I suggest to add a revision with a patch to its mainstream ebuilds as version 1.143 will not be marked stable on most platforms in a while anyway.

Reproducible: Always

Steps to Reproduce:
anything like 
$sort_iter = $model_sort->convert_child_iter_to_iter ($iter);
in the code
Actual Results:  
the application than complains:
Gtk-CRITICAL **: gtk_tree_model_sort_convert_iter_to_child_iter: assertion `VALID_ITER (sorted_iter, tree_model_sort)' failed
Comment 1 Jan Holecek 2007-02-21 16:47:03 UTC
Created attachment 110844 [details, diff]
A suggested patch.

It should work for other versions of dev-perl/gtk2-perl, too.
Comment 2 Jan Holecek 2007-02-21 16:54:21 UTC
Created attachment 110847 [details]
A new ebuild I have in my portage overlay.
Comment 3 Michael Cummings (RETIRED) gentoo-dev 2007-02-26 15:39:00 UTC
Tested application to all versions, did a few complete compiles just to be safe too :) Thanks so much Jan, sorry for the delay