Bug 31736

Summary: Pass the port information to the child process
Product: WebKit Reporter: Adam Barth <abarth>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: darin, eric
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch
none
Patch
none
Patch eric: review+

Description Adam Barth 2009-11-20 11:52:24 PST
We need to do this so the child process knows what to build!
Comment 1 Adam Barth 2009-11-20 11:53:52 PST
Created attachment 43601 [details]
Patch
Comment 2 Darin Adler 2009-11-20 12:15:28 PST
Comment on attachment 43601 [details]
Patch

What this makes me think is we need names for the ports that are consistent across the tools and source code. I worry that we call it MAC in the source code and AppleMacPort in the tool.

r=me
Comment 3 Eric Seidel (no email) 2009-11-20 12:40:56 PST
Comment on attachment 43601 [details]
Patch

I sent you down the wrong path Adam. :(  As we discussed over lunch, I think we should kill AppleMacPort for now and do a DefaultPort instead since this will do bad things when running bugzilla-tool on other platforms.

Thanks for the review darin!
Comment 4 Eric Seidel (no email) 2009-11-20 12:42:08 PST
Yeah, the AppleMacPort idea came out of concerns that we'll eventually be building other "Mac" ports from the tool.  But in the end we realized (after long discussions at lunch) that this was the wrong approach for this part of the tooling. We need the concept of a "default" port because these ports are more about what flags you pass to the tools to control their behavior, and less about what port you're actually buidling.
Comment 5 Eric Seidel (no email) 2009-11-20 12:43:57 PST
Another way we could have solved this is by teaching all the tools to understand --apple-mac, --apple-win, --chromium, --qt etc.  But right now they just do whatever the "default" for the platform is.
Comment 6 Adam Barth 2009-11-20 12:55:12 PST
Created attachment 43607 [details]
Patch
Comment 7 Adam Barth 2009-11-20 12:56:16 PST
Created attachment 43608 [details]
Patch
Comment 8 Eric Seidel (no email) 2009-11-20 13:02:44 PST
Comment on attachment 43608 [details]
Patch

Looks good.  Adam and I talked about it again in person, and decided to go back to "Mac" per your suggestion Darin.  :)  Personally I would like all the repository to move to more explicit defines, but that's a bias to express in another bug.
Comment 9 Adam Barth 2009-11-20 13:03:34 PST
Committed r51253: <http://trac.webkit.org/changeset/51253>
Comment 10 Darin Adler 2009-11-20 13:10:52 PST
(In reply to comment #8)
> Personally I would like all the
> repository to move to more explicit defines, but that's a bias to express in
> another bug.

Sure, it would be great to figure out clear naming and reform how we do platforms — Maciej had a proposal for how to do that. And I am well aware that Chrome, GTK, Qt, and Wx all can compile to run on Mac.
Comment 11 Adam Barth 2009-11-20 13:24:46 PST
For this patch, I changed it to "mac" per Darin's suggestion.  We can rename it later in some grand renaming project.