Bug 83693

Summary: [EFL][WK2] Fix WebKit2-EFL build
Product: WebKit Reporter: Mariusz Grzegorczyk <mariusz.g>
Component: WebKit2Assignee: Ryuan Choi <ryuan.choi>
Status: RESOLVED FIXED    
Severity: Normal CC: cgarcia, g.czajkowski, mrobinson, rakuco, ryuan.choi, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Linux   
Bug Depends on:    
Bug Blocks: 61838    
Attachments:
Description Flags
Patch fixing webkit2 efl build
none
Patch
none
Patch
none
patch for landing
none
patch for landing2 none

Description Mariusz Grzegorczyk 2012-04-11 08:35:08 PDT
After applying all patches related with master bug "[EFL][WK2] Support for EFL port of WebKit2": https://bugs.webkit.org/show_bug.cgi?id=61838 build break occurs because of missing headers path, and changed directory for MiniBrowser from Programs to bin.
Comment 1 Mariusz Grzegorczyk 2012-04-11 08:45:12 PDT
Created attachment 136675 [details]
Patch fixing webkit2 efl build
Comment 2 Grzegorz Czajkowski 2012-04-11 23:42:40 PDT
Please rebase this patch.
Comment 3 Mariusz Grzegorczyk 2012-04-12 01:01:08 PDT
(In reply to comment #2)
> Please rebase this patch.

This patch doesn't need rebase because depends on bug 61850. Dependency/Blocks fields added.
Comment 4 Ryuan Choi 2012-05-29 06:49:49 PDT
Created attachment 144546 [details]
Patch
Comment 5 Ryuan Choi 2012-05-29 06:51:27 PDT
(In reply to comment #4)
> Created an attachment (id=144546) [details]
> Patch

Updated patch to catch latest changes and removed dependency of Bug 61850 from patch.
Comment 6 Raphael Kubo da Costa (:rakuco) 2012-05-29 07:20:13 PDT
Comment on attachment 144546 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=144546&action=review

Since the EWS does not test this, the most I can do is comment on the build system changes.

> Source/WebKit2/CMakeLists.txt:497
> +SET(WebProcess_NAME ../bin/WebProcess)

It's better to use SET_TARGET_PROPERTIES(... RUNTIME_OUTPUT_DIRECTORY ...) like other parts of the build system do.

> Source/WebKit2/CMakeLists.txt:498
> +SET(WebProcess_SOURCES "")

Is this empty definition needed?

> Source/WebKit2/CMakeLists.txt:507
> +SET(ForwardingHeaders_NAME )
> +SET(ForwardingNetworkHeaders_NAME )

Are these empty definitions needed?

> Source/cmake/OptionsEfl.cmake:42
> +ADD_DEFINITIONS(-DBUILDING_SOUP__=1)

I see that this is checked in WK2, but I couldn't find any part of gtk's build system defining that. Is that expected?
Comment 7 Ryuan Choi 2012-05-29 09:43:10 PDT
Created attachment 144572 [details]
Patch
Comment 8 Ryuan Choi 2012-05-29 09:46:54 PDT
(In reply to comment #6)
> (From update of attachment 144546 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=144546&action=review
> 
> Since the EWS does not test this, the most I can do is comment on the build system changes.
> 
> > Source/WebKit2/CMakeLists.txt:497
> > +SET(WebProcess_NAME ../bin/WebProcess)
> 
> It's better to use SET_TARGET_PROPERTIES(... RUNTIME_OUTPUT_DIRECTORY ...) like other parts of the build system do.
>
Thanks for the comment.
I fixed.

> > Source/WebKit2/CMakeLists.txt:498
> > +SET(WebProcess_SOURCES "")
> 
> Is this empty definition needed?
> 
> > Source/WebKit2/CMakeLists.txt:507
> > +SET(ForwardingHeaders_NAME )
> > +SET(ForwardingNetworkHeaders_NAME )
> 
> Are these empty definitions needed?
> 
Removed them.

> > Source/cmake/OptionsEfl.cmake:42
> > +ADD_DEFINITIONS(-DBUILDING_SOUP__=1)
> 
> I see that this is checked in WK2, but I couldn't find any part of gtk's build system defining that. Is that expected?

yes, GNUmakefile.am also defines it.
Comment 9 Raphael Kubo da Costa (:rakuco) 2012-05-29 16:33:32 PDT
Comment on attachment 144572 [details]
Patch

The build system part looks fine, the rest should supposedly be OK.
Comment 10 Ryuan Choi 2012-05-29 17:36:53 PDT
CCing mrobinson because I touched WebKit2/Gtk+ related files.
Comment 11 Martin Robinson 2012-05-29 17:40:51 PDT
The libsoup changes look fine to me, but I'm CCing Carlos as he's the original author of that code.
Comment 12 Carlos Garcia Campos 2012-05-29 23:49:43 PDT
Looks good to me too, I shoulnd't have used Gtk headers in soup file, sorry.
Comment 13 Gyuyoung Kim 2012-05-30 00:33:09 PDT
Comment on attachment 144572 [details]
Patch

Though I don't like to mix multiple patches personally, informal rs+ on my side in order to build EFL WebKit2 now. But, I think this patch should be reviewed by GTK or WK2 reviewers.
Comment 14 Carlos Garcia Campos 2012-05-30 00:54:00 PDT
Comment on attachment 144572 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=144572&action=review

Looks good, just a couple of things you can change before landing.

> Source/WebKit2/WebProcess/WebCoreSupport/WebChromeClient.cpp:66
> +#if ENABLE(INPUT_TYPE_COLOR)
> +#include "ColorChooser.h"
> +#endif
> +

Use #include <WebCore/ColorChooser.h> like all other webcore headers in this file. You don't need the #if ENABLE(INPUT_TYPE_COLOR) because the header is already protected by that check. Remember to move the header to keep all headers sorted alpahbetically

> Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:78
> +#if ENABLE(WEB_INTENTS)
> +#include "IntentRequest.h"
> +#endif

And same here for IntentRequest.h
Comment 15 Ryuan Choi 2012-05-30 01:25:07 PDT
Created attachment 144749 [details]
patch for landing
Comment 16 Ryuan Choi 2012-05-30 01:25:42 PDT
Comment on attachment 144749 [details]
patch for landing

Thank you so much.
Comment 17 Build Bot 2012-05-30 02:03:08 PDT
Comment on attachment 144749 [details]
patch for landing

Attachment 144749 [details] did not pass mac-ews (mac):
Output: http://queues.webkit.org/results/12843781
Comment 18 Build Bot 2012-05-30 02:26:15 PDT
Comment on attachment 144749 [details]
patch for landing

Attachment 144749 [details] did not pass win-ews (win):
Output: http://queues.webkit.org/results/12845820
Comment 19 Ryuan Choi 2012-05-30 02:27:37 PDT
Created attachment 144765 [details]
patch for landing2
Comment 20 WebKit Review Bot 2012-05-30 05:12:41 PDT
Comment on attachment 144765 [details]
patch for landing2

Clearing flags on attachment: 144765

Committed r118914: <http://trac.webkit.org/changeset/118914>
Comment 21 WebKit Review Bot 2012-05-30 05:12:47 PDT
All reviewed patches have been landed.  Closing bug.