mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
755a238a5d
Summary: We recently saw a high rate of build failures on MacOS. They all fail with compiler errors like: In file included from edenscm/mercurial/cext/osutil.c:1326: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk//System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:23: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk//System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:39: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk//System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LaunchServices.h:23: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk//System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/IconsCore.h:23: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk//System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/OSServices.h:29: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk//System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/CSIdentity.h:43: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk//System/Library/Frameworks/Security.framework/Headers/Security.h:38: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk//System/Library/Frameworks/Security.framework/Headers/SecProtocolOptions.h:28: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk//System/Library/Frameworks/Security.framework/Headers/SecProtocolTypes.h:158:19: error: missing ',' between enumerators kTLSProtocol12 CF_ENUM_DEPRECATED(10_2, 10_15, 5_0, 13_0) = 8, ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk//System/Library/Frameworks/Security.framework/Headers/SecProtocolTypes.h:158:20: error: redefinition of enumerator '__AVAILABILITY_INTERNAL__MAC_10_2_DEP__MAC_10_15' kTLSProtocol12 CF_ENUM_DEPRECATED(10_2, 10_15, 5_0, 13_0) = 8, ^ It's unclear whether this is a compiler configuration issue, or the Apple SDK being buggy. The only user of ApplicationServices is `isgui()` when `$SSH_CONNECTION` is not set on MacOS. It seems to me that if we just replace `isgui()` to `True`, very few if nobody will notice the difference. Therefore let's remove the problematic ApplicationServices as an attempt to stabilize the build. FWIW Git does not seem to have any sort of GUI detection. It seems to solely rely on (static) user configuration. This reverts part of https://www.mercurial-scm.org/repo/hg/rev/16118b4859a1. Reviewed By: singhsrb Differential Revision: D19441351 fbshipit-source-id: f1bfbaf0d015e8d577a83112b5ea0a4be6367156 |
||
---|---|---|
.. | ||
__init__.py | ||
base85.c | ||
bdiff.c | ||
charencode.c | ||
charencode.h | ||
diffhelpers.c | ||
dirs.c | ||
manifest.c | ||
mpatch.c | ||
osutil.c | ||
parsers.c | ||
pathencode.c | ||
README.md | ||
revlog.c | ||
util.h | ||
xdiff.c |
cext
Native code used by core Mercurial (not extensions), that depends on Python, lives here.
See also hgext/extlib/README.md
, lib/README.md
.