diff --git a/checkin_notes b/checkin_notes index c82de21e96..9c5d72fa10 100755 --- a/checkin_notes +++ b/checkin_notes @@ -8294,3 +8294,22 @@ Walt 1 Aug 2006 api/ x_opengl.C +Charlie 1 Aug 2006 + - Mac sandbox: added Dev_noSandbox and Deploy_noSandbox build styles + to XCode project for testing ability to build without -DSANDBOX. + - Mac sandbox: check_security() uses PersistentFGets() for better + reliability, deletes newline from path if present. + - Fix compile errors in non-SANDBOX builds. + + client/ + client_state.C + clientGUI/ + mac/ + mac_saver_module.cpp + lib/ + util.C + mac_installer/ + PostInstall.cpp + mac_build/ + boinc.xcodeproj/ + project.pbxproj diff --git a/client/check_security.C b/client/check_security.C index d09d1f6d62..cca5a21abd 100644 --- a/client/check_security.C +++ b/client/check_security.C @@ -27,6 +27,7 @@ #include #include // for MAXPATHLEN #include +#include #include "util.h" #include "error_numbers.h" #include "file_names.h" @@ -34,6 +35,7 @@ static int CheckNestedDirectories(char * basepath, int depth, int use_sandbox); #if (! defined(__WXMAC__) && ! defined(_MAC_INSTALLER)) +static char * PersistentFGets(char *buf, size_t buflen, FILE *f); static void GetPathToThisProcess(char* outbuf, size_t maxLen); #endif @@ -488,6 +490,26 @@ static int CheckNestedDirectories(char * basepath, int depth, int use_sandbox) { #if (! defined(__WXMAC__) && ! defined(_MAC_INSTALLER)) + +static char * PersistentFGets(char *buf, size_t buflen, FILE *f) { + char *p = buf; + size_t len = buflen; + size_t datalen = 0; + + *buf = '\0'; + while (datalen < (buflen - 1)) { + fgets(p, len, f); + if (feof(f)) break; + if (ferror(f) && (errno != EINTR)) break; + if (strchr(buf, '\n')) break; + datalen = strlen(buf); + p = buf + datalen; + len -= datalen; + } + return (buf[0] ? buf : NULL); +} + + static void GetPathToThisProcess(char* outbuf, size_t maxLen) { FILE *f; char buf[256], *p, *q; @@ -500,9 +522,14 @@ static void GetPathToThisProcess(char* outbuf, size_t maxLen) { if (f == NULL) return; - fgets (outbuf, maxLen, f); // Discard header line - fgets (outbuf, maxLen, f); + PersistentFGets (outbuf, maxLen, f); // Discard header line + PersistentFGets (outbuf, maxLen, f); pclose(f); + + // Remove trailing newline if present + p = strchr(outbuf, '\n'); + if (p) + *p = '\0'; // Strip off any arguments p = strstr(outbuf, " -"); diff --git a/client/client_state.C b/client/client_state.C index 35a99402d3..6733c92166 100644 --- a/client/client_state.C +++ b/client/client_state.C @@ -313,7 +313,7 @@ int CLIENT_STATE::init() { } } -#ifndef _WIN32 +#if (defined(SANDBOX) && ! defined(_WIN32)) if (g_use_sandbox) { #ifdef _DEBUG boinc_project_gid = getegid(); diff --git a/clientgui/mac/mac_saver_module.cpp b/clientgui/mac/mac_saver_module.cpp index 30876550b9..833463fe03 100755 --- a/clientgui/mac/mac_saver_module.cpp +++ b/clientgui/mac/mac_saver_module.cpp @@ -147,8 +147,6 @@ const char * BOINCUnrecoverableErrorMsg = "Sorry, an unrecoverable error occurr const char * BOINCTestmodeMg = "This BOINC screensaver does not support Test mode"; //const char * BOINCExitedSaverMode = "BOINC is no longer in screensaver mode."; -int g_use_sandbox = 0; - // Returns desired Animation Frequency (per second) or 0 for no change int initBOINCSaver(Boolean ispreview) { diff --git a/lib/util.C b/lib/util.C index 58962b67ca..d597d01200 100755 --- a/lib/util.C +++ b/lib/util.C @@ -68,7 +68,7 @@ using std::string; // and gstate.m_use_sandbox in the Client, but it is used by some source files // (filesys.C, check_security.C) that are linked with both Manager and Client // so the most practical solution is to use a global. -int g_use_sandbox; +int g_use_sandbox = 0; // Use this instead of strncpy(). diff --git a/mac_build/boinc.xcodeproj/project.pbxproj b/mac_build/boinc.xcodeproj/project.pbxproj index 5bc3882a9d..6163559994 100755 --- a/mac_build/boinc.xcodeproj/project.pbxproj +++ b/mac_build/boinc.xcodeproj/project.pbxproj @@ -2376,7 +2376,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "chown -R ${USER}:${GROUP} \"${BUILT_PRODUCTS_DIR}/BOINCManager.app\"\nchmod g+s \"${BUILT_PRODUCTS_DIR}/BOINCManager.app/Contents/MacOS/BOINCManager\"\nchmod u+s,g+s \"${BUILT_PRODUCTS_DIR}/BOINCManager.app/Contents/Resources/boinc\"\n"; + shellScript = "if [ \"$BUILD_STYLE\" != \"Deploy_noSandbox\" ] && [ \"$BUILD_STYLE\" != \"Dev_noSandbox\" ]; then\n chown -R ${USER}:${GROUP} \"${BUILT_PRODUCTS_DIR}/BOINCManager.app\"\n chmod g+s \"${BUILT_PRODUCTS_DIR}/BOINCManager.app/Contents/MacOS/BOINCManager\"\n chmod u+s,g+s \"${BUILT_PRODUCTS_DIR}/BOINCManager.app/Contents/Resources/boinc\"\nfi"; }; /* End PBXShellScriptBuildPhase section */ @@ -3294,6 +3294,1175 @@ }; name = Deployment; }; + DD62C37D0A801FB400B3D68A /* Dev_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = NO; + GCC_DYNAMIC_NO_PIC = NO; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PRECOMPILE_PREFIX_HEADER = NO; + GCC_PREFIX_HEADER = ""; + INSTALL_PATH = /usr/local/lib; + LIBRARY_STYLE = STATIC; + MACOSX_DEPLOYMENT_TARGET = ""; + OPTIMIZATION_CFLAGS = "-O0"; + OTHER_CFLAGS = ( + "-DMAC_OS_X_VERSION_MAX_ALLOWED=1040", + "-D_THREAD_SAFE", + "-include", + ../clientgui/mac/config.h, + ); + OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; + OTHER_LDFLAGS = ""; + OTHER_REZFLAGS = ""; + PRODUCT_NAME = boinc; + SECTORDER_FLAGS = ""; + SKIP_INSTALL = YES; + WARNING_CFLAGS = ( + "-Wmost", + "-Wno-four-char-constants", + "-Wno-unknown-pragmas", + ); + ZERO_LINK = NO; + }; + name = Dev_noSandbox; + }; + DD62C37E0A801FB400B3D68A /* Deploy_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = YES; + DEAD_CODE_STRIPPING = YES; + DEPLOYMENT_POSTPROCESSING = YES; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_GENERATE_DEBUGGING_SYMBOLS = NO; + GCC_PRECOMPILE_PREFIX_HEADER = NO; + GCC_PREFIX_HEADER = ""; + INSTALL_PATH = /usr/local/lib; + LIBRARY_STYLE = STATIC; + MACOSX_DEPLOYMENT_TARGET = 10.4; + OTHER_CFLAGS = ( + "-D_THREAD_SAFE", + "-include", + ../clientgui/mac/config.h, + ); + OTHER_CFLAGS_i386 = "-DMAC_OS_X_VERSION_MAX_ALLOWED=1040 -D_THREAD_SAFE -include ../clientgui/mac/config.h"; + OTHER_CFLAGS_ppc = "-DMAC_OS_X_VERSION_MAX_ALLOWED=1030 -D_THREAD_SAFE -include ../clientgui/mac/config.h"; + OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; + OTHER_LDFLAGS = ""; + OTHER_REZFLAGS = ""; + PRODUCT_NAME = boinc; + SECTORDER_FLAGS = ""; + SKIP_INSTALL = YES; + WARNING_CFLAGS = ( + "-Wmost", + "-Wno-four-char-constants", + "-Wno-unknown-pragmas", + ); + ZERO_LINK = NO; + }; + name = Deploy_noSandbox; + }; + DD62C37F0A801FB400B3D68A /* Dev_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = NO; + GCC_DYNAMIC_NO_PIC = NO; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + HEADER_SEARCH_PATHS = "../../jpeg-6b"; + INSTALL_PATH = /usr/local/lib; + LIBRARY_STYLE = STATIC; + MACOSX_DEPLOYMENT_TARGET = ""; + OPTIMIZATION_CFLAGS = "-O0"; + OTHER_CFLAGS = ( + "-DMAC_OS_X_VERSION_MAX_ALLOWED=1040", + "-D_THREAD_SAFE", + "-include", + ../clientgui/mac/config.h, + ); + OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; + OTHER_LDFLAGS = ""; + OTHER_REZFLAGS = ""; + PRODUCT_NAME = boinc_graphics_api; + SECTORDER_FLAGS = ""; + SKIP_INSTALL = YES; + WARNING_CFLAGS = ( + "-Wmost", + "-Wno-four-char-constants", + "-Wno-unknown-pragmas", + ); + ZERO_LINK = NO; + }; + name = Dev_noSandbox; + }; + DD62C3800A801FB400B3D68A /* Deploy_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = YES; + DEAD_CODE_STRIPPING = YES; + DEPLOYMENT_POSTPROCESSING = YES; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + HEADER_SEARCH_PATHS = "../../jpeg-6b"; + INSTALL_PATH = /usr/local/lib; + LIBRARY_STYLE = STATIC; + MACOSX_DEPLOYMENT_TARGET = 10.4; + OTHER_CFLAGS = ( + "-D_THREAD_SAFE", + "-include", + ../clientgui/mac/config.h, + ); + OTHER_CFLAGS_i386 = "-DMAC_OS_X_VERSION_MAX_ALLOWED=1040 -D_THREAD_SAFE -include ../clientgui/mac/config.h"; + OTHER_CFLAGS_ppc = "-DMAC_OS_X_VERSION_MAX_ALLOWED=1030 -D_THREAD_SAFE -include ../clientgui/mac/config.h"; + OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; + OTHER_LDFLAGS = ""; + OTHER_REZFLAGS = ""; + PRODUCT_NAME = boinc_graphics_api; + SECTORDER_FLAGS = ""; + SKIP_INSTALL = YES; + WARNING_CFLAGS = ( + "-Wmost", + "-Wno-four-char-constants", + "-Wno-unknown-pragmas", + ); + ZERO_LINK = NO; + }; + name = Deploy_noSandbox; + }; + DD62C3810A801FB400B3D68A /* Dev_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = NO; + GCC_DYNAMIC_NO_PIC = NO; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + INSTALL_PATH = /usr/local/lib; + LIBRARY_STYLE = STATIC; + MACOSX_DEPLOYMENT_TARGET = ""; + OPTIMIZATION_CFLAGS = "-O0"; + OTHER_CFLAGS = ( + "-DMAC_OS_X_VERSION_MAX_ALLOWED=1040", + "-D_THREAD_SAFE", + "-include", + ../clientgui/mac/config.h, + ); + OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; + OTHER_LDFLAGS = ""; + OTHER_REZFLAGS = ""; + PRODUCT_NAME = boinc_api; + SECTORDER_FLAGS = ""; + WARNING_CFLAGS = ( + "-Wmost", + "-Wno-four-char-constants", + "-Wno-unknown-pragmas", + ); + ZERO_LINK = NO; + }; + name = Dev_noSandbox; + }; + DD62C3820A801FB400B3D68A /* Deploy_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = YES; + DEAD_CODE_STRIPPING = YES; + DEPLOYMENT_POSTPROCESSING = YES; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + INSTALL_PATH = /usr/local/lib; + LIBRARY_STYLE = STATIC; + MACOSX_DEPLOYMENT_TARGET = 10.4; + OTHER_CFLAGS = ( + "-D_THREAD_SAFE", + "-include", + ../clientgui/mac/config.h, + ); + OTHER_CFLAGS_i386 = "-DMAC_OS_X_VERSION_MAX_ALLOWED=1040 -D_THREAD_SAFE -include ../clientgui/mac/config.h"; + OTHER_CFLAGS_ppc = "-DMAC_OS_X_VERSION_MAX_ALLOWED=1030 -D_THREAD_SAFE -include ../clientgui/mac/config.h"; + OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; + OTHER_LDFLAGS = ""; + OTHER_REZFLAGS = ""; + PRODUCT_NAME = boinc_api; + SECTORDER_FLAGS = ""; + WARNING_CFLAGS = ( + "-Wmost", + "-Wno-four-char-constants", + "-Wno-unknown-pragmas", + ); + ZERO_LINK = NO; + }; + name = Deploy_noSandbox; + }; + DD62C3830A801FB400B3D68A /* Dev_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = NO; + GCC_DYNAMIC_NO_PIC = NO; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + INSTALL_PATH = /usr/local/bin; + OPTIMIZATION_CFLAGS = "-O0"; + OTHER_CFLAGS = ""; + OTHER_LDFLAGS = ""; + OTHER_REZFLAGS = ""; + PRODUCT_NAME = SetVersion; + SECTORDER_FLAGS = ""; + WARNING_CFLAGS = ( + "-Wmost", + "-Wno-four-char-constants", + "-Wno-unknown-pragmas", + ); + ZERO_LINK = NO; + }; + name = Dev_noSandbox; + }; + DD62C3840A801FB400B3D68A /* Deploy_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = "$(NATIVE_ARCH)"; + COPY_PHASE_STRIP = YES; + DEAD_CODE_STRIPPING = YES; + DEPLOYMENT_POSTPROCESSING = NO; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + INSTALL_PATH = /usr/local/bin; + OTHER_CFLAGS = ""; + OTHER_LDFLAGS = ""; + OTHER_REZFLAGS = ""; + PRODUCT_NAME = SetVersion; + SECTORDER_FLAGS = ""; + WARNING_CFLAGS = ( + "-Wmost", + "-Wno-four-char-constants", + "-Wno-unknown-pragmas", + ); + ZERO_LINK = NO; + }; + name = Deploy_noSandbox; + }; + DD62C3850A801FB400B3D68A /* Dev_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = NO; + GCC_DYNAMIC_NO_PIC = NO; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PRECOMPILE_PREFIX_HEADER = NO; + GCC_PREFIX_HEADER = ""; + INFOPLIST_FILE = "ScreenSaver-Info.plist"; + INSTALL_PATH = "$(USER_LIBRARY_DIR)/Bundles"; + LIBRARY_SEARCH_PATHS = ""; + MACOSX_DEPLOYMENT_TARGET = ""; + OPTIMIZATION_CFLAGS = "-O0"; + OTHER_CFLAGS = ( + "-DMAC_OS_X_VERSION_MAX_ALLOWED=1040", + "-include", + ../clientgui/mac/config.h, + ); + OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; + OTHER_LDFLAGS = ( + "-framework", + Foundation, + "-framework", + AppKit, + ); + OTHER_REZFLAGS = ""; + PRODUCT_NAME = BOINCSaver; + SECTORDER_FLAGS = ""; + WARNING_CFLAGS = ( + "-Wmost", + "-Wno-four-char-constants", + "-Wno-unknown-pragmas", + ); + WRAPPER_EXTENSION = saver; + ZERO_LINK = NO; + }; + name = Dev_noSandbox; + }; + DD62C3860A801FB400B3D68A /* Deploy_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = YES; + DEAD_CODE_STRIPPING = YES; + DEPLOYMENT_POSTPROCESSING = YES; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_PRECOMPILE_PREFIX_HEADER = NO; + GCC_PREFIX_HEADER = ""; + INFOPLIST_FILE = "ScreenSaver-Info.plist"; + INSTALL_PATH = "$(USER_LIBRARY_DIR)/Bundles"; + LIBRARY_SEARCH_PATHS = ""; + MACOSX_DEPLOYMENT_TARGET = 10.4; + OTHER_CFLAGS = ( + "-include", + ../clientgui/mac/config.h, + ); + OTHER_CFLAGS_i386 = "-DMAC_OS_X_VERSION_MAX_ALLOWED=1040 -include ../clientgui/mac/config.h"; + OTHER_CFLAGS_ppc = "-DMAC_OS_X_VERSION_MAX_ALLOWED=1030 -include ../clientgui/mac/config.h"; + OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; + OTHER_LDFLAGS = ( + "-framework", + Foundation, + "-framework", + AppKit, + ); + OTHER_REZFLAGS = ""; + PRODUCT_NAME = BOINCSaver; + SECTORDER_FLAGS = ""; + WARNING_CFLAGS = ( + "-Wmost", + "-Wno-four-char-constants", + "-Wno-unknown-pragmas", + ); + WRAPPER_EXTENSION = saver; + ZERO_LINK = NO; + }; + name = Deploy_noSandbox; + }; + DD62C3870A801FB500B3D68A /* Dev_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = NO; + GCC_DYNAMIC_NO_PIC = NO; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PRECOMPILE_PREFIX_HEADER = NO; + GCC_PREFIX_HEADER = ""; + HEADER_SEARCH_PATHS = "../../curl-7.15.3/include"; + INSTALL_PATH = ""; + LIBRARY_SEARCH_PATHS = ""; + MACOSX_DEPLOYMENT_TARGET = ""; + OPTIMIZATION_CFLAGS = "-O0"; + OTHER_CFLAGS = ( + "-DMAC_OS_X_VERSION_MAX_ALLOWED=1040", + "-D_THREAD_SAFE", + "-D_DEBUG", + "-include", + ../clientgui/mac/config.h, + ); + OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; + OTHER_LDFLAGS = ( + "-framework", + Security, + "../../curl-7.15.3/lib/.libs/libcurl.a", + "-lcrypto", + "-lssl", + "-lz", + ); + OTHER_REZFLAGS = ""; + PRODUCT_NAME = boinc; + SDKROOT_i386 = /Developer/SDKs/MacOSX10.4u.sdk; + SDKROOT_ppc = /Developer/SDKs/MacOSX10.3.9.sdk; + SECTORDER_FLAGS = ""; + SKIP_INSTALL = YES; + UNSTRIPPED_PRODUCT = YES; + WARNING_CFLAGS = ( + "-Wmost", + "-Wno-four-char-constants", + "-Wno-unknown-pragmas", + ); + ZERO_LINK = NO; + }; + name = Dev_noSandbox; + }; + DD62C3880A801FB500B3D68A /* Deploy_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = ( + i386, + ppc, + ); + COPY_PHASE_STRIP = YES; + DEAD_CODE_STRIPPING = YES; + DEPLOYMENT_POSTPROCESSING = YES; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_PRECOMPILE_PREFIX_HEADER = NO; + GCC_PREFIX_HEADER = ""; + HEADER_SEARCH_PATHS = "../../curl-7.15.3/include"; + INSTALL_PATH = ""; + LIBRARY_SEARCH_PATHS = ""; + MACOSX_DEPLOYMENT_TARGET = 10.4; + OTHER_CFLAGS = ( + "-D_THREAD_SAFE", + "-include", + ../clientgui/mac/config.h, + ); + OTHER_CFLAGS_i386 = "-DMAC_OS_X_VERSION_MAX_ALLOWED=1040 -D_THREAD_SAFE -D__WXMAC -include ../clientgui/mac/config.h"; + OTHER_CFLAGS_ppc = "-DMAC_OS_X_VERSION_MAX_ALLOWED=1030 -D_THREAD_SAFE -D__WXMAC -include ../clientgui/mac/config.h"; + OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; + OTHER_LDFLAGS = ( + "../../curl-7.15.3/lib/.libs/libcurl.a", + "-lcrypto", + "-lssl", + "-lz", + ); + OTHER_REZFLAGS = ""; + PRODUCT_NAME = boinc; + SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk; + SDKROOT_i386 = /Developer/SDKs/MacOSX10.4u.sdk; + SECTORDER_FLAGS = ""; + SKIP_INSTALL = YES; + UNSTRIPPED_PRODUCT = YES; + WARNING_CFLAGS = ( + "-Wmost", + "-Wno-four-char-constants", + "-Wno-unknown-pragmas", + ); + ZERO_LINK = NO; + }; + name = Deploy_noSandbox; + }; + DD62C3890A801FB500B3D68A /* Dev_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = NO; + GCC_DYNAMIC_NO_PIC = NO; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PRECOMPILE_PREFIX_HEADER = NO; + GCC_PREFIX_HEADER = ""; + INFOPLIST_FILE = "SystemMenu-Info.plist"; + INSTALL_PATH = "$(USER_LIBRARY_DIR)/Bundles"; + LIBRARY_SEARCH_PATHS = /usr/lib/gcc/darwin/; + MACOSX_DEPLOYMENT_TARGET = ""; + OPTIMIZATION_CFLAGS = "-O0"; + OTHER_CFLAGS = "-DMAC_OS_X_VERSION_MAX_ALLOWED=1040"; + OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; + OTHER_LDFLAGS = ( + "-framework", + Foundation, + "-framework", + AppKit, + ); + OTHER_REZFLAGS = ""; + PRODUCT_NAME = SystemMenu; + SECTORDER_FLAGS = ""; + WARNING_CFLAGS = ( + "-Wmost", + "-Wno-four-char-constants", + "-Wno-unknown-pragmas", + ); + ZERO_LINK = NO; + }; + name = Dev_noSandbox; + }; + DD62C38A0A801FB500B3D68A /* Deploy_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = YES; + DEAD_CODE_STRIPPING = YES; + DEPLOYMENT_POSTPROCESSING = YES; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_PRECOMPILE_PREFIX_HEADER = NO; + GCC_PREFIX_HEADER = ""; + INFOPLIST_FILE = "SystemMenu-Info.plist"; + INSTALL_PATH = "$(USER_LIBRARY_DIR)/Bundles"; + LIBRARY_SEARCH_PATHS = ""; + MACOSX_DEPLOYMENT_TARGET = 10.4; + OTHER_CFLAGS = ""; + OTHER_CFLAGS_i386 = "-DMAC_OS_X_VERSION_MAX_ALLOWED=1040"; + OTHER_CFLAGS_ppc = "-DMAC_OS_X_VERSION_MAX_ALLOWED=1030"; + OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; + OTHER_LDFLAGS = ( + "-framework", + Foundation, + "-framework", + AppKit, + ); + OTHER_REZFLAGS = ""; + PRODUCT_NAME = SystemMenu; + SECTORDER_FLAGS = ""; + WARNING_CFLAGS = ( + "-Wmost", + "-Wno-four-char-constants", + "-Wno-unknown-pragmas", + ); + ZERO_LINK = NO; + }; + name = Deploy_noSandbox; + }; + DD62C38B0A801FB500B3D68A /* Dev_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = NO; + DEPLOYMENT_POSTPROCESSING = NO; + GCC_CW_ASM_SYNTAX = NO; + GCC_DYNAMIC_NO_PIC = NO; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PFE_FILE_C_DIALECTS = "c++"; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = ../clientgui/mac/MacGUI.pch; + HEADER_SEARCH_PATHS = ( + "../../wxMac-2.6.3/src/build/include/wx/", + "../../wxMac-2.6.3/include", + ../clientgui, + ); + INFOPLIST_FILE = Info.plist; + INSTALL_PATH = "$(USER_APPS_DIR)"; + LIBRARY_SEARCH_PATHS = ( + "../../wxMac-2.6.3/src/build/Deployment/", + ../lib, + ); + MACOSX_DEPLOYMENT_TARGET = ""; + OPTIMIZATION_CFLAGS = "-O0"; + OTHER_CFLAGS = ( + "-DMAC_OS_X_VERSION_MAX_ALLOWED=1040", + "-DHAVE_CONFIG_H", + "-D_FILE_OFFSET_BITS=64", + "-D_LARGE_FILES", + "-DNO_GCC_PRAGMA", + "-DNOCLIPBOARD", + "-D_THREAD_SAFE", + "-D__WXMAC__", + "-D_DEBUG", + "-DHAVE_STRCASECMP_IN_STRING_H", + ); + OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; + OTHER_LDFLAGS = ( + "-D_THREAD_SAFE", + "-lz", + "-lpthread", + "-liconv", + "-lz", + "-lm", + ); + OTHER_REZFLAGS = ""; + PRODUCT_NAME = BOINCManager; + SECTORDER_FLAGS = ""; + SKIP_INSTALL = NO; + UNSTRIPPED_PRODUCT = YES; + WARNING_CFLAGS = ( + "-Wmost", + "-Wno-four-char-constants", + "-Wno-unknown-pragmas", + ); + ZERO_LINK = NO; + }; + name = Dev_noSandbox; + }; + DD62C38C0A801FB500B3D68A /* Deploy_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = YES; + DEAD_CODE_STRIPPING = YES; + DEPLOYMENT_POSTPROCESSING = YES; + GCC_CW_ASM_SYNTAX = NO; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_PFE_FILE_C_DIALECTS = "c++"; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = ../clientgui/mac/MacGUI.pch; + HEADER_SEARCH_PATHS = ( + "../../wxMac-2.6.3/src/build/include/wx/", + "../../wxMac-2.6.3/include", + ../clientgui, + ); + INFOPLIST_FILE = Info.plist; + INSTALL_PATH = "$(USER_APPS_DIR)"; + LIBRARY_SEARCH_PATHS = ( + "../../wxMac-2.6.3/src/build/Deployment/", + ../lib, + ); + MACOSX_DEPLOYMENT_TARGET = 10.4; + OTHER_CFLAGS = ( + "-DHAVE_CONFIG_H", + "-D_FILE_OFFSET_BITS=64", + "-D_LARGE_FILES", + "-DNO_GCC_PRAGMA", + "-DNOCLIPBOARD", + "-D_THREAD_SAFE", + "-D__WXMAC__", + "-DHAVE_STRCASECMP_IN_STRING_H", + ); + OTHER_CFLAGS_i386 = "-DMAC_OS_X_VERSION_MAX_ALLOWED=1040 -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -DNOCLIPBOARD -D_THREAD_SAFE -D__WXMAC__ -DHAVE_STRCASECMP_IN_STRING_H"; + OTHER_CFLAGS_ppc = "-DMAC_OS_X_VERSION_MAX_ALLOWED=1030 -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -DNOCLIPBOARD -D_THREAD_SAFE -D__WXMAC__ -DHAVE_STRCASECMP_IN_STRING_H"; + OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; + OTHER_LDFLAGS = ( + "-D_THREAD_SAFE", + "-lz", + "-lpthread", + "-liconv", + "-lz", + "-lm", + ); + OTHER_REZFLAGS = ""; + PRODUCT_NAME = BOINCManager; + SECTORDER_FLAGS = ""; + SKIP_INSTALL = NO; + UNSTRIPPED_PRODUCT = YES; + WARNING_CFLAGS = ( + "-Wmost", + "-Wno-four-char-constants", + "-Wno-unknown-pragmas", + ); + ZERO_LINK = NO; + }; + name = Deploy_noSandbox; + }; + DD62C38D0A801FB500B3D68A /* Dev_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = NO; + GCC_DYNAMIC_NO_PIC = NO; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PRECOMPILE_PREFIX_HEADER = NO; + GCC_PREFIX_HEADER = ""; + INFOPLIST_FILE = "PostInstall-Info.plist"; + INSTALL_PATH = "$(USER_APPS_DIR)"; + LIBRARY_SEARCH_PATHS = ""; + MACOSX_DEPLOYMENT_TARGET = ""; + OPTIMIZATION_CFLAGS = "-O0"; + OTHER_CFLAGS = ( + "-D_MAC_INSTALLER", + "-DMAC_OS_X_VERSION_MAX_ALLOWED=1040", + ); + OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; + OTHER_LDFLAGS = ( + "-framework", + Carbon, + ); + OTHER_REZFLAGS = ""; + PRODUCT_NAME = Postinstall; + SECTORDER_FLAGS = ""; + WARNING_CFLAGS = ( + "-Wmost", + "-Wno-four-char-constants", + "-Wno-unknown-pragmas", + ); + ZERO_LINK = NO; + }; + name = Dev_noSandbox; + }; + DD62C38E0A801FB500B3D68A /* Deploy_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = YES; + DEAD_CODE_STRIPPING = YES; + DEPLOYMENT_POSTPROCESSING = NO; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_PRECOMPILE_PREFIX_HEADER = NO; + GCC_PREFIX_HEADER = ""; + INFOPLIST_FILE = "PostInstall-Info.plist"; + INSTALL_PATH = "$(USER_APPS_DIR)"; + LIBRARY_SEARCH_PATHS = ""; + MACOSX_DEPLOYMENT_TARGET = 10.4; + OTHER_CFLAGS = "-D_MAC_INSTALLER"; + OTHER_CFLAGS_i386 = "-DMAC_OS_X_VERSION_MAX_ALLOWED=1040"; + OTHER_CFLAGS_ppc = "-DMAC_OS_X_VERSION_MAX_ALLOWED=1030"; + OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; + OTHER_LDFLAGS = ( + "-framework", + Carbon, + ); + OTHER_REZFLAGS = ""; + PRODUCT_NAME = Postinstall; + SECTORDER_FLAGS = ""; + WARNING_CFLAGS = ( + "-Wmost", + "-Wno-four-char-constants", + "-Wno-unknown-pragmas", + ); + ZERO_LINK = NO; + }; + name = Deploy_noSandbox; + }; + DD62C38F0A801FB500B3D68A /* Dev_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = NO; + GCC_DYNAMIC_NO_PIC = NO; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_MODEL_TUNING = G5; + GCC_OPTIMIZATION_LEVEL = 0; + INSTALL_PATH = "$(HOME)/bin"; + LIBRARY_SEARCH_PATHS = /usr/lib/gcc/darwin/; + MACOSX_DEPLOYMENT_TARGET = ""; + OPTIMIZATION_CFLAGS = "-O0"; + OTHER_LDFLAGS = "-lboinc"; + OTHER_REZFLAGS = ""; + PREBINDING = NO; + PRODUCT_NAME = boinc_cmd; + SECTORDER_FLAGS = ""; + WARNING_CFLAGS = ( + "-Wmost", + "-Wno-four-char-constants", + "-Wno-unknown-pragmas", + ); + ZERO_LINK = NO; + }; + name = Dev_noSandbox; + }; + DD62C3900A801FB500B3D68A /* Deploy_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = YES; + DEAD_CODE_STRIPPING = YES; + DEPLOYMENT_POSTPROCESSING = NO; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_GENERATE_DEBUGGING_SYMBOLS = NO; + GCC_MODEL_TUNING = G5; + GCC_PRECOMPILE_PREFIX_HEADER = NO; + INSTALL_PATH = "$(HOME)/bin"; + LIBRARY_SEARCH_PATHS = ""; + MACOSX_DEPLOYMENT_TARGET = 10.4; + OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; + OTHER_LDFLAGS = "-lboinc"; + OTHER_REZFLAGS = ""; + PREBINDING = NO; + PRODUCT_NAME = boinc_cmd; + SECTORDER_FLAGS = ""; + WARNING_CFLAGS = ( + "-Wmost", + "-Wno-four-char-constants", + "-Wno-unknown-pragmas", + ); + ZERO_LINK = NO; + }; + name = Deploy_noSandbox; + }; + DD62C3910A801FB500B3D68A /* Dev_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = NO; + GCC_DYNAMIC_NO_PIC = NO; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_MODEL_TUNING = G5; + GCC_OPTIMIZATION_LEVEL = 0; + INSTALL_PATH = "$(HOME)/bin"; + OPTIMIZATION_CFLAGS = "-O0"; + OTHER_CFLAGS = ""; + OTHER_LDFLAGS = ""; + OTHER_REZFLAGS = ""; + PREBINDING = NO; + PRODUCT_NAME = MakeAppIcon_h; + SECTORDER_FLAGS = ""; + WARNING_CFLAGS = ( + "-Wmost", + "-Wno-four-char-constants", + "-Wno-unknown-pragmas", + ); + ZERO_LINK = NO; + }; + name = Dev_noSandbox; + }; + DD62C3920A801FB500B3D68A /* Deploy_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = YES; + DEAD_CODE_STRIPPING = YES; + DEPLOYMENT_POSTPROCESSING = NO; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_GENERATE_DEBUGGING_SYMBOLS = NO; + GCC_MODEL_TUNING = G5; + INSTALL_PATH = "$(HOME)/bin"; + OTHER_CFLAGS = ""; + OTHER_LDFLAGS = ""; + OTHER_REZFLAGS = ""; + PREBINDING = NO; + PRODUCT_NAME = MakeAppIcon_h; + SECTORDER_FLAGS = ""; + WARNING_CFLAGS = ( + "-Wmost", + "-Wno-four-char-constants", + "-Wno-unknown-pragmas", + ); + ZERO_LINK = NO; + }; + name = Deploy_noSandbox; + }; + DD62C3930A801FB500B3D68A /* Dev_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = NO; + GCC_DYNAMIC_NO_PIC = NO; + GCC_ENABLE_FIX_AND_CONTINUE = YES; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_MODEL_TUNING = G5; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PRECOMPILE_PREFIX_HEADER = NO; + GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/Carbon.framework/Headers/Carbon.h"; + INSTALL_PATH = "$(HOME)/bin"; + OTHER_CFLAGS = ""; + OTHER_LDFLAGS = ( + "-framework", + Carbon, + ); + PREBINDING = NO; + PRODUCT_NAME = SetUpSecurity; + ZERO_LINK = NO; + }; + name = Dev_noSandbox; + }; + DD62C3940A801FB500B3D68A /* Deploy_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = YES; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_GENERATE_DEBUGGING_SYMBOLS = NO; + GCC_MODEL_TUNING = G5; + GCC_PRECOMPILE_PREFIX_HEADER = NO; + GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/Carbon.framework/Headers/Carbon.h"; + INSTALL_PATH = "$(HOME)/bin"; + OTHER_LDFLAGS = ( + "-framework", + Carbon, + ); + PREBINDING = NO; + PRODUCT_NAME = SetUpSecurity; + ZERO_LINK = NO; + }; + name = Deploy_noSandbox; + }; + DD62C3950A801FB500B3D68A /* Dev_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = NO; + GCC_DYNAMIC_NO_PIC = NO; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_MODEL_TUNING = G5; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PRECOMPILE_PREFIX_HEADER = NO; + INSTALL_PATH = "$(HOME)/bin"; + PREBINDING = NO; + PRODUCT_NAME = switcher; + ZERO_LINK = NO; + }; + name = Dev_noSandbox; + }; + DD62C3960A801FB500B3D68A /* Deploy_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = YES; + DEAD_CODE_STRIPPING = YES; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_GENERATE_DEBUGGING_SYMBOLS = NO; + GCC_MODEL_TUNING = G5; + GCC_PRECOMPILE_PREFIX_HEADER = NO; + INSTALL_PATH = "$(HOME)/bin"; + PREBINDING = NO; + PRODUCT_NAME = switcher; + ZERO_LINK = NO; + }; + name = Deploy_noSandbox; + }; + DD62C3970A801FB500B3D68A /* Dev_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = NO; + GCC_DYNAMIC_NO_PIC = NO; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PRECOMPILE_PREFIX_HEADER = NO; + GCC_PREFIX_HEADER = ""; + INFOPLIST_FILE = "Installer-Info.plist"; + INSTALL_PATH = "$(USER_APPS_DIR)"; + LIBRARY_SEARCH_PATHS = ""; + MACOSX_DEPLOYMENT_TARGET = ""; + OPTIMIZATION_CFLAGS = "-O0"; + OTHER_CFLAGS = ( + "-D_MAC_INSTALLER", + "-DMAC_OS_X_VERSION_MAX_ALLOWED=1040", + ); + OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; + OTHER_LDFLAGS = ( + "-framework", + Carbon, + ); + OTHER_REZFLAGS = ""; + PRODUCT_NAME = "BOINC Installer"; + SECTORDER_FLAGS = ""; + WARNING_CFLAGS = ( + "-Wmost", + "-Wno-four-char-constants", + "-Wno-unknown-pragmas", + ); + ZERO_LINK = NO; + }; + name = Dev_noSandbox; + }; + DD62C3980A801FB500B3D68A /* Deploy_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = YES; + DEAD_CODE_STRIPPING = YES; + DEPLOYMENT_POSTPROCESSING = NO; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_PRECOMPILE_PREFIX_HEADER = NO; + GCC_PREFIX_HEADER = ""; + INFOPLIST_FILE = "Installer-Info.plist"; + INSTALL_PATH = "$(USER_APPS_DIR)"; + LIBRARY_SEARCH_PATHS = ""; + MACOSX_DEPLOYMENT_TARGET = 10.4; + OTHER_CFLAGS = "-D_MAC_INSTALLER"; + OTHER_CFLAGS_i386 = "-DMAC_OS_X_VERSION_MAX_ALLOWED=1040"; + OTHER_CFLAGS_ppc = "-DMAC_OS_X_VERSION_MAX_ALLOWED=1030"; + OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; + OTHER_LDFLAGS = ( + "-framework", + Carbon, + ); + OTHER_REZFLAGS = ""; + PRODUCT_NAME = "BOINC Installer"; + SECTORDER_FLAGS = ""; + WARNING_CFLAGS = ( + "-Wmost", + "-Wno-four-char-constants", + "-Wno-unknown-pragmas", + ); + ZERO_LINK = NO; + }; + name = Deploy_noSandbox; + }; + DD62C3990A801FB500B3D68A /* Dev_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = NO; + DEAD_CODE_STRIPPING = NO; + GCC_DYNAMIC_NO_PIC = NO; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_MODEL_TUNING = G5; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PRECOMPILE_PREFIX_HEADER = NO; + INSTALL_PATH = "$(HOME)/bin"; + PREBINDING = NO; + PRODUCT_NAME = setprojectgrp; + ZERO_LINK = NO; + }; + name = Dev_noSandbox; + }; + DD62C39A0A801FB500B3D68A /* Deploy_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = YES; + DEAD_CODE_STRIPPING = YES; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_GENERATE_DEBUGGING_SYMBOLS = NO; + GCC_MODEL_TUNING = G5; + GCC_PRECOMPILE_PREFIX_HEADER = NO; + INSTALL_PATH = "$(HOME)/bin"; + PREBINDING = NO; + PRODUCT_NAME = setprojectgrp; + ZERO_LINK = NO; + }; + name = Deploy_noSandbox; + }; + DD62C39B0A801FB500B3D68A /* Dev_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = NO; + GCC_DYNAMIC_NO_PIC = NO; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + OPTIMIZATION_CFLAGS = "-O0"; + OTHER_CFLAGS = ""; + OTHER_LDFLAGS = ""; + OTHER_REZFLAGS = ""; + PRODUCT_NAME = Build_All; + SECTORDER_FLAGS = ""; + WARNING_CFLAGS = ( + "-Wmost", + "-Wno-four-char-constants", + "-Wno-unknown-pragmas", + ); + ZERO_LINK = NO; + }; + name = Dev_noSandbox; + }; + DD62C39C0A801FB500B3D68A /* Deploy_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = YES; + DEAD_CODE_STRIPPING = YES; + DEPLOYMENT_POSTPROCESSING = YES; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + OTHER_CFLAGS = ""; + OTHER_LDFLAGS = ""; + OTHER_REZFLAGS = ""; + PRODUCT_NAME = Build_All; + SECTORDER_FLAGS = ""; + WARNING_CFLAGS = ( + "-Wmost", + "-Wno-four-char-constants", + "-Wno-unknown-pragmas", + ); + ZERO_LINK = NO; + }; + name = Deploy_noSandbox; + }; + DD62C39D0A801FB500B3D68A /* Dev_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = NO; + DEPLOYMENT_POSTPROCESSING = NO; + GCC_CW_ASM_SYNTAX = NO; + GCC_DYNAMIC_NO_PIC = NO; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PFE_FILE_C_DIALECTS = "c++"; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = ../clientgui/mac/MacGUI.pch; + HEADER_SEARCH_PATHS = ( + "../../wxMac-2.6.3/src/build/include/wx/", + "../../wxMac-2.6.3/include", + ../clientgui, + ); + INFOPLIST_FILE = "/Volumes/Sage/BOINC_Mac/_boinc_head/mac_build/Info copy.plist"; + INSTALL_PATH = "$(USER_APPS_DIR)"; + LIBRARY_SEARCH_PATHS = ( + "../../wxMac-2.6.3/src/build/Deployment/", + ../lib, + ); + MACOSX_DEPLOYMENT_TARGET = ""; + OPTIMIZATION_CFLAGS = "-O0"; + OTHER_CFLAGS = ( + "-DMAC_OS_X_VERSION_MAX_ALLOWED=1040", + "-DHAVE_CONFIG_H", + "-D_FILE_OFFSET_BITS=64", + "-D_LARGE_FILES", + "-DNO_GCC_PRAGMA", + "-DNOCLIPBOARD", + "-D_THREAD_SAFE", + "-D__WXMAC__", + "-D_DEBUG", + "-DHAVE_STRCASECMP_IN_STRING_H", + "-DSIMPLEGUI", + ); + OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; + OTHER_LDFLAGS = ( + "-D_THREAD_SAFE", + "-lz", + "-lpthread", + "-liconv", + "-lz", + "-lm", + ); + OTHER_REZFLAGS = ""; + PRODUCT_NAME = sgBOINCManager; + SECTORDER_FLAGS = ""; + SKIP_INSTALL = NO; + UNSTRIPPED_PRODUCT = YES; + WARNING_CFLAGS = ( + "-Wmost", + "-Wno-four-char-constants", + "-Wno-unknown-pragmas", + ); + ZERO_LINK = NO; + }; + name = Dev_noSandbox; + }; + DD62C39E0A801FB500B3D68A /* Deploy_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = YES; + DEAD_CODE_STRIPPING = YES; + DEPLOYMENT_POSTPROCESSING = YES; + GCC_CW_ASM_SYNTAX = NO; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_PFE_FILE_C_DIALECTS = "c++"; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = ../clientgui/mac/MacGUI.pch; + HEADER_SEARCH_PATHS = ( + "../../wxMac-2.6.3/src/build/include/wx/", + "../../wxMac-2.6.3/include", + ../clientgui, + ); + INFOPLIST_FILE = "/Volumes/Sage/BOINC_Mac/_boinc_head/mac_build/Info copy.plist"; + INSTALL_PATH = "$(USER_APPS_DIR)"; + LIBRARY_SEARCH_PATHS = ( + "../../wxMac-2.6.3/src/build/Deployment/", + ../lib, + ); + MACOSX_DEPLOYMENT_TARGET = 10.4; + OTHER_CFLAGS = ( + "-DHAVE_CONFIG_H", + "-D_FILE_OFFSET_BITS=64", + "-D_LARGE_FILES", + "-DNO_GCC_PRAGMA", + "-DNOCLIPBOARD", + "-D_THREAD_SAFE", + "-D__WXMAC__", + "-DHAVE_STRCASECMP_IN_STRING_H", + "-DSIMPLEGUI", + ); + OTHER_CFLAGS_i386 = "-DMAC_OS_X_VERSION_MAX_ALLOWED=1040 -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -DNOCLIPBOARD -D_THREAD_SAFE -D__WXMAC__ -DHAVE_STRCASECMP_IN_STRING_H"; + OTHER_CFLAGS_ppc = "-DMAC_OS_X_VERSION_MAX_ALLOWED=1030 -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA -DNOCLIPBOARD -D_THREAD_SAFE -D__WXMAC__ -DHAVE_STRCASECMP_IN_STRING_H"; + OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; + OTHER_LDFLAGS = ( + "-D_THREAD_SAFE", + "-lz", + "-lpthread", + "-liconv", + "-lz", + "-lm", + ); + OTHER_REZFLAGS = ""; + PRODUCT_NAME = sgBOINCManager; + SECTORDER_FLAGS = ""; + SKIP_INSTALL = NO; + UNSTRIPPED_PRODUCT = YES; + WARNING_CFLAGS = ( + "-Wmost", + "-Wno-four-char-constants", + "-Wno-unknown-pragmas", + ); + ZERO_LINK = NO; + }; + name = Deploy_noSandbox; + }; + DD62C39F0A801FB500B3D68A /* Dev_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = NO; + GCC_VERSION_i386 = 4.0; + GCC_VERSION_ppc = 3.3; + GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = NO; + MACOSX_DEPLOYMENT_TARGET = ""; + MACOSX_DEPLOYMENT_TARGET_i386 = 10.4; + MACOSX_DEPLOYMENT_TARGET_ppc = 10.3; + OTHER_CPLUSPLUSFLAGS = "$(OTHER_CFLAGS)"; + PREBINDING = NO; + SDKROOT = /Developer/SDKs/MacOSX10.3.9.sdk; + SDKROOT_i386 = /Developer/SDKs/MacOSX10.4u.sdk; + SDKROOT_ppc = /Developer/SDKs/MacOSX10.3.9.sdk; + STRIP_INSTALLED_PRODUCT = NO; + }; + name = Dev_noSandbox; + }; + DD62C3A00A801FB500B3D68A /* Deploy_noSandbox */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = ( + i386, + ppc, + ); + GCC_FAST_MATH = NO; + GCC_VERSION_i386 = 4.0; + GCC_VERSION_ppc = 3.3; + GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = NO; + MACOSX_DEPLOYMENT_TARGET = 10.4; + MACOSX_DEPLOYMENT_TARGET_i386 = 10.4; + MACOSX_DEPLOYMENT_TARGET_ppc = 10.3; + PREBINDING = NO; + SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk; + SDKROOT_i386 = /Developer/SDKs/MacOSX10.4u.sdk; + SDKROOT_ppc = /Developer/SDKs/MacOSX10.3.9.sdk; + }; + name = Deploy_noSandbox; + }; DD7748A60A356CAE0025D05E /* Development */ = { isa = XCBuildConfiguration; buildSettings = { @@ -5209,9 +6378,11 @@ isa = XCConfigurationList; buildConfigurations = ( DD1AFEB60A512D8700EE5B82 /* Development */, + DD62C3970A801FB500B3D68A /* Dev_noSandbox */, DD1AFEB70A512D8700EE5B82 /* ppc_Deployment */, DD1AFEB80A512D8700EE5B82 /* i386_Deployment */, DD1AFEB90A512D8700EE5B82 /* Deployment */, + DD62C3980A801FB500B3D68A /* Deploy_noSandbox */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = ppc_Deployment; @@ -5220,9 +6391,11 @@ isa = XCConfigurationList; buildConfigurations = ( DD3E153E0A774397007E0084 /* Development */, + DD62C39D0A801FB500B3D68A /* Dev_noSandbox */, DD3E153F0A774397007E0084 /* ppc_Deployment */, DD3E15400A774397007E0084 /* i386_Deployment */, DD3E15410A774397007E0084 /* Deployment */, + DD62C39E0A801FB500B3D68A /* Deploy_noSandbox */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = ppc_Deployment; @@ -5231,9 +6404,11 @@ isa = XCConfigurationList; buildConfigurations = ( DD7748A60A356CAE0025D05E /* Development */, + DD62C3930A801FB500B3D68A /* Dev_noSandbox */, DD7748A70A356CAE0025D05E /* ppc_Deployment */, DD7748A80A356CAE0025D05E /* i386_Deployment */, DD7748A90A356CAE0025D05E /* Deployment */, + DD62C3940A801FB500B3D68A /* Deploy_noSandbox */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = ppc_Deployment; @@ -5242,9 +6417,11 @@ isa = XCConfigurationList; buildConfigurations = ( DD9E2352091CBDAE0048316E /* Development */, + DD62C37D0A801FB400B3D68A /* Dev_noSandbox */, DD9E2353091CBDAE0048316E /* ppc_Deployment */, DDA2D1570952A93E00D0B538 /* i386_Deployment */, DD9843D909920F220090855B /* Deployment */, + DD62C37E0A801FB400B3D68A /* Deploy_noSandbox */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = ppc_Deployment; @@ -5253,9 +6430,11 @@ isa = XCConfigurationList; buildConfigurations = ( DD9E2356091CBDAE0048316E /* Development */, + DD62C37F0A801FB400B3D68A /* Dev_noSandbox */, DD9E2357091CBDAE0048316E /* ppc_Deployment */, DDA2D1580952A93E00D0B538 /* i386_Deployment */, DD9843DA09920F220090855B /* Deployment */, + DD62C3800A801FB400B3D68A /* Deploy_noSandbox */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = ppc_Deployment; @@ -5264,9 +6443,11 @@ isa = XCConfigurationList; buildConfigurations = ( DD9E235A091CBDAE0048316E /* Development */, + DD62C3810A801FB400B3D68A /* Dev_noSandbox */, DD9E235B091CBDAE0048316E /* ppc_Deployment */, DDA2D1590952A93E00D0B538 /* i386_Deployment */, DD9843DB09920F220090855B /* Deployment */, + DD62C3820A801FB400B3D68A /* Deploy_noSandbox */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = ppc_Deployment; @@ -5275,9 +6456,11 @@ isa = XCConfigurationList; buildConfigurations = ( DD9E235E091CBDAE0048316E /* Development */, + DD62C3830A801FB400B3D68A /* Dev_noSandbox */, DD9E235F091CBDAE0048316E /* ppc_Deployment */, DDA2D15A0952A93E00D0B538 /* i386_Deployment */, DD9843DC09920F220090855B /* Deployment */, + DD62C3840A801FB400B3D68A /* Deploy_noSandbox */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = ppc_Deployment; @@ -5286,9 +6469,11 @@ isa = XCConfigurationList; buildConfigurations = ( DD9E2362091CBDAE0048316E /* Development */, + DD62C3850A801FB400B3D68A /* Dev_noSandbox */, DD9E2363091CBDAE0048316E /* ppc_Deployment */, DDA2D15B0952A93E00D0B538 /* i386_Deployment */, DD9843DD09920F220090855B /* Deployment */, + DD62C3860A801FB400B3D68A /* Deploy_noSandbox */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = ppc_Deployment; @@ -5297,9 +6482,11 @@ isa = XCConfigurationList; buildConfigurations = ( DD9E2366091CBDAE0048316E /* Development */, + DD62C3870A801FB500B3D68A /* Dev_noSandbox */, DD9E2367091CBDAE0048316E /* ppc_Deployment */, DDA2D15C0952A93E00D0B538 /* i386_Deployment */, DD9843DE09920F220090855B /* Deployment */, + DD62C3880A801FB500B3D68A /* Deploy_noSandbox */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = ppc_Deployment; @@ -5308,9 +6495,11 @@ isa = XCConfigurationList; buildConfigurations = ( DD9E236A091CBDAE0048316E /* Development */, + DD62C3890A801FB500B3D68A /* Dev_noSandbox */, DD9E236B091CBDAE0048316E /* ppc_Deployment */, DDA2D15D0952A93E00D0B538 /* i386_Deployment */, DD9843DF09920F220090855B /* Deployment */, + DD62C38A0A801FB500B3D68A /* Deploy_noSandbox */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = ppc_Deployment; @@ -5319,9 +6508,11 @@ isa = XCConfigurationList; buildConfigurations = ( DD9E236E091CBDAE0048316E /* Development */, + DD62C38B0A801FB500B3D68A /* Dev_noSandbox */, DD9E236F091CBDAE0048316E /* ppc_Deployment */, DDA2D15E0952A93E00D0B538 /* i386_Deployment */, DD9843E009920F220090855B /* Deployment */, + DD62C38C0A801FB500B3D68A /* Deploy_noSandbox */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = ppc_Deployment; @@ -5330,9 +6521,11 @@ isa = XCConfigurationList; buildConfigurations = ( DD9E2372091CBDAE0048316E /* Development */, + DD62C38D0A801FB500B3D68A /* Dev_noSandbox */, DD9E2373091CBDAE0048316E /* ppc_Deployment */, DDA2D15F0952A93E00D0B538 /* i386_Deployment */, DD9843E109920F220090855B /* Deployment */, + DD62C38E0A801FB500B3D68A /* Deploy_noSandbox */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = ppc_Deployment; @@ -5341,9 +6534,11 @@ isa = XCConfigurationList; buildConfigurations = ( DD9E2376091CBDAE0048316E /* Development */, + DD62C38F0A801FB500B3D68A /* Dev_noSandbox */, DD9E2377091CBDAE0048316E /* ppc_Deployment */, DDA2D1600952A93E00D0B538 /* i386_Deployment */, DD9843E209920F220090855B /* Deployment */, + DD62C3900A801FB500B3D68A /* Deploy_noSandbox */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = ppc_Deployment; @@ -5352,9 +6547,11 @@ isa = XCConfigurationList; buildConfigurations = ( DD9E237A091CBDAE0048316E /* Development */, + DD62C3910A801FB500B3D68A /* Dev_noSandbox */, DD9E237B091CBDAE0048316E /* ppc_Deployment */, DDA2D1610952A93E00D0B538 /* i386_Deployment */, DD9843E309920F220090855B /* Deployment */, + DD62C3920A801FB500B3D68A /* Deploy_noSandbox */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = ppc_Deployment; @@ -5363,9 +6560,11 @@ isa = XCConfigurationList; buildConfigurations = ( DD9E237E091CBDAE0048316E /* Development */, + DD62C39B0A801FB500B3D68A /* Dev_noSandbox */, DD9E237F091CBDAE0048316E /* ppc_Deployment */, DDA2D1620952A93E00D0B538 /* i386_Deployment */, DD9843E409920F220090855B /* Deployment */, + DD62C39C0A801FB500B3D68A /* Deploy_noSandbox */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = ppc_Deployment; @@ -5374,9 +6573,11 @@ isa = XCConfigurationList; buildConfigurations = ( DD9E2382091CBDAE0048316E /* Development */, + DD62C39F0A801FB500B3D68A /* Dev_noSandbox */, DD9E2383091CBDAE0048316E /* ppc_Deployment */, DDA2D1630952A93E00D0B538 /* i386_Deployment */, DD9843E509920F220090855B /* Deployment */, + DD62C3A00A801FB500B3D68A /* Deploy_noSandbox */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = ppc_Deployment; @@ -5385,9 +6586,11 @@ isa = XCConfigurationList; buildConfigurations = ( DDD095420A3EDD4300C95BA4 /* Development */, + DD62C3950A801FB500B3D68A /* Dev_noSandbox */, DDD095430A3EDD4300C95BA4 /* ppc_Deployment */, DDD095440A3EDD4300C95BA4 /* i386_Deployment */, DDD095450A3EDD4300C95BA4 /* Deployment */, + DD62C3960A801FB500B3D68A /* Deploy_noSandbox */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = ppc_Deployment; @@ -5396,9 +6599,11 @@ isa = XCConfigurationList; buildConfigurations = ( DDFF2ACF0A53D4AE002BC19D /* Development */, + DD62C3990A801FB500B3D68A /* Dev_noSandbox */, DDFF2AD00A53D4AE002BC19D /* ppc_Deployment */, DDFF2AD10A53D4AE002BC19D /* i386_Deployment */, DDFF2AD20A53D4AE002BC19D /* Deployment */, + DD62C39A0A801FB500B3D68A /* Deploy_noSandbox */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = ppc_Deployment; diff --git a/mac_installer/PostInstall.cpp b/mac_installer/PostInstall.cpp index 68f0d4b9cc..7daa388c6c 100755 --- a/mac_installer/PostInstall.cpp +++ b/mac_installer/PostInstall.cpp @@ -78,10 +78,11 @@ int main(int argc, char *argv[]) FSRef fileRef; OSStatus err, err_fsref; char *p; +#ifdef SANDBOX uid_t savedeuid, b_m_uid; passwd *pw; int finalInstallAction; -#ifndef SANDBOX +#else char *q; group *grp; char s[256]; @@ -486,15 +487,15 @@ OSErr UpdateAllVisibleUsers(long brandID) { DIR *dirp; dirent *dp; - char *p; - group *grp; passwd *pw; uid_t saved_uid; - short i; Boolean deleteLoginItem; +#ifdef SANDBOX + char *p; + group *grp; + short i; OSErr err = noErr; -#ifdef SANDBOX grp = getgrnam("admin"); if (grp == NULL) { // Should never happen puts("getgrnam(\"admin\") failed\n");