Bug 73206

Summary: WebKitGTK+-1.7.2 build error due to a reference to gdk_disable_multidevice()
Product: WebKit Reporter: Stefan Zwanenburg <stefanhetzwaantje>
Component: WebKitGTKAssignee: Mario Sanchez Prada <mario>
Status: RESOLVED FIXED    
Severity: Major CC: mario, mrobinson, webkit.review.bot
Priority: P2    
Version: 420+   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Build log.
none
Proposed patch.
none
Patch none

Stefan Zwanenburg
Reported 2011-11-28 04:47:38 PST
Created attachment 116735 [details] Build log. I ran into the following bug on my Gentoo machine: https://bugs.gentoo.org/show_bug.cgi?id=391963. You'll find a full build log as an attachment to that bug (but I'll attach it here anyway). The problem seems to be that the "testatk" test calls a function that's been introduced in gtk3, which causes an error when WebKit gets built against gtk2. I submitted a patch on the Gentoo bugtracker, which I'll also attach here.
Attachments
Build log. (256.15 KB, application/octet-stream)
2011-11-28 04:47 PST, Stefan Zwanenburg
no flags
Proposed patch. (508 bytes, patch)
2011-11-28 04:48 PST, Stefan Zwanenburg
no flags
Patch (1.36 KB, patch)
2011-11-28 11:18 PST, Mario Sanchez Prada
no flags
Stefan Zwanenburg
Comment 1 2011-11-28 04:48:55 PST
Created attachment 116736 [details] Proposed patch.
WebKit Review Bot
Comment 2 2011-11-28 04:52:01 PST
Attachment 116736 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files']" exit_code: 1 Total errors found: 0 in 0 files If any of these errors are false positives, please file a bug against check-webkit-style.
Martin Robinson
Comment 3 2011-11-28 08:52:55 PST
Looks like testatk needs some GTK 2.x love or we should finally decide to drop GTK+ 2.x.
Mario Sanchez Prada
Comment 4 2011-11-28 09:26:32 PST
(In reply to comment #3) > Looks like testatk needs some GTK 2.x love or we should finally decide to drop GTK+ 2.x. I think this problem could be easily solved by just replacing that initializeTestingFramework() function with a regular call to gtk_test_init() + g_setenv("GTK_MODULES", "gail", TRUE), since what that weird function is trying to do is just to ensure the "gail" module is loaded for the unit tests. Guess now it's when you ask me why in hell I haven't done this first, instead of adding that initializeTestingFramework() function, and the truth is that I just realized about this being a better solution two days ago, while talking to Carlos GarcĂ­a Campos... so sorry about that, it was my fault in the beginning. I will make a patch then and will attach it as soon as I make sure it works fine in the bots. Sorry in advance Stefan for causing you trouble with this and for probably deprecating your patch with the new one I'd be attaching, but if my suggestion works I think it would be a better solution, since it does not rely on copy&paste from GTK, but in a simple call to gtk_test_init()
Stefan Zwanenburg
Comment 5 2011-11-28 09:38:28 PST
> Sorry in advance Stefan for causing you trouble with this and for probably deprecating your patch with the new one I'd be attaching... That's no problem at all. Whatever's the best solution should be what ends up being used.
Mario Sanchez Prada
Comment 6 2011-11-28 11:09:50 PST
(In reply to comment #5) > > Sorry in advance Stefan for causing you trouble with this and for probably deprecating your patch with the new one I'd be attaching... > > That's no problem at all. Whatever's the best solution should be what ends up being used. After checking feasibility for my own suggestion I've realized it's not possible since gtk_test_init() internally calls to gtk_init(), so anything we put as GTK_MODULES after calling that function won't work at all. Hence, your (Stefan) patch it's definitely the way to go. I will create an proper patch (against trunk and with a ChangeLog entry), preserving your authorship of course, and will upload it for review. Thanks
Mario Sanchez Prada
Comment 7 2011-11-28 11:18:29 PST
Martin Robinson
Comment 8 2011-11-28 11:19:26 PST
Comment on attachment 116788 [details] Patch Thanks!
WebKit Review Bot
Comment 9 2011-11-28 12:05:43 PST
Comment on attachment 116788 [details] Patch Clearing flags on attachment: 116788 Committed r101271: <http://trac.webkit.org/changeset/101271>
WebKit Review Bot
Comment 10 2011-11-28 12:05:48 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.