mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
darwin.cctools: 895 -> 927.0.2
Update the version of `cctools` on darwin. The older version fails to work on some modern packages, such as `bazel 1.1`.
This commit is contained in:
parent
5f8b0d7d99
commit
7b77c09e40
@ -1,22 +0,0 @@
|
||||
diff --git a/cctools/ld64/src/ld/OutputFile.cpp b/cctools/ld64/src/ld/OutputFile.cpp
|
||||
index 8859882..158c7d2 100644
|
||||
--- a/cctools/ld64/src/ld/OutputFile.cpp
|
||||
+++ b/cctools/ld64/src/ld/OutputFile.cpp
|
||||
@@ -2786,7 +2786,7 @@ void OutputFile::writeOutputFile(ld::Internal& state)
|
||||
#ifdef __APPLE__ // ld64-port
|
||||
struct statfs fsInfo;
|
||||
if ( statfs(_options.outputFilePath(), &fsInfo) != -1 ) {
|
||||
- if ( strcmp(fsInfo.f_fstypename, "hfs") == 0) {
|
||||
+ if ( (strcmp(fsInfo.f_fstypename, "hfs") == 0) || (strcmp(fsInfo.f_fstypename, "apfs") == 0) ) {
|
||||
(void)unlink(_options.outputFilePath());
|
||||
outputIsMappableFile = true;
|
||||
}
|
||||
@@ -2814,7 +2814,7 @@ void OutputFile::writeOutputFile(ld::Internal& state)
|
||||
#ifdef __APPLE__ // ld64-port
|
||||
struct statfs fsInfo;
|
||||
if ( statfs(dirPath, &fsInfo) != -1 ) {
|
||||
- if ( strcmp(fsInfo.f_fstypename, "hfs") == 0) {
|
||||
+ if ( (strcmp(fsInfo.f_fstypename, "hfs") == 0) || (strcmp(fsInfo.f_fstypename, "apfs") == 0) ) {
|
||||
outputIsMappableFile = true;
|
||||
}
|
||||
}
|
@ -1,31 +0,0 @@
|
||||
diff --git a/cctools/ld64/src/ld/Options.cpp b/cctools/ld64/src/ld/Options.cpp
|
||||
index 9250016..91d54ec 100644
|
||||
--- a/cctools/ld64/src/ld/Options.cpp
|
||||
+++ b/cctools/ld64/src/ld/Options.cpp
|
||||
@@ -4175,23 +4175,9 @@ void Options::checkIllegalOptionCombinations()
|
||||
throw "-r and -dead_strip cannot be used together";
|
||||
|
||||
// can't use -rpath unless targeting 10.5 or later
|
||||
- if ( fRPaths.size() > 0 ) {
|
||||
- if ( !minOS(ld::mac10_5, ld::iOS_2_0) )
|
||||
- throw "-rpath can only be used when targeting Mac OS X 10.5 or later";
|
||||
- switch ( fOutputKind ) {
|
||||
- case Options::kDynamicExecutable:
|
||||
- case Options::kDynamicLibrary:
|
||||
- case Options::kDynamicBundle:
|
||||
- break;
|
||||
- case Options::kStaticExecutable:
|
||||
- case Options::kObjectFile:
|
||||
- case Options::kDyld:
|
||||
- case Options::kPreload:
|
||||
- case Options::kKextBundle:
|
||||
- throw "-rpath can only be used when creating a dynamic final linked image";
|
||||
- }
|
||||
- }
|
||||
-
|
||||
+ if ( fRPaths.size() > 0 && !minOS(ld::mac10_5, ld::iOS_2_0) )
|
||||
+ throw "-rpath can only be used when targeting Mac OS X 10.5 or later";
|
||||
+
|
||||
if ( fPositionIndependentExecutable ) {
|
||||
switch ( fOutputKind ) {
|
||||
case Options::kDynamicExecutable:
|
@ -19,13 +19,13 @@ assert (!stdenv.hostPlatform.isDarwin) -> maloader != null;
|
||||
let
|
||||
baseParams = rec {
|
||||
name = "${targetPrefix}cctools-port-${version}";
|
||||
version = "895";
|
||||
version = "927.0.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tpoechtrager";
|
||||
repo = "cctools-port";
|
||||
rev = "07619027f8311fa61b4a549c75994b88739a82d8";
|
||||
sha256 = "12g94hhz5v5bmy2w0zb6fb4bjlmn992gygc60h9nai15kshj2spi";
|
||||
rev = "8239a5211bcf07d6b9d359782e1a889ec1d7cce5";
|
||||
sha256 = "0h8b1my0wf1jyjq63wbiqkl2clgxsf87f6i4fjhqs431fzlq8sac";
|
||||
};
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
@ -35,7 +35,7 @@ let
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [ libcxxabi libobjc ]
|
||||
++ stdenv.lib.optional enableTapiSupport libtapi;
|
||||
|
||||
patches = [ ./ld-rpath-nonfinal.patch ./ld-ignore-rpath-link.patch ./apfs.patch ];
|
||||
patches = [ ./ld-ignore-rpath-link.patch ];
|
||||
|
||||
__propagatedImpureHostDeps = [
|
||||
# As far as I can tell, otool from cctools is the only thing that depends on these two, and we should fix them
|
||||
|
Loading…
Reference in New Issue
Block a user