[MacPorts] #20506: ncursesw fails to build universal on 10.6 x86_64
#20506: ncursesw fails to build universal on 10.6 x86_64 ---------------------------------------+------------------------------------ Reporter: ryanwalklin@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: MacPorts 1.8.0 Component: ports | Version: 1.7.1 Keywords: | Port: ---------------------------------------+------------------------------------ The portfile for ncursesw checks for cross-compilation before installing, however on x86_64, does not allow installation becaus: the port is not built for ppc and ppc64. The portfile is trivially fixed by removing the section: {{{ if { ${need_cross}=="yes" && ${have_run}=="no" } { return -code error "At least one of the universal_archs values must run on your host architecture." } }}} -- Ticket URL: <http://trac.macports.org/ticket/20506> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20506: ncursesw fails to build universal on 10.6 x86_64 ---------------------------------------+------------------------------------ Reporter: ryanwalklin@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: snowleopard | Port: ncursesw ---------------------------------------+------------------------------------ Changes (by snc@…): * keywords: => snowleopard * version: 1.7.1 => 1.8.0 * port: => ncursesw * milestone: MacPorts 1.8.0 => -- Ticket URL: <http://trac.macports.org/ticket/20506#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20506: ncursesw fails to build universal on 10.6 x86_64 ---------------------------------------+------------------------------------ Reporter: ryanwalklin@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Low | Milestone: Component: ports | Version: 1.8.0 Keywords: snowleopard | Port: ncursesw ---------------------------------------+------------------------------------ Changes (by snc@…): * cc: ryanwalklin@… (removed) * cc: imajes@… (added) * priority: Normal => Low Comment: Snow Leopard tickets are to be low priority until it is launched. -- Ticket URL: <http://trac.macports.org/ticket/20506#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20506: ncursesw fails to build universal on 10.6 x86_64 ---------------------------------------+------------------------------------ Reporter: ryanwalklin@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Low | Milestone: Component: ports | Version: Keywords: snowleopard | Port: ncursesw ---------------------------------------+------------------------------------ Changes (by toby@…): * cc: toby@… (added) * version: 1.8.0 => Comment: Uh... what is universal_archs set to in macports.conf? -- Ticket URL: <http://trac.macports.org/ticket/20506#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20506: ncursesw fails to build universal on 10.6 x86_64 ---------------------------------------+------------------------------------ Reporter: ryanwalklin@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Low | Milestone: Component: ports | Version: Keywords: snowleopard | Port: ncursesw ---------------------------------------+------------------------------------ Comment(by ryanwalklin@…): {{{ universal_archs x86_64 i386 }}} The conditionals for cross-compiling in the portfile don't seem to take into account the fact that ppc or ppc64 may not be present. -- Ticket URL: <http://trac.macports.org/ticket/20506#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20506: ncursesw fails to build universal on 10.6 x86_64 ---------------------------------------+------------------------------------ Reporter: ryanwalklin@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Low | Milestone: Component: ports | Version: Keywords: snowleopard | Port: ncursesw ---------------------------------------+------------------------------------ Comment(by toby@…): The logic in the Portfile, while rather convoluted thanks to muniversal, looks fine to me. Port builds fine for me, so we'll need more info.[[BR]] [[BR]] What SL build are you on?[[BR]] How recent is your MacPorts install?[[BR]] Are your ports up to date? -- Ticket URL: <http://trac.macports.org/ticket/20506#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20506: ncursesw fails to build universal on 10.6 x86_64 ---------------------------------------+------------------------------------ Reporter: ryanwalklin@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Low | Milestone: Component: ports | Version: Keywords: snowleopard | Port: ncursesw ---------------------------------------+------------------------------------ Comment(by ryanwalklin@…): 10A421a, running with x86_64 kernel, SVN as of yesterday with a selfupdate. AFAICT, the relevant logic evaluates: {{{ if {[variant_isset universal]} { }}} = true {{{ if { ${os.arch}=="i386" } { }}} = false so the else branch executes {{{ foreach arch ${universal_archs_to_use} { if { ${arch}=="i386" || ${arch}=="x86_64" } { }}} evaluates true as i386 is also selected in universal_archs_to_use. Then {{{ if { ${arch}=="ppc" || ${arch}=="ppc64" } { }}} evaluates false as only i386 and x86_64 are set. Consequently, have_run is not set, and {{{ if { ${need_cross}=="yes" && ${have_run}=="no" } { }}} evaluates to true, so the build fails with the error as above. I suspect you are unable to replicate because you're using the i386 kernel? Looks like the logic may need to be extended to allow for an x86_64 kernel. Thanks again for your attention. -Ryan -- Ticket URL: <http://trac.macports.org/ticket/20506#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20506: ncursesw fails to build universal on 10.6 x86_64 ---------------------------------------+------------------------------------ Reporter: ryanwalklin@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Low | Milestone: Component: ports | Version: Keywords: snowleopard | Port: ncursesw ---------------------------------------+------------------------------------ Comment(by ryanwalklin@…): Is there any reason not to set have_run just on whether the host architecture is included in universal_archs_to_use, and set need_cross if more than one architecture is selected? Then the relevant build destinations etc could be set just on whether each architecture is present in universal_archs_to_use. -- Ticket URL: <http://trac.macports.org/ticket/20506#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20506: ncursesw fails to build universal on 10.6 x86_64 ----------------------------------------+----------------------------------- Reporter: ryanwalklin@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Low | Milestone: Component: ports | Version: Resolution: fixed | Keywords: snowleopard Port: ncursesw | ----------------------------------------+----------------------------------- Changes (by toby@…): * status: new => closed * resolution: => fixed Comment: Ah, I don't test on K64. Should be fixed in r54798. -- Ticket URL: <http://trac.macports.org/ticket/20506#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20506: ncursesw fails to build universal on 10.6 x86_64 ----------------------------------------+----------------------------------- Reporter: ryanwalklin@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Low | Milestone: Component: ports | Version: Resolution: fixed | Keywords: snowleopard Port: ncursesw | ----------------------------------------+----------------------------------- Comment(by ryanwalklin@…): Nice, thanks very much. -- Ticket URL: <http://trac.macports.org/ticket/20506#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts