[MacPorts] #32542: Setting configure.compiler to a MacPorts-provided compiler doesn't add dependency automatically

MacPorts noreply at macports.org
Mon Jan 28 10:58:24 PST 2013


#32542: Setting configure.compiler to a MacPorts-provided compiler doesn't add
dependency automatically
---------------------+--------------------------------
  Reporter:  cal@…   |      Owner:  macports-tickets@…
      Type:  defect  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  base    |    Version:  2.0.3
Resolution:          |   Keywords:
      Port:          |
---------------------+--------------------------------

Comment (by jeremyhu@…):

 This should handle it then:

 {{{
 # TODO: base should do this: http://trac.macports.org/ticket/32542
 if {[portconfigure::compiler_is_port ${configure.compiler}]} {
     depends_build-append
 port:$portconfigure::compiler_name_map(${configure.compiler})

     # base 2.1.x ignores the argument and just use ${configure.compiler}
     if {[portconfigure::arch_flag_supported ${configure.compiler}]} {
         depends_skip_archcheck-append
 $portconfigure::compiler_name_map(${configure.compiler})
     }

     if {[string match macports-gcc* ${configure.compiler}]} {
         depends_lib-append
 port:$portconfigure::compiler_name_map(${configure.compiler})
     }
 }
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/32542#comment:14>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list