Ticket #45835: patch-convert-GC-ARC.diff
File patch-convert-GC-ARC.diff, 42.2 KB (added by jerryyhom, 10 years ago) |
---|
-
MPHelperTool.m
Only in MacPorts_Framework: .DS_Store Only in MacPorts_Framework_orig/.svn/pristine: 76 Only in MacPorts_Framework/.svn/pristine/a0: a0859a0ab315f30229adcfc2286625239d8daa68.svn-base Binary files MacPorts_Framework_orig/.svn/wc.db and MacPorts_Framework/.svn/wc.db differ diff -ru MacPorts_Framework_orig/MPHelperTool.m MacPorts_Framework/MPHelperTool.m
old new 995 995 }; 996 996 997 997 int main(int argc, char const * argv[]) { 998 NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; 998 //// NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; 999 @autoreleasepool { 999 1000 1000 1001 //assert(logClient != NULL); 1001 1002 … … 1058 1059 // } 1059 1060 // 1060 1061 1061 notifier = [[NotificationsClient alloc] init];1062 1063 1064 int result = BASHelperToolMain(kMPHelperCommandSet, kMPHelperCommandProcs);1065 1066 // Clean up.1067 //DoQuit(globalConn);1062 notifier = [[NotificationsClient alloc] init]; 1063 1064 1065 int result = BASHelperToolMain(kMPHelperCommandSet, kMPHelperCommandProcs); 1066 1067 // Clean up. 1068 //DoQuit(globalConn); 1068 1069 // ConnectionClose(globalConn); 1069 //asl_close(logClient); 1070 1071 [notifier closeConnection]; 1072 [notifier release]; 1073 [ipcFilePath release]; 1074 1075 [pool release]; 1076 1077 return result; 1070 //asl_close(logClient); 1071 1072 [notifier closeConnection]; 1073 //// [notifier release]; 1074 //// [ipcFilePath release]; 1075 1076 //// [pool release]; 1077 1078 return result; 1079 } 1078 1080 } 1081 No newline at end of file -
MPIndex.m
diff -ru MacPorts_Framework_orig/MPIndex.m MacPorts_Framework/MPIndex.m
old new 54 54 return self; 55 55 } 56 56 57 - (void)dealloc {58 [super dealloc];59 }57 //// - (void)dealloc { 58 //// [super dealloc]; 59 //// } 60 60 61 61 /* 62 62 * We enumerate the list of ports, adding each port object to our own dictionary instead of simply copying the -
MPInterpreter.m
diff -ru MacPorts_Framework_orig/MPInterpreter.m MacPorts_Framework/MPInterpreter.m
old new 38 38 #include "BetterAuthorizationSampleLib.h" 39 39 #include "MPHelperCommon.h" 40 40 #include "MPHelperNotificationsProtocol.h" 41 //// Added 42 #import "MPPortProcess.h" 43 #import "MPNotifications+IPCAdditions.h" 41 44 static AuthorizationRef internalMacPortsAuthRef; 42 45 static NSString* GenericPKGPath = @"/Library/Tcl"; 43 46 static NSString* PKGPath = @"/opt/local/share/macports/Tcl"; … … 172 175 173 176 +(void) setPKGPath:(NSString*)newPath { 174 177 if([PKGPath isNotEqualTo:newPath]) { 175 [PKGPath release];178 //// [PKGPath release]; 176 179 PKGPath = [newPath copy]; 177 180 //I should check if interp is nil. *not needed now 178 181 MPInterpreter *interp = (MPInterpreter*) [[[NSThread currentThread] threadDictionary] objectForKey:@"sharedMPInterpreter"]; … … 355 358 return self; 356 359 } 357 360 358 - (id)retain {359 return self;360 }361 362 - (NSUInteger)retainCount363 {364 return NSUIntegerMax; //denotes an object that cannot be released365 }366 367 - (void)release {368 369 }370 371 - (id)autorelease {372 return self;373 }361 //// - (id)retain { 362 //// return self; 363 //// } 364 //// 365 //// - (NSUInteger)retainCount 366 //// { 367 //// return NSUIntegerMax; //denotes an object that cannot be released 368 //// } 369 //// 370 //// - (void)release { 371 //// 372 //// } 373 //// 374 //// - (id)autorelease { 375 //// return self; 376 //// } 374 377 375 378 #pragma Port Operations 376 379 … … 390 393 [array addObject:[NSString stringWithUTF8String:tclElements[i]]]; 391 394 } 392 395 } else { 393 array = [[[NSMutableArray alloc] init] autorelease]; 396 //// array = [[[NSMutableArray alloc] init] autorelease]; 397 array = [[NSMutableArray alloc] init]; 394 398 } 395 399 Tcl_Free((char *)tclElements); 396 400 return [NSArray arrayWithArray:array]; … … 449 453 //For now all error codes are TCL_ERROR 450 454 451 455 //Create underlying error - For now I'll create the underlying Posix Error 452 NSError *undError = [[[NSError alloc] initWithDomain:NSPOSIXErrorDomain 456 //// NSError *undError = [[[NSError alloc] initWithDomain:NSPOSIXErrorDomain 457 NSError *undError = [[NSError alloc] initWithDomain:NSPOSIXErrorDomain 453 458 code:errCode 454 userInfo:nil] autorelease]; 459 //// userInfo:nil] autorelease]; 460 userInfo:nil]; 455 461 //Create and return custom domain error 456 462 NSArray *objArray = [NSArray arrayWithObjects:descrip, undError, nil]; 457 463 NSArray *keyArray = [NSArray arrayWithObjects:NSLocalizedDescriptionKey, 458 464 NSUnderlyingErrorKey, nil]; 459 465 errDict = [NSDictionary dictionaryWithObjects:objArray forKeys:keyArray]; 460 466 if (mportError != NULL) 461 *mportError = [[ [NSError alloc] initWithDomain:MPFrameworkErrorDomain467 *mportError = [[NSError alloc] initWithDomain:MPFrameworkErrorDomain 462 468 code:TCL_ERROR 463 userInfo:errDict] autorelease]; 469 //// userInfo:errDict] autorelease]; 470 userInfo:errDict]; 464 471 return nil; 465 472 } 466 473 … … 566 573 567 574 BASSetDefaultRules(internalMacPortsAuthRef, 568 575 kMPHelperCommandSet, 569 ( CFStringRef) bundleID,576 (__bridge CFStringRef) bundleID, 570 577 NULL); 571 578 572 579 //NSLog(@"BEFORE Tool Execution request is %@ , response is %@ \n\n", request, response); 573 580 err = BASExecuteRequestInHelperTool(internalMacPortsAuthRef, 574 581 kMPHelperCommandSet, 575 ( CFStringRef) bundleID,576 ( CFDictionaryRef) request,582 (__bridge CFStringRef) bundleID, 583 (__bridge CFDictionaryRef) request, 577 584 &response); 578 585 if (err == noErr){// retrieve result here if available 579 586 if( response != NULL) 580 587 result = (NSString *) (CFStringRef) CFDictionaryGetValue(response, CFSTR(kTclStringEvaluationResult)); 581 588 } 582 589 else { //Try to recover error 583 failCode = BASDiagnoseFailure(internalMacPortsAuthRef, ( CFStringRef) bundleID);590 failCode = BASDiagnoseFailure(internalMacPortsAuthRef, (__bridge CFStringRef) bundleID); 584 591 585 592 586 593 //Need to pass in URL's to helper and install tools since I … … 598 605 assert(helperToolURL != nil); 599 606 600 607 err = BASFixFailure(internalMacPortsAuthRef, 601 ( CFStringRef) bundleID,602 ( CFURLRef) installToolURL,603 ( CFURLRef) helperToolURL,608 (__bridge CFStringRef) bundleID, 609 (__bridge CFURLRef) installToolURL, 610 (__bridge CFURLRef) helperToolURL, 604 611 failCode); 605 612 606 613 … … 614 621 if (mportError != NULL) { 615 622 //I'm not sure of exactly how to report this error ... 616 623 //Do we need some error codes for our domain? I'll define one 617 NSError * undError = [[[NSError alloc] initWithDomain:NSOSStatusErrorDomain 624 //// NSError * undError = [[[NSError alloc] initWithDomain:NSOSStatusErrorDomain 625 NSError * undError = [[NSError alloc] initWithDomain:NSOSStatusErrorDomain 618 626 code:err 619 627 userInfo:[NSDictionary dictionaryWithObjectsAndKeys: 620 628 NSLocalizedString(@"Check error code for OSStatus returned",@""), 621 629 NSLocalizedDescriptionKey, 622 nil]] autorelease]; 630 //// nil]] autorelease]; 631 nil]]; 623 632 624 *mportError = [[[NSError alloc] initWithDomain:MPFrameworkErrorDomain 633 //// *mportError = [[[NSError alloc] initWithDomain:MPFrameworkErrorDomain 634 *mportError = [[NSError alloc] initWithDomain:MPFrameworkErrorDomain 625 635 code:MPHELPINSTFAILED 626 636 userInfo:[NSDictionary dictionaryWithObjectsAndKeys: 627 637 NSLocalizedString(@"Unable to fix faliure for MPHelperTool execution", @""), … … 629 639 undError, NSUnderlyingErrorKey, 630 640 NSLocalizedString(@"BASFixFaliure routine wasn't completed successfuly", @""), 631 641 NSLocalizedFailureReasonErrorKey, 632 nil]] autorelease]; 642 //// nil]] autorelease]; 643 nil]]; 633 644 } 634 645 } 635 646 } … … 705 716 706 717 BASSetDefaultRules(internalMacPortsAuthRef, 707 718 kMPHelperCommandSet, 708 ( CFStringRef) bundleID,719 (__bridge CFStringRef) bundleID, 709 720 NULL); 710 721 BASTerminateCommand(internalMacPortsAuthRef, 711 722 [bundleID UTF8String], … … 741 752 [task launch]; 742 753 [task waitUntilExit]; 743 754 int status = [task terminationStatus]; 744 [task release];755 //// [task release]; 745 756 return status; 746 757 } 747 758 -
MPInterpreterTest.m
diff -ru MacPorts_Framework_orig/MPInterpreterTest.m MacPorts_Framework/MPInterpreterTest.m
old new 44 44 } 45 45 46 46 - (void)tearDown { 47 [interp release];47 //// [interp release]; 48 48 } 49 49 50 50 - (void)testInitialization { -
MPMacPorts.m
diff -ru MacPorts_Framework_orig/MPMacPorts.m MacPorts_Framework/MPMacPorts.m
old new 111 111 return self; 112 112 } 113 113 114 - (id)retain {115 return self;116 }117 118 - (NSUInteger)retainCount119 {120 return NSUIntegerMax; //denotes an object that cannot be released121 }122 123 - (void)release {124 //do nothing125 }126 127 - (id)autorelease {128 return self;129 }114 //// - (id)retain { 115 //// return self; 116 //// } 117 //// 118 //// - (NSUInteger)retainCount 119 //// { 120 //// return NSUIntegerMax; //denotes an object that cannot be released 121 //// } 122 //// 123 //// - (void)release { 124 //// //do nothing 125 //// } 126 //// 127 //// - (id)autorelease { 128 //// return self; 129 //// } 130 130 131 131 #pragma MacPorts API 132 132 … … 254 254 255 255 - (NSArray *)sources:(BOOL)refresh { 256 256 if (refresh) { 257 [sources release];257 //// [sources release]; 258 258 sources = nil; 259 259 } 260 260 return [self sources]; … … 302 302 } 303 303 304 304 -(void) setDelegate:(id)aDelegate { 305 [aDelegate retain];306 [macportsDelegate release];305 //// [aDelegate retain]; 306 //// [macportsDelegate release]; 307 307 macportsDelegate = aDelegate; 308 308 } 309 309 … … 311 311 - (void) setAuthorizationRef { 312 312 if ([[self delegate] respondsToSelector:@selector(getAuthorizationRef)]) { 313 313 314 AuthorizationRef clientRef = ( AuthorizationRef) [[self delegate] performSelector:@selector(getAuthorizationRef)];314 AuthorizationRef clientRef = (__bridge AuthorizationRef) [[self delegate] performSelector:@selector(getAuthorizationRef)]; 315 315 [interpreter setAuthorizationRef:clientRef]; 316 316 } 317 317 } -
MPMacPortsTest.m
diff -ru MacPorts_Framework_orig/MPMacPortsTest.m MacPorts_Framework/MPMacPortsTest.m
old new 42 42 } 43 43 44 44 - (void) tearDown { 45 [testPort release];45 //// [testPort release]; 46 46 } 47 47 48 48 -
MPMutableDictionary.m
diff -ru MacPorts_Framework_orig/MPMutableDictionary.m MacPorts_Framework/MPMutableDictionary.m
old new 54 54 return self; 55 55 } 56 56 57 - (void) dealloc {58 [embeddedDictionary release];59 [super dealloc];60 }57 //// - (void) dealloc { 58 //// [embeddedDictionary release]; 59 //// [super dealloc]; 60 //// } 61 61 62 62 - (unsigned)count { 63 63 return [embeddedDictionary count]; -
MPNotifications+IPCAdditions.m
diff -ru MacPorts_Framework_orig/MPNotifications+IPCAdditions.m MacPorts_Framework/MPNotifications+IPCAdditions.m
old new 1350 1350 } 1351 1351 1352 1352 -(void) startIPCServerThread:(NSDictionary *)serverInfo { 1353 NSAutoreleasePool * sPool = [[NSAutoreleasePool alloc] init]; 1353 //// NSAutoreleasePool * sPool = [[NSAutoreleasePool alloc] init]; 1354 @autoreleasepool { 1354 1355 1355 NSLog(@"INSIDE SERVER THREAD");1356 1357 [[MPNotifications sharedListener]1358 setPerformingTclCommand:[serverInfo objectForKey:@"currentMethod"]];1359 1360 //Configure runloop1361 int err = 0;1356 NSLog(@"INSIDE SERVER THREAD"); 1357 1358 [[MPNotifications sharedListener] 1359 setPerformingTclCommand:[serverInfo objectForKey:@"currentMethod"]]; 1360 1361 //Configure runloop 1362 int err = 0; 1362 1363 int listenerFD; 1363 1364 CFSocketRef listenerCF; 1364 1365 Boolean didBind; … … 1366 1367 didBind = false; 1367 1368 listenerFD = -1; 1368 1369 listenerCF = NULL; 1369 1370 1371 1372 1373 // Ignore SIGPIPE because it's a deeply annoying concept. If you don't ignore1374 // SIGPIPE when writing to a UNIX domain socket whose far side has been closed1375 // will trigger a SIGPIPE, whose default action is to terminate the program.1370 1371 1372 1373 1374 // Ignore SIGPIPE because it's a deeply annoying concept. If you don't ignore 1375 // SIGPIPE when writing to a UNIX domain socket whose far side has been closed 1376 // will trigger a SIGPIPE, whose default action is to terminate the program. 1376 1377 if (err == 0) { 1377 1378 fprintf(stderr, "CFLocalServer: Starting up (pid: %ld).\n", (long) getpid()); 1378 NSLog(@"CFLocalServer: Starting up (pid: %ld).\n", (long) getpid());1379 NSLog(@"CFLocalServer: Starting up (pid: %ld).\n", (long) getpid()); 1379 1380 err = MoreUNIXIgnoreSIGPIPE(); 1380 1381 } 1381 1382 1382 // Set up the signal handlers we are interested in. In this case we redirect1383 // SIGINT and SIGINFO to our runloop. If either of these signals occurs, we1384 // end up executing SignalRunLoopCallback.1383 // Set up the signal handlers we are interested in. In this case we redirect 1384 // SIGINT and SIGINFO to our runloop. If either of these signals occurs, we 1385 // end up executing SignalRunLoopCallback. 1385 1386 if (err == 0) { 1386 if (hasInstalledSignalsToSocket == 0) {1387 if (hasInstalledSignalsToSocket == 0) { 1387 1388 sigset_t interestingSignals; 1388 1389 (void) sigemptyset(&interestingSignals); 1389 1390 (void) sigaddset(&interestingSignals, SIGINT); 1390 1391 (void) sigaddset(&interestingSignals, SIGINFO); 1391 1392 1392 1393 err = InstallSignalToSocket( 1393 &interestingSignals, 1394 CFRunLoopGetCurrent(), 1395 kCFRunLoopDefaultMode, 1396 SignalRunLoopCallback, 1397 NULL 1398 ); 1399 if (err == 0) { 1400 NSLog(@"Successfuly loaded signals to socket"); 1401 hasInstalledSignalsToSocket = 1; 1394 &interestingSignals, 1395 CFRunLoopGetCurrent(), 1396 kCFRunLoopDefaultMode, 1397 SignalRunLoopCallback, 1398 NULL 1399 ); 1400 if (err == 0) { 1401 NSLog(@"Successfuly loaded signals to socket"); 1402 hasInstalledSignalsToSocket = 1; 1403 } 1404 else 1405 NSLog(@"Attempted to unsucessfully to Install signal to socket"); 1402 1406 } 1403 else1404 NSLog(@"Attempted to unsucessfully to Install signal to socket");1405 }1406 1407 } 1407 1408 // Create the initial client set.1408 1409 // Create the initial client set. 1409 1410 if (err == 0) { 1410 err = ClientInitialise();1411 NSLog(@"Initilalizing Client");1411 err = ClientInitialise(); 1412 NSLog(@"Initilalizing Client"); 1412 1413 } 1413 1414 1414 // Create our listening socket, bind it, and then wrap it in a CFSocket.1415 // Create our listening socket, bind it, and then wrap it in a CFSocket. 1415 1416 if (err == 0) { 1416 1417 listenerFD = socket(AF_UNIX, SOCK_STREAM, 0); 1417 1418 err = MoreUNIXErrno(listenerFD); 1418 NSLog(@"Creating Socket");1419 NSLog(@"Creating Socket"); 1419 1420 } 1420 1421 if (err == 0) { 1421 1422 //err = SafeBindUnixDomainSocket(listenerFD, kServerSocketPath); 1422 //NSLog(@"Socket file path is %@", socketFilePath);1423 err = SafeBindUnixDomainSocket(listenerFD, [[serverInfo objectForKey:@"ipcFilePath"] cStringUsingEncoding:NSUTF8StringEncoding]);1424 didBind = (err == 0);1425 NSLog(@"Binding Socket %i", err);1423 //NSLog(@"Socket file path is %@", socketFilePath); 1424 err = SafeBindUnixDomainSocket(listenerFD, [[serverInfo objectForKey:@"ipcFilePath"] cStringUsingEncoding:NSUTF8StringEncoding]); 1425 didBind = (err == 0); 1426 NSLog(@"Binding Socket %i", err); 1426 1427 } 1427 1428 if (err == 0) { 1428 1429 err = listen(listenerFD, 5); 1429 1430 err = MoreUNIXErrno(err); 1430 NSLog(@"Listening Socket");1431 NSLog(@"Listening Socket"); 1431 1432 } 1432 1433 if (err == 0) { 1433 1434 listenerCF = CFSocketCreateWithNative( 1434 NULL,1435 (CFSocketNativeHandle) listenerFD,1436 kCFSocketAcceptCallBack,1437 ListeningSocketAcceptCallback,1438 NULL);1439 1440 NSLog(@"Creating Callbacks!");1435 NULL, 1436 (CFSocketNativeHandle) listenerFD, 1437 kCFSocketAcceptCallBack, 1438 ListeningSocketAcceptCallback, 1439 NULL); 1440 1441 NSLog(@"Creating Callbacks!"); 1441 1442 if (listenerCF == NULL) { 1442 1443 err = EINVAL; 1443 1444 } 1444 1445 } 1445 1446 1446 // Schedule the listening socket on our runloop.1447 NSRunLoop * currentLoop = [NSRunLoop currentRunLoop];1447 // Schedule the listening socket on our runloop. 1448 NSRunLoop * currentLoop = [NSRunLoop currentRunLoop]; 1448 1449 if (err == 0) { 1449 1450 CFRunLoopSourceRef rls; 1450 1451 … … 1454 1455 } else { 1455 1456 CFRunLoopAddSource( [currentLoop getCFRunLoop], rls, kCFRunLoopDefaultMode); 1456 1457 NSLog(@"Adding Source to current runloop"); 1457 1458 1458 1459 // We no longer need this source, so we just release it. 1459 1460 CFRelease(rls); 1460 1461 } 1461 1462 } 1462 1463 1464 double resolution = 0.1;1465 BOOL isRunning;1466 1467 //Add input sources to my run loop1468 //terminateBackgroundThread is going to be set to NO before the privileged operation is called1469 //it will be set to YES after the privileged operation finishes execution. So I guess I need1470 //accessor methods?1471 NSThread * cThread = [NSThread currentThread];1472 NSLog(@"RUNNING RUN LOOP with thread %@" , [cThread threadDictionary]);1473 1474 do {1475 NSDate * nextDate = [NSDate dateWithTimeIntervalSinceNow:resolution];1476 isRunning = [currentLoop runMode:NSDefaultRunLoopMode beforeDate:nextDate];1477 1478 //NSLog(@"running runloop");1479 //might add some code here to clean up and recreate autoreleasepool1480 //} while (isRunning && terminateBackgroundThread == NO);1481 } while (isRunning || clientHasQuit == 0);1482 1463 1483 1464 1484 //Forcibly terminate runloop N.B. ClientQuit() which is invoked 1485 //before this call also terminates applications main runloop ... 1486 //check to ensure that that doesn't create problems 1487 CFRunLoopStop([currentLoop getCFRunLoop]); 1488 1489 [[MPNotifications sharedListener] setPerformingTclCommand:@""]; 1490 [sPool release]; 1465 double resolution = 0.1; 1466 BOOL isRunning; 1467 1468 //Add input sources to my run loop 1469 //terminateBackgroundThread is going to be set to NO before the privileged operation is called 1470 //it will be set to YES after the privileged operation finishes execution. So I guess I need 1471 //accessor methods? 1472 NSThread * cThread = [NSThread currentThread]; 1473 NSLog(@"RUNNING RUN LOOP with thread %@" , [cThread threadDictionary]); 1474 1475 do { 1476 NSDate * nextDate = [NSDate dateWithTimeIntervalSinceNow:resolution]; 1477 isRunning = [currentLoop runMode:NSDefaultRunLoopMode beforeDate:nextDate]; 1478 1479 //NSLog(@"running runloop"); 1480 //might add some code here to clean up and recreate autoreleasepool 1481 //} while (isRunning && terminateBackgroundThread == NO); 1482 } while (isRunning || clientHasQuit == 0); 1483 1484 1485 //Forcibly terminate runloop N.B. ClientQuit() which is invoked 1486 //before this call also terminates applications main runloop ... 1487 //check to ensure that that doesn't create problems 1488 CFRunLoopStop([currentLoop getCFRunLoop]); 1489 1490 [[MPNotifications sharedListener] setPerformingTclCommand:@""]; 1491 //// [sPool release]; 1492 } 1491 1493 } 1492 1494 1493 1495 -(void) prepareIPCServerThread { -
MPNotifications.m
diff -ru MacPorts_Framework_orig/MPNotifications.m MacPorts_Framework/MPNotifications.m
old new 65 65 return self; 66 66 } 67 67 68 - (id)retain {69 return self;70 }71 72 - (NSUInteger)retainCount {73 return NSUIntegerMax; //denotes an object that cannot be released74 }75 76 -(void) release {77 //do nothing78 }79 80 - (id) autorelease {81 return self;82 }68 //// - (id)retain { 69 //// return self; 70 //// } 71 //// 72 //// - (NSUInteger)retainCount { 73 //// return NSUIntegerMax; //denotes an object that cannot be released 74 //// } 75 //// 76 //// -(void) release { 77 //// //do nothing 78 //// } 79 //// 80 //// - (id) autorelease { 81 //// return self; 82 //// } 83 83 84 84 - (id)init { 85 85 if (self = [super init]) { … … 95 95 } 96 96 97 97 98 - (void)dealloc {99 [super dealloc];100 }98 //// - (void)dealloc { 99 //// [super dealloc]; 100 //// } 101 101 102 102 //Should I raise an exception for invalid blockOptions that are 103 103 //passed to this method? -
MPPort.m
diff -ru MacPorts_Framework_orig/MPPort.m MacPorts_Framework/MPPort.m
old new 34 34 */ 35 35 36 36 #import "MPPort.h" 37 //// Added 38 #import "MPMacPorts.h" 37 39 38 40 39 41 @implementation MPPort … … 77 79 return self; 78 80 } 79 81 80 - (void) dealloc {81 [super dealloc];82 }82 //// - (void) dealloc { 83 //// [super dealloc]; 84 //// } 83 85 84 86 - (void) setPortWithTclListAsString:(NSString *)string { 85 87 MPInterpreter *interpreter; -
MPPortManipulationTest.m
diff -ru MacPorts_Framework_orig/MPPortManipulationTest.m MacPorts_Framework/MPPortManipulationTest.m
old new 131 131 132 132 PortManipulator * pm = [[PortManipulator alloc] init]; 133 133 STAssertTrue([pm installUninstallManipulation:@"pngcrush"] , @"This test should always return true on success"); 134 [pm release];134 //// [pm release]; 135 135 136 136 } 137 137 -
MPPortProcess.m
diff -ru MacPorts_Framework_orig/MPPortProcess.m MacPorts_Framework/MPPortProcess.m
old new 76 76 @end 77 77 78 78 int main(int argc, char const * argv[]) { 79 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; 79 //// NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; 80 @autoreleasepool { 80 81 81 NSConnection *portProcessConnection; 82 portProcessConnection = [NSConnection defaultConnection]; 83 NSString *PKGPath = [[NSString alloc] initWithCString:argv[1] encoding:NSUTF8StringEncoding]; 84 85 MPPortProcess *portProcess = [[MPPortProcess alloc] initWithPKGPath:PKGPath]; 86 87 // Vending portProcess 88 [portProcessConnection setRootObject:portProcess]; 89 90 // Register the named connection 91 if ( [portProcessConnection registerName:@"MPPortProcess"] ) { 92 NSLog( @"Successfully registered connection with port %@", 93 [[portProcessConnection receivePort] description] ); 94 } else { 95 NSLog( @"Name used by %@", 96 [[[NSPortNameServer systemDefaultPortNameServer] portForName:@"MPPortProcess"] description] ); 97 } 98 99 // Wait for any message 100 [[NSRunLoop currentRunLoop] run]; 101 [pool release]; 82 NSConnection *portProcessConnection; 83 portProcessConnection = [NSConnection defaultConnection]; 84 NSString *PKGPath = [[NSString alloc] initWithCString:argv[1] encoding:NSUTF8StringEncoding]; 85 86 MPPortProcess *portProcess = [[MPPortProcess alloc] initWithPKGPath:PKGPath]; 87 88 // Vending portProcess 89 [portProcessConnection setRootObject:portProcess]; 90 91 // Register the named connection 92 if ( [portProcessConnection registerName:@"MPPortProcess"] ) { 93 NSLog( @"Successfully registered connection with port %@", 94 [[portProcessConnection receivePort] description] ); 95 } else { 96 NSLog( @"Name used by %@", 97 [[[NSPortNameServer systemDefaultPortNameServer] portForName:@"MPPortProcess"] description] ); 98 } 99 100 // Wait for any message 101 [[NSRunLoop currentRunLoop] run]; 102 //// [pool release]; 103 } 102 104 return 0; 103 105 } 106 No newline at end of file -
MPReceipt.m
diff -ru MacPorts_Framework_orig/MPReceipt.m MacPorts_Framework/MPReceipt.m
old new 54 54 return self; 55 55 } 56 56 57 - (void) dealloc {58 [super dealloc];59 }57 //// - (void) dealloc { 58 //// [super dealloc]; 59 //// } 60 60 61 61 #pragma MPMutableDictionary Protocal 62 62 -
MPRegistry.m
diff -ru MacPorts_Framework_orig/MPRegistry.m MacPorts_Framework/MPRegistry.m
old new 68 68 return self; 69 69 } 70 70 71 - (id)retain {72 return self;73 }74 75 - (NSUInteger)retainCount {76 return NSUIntegerMax; //denotes an object that cannot be released77 }78 79 - (void)release {80 //do nothing81 }82 83 - (id)autorelease {84 return self;85 }71 //// - (id)retain { 72 //// return self; 73 //// } 74 //// 75 //// - (NSUInteger)retainCount { 76 //// return NSUIntegerMax; //denotes an object that cannot be released 77 //// } 78 //// 79 //// - (void)release { 80 //// //do nothing 81 //// } 82 //// 83 //// - (id)autorelease { 84 //// return self; 85 //// } 86 86 87 87 - (NSDictionary *)installed { 88 88 return [self installed:@""]; -
MacPorts.Framework.xcodeproj/project.pbxproj
diff -ru MacPorts_Framework_orig/MacPorts.Framework.xcodeproj/project.pbxproj MacPorts_Framework/MacPorts.Framework.xcodeproj/project.pbxproj
old new 610 610 489DD8EF0C94365F00595506 /* Resources */, 611 611 489DD8F00C94365F00595506 /* Sources */, 612 612 489DD8F10C94365F00595506 /* Frameworks */, 613 489DD8F20C94365F00595506 /* ShellScript */,613 489DD8F20C94365F00595506 /* Run Script */, 614 614 ); 615 615 buildRules = ( 616 616 ); … … 702 702 isa = PBXProject; 703 703 attributes = { 704 704 BuildIndependentTargetsInParallel = NO; 705 LastUpgradeCheck = 0510; 705 706 }; 706 707 buildConfigurationList = 1DEB91B108733DA50010E9CD /* Build configuration list for PBXProject "MacPorts.Framework" */; 707 708 compatibilityVersion = "Xcode 2.4"; … … 792 793 shellPath = "/usr/bin/env ruby"; 793 794 shellScript = "# This script just copies the framework to the build directory so that it can be found by Pallet\n# in any configuration.\nrequire 'fileutils'\n\nif File.directory? \"#{ENV['SRCROOT']}/../MacPorts_Framework/build/MacPorts.framework\"\n FileUtils.rm_rf \"#{ENV['SRCROOT']}/../MacPorts_Framework/build/MacPorts.framework\"\nend\n\nFileUtils.cp_r \"#{ENV['SRCROOT']}/../MacPorts_Framework/build/#{ENV['CONFIGURATION']}/MacPorts.framework\", \"#{ENV['SRCROOT']}/../MacPorts_Framework/build\"\n"; 794 795 }; 795 489DD8F20C94365F00595506 /* ShellScript */ = {796 489DD8F20C94365F00595506 /* Run Script */ = { 796 797 isa = PBXShellScriptBuildPhase; 797 798 buildActionMask = 2147483647; 798 799 comments = "cd ~\nif [ -f /Library/LaunchDaemons/org.macports.frameworks.macports.plist ]\nthen\n\techo removing BAStuff\n\tsh mptooluninstall.sh\n\techo done removing BAStuff\nelse\n\techo nothing to Remove\nfi"; … … 800 801 ); 801 802 inputPaths = ( 802 803 ); 804 name = "Run Script"; 803 805 outputPaths = ( 804 806 ); 805 807 runOnlyForDeploymentPostprocessing = 0; … … 967 969 1DEB91AE08733DA50010E9CD /* Debug */ = { 968 970 isa = XCBuildConfiguration; 969 971 buildSettings = { 970 ARCHS = "$(ARCHS_STANDARD_ 32_64_BIT_PRE_XCODE_3_1)";971 ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1 = "x86_64 i386 ppc";972 ARCHS = "$(ARCHS_STANDARD_64_BIT)"; 973 CLANG_ENABLE_OBJC_ARC = YES; 972 974 COPY_PHASE_STRIP = NO; 973 975 DYLIB_COMPATIBILITY_VERSION = 1; 974 976 DYLIB_CURRENT_VERSION = 1.2; … … 976 978 GCC_DYNAMIC_NO_PIC = NO; 977 979 GCC_ENABLE_FIX_AND_CONTINUE = YES; 978 980 GCC_ENABLE_OBJC_EXCEPTIONS = YES; 981 GCC_ENABLE_OBJC_GC = NO; 979 982 GCC_MODEL_TUNING = G5; 980 983 GCC_OPTIMIZATION_LEVEL = 0; 981 984 GCC_PRECOMPILE_PREFIX_HEADER = YES; … … 988 991 ); 989 992 LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)\""; 990 993 LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2 = "\"$(SRCROOT)\""; 994 MACOSX_DEPLOYMENT_TARGET = 10.6; 991 995 PRODUCT_NAME = MacPorts; 996 SDKROOT = macosx10.8; 992 997 SYMROOT = build; 993 998 WRAPPER_EXTENSION = framework; 994 999 ZERO_LINK = NO; … … 998 1003 1DEB91AF08733DA50010E9CD /* Release */ = { 999 1004 isa = XCBuildConfiguration; 1000 1005 buildSettings = { 1006 ARCHS = "$(ARCHS_STANDARD_64_BIT)"; 1007 CLANG_ENABLE_OBJC_ARC = YES; 1001 1008 DYLIB_COMPATIBILITY_VERSION = 1; 1002 1009 DYLIB_CURRENT_VERSION = 1.2; 1003 1010 FRAMEWORK_VERSION = A; 1004 1011 GCC_ENABLE_OBJC_EXCEPTIONS = YES; 1012 GCC_ENABLE_OBJC_GC = NO; 1005 1013 GCC_GENERATE_DEBUGGING_SYMBOLS = NO; 1006 1014 GCC_MODEL_TUNING = G5; 1007 1015 GCC_PRECOMPILE_PREFIX_HEADER = YES; … … 1014 1022 ); 1015 1023 LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)\""; 1016 1024 LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2 = "\"$(SRCROOT)\""; 1025 MACOSX_DEPLOYMENT_TARGET = 10.6; 1017 1026 PRODUCT_NAME = MacPorts; 1027 SDKROOT = macosx10.8; 1018 1028 WRAPPER_EXTENSION = framework; 1019 1029 ZERO_LINK = NO; 1020 1030 }; … … 1023 1033 1DEB91B208733DA50010E9CD /* Debug */ = { 1024 1034 isa = XCBuildConfiguration; 1025 1035 buildSettings = { 1026 ARCHS = "$(ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1)"; 1027 ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1 = "x86_64 i386 ppc"; 1036 ARCHS = "$(ARCHS_STANDARD)"; 1028 1037 DEBUG_INFORMATION_FORMAT = stabs; 1029 GCC_ENABLE_OBJC_GC = YES;1038 GCC_ENABLE_OBJC_GC = NO; 1030 1039 GCC_WARN_ABOUT_RETURN_TYPE = YES; 1031 1040 GCC_WARN_UNUSED_VARIABLE = YES; 1041 MACOSX_DEPLOYMENT_TARGET = 10.6; 1032 1042 ONLY_ACTIVE_ARCH = NO; 1033 1043 PREBINDING = NO; 1034 SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;1044 SDKROOT = macosx10.8; 1035 1045 ZERO_LINK = NO; 1036 1046 }; 1037 1047 name = Debug; … … 1039 1049 1DEB91B308733DA50010E9CD /* Release */ = { 1040 1050 isa = XCBuildConfiguration; 1041 1051 buildSettings = { 1042 ARCHS = "$(ARCHS_STANDARD _32_64_BIT_PRE_XCODE_3_1)";1052 ARCHS = "$(ARCHS_STANDARD)"; 1043 1053 ARCHS_STANDARD_32_64_BIT_PRE_XCODE_3_1 = "ppc i386 ppc64 x86_64"; 1044 GCC_ENABLE_OBJC_GC = YES;1054 GCC_ENABLE_OBJC_GC = NO; 1045 1055 GCC_WARN_ABOUT_RETURN_TYPE = YES; 1046 1056 GCC_WARN_UNUSED_VARIABLE = YES; 1057 MACOSX_DEPLOYMENT_TARGET = 10.6; 1047 1058 PREBINDING = NO; 1048 SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;1059 SDKROOT = macosx10.8; 1049 1060 ZERO_LINK = NO; 1050 1061 }; 1051 1062 name = Release; … … 1053 1064 216010B01094C7FC00EE9CD0 /* Release-Tiger */ = { 1054 1065 isa = XCBuildConfiguration; 1055 1066 buildSettings = { 1056 ARCHS = "$(ARCHS_STANDARD_32_BIT_PRE_XCODE_3_1)"; 1057 ARCHS_STANDARD_32_BIT_PRE_XCODE_3_1 = "ppc i386"; 1058 GCC_ENABLE_OBJC_GC = YES; 1059 GCC_VERSION = 4.0; 1067 ARCHS = "$(ARCHS_STANDARD)"; 1068 GCC_ENABLE_OBJC_GC = NO; 1069 GCC_VERSION = ""; 1060 1070 GCC_WARN_ABOUT_RETURN_TYPE = YES; 1061 1071 GCC_WARN_UNUSED_VARIABLE = YES; 1072 MACOSX_DEPLOYMENT_TARGET = 10.6; 1062 1073 PREBINDING = NO; 1063 SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;1074 SDKROOT = macosx10.8; 1064 1075 ZERO_LINK = NO; 1065 1076 }; 1066 1077 name = "Release-Tiger"; … … 1069 1080 isa = XCBuildConfiguration; 1070 1081 buildSettings = { 1071 1082 ALWAYS_SEARCH_USER_PATHS = NO; 1083 ARCHS = "$(ARCHS_STANDARD_64_BIT)"; 1084 CLANG_ENABLE_OBJC_ARC = YES; 1072 1085 COPY_PHASE_STRIP = YES; 1073 1086 DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1074 1087 GCC_ENABLE_FIX_AND_CONTINUE = NO; 1075 1088 GCC_MODEL_TUNING = G5; 1089 GCC_VERSION = ""; 1076 1090 INSTALL_PATH = /usr/local/bin; 1091 MACOSX_DEPLOYMENT_TARGET = 10.6; 1077 1092 PREBINDING = NO; 1078 1093 PRODUCT_NAME = MPHelperInstallTool; 1094 SDKROOT = macosx10.8; 1079 1095 ZERO_LINK = NO; 1080 1096 }; 1081 1097 name = "Release-Tiger"; … … 1084 1100 isa = XCBuildConfiguration; 1085 1101 buildSettings = { 1086 1102 ALWAYS_SEARCH_USER_PATHS = NO; 1103 ARCHS = "$(ARCHS_STANDARD_64_BIT)"; 1104 CLANG_ENABLE_OBJC_ARC = YES; 1087 1105 COPY_PHASE_STRIP = YES; 1088 1106 DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1089 1107 GCC_ENABLE_FIX_AND_CONTINUE = NO; 1108 GCC_ENABLE_OBJC_GC = NO; 1090 1109 GCC_MODEL_TUNING = G5; 1091 1110 INSTALL_PATH = /usr/local/bin; 1111 MACOSX_DEPLOYMENT_TARGET = 10.6; 1092 1112 PREBINDING = NO; 1093 1113 PRODUCT_NAME = MPHelperTool; 1114 SDKROOT = macosx10.8; 1094 1115 ZERO_LINK = NO; 1095 1116 }; 1096 1117 name = "Release-Tiger"; … … 1098 1119 216010B31094C7FC00EE9CD0 /* Release-Tiger */ = { 1099 1120 isa = XCBuildConfiguration; 1100 1121 buildSettings = { 1122 ARCHS = "$(ARCHS_STANDARD_64_BIT)"; 1123 CLANG_ENABLE_OBJC_ARC = YES; 1101 1124 DYLIB_COMPATIBILITY_VERSION = 1; 1102 1125 DYLIB_CURRENT_VERSION = 1.2; 1103 1126 FRAMEWORK_VERSION = A; 1104 1127 GCC_ENABLE_OBJC_EXCEPTIONS = YES; 1128 GCC_ENABLE_OBJC_GC = NO; 1105 1129 GCC_GENERATE_DEBUGGING_SYMBOLS = NO; 1106 1130 GCC_MODEL_TUNING = G5; 1107 1131 GCC_PRECOMPILE_PREFIX_HEADER = YES; … … 1114 1138 ); 1115 1139 LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)\""; 1116 1140 LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2 = "\"$(SRCROOT)\""; 1141 MACOSX_DEPLOYMENT_TARGET = 10.6; 1117 1142 PRODUCT_NAME = MacPorts; 1143 SDKROOT = macosx10.8; 1118 1144 WRAPPER_EXTENSION = framework; 1119 1145 ZERO_LINK = NO; 1120 1146 }; … … 1123 1149 216010B41094C7FC00EE9CD0 /* Release-Tiger */ = { 1124 1150 isa = XCBuildConfiguration; 1125 1151 buildSettings = { 1126 ARCHS = "$(NATIVE_ARCH)"; 1152 ARCHS = "$(ARCHS_STANDARD_64_BIT)"; 1153 CLANG_ENABLE_OBJC_ARC = YES; 1127 1154 COPY_PHASE_STRIP = YES; 1128 1155 FRAMEWORK_SEARCH_PATHS = ( 1129 1156 "$(value)", … … 1131 1158 ); 1132 1159 GCC_ENABLE_FIX_AND_CONTINUE = NO; 1133 1160 GCC_ENABLE_OBJC_EXCEPTIONS = YES; 1161 GCC_ENABLE_OBJC_GC = NO; 1134 1162 GCC_GENERATE_DEBUGGING_SYMBOLS = NO; 1135 1163 GCC_MODEL_TUNING = G5; 1136 1164 GCC_PRECOMPILE_PREFIX_HEADER = YES; 1137 1165 GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/Cocoa.framework/Headers/Cocoa.h"; 1138 1166 INFOPLIST_FILE = "Test-Info.plist"; 1139 1167 INSTALL_PATH = "$(USER_LIBRARY_DIR)/Bundles"; 1168 MACOSX_DEPLOYMENT_TARGET = 10.6; 1140 1169 OTHER_LDFLAGS = ( 1141 1170 "-framework", 1142 1171 Cocoa, … … 1145 1174 ); 1146 1175 PREBINDING = NO; 1147 1176 PRODUCT_NAME = Test; 1177 SDKROOT = macosx10.8; 1148 1178 WRAPPER_EXTENSION = octest; 1149 1179 ZERO_LINK = NO; 1150 1180 }; … … 1183 1213 ); 1184 1214 PREBINDING = NO; 1185 1215 PRODUCT_NAME = MPHelperToolIPCTester; 1186 SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;1216 SDKROOT = macosx10.8; 1187 1217 ZERO_LINK = NO; 1188 1218 }; 1189 1219 name = "Release-Tiger"; … … 1192 1222 isa = XCBuildConfiguration; 1193 1223 buildSettings = { 1194 1224 ALWAYS_SEARCH_USER_PATHS = NO; 1225 ARCHS = "$(ARCHS_STANDARD_64_BIT)"; 1226 CLANG_ENABLE_OBJC_ARC = YES; 1195 1227 COPY_PHASE_STRIP = YES; 1196 1228 DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1197 1229 GCC_ENABLE_FIX_AND_CONTINUE = NO; 1230 GCC_ENABLE_OBJC_GC = NO; 1198 1231 GCC_MODEL_TUNING = G5; 1199 1232 GCC_PRECOMPILE_PREFIX_HEADER = YES; 1200 1233 GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/AppKit.framework/Headers/AppKit.h"; 1201 1234 INSTALL_PATH = /usr/local/bin; 1235 MACOSX_DEPLOYMENT_TARGET = 10.6; 1202 1236 OTHER_LDFLAGS = ( 1203 1237 "-framework", 1204 1238 Foundation, … … 1207 1241 ); 1208 1242 PREBINDING = NO; 1209 1243 PRODUCT_NAME = MPPortProcess; 1244 SDKROOT = macosx10.8; 1210 1245 ZERO_LINK = NO; 1211 1246 }; 1212 1247 name = "Release-Tiger"; … … 1237 1272 LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)\""; 1238 1273 LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2 = "\"$(SRCROOT)\""; 1239 1274 PRODUCT_NAME = MacPorts; 1275 SDKROOT = macosx10.8; 1240 1276 SYMROOT = build; 1241 1277 WRAPPER_EXTENSION = framework; 1242 1278 ZERO_LINK = NO; … … 1266 1302 LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)\""; 1267 1303 LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2 = "\"$(SRCROOT)\""; 1268 1304 PRODUCT_NAME = MacPorts; 1305 SDKROOT = macosx10.8; 1269 1306 WRAPPER_EXTENSION = framework; 1270 1307 ZERO_LINK = NO; 1271 1308 }; … … 1294 1331 LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)\""; 1295 1332 LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2 = "\"$(SRCROOT)\""; 1296 1333 PRODUCT_NAME = MacPorts; 1334 SDKROOT = macosx10.8; 1297 1335 WRAPPER_EXTENSION = framework; 1298 1336 ZERO_LINK = NO; 1299 1337 }; … … 1303 1341 isa = XCBuildConfiguration; 1304 1342 buildSettings = { 1305 1343 ALWAYS_SEARCH_USER_PATHS = NO; 1344 ARCHS = "$(ARCHS_STANDARD_64_BIT)"; 1345 CLANG_ENABLE_OBJC_ARC = YES; 1306 1346 COPY_PHASE_STRIP = NO; 1307 1347 GCC_DYNAMIC_NO_PIC = NO; 1308 1348 GCC_ENABLE_FIX_AND_CONTINUE = YES; 1349 GCC_ENABLE_OBJC_GC = NO; 1309 1350 GCC_MODEL_TUNING = G5; 1310 1351 GCC_OPTIMIZATION_LEVEL = 0; 1311 1352 GCC_PRECOMPILE_PREFIX_HEADER = YES; 1312 1353 GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/AppKit.framework/Headers/AppKit.h"; 1313 1354 INSTALL_PATH = /usr/local/bin; 1355 MACOSX_DEPLOYMENT_TARGET = 10.6; 1314 1356 OTHER_LDFLAGS = ( 1315 1357 "-framework", 1316 1358 Foundation, … … 1319 1361 ); 1320 1362 PREBINDING = NO; 1321 1363 PRODUCT_NAME = MPPortProcess; 1364 SDKROOT = macosx10.8; 1322 1365 }; 1323 1366 name = Debug; 1324 1367 }; … … 1326 1369 isa = XCBuildConfiguration; 1327 1370 buildSettings = { 1328 1371 ALWAYS_SEARCH_USER_PATHS = NO; 1372 ARCHS = "$(ARCHS_STANDARD_64_BIT)"; 1373 CLANG_ENABLE_OBJC_ARC = YES; 1329 1374 COPY_PHASE_STRIP = YES; 1330 1375 DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1331 1376 GCC_ENABLE_FIX_AND_CONTINUE = NO; 1377 GCC_ENABLE_OBJC_GC = NO; 1332 1378 GCC_MODEL_TUNING = G5; 1333 1379 GCC_PRECOMPILE_PREFIX_HEADER = YES; 1334 1380 GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/AppKit.framework/Headers/AppKit.h"; 1335 1381 INSTALL_PATH = /usr/local/bin; 1382 MACOSX_DEPLOYMENT_TARGET = 10.6; 1336 1383 OTHER_LDFLAGS = ( 1337 1384 "-framework", 1338 1385 Foundation, … … 1341 1388 ); 1342 1389 PREBINDING = NO; 1343 1390 PRODUCT_NAME = MPPortProcess; 1391 SDKROOT = macosx10.8; 1344 1392 ZERO_LINK = NO; 1345 1393 }; 1346 1394 name = Release; … … 1348 1396 489DD8F70C94366000595506 /* Debug */ = { 1349 1397 isa = XCBuildConfiguration; 1350 1398 buildSettings = { 1351 ARCHS = "$(NATIVE_ARCH)"; 1399 ARCHS = "$(ARCHS_STANDARD_64_BIT)"; 1400 CLANG_ENABLE_OBJC_ARC = YES; 1352 1401 COPY_PHASE_STRIP = NO; 1353 1402 FRAMEWORK_SEARCH_PATHS = ( 1354 1403 "$(value)", … … 1357 1406 GCC_DYNAMIC_NO_PIC = NO; 1358 1407 GCC_ENABLE_FIX_AND_CONTINUE = NO; 1359 1408 GCC_ENABLE_OBJC_EXCEPTIONS = YES; 1409 GCC_ENABLE_OBJC_GC = NO; 1360 1410 GCC_GENERATE_DEBUGGING_SYMBOLS = YES; 1361 1411 GCC_MODEL_TUNING = G5; 1362 1412 GCC_OPTIMIZATION_LEVEL = 0; … … 1364 1414 GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/Cocoa.framework/Headers/Cocoa.h"; 1365 1415 INFOPLIST_FILE = "Test-Info.plist"; 1366 1416 INSTALL_PATH = "$(USER_LIBRARY_DIR)/Bundles"; 1417 MACOSX_DEPLOYMENT_TARGET = 10.6; 1367 1418 ONLY_ACTIVE_ARCH = YES; 1368 1419 OTHER_LDFLAGS = ( 1369 1420 "-framework", … … 1373 1424 ); 1374 1425 PREBINDING = NO; 1375 1426 PRODUCT_NAME = Test; 1427 SDKROOT = macosx10.8; 1376 1428 WRAPPER_EXTENSION = octest; 1377 1429 ZERO_LINK = NO; 1378 1430 }; … … 1381 1433 489DD8F80C94366000595506 /* Release */ = { 1382 1434 isa = XCBuildConfiguration; 1383 1435 buildSettings = { 1384 ARCHS = "$(NATIVE_ARCH)"; 1436 ARCHS = "$(ARCHS_STANDARD_64_BIT)"; 1437 CLANG_ENABLE_OBJC_ARC = YES; 1385 1438 COPY_PHASE_STRIP = YES; 1386 1439 FRAMEWORK_SEARCH_PATHS = ( 1387 1440 "$(value)", … … 1389 1442 ); 1390 1443 GCC_ENABLE_FIX_AND_CONTINUE = NO; 1391 1444 GCC_ENABLE_OBJC_EXCEPTIONS = YES; 1445 GCC_ENABLE_OBJC_GC = NO; 1392 1446 GCC_GENERATE_DEBUGGING_SYMBOLS = NO; 1393 1447 GCC_MODEL_TUNING = G5; 1394 1448 GCC_PRECOMPILE_PREFIX_HEADER = YES; 1395 1449 GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/Cocoa.framework/Headers/Cocoa.h"; 1396 1450 INFOPLIST_FILE = "Test-Info.plist"; 1397 1451 INSTALL_PATH = "$(USER_LIBRARY_DIR)/Bundles"; 1452 MACOSX_DEPLOYMENT_TARGET = 10.6; 1398 1453 OTHER_LDFLAGS = ( 1399 1454 "-framework", 1400 1455 Cocoa, … … 1403 1458 ); 1404 1459 PREBINDING = NO; 1405 1460 PRODUCT_NAME = Test; 1461 SDKROOT = macosx10.8; 1406 1462 WRAPPER_EXTENSION = octest; 1407 1463 ZERO_LINK = NO; 1408 1464 }; … … 1412 1468 isa = XCBuildConfiguration; 1413 1469 buildSettings = { 1414 1470 ALWAYS_SEARCH_USER_PATHS = NO; 1471 ARCHS = "$(ARCHS_STANDARD_64_BIT)"; 1472 CLANG_ENABLE_OBJC_ARC = YES; 1415 1473 COPY_PHASE_STRIP = NO; 1416 1474 GCC_DYNAMIC_NO_PIC = NO; 1417 1475 GCC_ENABLE_FIX_AND_CONTINUE = YES; 1418 1476 GCC_MODEL_TUNING = G5; 1419 1477 GCC_OPTIMIZATION_LEVEL = 0; 1420 1478 INSTALL_PATH = /usr/local/bin; 1479 MACOSX_DEPLOYMENT_TARGET = 10.6; 1421 1480 PREBINDING = NO; 1422 1481 PRODUCT_NAME = MPHelperInstallTool; 1482 SDKROOT = macosx10.8; 1423 1483 }; 1424 1484 name = Debug; 1425 1485 }; … … 1427 1487 isa = XCBuildConfiguration; 1428 1488 buildSettings = { 1429 1489 ALWAYS_SEARCH_USER_PATHS = NO; 1490 ARCHS = "$(ARCHS_STANDARD_64_BIT)"; 1491 CLANG_ENABLE_OBJC_ARC = YES; 1430 1492 COPY_PHASE_STRIP = YES; 1431 1493 DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1432 1494 GCC_ENABLE_FIX_AND_CONTINUE = NO; 1433 1495 GCC_MODEL_TUNING = G5; 1434 1496 INSTALL_PATH = /usr/local/bin; 1497 MACOSX_DEPLOYMENT_TARGET = 10.6; 1435 1498 PREBINDING = NO; 1436 1499 PRODUCT_NAME = MPHelperInstallTool; 1500 SDKROOT = macosx10.8; 1437 1501 ZERO_LINK = NO; 1438 1502 }; 1439 1503 name = Release; … … 1442 1506 isa = XCBuildConfiguration; 1443 1507 buildSettings = { 1444 1508 ALWAYS_SEARCH_USER_PATHS = NO; 1509 ARCHS = "$(ARCHS_STANDARD_64_BIT)"; 1510 CLANG_ENABLE_OBJC_ARC = YES; 1445 1511 COPY_PHASE_STRIP = NO; 1446 1512 GCC_DYNAMIC_NO_PIC = NO; 1447 1513 GCC_ENABLE_FIX_AND_CONTINUE = YES; 1514 GCC_ENABLE_OBJC_GC = NO; 1448 1515 GCC_MODEL_TUNING = G5; 1449 1516 GCC_OPTIMIZATION_LEVEL = 0; 1450 1517 INSTALL_PATH = /usr/local/bin; 1518 MACOSX_DEPLOYMENT_TARGET = 10.6; 1451 1519 PREBINDING = NO; 1452 1520 PRODUCT_NAME = MPHelperTool; 1521 SDKROOT = macosx10.8; 1453 1522 }; 1454 1523 name = Debug; 1455 1524 }; … … 1457 1526 isa = XCBuildConfiguration; 1458 1527 buildSettings = { 1459 1528 ALWAYS_SEARCH_USER_PATHS = NO; 1529 ARCHS = "$(ARCHS_STANDARD_64_BIT)"; 1530 CLANG_ENABLE_OBJC_ARC = YES; 1460 1531 COPY_PHASE_STRIP = YES; 1461 1532 DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1462 1533 GCC_ENABLE_FIX_AND_CONTINUE = NO; 1534 GCC_ENABLE_OBJC_GC = NO; 1463 1535 GCC_MODEL_TUNING = G5; 1464 1536 INSTALL_PATH = /usr/local/bin; 1537 MACOSX_DEPLOYMENT_TARGET = 10.6; 1465 1538 PREBINDING = NO; 1466 1539 PRODUCT_NAME = MPHelperTool; 1540 SDKROOT = macosx10.8; 1467 1541 ZERO_LINK = NO; 1468 1542 }; 1469 1543 name = Release; … … 1491 1565 ); 1492 1566 PREBINDING = NO; 1493 1567 PRODUCT_NAME = MPHelperToolIPCTester; 1494 SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;1568 SDKROOT = macosx10.8; 1495 1569 }; 1496 1570 name = Debug; 1497 1571 }; … … 1517 1591 ); 1518 1592 PREBINDING = NO; 1519 1593 PRODUCT_NAME = MPHelperToolIPCTester; 1520 SDKROOT = /Developer/SDKs/MacOSX10.5.sdk;1594 SDKROOT = macosx10.8; 1521 1595 ZERO_LINK = NO; 1522 1596 }; 1523 1597 name = Release; -
SimpleLog.m
Only in MacPorts_Framework/MacPorts.Framework.xcodeproj: project.xcworkspace Only in MacPorts_Framework/MacPorts.Framework.xcodeproj: xcuserdata diff -ru MacPorts_Framework_orig/SimpleLog.m MacPorts_Framework/SimpleLog.m
old new 8 8 */ 9 9 10 10 #include "SimpleLog.h" 11 //// Added 12 #import "MPNotifications+IPCAdditions.h" 11 13 12 14 #define MPSEPARATOR @"_&MP&_" 13 15