Bug 51598 - [Qt] [WK2] WebKit 2 does not build on mac, missing reference to RetainPtr
Summary: [Qt] [WK2] WebKit 2 does not build on mac, missing reference to RetainPtr
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Major
Assignee: Benjamin Poulain
URL:
Keywords: Qt, QtTriaged
Depends on: 43505
Blocks:
  Show dependency treegraph
 
Reported: 2010-12-24 12:07 PST by Benjamin Poulain
Modified: 2010-12-26 03:50 PST (History)
4 users (show)

See Also:


Attachments
Patch (1.05 KB, patch)
2010-12-24 12:12 PST, Benjamin Poulain
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Poulain 2010-12-24 12:07:45 PST
WebKit 2 does not build on Mac with default options. The problem comes from the following code:


static String formatLocalizedString(const String& format, ...)
{
#if PLATFORM(CF)
    va_list arguments;
    va_start(arguments, format);
    RetainPtr<CFStringRef> formatCFString(AdoptCF, format.createCFString());
    RetainPtr<CFStringRef> result(AdoptCF, CFStringCreateWithFormatAndArguments(0, 0, formatCFString.get(), arguments));
    va_end(arguments);
    return result.get();
#else
    notImplemented();
    return format;
#endif
}

It uses RetainPtr(), but does not include the header file. This break has been introduced by 43505.
Comment 1 Benjamin Poulain 2010-12-24 12:12:51 PST
Created attachment 77425 [details]
Patch

I apologize not to push that directly. I do not have my tools here so I figured it would be easier to use the commit queue.
Comment 2 Early Warning System Bot 2010-12-24 12:26:52 PST
Attachment 77425 [details] did not build on qt:
Build output: http://queues.webkit.org/results/7205164
Comment 3 WebKit Commit Bot 2010-12-24 12:55:45 PST
Comment on attachment 77425 [details]
Patch

Clearing flags on attachment: 77425

Committed r74650: <http://trac.webkit.org/changeset/74650>
Comment 4 WebKit Commit Bot 2010-12-24 12:55:50 PST
All reviewed patches have been landed.  Closing bug.
Comment 5 mitz 2010-12-24 13:21:34 PST
I don’t think this works.
Comment 6 Benjamin Poulain 2010-12-24 13:55:34 PST
(In reply to comment #5)
> I don’t think this works.

Why?
Comment 7 mitz 2010-12-24 14:24:28 PST
(In reply to comment #6)
> (In reply to comment #5)
> > I don’t think this works.
> 
> Why?

Breaking Qt Linux <http://build.webkit.org/builders/Qt%20Linux%20Release/builds/25687/steps/compile-webkit/logs/stdio>
Comment 8 mitz 2010-12-24 14:25:26 PST
(In reply to comment #7)
> (In reply to comment #6)
> > (In reply to comment #5)
> > > I don’t think this works.
> > 
> > Why?
> 
> Breaking Qt Linux <http://build.webkit.org/builders/Qt%20Linux%20Release/builds/25687/steps/compile-webkit/logs/stdio>

Fixed by Simon in <http://trac.webkit.org/projects/webkit/changeset/74654>.
Comment 9 Benjamin Poulain 2010-12-24 15:09:17 PST
(In reply to comment #8)
> > > Why?
> > 
> > Breaking Qt Linux <http://build.webkit.org/builders/Qt%20Linux%20Release/builds/25687/steps/compile-webkit/logs/stdio>
> 
> Fixed by Simon in <http://trac.webkit.org/projects/webkit/changeset/74654>.

Thanks Mitz and Simon for fixing the build on Linux.
Comment 10 Csaba Osztrogonác 2010-12-26 03:50:57 PST
(In reply to comment #9)
> > Fixed by Simon in <http://trac.webkit.org/projects/webkit/changeset/74654>.
> 
> Thanks Mitz and Simon for fixing the build on Linux.

You could have avoided this breakage if you had taken the comment of Qt-EWS seriously.