update xcode patches for node v0.10.41
This commit is contained in:
parent
b466dab8b2
commit
36ebae29ce
@ -1,12 +1,12 @@
|
|||||||
diff -Naur a/tools/gyp/pylib/gyp/xcode_emulation.py b/tools/gyp/pylib/gyp/xcode_emulation.py
|
diff --git a/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py b/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py
|
||||||
--- a/tools/gyp/pylib/gyp/xcode_emulation.py 2014-01-23 06:05:51.000000000 +0100
|
index 30f27d5..eb178a5 100644
|
||||||
+++ b/tools/gyp/pylib/gyp/xcode_emulation.py 2014-02-04 17:49:48.000000000 +0100
|
--- a/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py
|
||||||
@@ -1018,12 +1033,16 @@
|
+++ b/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py
|
||||||
|
@@ -1018,12 +1018,15 @@ class XcodeSettings(object):
|
||||||
# Since the value returned by this function is only used when ARCHS is not
|
# Since the value returned by this function is only used when ARCHS is not
|
||||||
# set, then on iOS we return "i386", as the default xcode project generator
|
# set, then on iOS we return "i386", as the default xcode project generator
|
||||||
# does not set ARCHS if it is not set in the .gyp file.
|
# does not set ARCHS if it is not set in the .gyp file.
|
||||||
- if self.isIOS:
|
- if self.isIOS:
|
||||||
+
|
|
||||||
+ try:
|
+ try:
|
||||||
+ if self.isIOS:
|
+ if self.isIOS:
|
||||||
+ return 'i386'
|
+ return 'i386'
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
diff -Naur a/tools/gyp/pylib/gyp/xcode_emulation.py b/tools/gyp/pylib/gyp/xcode_emulation.py
|
diff --git a/tools/gyp/pylib/gyp/xcode_emulation.py b/tools/gyp/pylib/gyp/xcode_emulation.py
|
||||||
--- a/tools/gyp/pylib/gyp/xcode_emulation.py 2014-01-23 06:05:51.000000000 +0100
|
index c002b11..eeb0400 100644
|
||||||
+++ b/tools/gyp/pylib/gyp/xcode_emulation.py 2014-02-04 17:49:48.000000000 +0100
|
--- a/tools/gyp/pylib/gyp/xcode_emulation.py
|
||||||
@@ -302,10 +302,17 @@
|
+++ b/tools/gyp/pylib/gyp/xcode_emulation.py
|
||||||
|
@@ -446,10 +446,16 @@ class XcodeSettings(object):
|
||||||
|
|
||||||
def _XcodeSdkPath(self, sdk_root):
|
def _XcodeSdkPath(self, sdk_root):
|
||||||
if sdk_root not in XcodeSettings._sdk_path_cache:
|
if sdk_root not in XcodeSettings._sdk_path_cache:
|
||||||
@ -19,11 +20,10 @@ diff -Naur a/tools/gyp/pylib/gyp/xcode_emulation.py b/tools/gyp/pylib/gyp/xcode_
|
|||||||
+ # the user is probably on a CLT-only system, where there
|
+ # the user is probably on a CLT-only system, where there
|
||||||
+ # is no valid SDK root
|
+ # is no valid SDK root
|
||||||
+ XcodeSettings._sdk_path_cache[sdk_root] = None
|
+ XcodeSettings._sdk_path_cache[sdk_root] = None
|
||||||
+
|
|
||||||
return XcodeSettings._sdk_path_cache[sdk_root]
|
return XcodeSettings._sdk_path_cache[sdk_root]
|
||||||
|
|
||||||
def _AppendPlatformVersionMinFlags(self, lst):
|
def _AppendPlatformVersionMinFlags(self, lst):
|
||||||
@@ -420,10 +427,12 @@
|
@@ -572,10 +578,11 @@ class XcodeSettings(object):
|
||||||
framework_root = sdk_root
|
framework_root = sdk_root
|
||||||
else:
|
else:
|
||||||
framework_root = ''
|
framework_root = ''
|
||||||
@ -31,7 +31,6 @@ diff -Naur a/tools/gyp/pylib/gyp/xcode_emulation.py b/tools/gyp/pylib/gyp/xcode_
|
|||||||
- framework_dirs = config.get('mac_framework_dirs', [])
|
- framework_dirs = config.get('mac_framework_dirs', [])
|
||||||
- for directory in framework_dirs:
|
- for directory in framework_dirs:
|
||||||
- cflags.append('-F' + directory.replace('$(SDKROOT)', framework_root))
|
- cflags.append('-F' + directory.replace('$(SDKROOT)', framework_root))
|
||||||
+
|
|
||||||
+ if 'SDKROOT' in self._Settings():
|
+ if 'SDKROOT' in self._Settings():
|
||||||
+ config = self.spec['configurations'][self.configname]
|
+ config = self.spec['configurations'][self.configname]
|
||||||
+ framework_dirs = config.get('mac_framework_dirs', [])
|
+ framework_dirs = config.get('mac_framework_dirs', [])
|
||||||
@ -40,7 +39,7 @@ diff -Naur a/tools/gyp/pylib/gyp/xcode_emulation.py b/tools/gyp/pylib/gyp/xcode_
|
|||||||
|
|
||||||
self.configname = None
|
self.configname = None
|
||||||
return cflags
|
return cflags
|
||||||
@@ -673,10 +682,12 @@
|
@@ -826,10 +833,11 @@ class XcodeSettings(object):
|
||||||
sdk_root = self._SdkPath()
|
sdk_root = self._SdkPath()
|
||||||
if not sdk_root:
|
if not sdk_root:
|
||||||
sdk_root = ''
|
sdk_root = ''
|
||||||
@ -48,21 +47,19 @@ diff -Naur a/tools/gyp/pylib/gyp/xcode_emulation.py b/tools/gyp/pylib/gyp/xcode_
|
|||||||
- framework_dirs = config.get('mac_framework_dirs', [])
|
- framework_dirs = config.get('mac_framework_dirs', [])
|
||||||
- for directory in framework_dirs:
|
- for directory in framework_dirs:
|
||||||
- ldflags.append('-F' + directory.replace('$(SDKROOT)', sdk_root))
|
- ldflags.append('-F' + directory.replace('$(SDKROOT)', sdk_root))
|
||||||
+
|
|
||||||
+ if 'SDKROOT' in self._Settings():
|
+ if 'SDKROOT' in self._Settings():
|
||||||
+ config = self.spec['configurations'][self.configname]
|
+ config = self.spec['configurations'][self.configname]
|
||||||
+ framework_dirs = config.get('mac_framework_dirs', [])
|
+ framework_dirs = config.get('mac_framework_dirs', [])
|
||||||
+ for directory in framework_dirs:
|
+ for directory in framework_dirs:
|
||||||
+ ldflags.append('-F' + directory.replace('$(SDKROOT)', sdk_root))
|
+ ldflags.append('-F' + directory.replace('$(SDKROOT)', sdk_root))
|
||||||
|
|
||||||
self.configname = None
|
is_extension = self._IsIosAppExtension() or self._IsIosWatchKitExtension()
|
||||||
return ldflags
|
if sdk_root and is_extension:
|
||||||
@@ -863,7 +874,11 @@
|
@@ -1032,7 +1040,10 @@ class XcodeSettings(object):
|
||||||
sdk_root = self._SdkPath(config_name)
|
sdk_root = self._SdkPath(config_name)
|
||||||
if not sdk_root:
|
if not sdk_root:
|
||||||
sdk_root = ''
|
sdk_root = ''
|
||||||
- return l.replace('$(SDKROOT)', sdk_root)
|
- return l.replace('$(SDKROOT)', sdk_root)
|
||||||
+
|
|
||||||
+ if self._SdkPath():
|
+ if self._SdkPath():
|
||||||
+ return l.replace('$(SDKROOT)', sdk_root)
|
+ return l.replace('$(SDKROOT)', sdk_root)
|
||||||
+ else:
|
+ else:
|
||||||
|
@ -40,6 +40,8 @@ in stdenv.mkDerivation {
|
|||||||
|
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
patchShebangs .
|
patchShebangs .
|
||||||
|
sed -i 's/raise.*No Xcode or CLT version detected.*/version = "7.0.0"/' deps/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py
|
||||||
|
sed -i 's/raise.*No Xcode or CLT version detected.*/version = "7.0.0"/' tools/gyp/pylib/gyp/xcode_emulation.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
patches = stdenv.lib.optionals stdenv.isDarwin [ ./default-arch.patch ./no-xcode.patch ];
|
patches = stdenv.lib.optionals stdenv.isDarwin [ ./default-arch.patch ./no-xcode.patch ];
|
||||||
@ -60,7 +62,6 @@ in stdenv.mkDerivation {
|
|||||||
pushd $out/lib/node_modules/npm/node_modules/node-gyp
|
pushd $out/lib/node_modules/npm/node_modules/node-gyp
|
||||||
patch -p2 < ${./no-xcode.patch}
|
patch -p2 < ${./no-xcode.patch}
|
||||||
popd
|
popd
|
||||||
sed -i 's/raise.*No Xcode or CLT version detected.*/version = "7.0.0"/' $out/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru.interpreterName = "nodejs-0.10";
|
passthru.interpreterName = "nodejs-0.10";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user