Changeset 45032 in webkit


Ignore:
Timestamp:
Jun 23, 2009 6:50:20 PM (15 years ago)
Author:
eric@webkit.org
Message:

2009-06-23 Takeshi Yoshino <tyoshino@google.com>

Reviewed by Mark Rowe.

Bug 26537: Builds from command-line fail if custom build product directory is set and ~/Library/Preferences/xcodebuild.plist exists
https://bugs.webkit.org/show_bug.cgi?id=26537

Let determineBaseProductDir subroutine remove
~/Library/Preferences/xcodebuild.plist. It can prevent xcodebuild from
respecting global settings such as a custom build products directory
(<rdar://problem/5585899>).

  • Scripts/webkitdirs.pm:
Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r45026 r45032  
     12009-06-23  Takeshi Yoshino  <tyoshino@google.com>
     2
     3        Reviewed by Mark Rowe.
     4
     5        Bug 26537: Builds from command-line fail if custom build product directory is set and ~/Library/Preferences/xcodebuild.plist exists
     6        https://bugs.webkit.org/show_bug.cgi?id=26537
     7
     8        Let determineBaseProductDir subroutine remove
     9        ~/Library/Preferences/xcodebuild.plist. It can prevent xcodebuild from
     10        respecting global settings such as a custom build products directory
     11        (<rdar://problem/5585899>).
     12
     13        * Scripts/webkitdirs.pm:
     14
    1152009-06-23  Eric Seidel  <eric@webkit.org>
    216
  • trunk/WebKitTools/Scripts/webkitdirs.pm

    r44681 r45032  
    9595    determineSourceDir();
    9696    if (isAppleMacWebKit()) {
     97        # Silently remove ~/Library/Preferences/xcodebuild.plist which can
     98        # cause build failure. The presence of
     99        # ~/Library/Preferences/xcodebuild.plist can prevent xcodebuild from
     100        # respecting global settings such as a custom build products directory
     101        # (<rdar://problem/5585899>).
     102        my $personalPlistFile = $ENV{HOME} . "/Library/Preferences/xcodebuild.plist";
     103        if (-e $personalPlistFile) {
     104            unlink($personalPlistFile) || die "Could not delete $personalPlistFile: $!";
     105        }
     106
    97107        open PRODUCT, "defaults read com.apple.Xcode PBXApplicationwideBuildSettings 2> /dev/null |" or die;
    98108        $baseProductDir = join '', <PRODUCT>;
Note: See TracChangeset for help on using the changeset viewer.