this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

xcode-select --install now does everything on its own

+7 -7
+2 -2
src/startup/darling.c
··· 736 736 } 737 737 738 738 opts = (char*) malloc(strlen(prefix)*2 + sizeof(LIBEXEC_PATH) + 100); 739 - sprintf(opts, "lowerdir=%s,upperdir=%s,workdir=%s.workdir", LIBEXEC_PATH, prefix, prefix); 739 + sprintf(opts, "lowerdir=%s,upperdir=%s,workdir=%s.workdir,metacopy=on", LIBEXEC_PATH, prefix, prefix); 740 740 741 741 // Mount overlay onto our prefix 742 742 if (mount("overlay", prefix, "overlay", 0, opts) != 0) ··· 749 749 750 750 // This is executed once at prefix creation 751 751 if (g_fixPermissions) 752 - fixDirectoryPermissions(prefix); 752 + fixDirectoryPermissions(prefix); 753 753 754 754 snprintf(putOld, sizeof(putOld), "%s/proc", prefix); 755 755
+1
src/xcselect/CMakeLists.txt
··· 18 18 19 19 install(TARGETS xcselect DESTINATION libexec/darling/usr/lib) 20 20 install(TARGETS xcrun xcode-select DESTINATION libexec/darling/usr/bin) 21 + install(PROGRAMS clt_install.py DESTINATION libexec/darling/usr/libexec/darling) 21 22 22 23 function(add_shim name require_xc) 23 24 add_darling_executable("${name}_shim" xcrun-shim.c)
-1
src/xcselect/TODO
··· 1 - * Implement `xcode-select` 2 1 * Stub out tons of Apple private frameworks to have `xcodebuild` working 3 2
+4 -4
src/xcselect/xcode-select.c
··· 1 1 /* 2 2 This file is part of Darling. 3 3 4 - Copyright (C) 2017 Lubos Dolezel 4 + Copyright (C) 2017-2020 Lubos Dolezel 5 5 6 6 Darling is free software: you can redistribute it and/or modify 7 7 it under the terms of the GNU General Public License as published by ··· 23 23 #include <string.h> 24 24 #include <unistd.h> 25 25 #include <errno.h> 26 + #include <sys/stat.h> 26 27 #include "xcselect.h" 27 28 28 29 void printUsage(void); ··· 75 76 } 76 77 else 77 78 { 78 - printf("Please visit https://developer.apple.com/download/more/ and download\n" 79 - "a package named \"Command Line Tools\".\n\n" 80 - "After that, install them by running `installer -pkg file.pkg -target /`.\n"); 79 + int status = system("/usr/libexec/darling/clt_install.py"); 80 + return WEXITSTATUS(status); 81 81 } 82 82 } 83 83 else if (strcmp(argv[1], "-r") == 0 || strcmp(argv[1], "--reset") == 0)