Bug 71370 - webkitdirs.pm: add getArchitecture implementation for autotools ports
Summary: webkitdirs.pm: add getArchitecture implementation for autotools ports
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-02 09:17 PDT by Andy Wingo
Modified: 2011-11-09 09:40 PST (History)
1 user (show)

See Also:


Attachments
Patch (2.66 KB, patch)
2011-11-02 09:20 PDT, Andy Wingo
no flags Details | Formatted Diff | Diff
Patch (2.63 KB, patch)
2011-11-08 08:31 PST, Andy Wingo
no flags Details | Formatted Diff | Diff
Patch (2.83 KB, patch)
2011-11-09 02:41 PST, Andy Wingo
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Wingo 2011-11-02 09:17:26 PDT
If I run "Tools/Scripts/run-javascriptcore-tests --gtk" on my Linux box, it will run build-jsc with the --32-bit argument, which is not what I want, given that I have already built JSC for x86-64.

The patch to be attached fixes this issue.

(If I omit --gtk, even having already built JSC, I get worse results, but that's another bug.)
Comment 1 Andy Wingo 2011-11-02 09:20:09 PDT
Created attachment 113320 [details]
Patch
Comment 2 Philippe Normand 2011-11-08 01:57:13 PST
Comment on attachment 113320 [details]
Patch

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

> Tools/Scripts/webkitdirs.pm:250
> +    if (isGtk() or isEfl()) {
> +        determineConfigurationProductDir();
> +        my $host_triple = `grep -E '^host = ' $configurationProductDir/GNUmakefile`;

I think EFL uses CMake so this check on the GNUMakefile will likely always fail for them. Maybe remove the isEfl() test?
Comment 3 Andy Wingo 2011-11-08 08:31:10 PST
Created attachment 114080 [details]
Patch
Comment 4 Andy Wingo 2011-11-08 08:31:40 PST
Updated patch.  R? :)
Comment 5 Martin Robinson 2011-11-08 08:38:39 PST
Comment on attachment 114080 [details]
Patch

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

> Tools/Scripts/webkitdirs.pm:250
> +        determineConfigurationProductDir();
> +        my $host_triple = `grep -E '^host = ' $configurationProductDir/GNUmakefile`;
> +        $architecture = $1 if $host_triple =~ m/^host = ([^-]+)-/;

In the Mac case they first check the architecture set for the build and then if it's not there, they fall back to the system architecture. I think you should do the same here.
Comment 6 Andy Wingo 2011-11-09 02:41:17 PST
Created attachment 114228 [details]
Patch
Comment 7 Xan Lopez 2011-11-09 08:41:27 PST
Comment on attachment 114228 [details]
Patch

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

> Tools/Scripts/webkitdirs.pm:254
> +            # Fall back to output of `arch', if it is present.

Ultra nitpick, you don't really have further fallbacks, so I guess the "if it is present" is a bit misleading. You'll use that or fail in some way I suppose. Anyway, this looks OK to me.
Comment 8 WebKit Review Bot 2011-11-09 09:40:49 PST
Comment on attachment 114228 [details]
Patch

Clearing flags on attachment: 114228

Committed r99729: <http://trac.webkit.org/changeset/99729>
Comment 9 WebKit Review Bot 2011-11-09 09:40:54 PST
All reviewed patches have been landed.  Closing bug.