Changeset 116559 in webkit


Ignore:
Timestamp:
May 9, 2012 2:56:11 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Remove CYGWIN=tty from environment variable as its no longer supported
https://bugs.webkit.org/show_bug.cgi?id=85791

The CYGWIN=tty environment variable is no longer supported from Cygwin
version 1.7.10. This fix avoids addition of this environment variable
for Cygwin versions greater than 1.7.9. For supporting older versions
i.e. 1.7.9 or older, the script takes care of retaining the environment
variable.

Patch by Vivek Galatage <vivekgalatage@gmail.com> on 2012-05-09
Reviewed by Adam Roben.

  • Scripts/webkitdirs.pm:

(setupAppleWinEnv):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r116552 r116559  
     12012-05-09  Vivek Galatage  <vivekgalatage@gmail.com>
     2
     3        Remove CYGWIN=tty from environment variable as its no longer supported
     4        https://bugs.webkit.org/show_bug.cgi?id=85791
     5
     6        The CYGWIN=tty environment variable is no longer supported from Cygwin
     7        version 1.7.10. This fix avoids addition of this environment variable
     8        for Cygwin versions greater than 1.7.9. For supporting older versions
     9        i.e. 1.7.9 or older, the script takes care of retaining the environment
     10        variable.
     11
     12        Reviewed by Adam Roben.
     13
     14        * Scripts/webkitdirs.pm:
     15        (setupAppleWinEnv):
     16
    1172012-05-09  Dirk Pranke  <dpranke@chromium.org>
    218
  • trunk/Tools/Scripts/webkitdirs.pm

    r116366 r116559  
    3030
    3131use strict;
     32use version;
    3233use warnings;
    3334use Config;
     
    14881489        my %variablesToSet = ();
    14891490
    1490         # Setting the environment variable 'CYGWIN' to 'tty' makes cygwin enable extra support (i.e., termios)
    1491         # for UNIX-like ttys in the Windows console
    1492         $variablesToSet{CYGWIN} = "tty" unless $ENV{CYGWIN};
     1491        # FIXME: We should remove this explicit version check for cygwin once we stop supporting Cygwin 1.7.9 or older versions.
     1492        # https://bugs.webkit.org/show_bug.cgi?id=85791
     1493        my $currentCygwinVersion = version->parse(`uname -r`);
     1494        my $firstCygwinVersionWithoutTTYSupport = version->parse("1.7.10");
     1495        if ($currentCygwinVersion < $firstCygwinVersionWithoutTTYSupport) {
     1496            # Setting the environment variable 'CYGWIN' to 'tty' makes cygwin enable extra support (i.e., termios)
     1497            # for UNIX-like ttys in the Windows console
     1498            $variablesToSet{CYGWIN} = "tty" unless $ENV{CYGWIN};
     1499        }
    14931500       
    14941501        # Those environment variables must be set to be able to build inside Visual Studio.
Note: See TracChangeset for help on using the changeset viewer.