Opened 10 years ago
Last modified 6 years ago
#45835 reopened defect
MacPorts_Framework @1.2.1_1: needs to be updated to work against modern MacPorts installation
Reported by: | kmfs69@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.2 |
Keywords: | Cc: | salawat1980@…, krislec@…, SickTeddyBear, jeffd.oz@…, mrluca87@…, aelhossi@…, ghunnel@…, crhickerson@…, tdy@… | |
Port: | MacPorts_Framework |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
Mac OS Yosemite
Xcode 6.1 (6A1052d)
I'm using a clean installed Mac OS on a new HD. I was able to install the subversion port without problems.
It went wrong when I tried to install the MacPorts_Framework. I've attached the log file.
sudo port install MacPorts_Framework ---> Computing dependencies for MacPorts_Framework ---> Fetching archive for MacPorts_Framework ---> Attempting to fetch MacPorts_Framework-1.2.1_1.darwin_14.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/MacPorts_Framework ---> Attempting to fetch MacPorts_Framework-1.2.1_1.darwin_14.x86_64.tbz2 from http://lil.fr.packages.macports.org/MacPorts_Framework ---> Attempting to fetch MacPorts_Framework-1.2.1_1.darwin_14.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/MacPorts_Framework ---> Fetching distfiles for MacPorts_Framework ---> Verifying checksums for MacPorts_Framework ---> Extracting MacPorts_Framework ---> Configuring MacPorts_Framework ---> Building MacPorts_Framework Error: org.macports.build for port MacPorts_Framework returned: command execution failed Please see the log file for port MacPorts_Framework for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_MacPorts_Framework/MacPorts_Framework/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port MacPorts_Framework failed
Attachments (5)
Change History (28)
Changed 10 years ago by kmfs69@…
comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Port: | MacPorts_Framework added |
Summary: | MacPorts_Framework @1.2.1_1 Processing of port MacPorts_Framework failed → MacPorts_Framework @1.2.1_1: error: garbage collection is no longer supported |
comment:2 Changed 10 years ago by mf2k (Frank Schima)
Cc: | salawat1980@… added |
---|
Cc reporter of duplicate #46448.
comment:4 Changed 10 years ago by hofione@…
2.3.3 still contains this bug, any chance for fix it in the near future?
comment:7 Changed 10 years ago by larryv (Lawrence Velázquez)
Cc: | krislec@… added |
---|
Has duplicate #47010.
comment:8 follow-up: 9 Changed 10 years ago by jerryyhom
I used Xcode 5 on my 10.9 system to convert GC to ARC and fix remaining errors. Minimum supported systems should be 10.6. I made a batch patch; give it a try. It builds for me, but since it is a framework, I do not know if it really works. If you compile projects against it, let me know what errors you encounter.
Changed 10 years ago by jerryyhom
Attachment: | patch-convert-GC-ARC.diff added |
---|
comment:9 Changed 10 years ago by kmfs69@…
Replying to jerryyhom@…:
I used Xcode 5 on my 10.9 system to convert GC to ARC and fix remaining errors. Minimum supported systems should be 10.6. I made a batch patch; give it a try. It builds for me, but since it is a framework, I do not know if it really works. If you compile projects against it, let me know what errors you encounter.
I was able to compile the MacPorts_Framework with your patch on Mac OS 10.10 with Xcode 6.1.1.
However when I tried to compile the MacPorts package "Pallet" it failed with the error "garbage collection is no longer supported". I'll log a new ticket for this one.
comment:10 Changed 10 years ago by jerryyhom
There were actually a few bugs besides GC support which prevented Pallet from working. The previous patch should be disregarded. I will attach a few new patches. I also have a new patch for Pallet, which will be attached to #43581.
Changed 10 years ago by jerryyhom
Attachment: | patch-disable-GC-and-link-MP-tcl.diff added |
---|
Changed 10 years ago by jerryyhom
Attachment: | patch-unreference-macports_fastload_tcl.diff added |
---|
Changed 10 years ago by jerryyhom
Attachment: | patch-regexp-typo.diff added |
---|
comment:12 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | jeffd.oz@… added |
---|
Has duplicate #48555.
comment:13 Changed 9 years ago by mf2k (Frank Schima)
Cc: | mrluca87@… added |
---|
Cc'ing reporter of duplicate #48732.
comment:15 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | aelhossi@… added |
---|
Has duplicate #49246.
comment:16 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ghunnel@… added |
---|
Has duplicate #50905.
comment:19 Changed 6 years ago by kencu (Ken)
10.10 is the only system that macports_framework no longer builds on. It looks like these patches are reasonable. I'll try them out on a 10.10 VM and if they work, I'll commit them.
comment:20 Changed 6 years ago by Ken <21211439+kencu@…>
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:21 Changed 6 years ago by kencu (Ken)
Disabling GC is simple enough in the portfile, and allows the macports_framework to build. however, it may well be that macports_framework needs some of these other adjustments in the tcl library, and missing fastload file, to actually function.
comment:22 Changed 6 years ago by kencu (Ken)
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Summary: | MacPorts_Framework @1.2.1_1: error: garbage collection is no longer supported → MacPorts_Framework @1.2.1_1: needs to be updated to work against modern MacPorts installation |
comment:23 Changed 6 years ago by kencu (Ken)
Not much happiness so far. Even with the three patches above installed on MacPorts_Framework, Pallet crashes quickly with:
Process: Pallet [91677] Path: /Applications/MacPorts/Pallet.app/Contents/MacOS/Pallet Identifier: org.macports.Pallet Version: 1.0 Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: Pallet [91677] User ID: 501 Date/Time: 2018-10-20 13:51:04.598 -0700 OS Version: Mac OS X 10.14 (18A391) Report Version: 12 Anonymous UUID: 634B7103-0C6F-212F-7C32-6CA9B0415D80 Time Awake Since Boot: 500000 seconds System Integrity Protection: enabled Crashed Thread: 7 Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Application Specific Information: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!' abort() called terminating with uncaught exception of type NSException Application Specific Backtrace 1: 0 CoreFoundation 0x00007fff4c34c571 __exceptionPreprocess + 256 1 libobjc.A.dylib 0x00007fff782fdefb objc_exception_throw + 48 2 CoreFoundation 0x00007fff4c3662ad -[NSException raise] + 9 3 AppKit 0x00007fff4985c2a5 -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 324 4 AppKit 0x00007fff498634ba -[NSView(NSInternal) _updateDragRegionForHiddenStateChange] + 73 5 AppKit 0x00007fff4985129f -[NSView(NSInternal) _setHidden:setNeedsDisplay:] + 1236 6 AppKit 0x00007fff4980aa6a -[NSEditableBinder _setStatesImmediatelyInObject:mode:triggerRedisplay:] + 953 7 AppKit 0x00007fff4980a6aa -[NSEditableBinder _observeValueForKeyPath:ofObject:context:] + 112 8 Foundation 0x00007fff4e60f1b6 NSKeyValueNotifyObserver + 346 9 Foundation 0x00007fff4e60ec22 NSKeyValueDidChange + 481 10 Foundation 0x00007fff4e60dfff -[NSObject(NSKeyValueObservingPrivate) _changeValueForKeys:count:maybeOldValuesDict:maybeNewValuesDict:usingBlock:] + 786 11 Foundation 0x00007fff4e60dcd0 -[NSObject(NSKeyValueObservingPrivate) _changeValueForKey:key:key:usingBlock:] + 68 12 Foundation 0x00007fff4e68d9be _NSSetCharValueAndNotify + 253 13 CoreFoundation 0x00007fff4c2f7076 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12 14 CoreFoundation 0x00007fff4c2f6ff0 ___CFXRegistrationPost_block_invoke + 63 15 CoreFoundation 0x00007fff4c2f6f11 _CFXRegistrationPost + 398 16 CoreFoundation 0x00007fff4c2ff24d ___CFXNotificationPost_block_invoke + 87 17 CoreFoundation 0x00007fff4c2663a4 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1804 18 CoreFoundation 0x00007fff4c265649 _CFXNotificationPost + 854 19 Foundation 0x00007fff4e605bab -[NSNotificationCenter postNotificationName:object:userInfo:] + 66 20 MacPorts 0x000000010f12cf46 -[MPInterpreter evaluateStringWithPossiblePrivileges:error:] + 70 21 MacPorts 0x000000010f12dfba -[MPMacPorts sync:] + 169 22 Pallet 0x000000010f120726 Pallet + 10022 23 Foundation 0x00007fff4e606234 __NSThread__start__ + 1218 24 libsystem_pthread.dylib 0x00007fff795b633d _pthread_body + 126 25 libsystem_pthread.dylib 0x00007fff795b92a7 _pthread_start + 70 26 libsystem_pthread.dylib 0x00007fff795b5425 thread_start + 13
Yes, MacPorts_Framework (and Pallet—see #43581) need to be updated to be compatible with Xcode 5 and later. Garbage collection is no longer supported by Apple. These projects need to be rewritten to use automatic reference counting (ARC) instead.