Bug 126492

Summary: [Meta] Tracker for webkit-gtk on OS X
Product: WebKit Reporter: Jeremy Huddleston Sequoia <jeremyhu>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: berto, bugs-noreply, cgarcia, clopez, ethansherriff, mcatanzaro, philip.chimento, pnormand, zan
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 152183, 153176, 153192, 157554, 157574, 58737, 65811, 88407, 94488, 96005, 99683, 111598, 126324, 126325, 126326, 126327, 126329, 126416, 126431, 126433, 126437, 126438, 126821, 127059, 129213, 138332, 144554, 144555, 144557, 144559, 144560, 144561, 144785, 144845, 144846, 146390, 148606, 148607, 150030, 150031, 150032, 150500, 150502, 150798, 150799, 150801, 150802, 151136, 151293, 151915, 152640, 152641, 152650, 152651, 152720, 153093, 153117, 153120, 153138, 153191, 153921, 156616, 156679, 156683, 157167, 157182    
Bug Blocks:    

Description Jeremy Huddleston Sequoia 2014-01-04 11:39:40 PST
Per Žan's request on the webkit-gtk mailing list, I'm creating this umbrella to track webkit-gtk issues affecting MacPorts' webkit-gtk port on OS X which covers WebKit GTK/X11/darwin and WebKit GTK/Quartz/darwin.
Comment 1 Philip Chimento 2015-01-18 14:42:50 PST
Can this apply to building WebKit GTK/Quartz/Darwin through JHBuild, which is Gnome's official way of building their stack on OSX?

If so, then I'd also like to introduce dependencies on the following bugs:

https://bugs.webkit.org/show_bug.cgi?id=98262
https://bugs.webkit.org/show_bug.cgi?id=133293
https://bugs.webkit.org/show_bug.cgi?id=138332
https://bugs.webkit.org/show_bug.cgi?id=140167
https://bugs.webkit.org/show_bug.cgi?id=140171
https://bugs.webkit.org/show_bug.cgi?id=140598

