[MacPorts] #37016: tk @8.5.13 fails to upgrade
#37016: tk @8.5.13 fails to upgrade ------------------------------+-------------------------------- Reporter: nonstop.server@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Keywords: | Port: tk ------------------------------+-------------------------------- Port tk fails to upgrade from version 8.5.12 to 8.5.13 and returns the following error. {{{ /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org _release_tarballs_ports_x11_tk/tk/work/tk8.5.13/unix/../macosx/tkMacOSXWm.c:6332 : error: ‘NSApplicationPresentationAutoHideMenuBar’ undeclared (first use in thi s function) /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org _release_tarballs_ports_x11_tk/tk/work/tk8.5.13/unix/../macosx/tkMacOSXWm.c:6332 : warning: no ‘-setPresentationOptions:’ method found/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org _release_tarballs_ports_x11_tk/tk/work/tk8.5.13/unix/../macosx/tkMacOSXWm.c:6335 : warning: no ‘-setPresentationOptions:’ method found/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org _release_tarballs_ports_x11_tk/tk/work/tk8.5.13/unix/../macosx/tkMacOSXWm.c:6336 : warning: ‘NSWindow’ may not respond to ‘-setStyleMask:’ make: *** [tkMacOSXWm.o] Error 1 make: *** Waiting for unfinished jobs.... make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_s ources_rsync.macports.org_release_tarballs_ports_x11_tk/tk/work/tk8.5.13/unix' Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sourc es_rsync.macports.org_release_tarballs_ports_x11_tk/tk/work/tk8.5.13/unix" && /u sr/bin/make -j2 -w all Exit code: 2 }}} Version Information: {{{ Mac OS Version: ProductName: Mac OS X ProductVersion: 10.5.8 BuildVersion: 9L31a Darwin 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386 Xcode Version: Xcode 3.1.4 Component versions: DevToolsCore-1204.0; DevToolsSupport-1186.0 BuildVersion: 9M2809 Macports Version: Version: 2.1.2 }}} -- Ticket URL: <https://trac.macports.org/ticket/37016> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37016: tk: NSApplicationPresentationAutoHideDock undeclared (first use in this function) -------------------------------+------------------- Reporter: nonstop.server@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: tk | -------------------------------+------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => mww@… * cc: mww@… (removed) Comment: {{{ .../tk8.5.13/unix/../macosx/tkMacOSXWm.c:6332: error: ‘NSApplicationPresentationAutoHideDock’ undeclared (first use in this function) .../tk8.5.13/unix/../macosx/tkMacOSXWm.c:6332: error: (Each undeclared identifier is reported only once .../tk8.5.13/unix/../macosx/tkMacOSXWm.c:6332: error: for each function it appears in.) .../tk8.5.13/unix/../macosx/tkMacOSXWm.c:6332: error: ‘NSApplicationPresentationAutoHideMenuBar’ undeclared (first use in this function) }}} Indeed, NSApplicationPresentationAutoHideDock is part of the KioskMode APIs available only in OS X 10.6 and later. Sorry. If you wish Tk to remain compatible with OS X 10.5, you'll have to report the problem to the developers of Tk. -- Ticket URL: <https://trac.macports.org/ticket/37016#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37016: tk: NSApplicationPresentationAutoHideDock undeclared (first use in this function) -------------------------------+------------------- Reporter: nonstop.server@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: tk | -------------------------------+------------------- Comment (by heapifyman@…): How do I find out, if I actually need tk? It was installed as a dependency for some other port... -- Ticket URL: <https://trac.macports.org/ticket/37016#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37016: tk: NSApplicationPresentationAutoHideDock undeclared (first use in this function) -------------------------------+------------------- Reporter: nonstop.server@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: tk | -------------------------------+------------------- Comment (by nonstop.server@…): Replying to [comment:2 ryandesign@…]: Thank you for the explanation. A bug report has been filed, see artifact [https://sourceforge.net/tracker/?func=detail&aid=3588158&group_id=12997&atid... 3588158] for more information. -- Ticket URL: <https://trac.macports.org/ticket/37016#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37016: tk: NSApplicationPresentationAutoHideDock undeclared (first use in this function) -------------------------------+------------------- Reporter: nonstop.server@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: tk | -------------------------------+------------------- Comment (by nonstop.server@…): Replying to [comment:3 heapifyman@…]: To find installed ports that are unrequested and have no dependents you can use: {{{ % port echo leaves or % port echo leaves |grep -w tk }}} To display all ports that are required to build and run tk {{{ % port echo depof:tk }}} To display all installed ports that depend on tk {{{ % port echo dependentof:tk }}} -- Ticket URL: <https://trac.macports.org/ticket/37016#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37016: tk: NSApplicationPresentationAutoHideDock undeclared (first use in this function) -------------------------------+------------------- Reporter: nonstop.server@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: tk | -------------------------------+------------------- Comment (by jmr@…): You could try building with -quartz. If that works, we could make that the default for < 10.6 until upstream fixes it. -- Ticket URL: <https://trac.macports.org/ticket/37016#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37016: tk: NSApplicationPresentationAutoHideDock undeclared (first use in this function) -------------------------------+------------------- Reporter: nonstop.server@… | Owner: mww@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: tk | -------------------------------+------------------- Comment (by mdbecque@…): Replying to [comment:8 jmr@…]:
You could try building with -quartz. If that works, we could make that the default for < 10.6 until upstream fixes it.
I uninstalled tk and then tried to install the +quartz variant. The build failed again on 10.5.8. -- Ticket URL: <https://trac.macports.org/ticket/37016#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37016: tk: NSApplicationPresentationAutoHideDock undeclared (first use in this function) -------------------------------+--------------------------- Reporter: nonstop.server@… | Owner: mww@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: leopard tiger Port: tk | -------------------------------+--------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) * keywords: => leopard tiger * status: new => closed * resolution: => fixed Comment: We know that tk with the quartz variant ("tk +quartz") fails. We were asking you to try whether tk without the quartz variant ("tk -quartz") works. I've tried it myself now on Leopard and can confirm this works, so I've fixed it in r99837. The upstream bug report indicates that this problem will not be fixed and says that tk >= 8.5.13 is not supported on Leopard and older, but it appears that by omitting the quartz parts it still works on Leopard. -- Ticket URL: <https://trac.macports.org/ticket/37016#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37016: tk: NSApplicationPresentationAutoHideDock undeclared (first use in this function) -------------------------------+--------------------------- Reporter: nonstop.server@… | Owner: mww@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: leopard tiger Port: tk | -------------------------------+--------------------------- Comment (by mdbecque@…): Replying to [comment:10 ryandesign@…]:
We know that tk with the quartz variant ("tk +quartz") fails. We were asking you to try whether tk without the quartz variant ("tk -quartz") works. I've tried it myself now on Leopard and can confirm this works, so I've fixed it in r99837.
The upstream bug report indicates that this problem will not be fixed and says that tk >= 8.5.13 is not supported on Leopard and older, but it appears that by omitting the quartz parts it still works on Leopard.
I didn't understand the minus sign, now I do. :-) It works for me too. -- Ticket URL: <https://trac.macports.org/ticket/37016#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#37016: tk: NSApplicationPresentationAutoHideDock undeclared (first use in this function) -------------------------------+--------------------------- Reporter: nonstop.server@… | Owner: mww@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: fixed | Keywords: leopard tiger Port: tk | -------------------------------+--------------------------- Comment (by jmr@…): if anyone cares enough to implement it, I doubt upstream would object to a patch that conditionally disables the use of that API only on <= 10.5. -- Ticket URL: <https://trac.macports.org/ticket/37016#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts