Changeset 90439 in webkit


Ignore:
Timestamp:
Jul 5, 2011 11:55:09 PM (13 years ago)
Author:
eric@webkit.org
Message:

2011-07-05 Eric Seidel <eric@webkit.org>

Perl string concat failure on Leopard (causes NRWT to fail)
https://bugs.webkit.org/show_bug.cgi?id=63973

Reviewed by Daniel Bates.

Leopard's "xcodebuild -version" has a different format from Snow Leopard/Lion
thus the version parsing logic in webkitdirs.pm seems to fail.

Default to "3.0" instead of undef when we can't parse the version number.
This should send us down the correct path for Leopard.

  • Scripts/webkitdirs.pm: (determineBaseProductDir):
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r90435 r90439  
     12011-07-05  Eric Seidel  <eric@webkit.org>
     2
     3        Perl string concat failure on Leopard (causes NRWT to fail)
     4        https://bugs.webkit.org/show_bug.cgi?id=63973
     5
     6        Reviewed by Daniel Bates.
     7
     8        Leopard's "xcodebuild -version" has a different format from Snow Leopard/Lion
     9        thus the version parsing logic in webkitdirs.pm seems to fail.
     10
     11        Default to "3.0" instead of undef when we can't parse the version number.
     12        This should send us down the correct path for Leopard.
     13
     14        * Scripts/webkitdirs.pm:
     15        (determineBaseProductDir):
     16
    1172011-07-05  Kevin Ollivier  <kevino@theolliviers.com>
    218
  • trunk/Tools/Scripts/webkitdirs.pm

    r87957 r90439  
    142142
    143143        my $xcodebuildVersionOutput = `xcodebuild -version`;
    144         my $xcodeVersion = ($xcodebuildVersionOutput =~ /Xcode ([0-9](\.[0-9]+)*)/) ? $1 : undef;
     144        my $xcodeVersion = ($xcodebuildVersionOutput =~ /Xcode ([0-9](\.[0-9]+)*)/) ? $1 : "3.0";
    145145        my $xcodeDefaultsDomain = (eval "v$xcodeVersion" lt v4) ? "com.apple.Xcode" : "com.apple.dt.Xcode";
    146146        my $xcodeDefaultsPrefix = (eval "v$xcodeVersion" lt v4) ? "PBX" : "IDE";
Note: See TracChangeset for help on using the changeset viewer.