I'll be opening more of these as soon as I can produce a working MiniBrowser on OSX with WebKit2.
Comment 3 Michael Catanzaro 2015-05-10 19:23:34 PDT
It would be good to request commit-queue as well as review on the patches that are intended for master, since you're not a committer. I've added it to those that have been reviewed, since I assume that's what you want.
Comment 4 Philip Chimento 2015-05-10 19:39:28 PDT
Yes, please. Thanks for the reminder. I'll make sure it's done on the other ones.
Comment 5 Philippe Normand 2015-06-18 05:47:02 PDT
Would it be too much asking for a WebKit branch on, say, Github? I'd like to test this and maybe help with the code reviews a bit.
Comment 6 Philippe Normand 2015-06-18 07:29:11 PDT
(In reply to comment #5)
> Would it be too much asking for a WebKit branch on, say, Github? I'd like to
> test this and maybe help with the code reviews a bit.

I was trying to ask kindly, obviously. Sorry, I'm not a native English speaker :)
Comment 7 Philip Chimento 2015-06-20 00:02:47 PDT
Here's a branch on Github:

https://github.com/ptomato/webkit/pull/1

Yes please, any help is welcome.

These patches were last known to work on top of 2.9.1 (plus some other ones that have been committed to master in the meantime.) I've rebased them onto current master, but I don't know if it will still work. I'll try building it over the weekend.
Comment 8 Philip Chimento 2015-06-27 16:13:34 PDT
Now updated at https://github.com/ptomato/webkit/pull/2
Comment 9 Philippe Normand 2015-06-28 14:23:30 PDT
(In reply to comment #8)
> Now updated at https://github.com/ptomato/webkit/pull/2

Thanks!

I got to the point where the jhbuild is set-up, I had to isolate some modules in a separate linux-only modulates though. Also installed quite a few deps using homebrew. I guess I'll prepare some patches about this soon :)

build-webkit now fails here at the bmalloc ar step, because Xcode's ar doesn't have response files support it seems. Does this ring a bell to you? Are you building with Xcode's tools and clang?

I'm using Ninja btw. Are you too?
Comment 10 Philip Chimento 2015-06-28 15:57:18 PDT
(In reply to comment #9)
> (In reply to comment #8)
> > Now updated at https://github.com/ptomato/webkit/pull/2
> 
> Thanks!
> 
> I got to the point where the jhbuild is set-up, I had to isolate some
> modules in a separate linux-only modulates though. Also installed quite a
> few deps using homebrew. I guess I'll prepare some patches about this soon :)
> 
> build-webkit now fails here at the bmalloc ar step, because Xcode's ar
> doesn't have response files support it seems. Does this ring a bell to you?
> Are you building with Xcode's tools and clang?

I do use the XCode toolchain but as for jhbuild, I use the standard gtk-osx jhbuild modulesets; described here [1]. I haven't needed to use anything installed from homebrew. I have a work-in-progress branch here [2]. (That builds the current stable release 2.8.3, but you can easily change it to build from the all-osx-patches branch on ptomato/webkit.)

In particular, this line [3] shows the build settings that I use.

> I'm using Ninja btw. Are you too?

No, should I?

[1] https://wiki.gnome.org/Projects/GTK+/OSX/Building
[2] https://github.com/ptomato/gtk-osx-build/tree/update-webkit2
[3] https://github.com/ptomato/gtk-osx-build/blob/update-webkit2/modulesets-stable/gtk-osx-unsupported.modules#L305
Comment 11 Philippe Normand 2015-06-28 22:55:59 PDT
(In reply to comment #10)
> (In reply to comment #9)
> > (In reply to comment #8)
> > > Now updated at https://github.com/ptomato/webkit/pull/2
> > 
> > Thanks!
> > 
> > I got to the point where the jhbuild is set-up, I had to isolate some
> > modules in a separate linux-only modulates though. Also installed quite a
> > few deps using homebrew. I guess I'll prepare some patches about this soon :)
> > 
> > build-webkit now fails here at the bmalloc ar step, because Xcode's ar
> > doesn't have response files support it seems. Does this ring a bell to you?
> > Are you building with Xcode's tools and clang?
> 
> I do use the XCode toolchain but as for jhbuild, I use the standard gtk-osx
> jhbuild modulesets; described here [1]. I haven't needed to use anything
> installed from homebrew. I have a work-in-progress branch here [2]. (That
> builds the current stable release 2.8.3, but you can easily change it to
> build from the all-osx-patches branch on ptomato/webkit.)
> 

Sure but if we ever want to have an EWS or buildbot or more generally ease contributions from Mac users we need build-webkit working with the internal jhbuild, IMHO.
 
> In particular, this line [3] shows the build settings that I use.
> 

Yes I've seen it. I'll enable video and web audio though :)

> > I'm using Ninja btw. Are you too?
> 
> No, should I?
> 

Ha, well, maybe not :) Seems like I'm hitting a bug in the cmake ninja generator. Unininstalling ninja and kicking a new build got me a bit further now.
Comment 12 Philip Chimento 2015-06-30 21:29:19 PDT
(In reply to comment #11)
> (In reply to comment #10)
> > (In reply to comment #9)
> > > (In reply to comment #8)
> > > > Now updated at https://github.com/ptomato/webkit/pull/2
> > > 
> > > Thanks!
> > > 
> > > I got to the point where the jhbuild is set-up, I had to isolate some
> > > modules in a separate linux-only modulates though. Also installed quite a
> > > few deps using homebrew. I guess I'll prepare some patches about this soon :)
> > > 
> > > build-webkit now fails here at the bmalloc ar step, because Xcode's ar
> > > doesn't have response files support it seems. Does this ring a bell to you?
> > > Are you building with Xcode's tools and clang?
> > 
> > I do use the XCode toolchain but as for jhbuild, I use the standard gtk-osx
> > jhbuild modulesets; described here [1]. I haven't needed to use anything
> > installed from homebrew. I have a work-in-progress branch here [2]. (That
> > builds the current stable release 2.8.3, but you can easily change it to
> > build from the all-osx-patches branch on ptomato/webkit.)
> > 
> 
> Sure but if we ever want to have an EWS or buildbot or more generally ease
> contributions from Mac users we need build-webkit working with the internal
> jhbuild, IMHO.

Yes, maybe you could copy the moduleset from gtk-osx-build?
Comment 13 Philip Chimento 2015-10-05 11:40:48 PDT
I'd like to add dependencies on the following bugs, please:

https://bugs.webkit.org/show_bug.cgi?id=148606
https://bugs.webkit.org/show_bug.cgi?id=148607
Comment 14 Philippe Normand 2015-10-12 10:13:50 PDT
I've had some success finally tweaking a bit the internal JHBuild set-up we have and combining it with Homebrew. I still need to clean that patch up though.
Comment 15 Jeremy Huddleston Sequoia 2016-01-01 22:37:00 PST
Those following this tracker might like to also know that current versions of webkit-gtk fail to build with current versions of g-ir-scanner with errors like this:

    ld: unknown option: -rpath=.

See https://bugzilla.gnome.org/show_bug.cgi?id=625195 for a patch (also just pushed to MacPorts).
Comment 16 Ethan Sherriff 2016-01-17 12:33:15 PST
Hello, I have created bug https://bugs.webkit.org/show_bug?id=153093 , I was wondering if it could be added to this tracker please.