[MacPorts] #36438: ports which mirror system libraries can cause +universal ports to fail if they are -universal

MacPorts noreply at macports.org
Sat May 11 10:13:05 PDT 2013


#36438: ports which mirror system libraries can cause +universal ports to fail if
they are -universal
----------------------------+------------------------
  Reporter:  ahelfer1971@…  |      Owner:  jeremyhu@…
      Type:  defect         |     Status:  assigned
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.1.2
Resolution:                 |   Keywords:
      Port:  ld64           |
----------------------------+------------------------

Comment (by larryv@…):

 Replying to [comment:53 egall@…]:
 > Actually I just came up with another idea: would throwing something
 > like the following into perl5's universal variant work?
 > {{{
 > if {![catch "registry_active libstdcxx"]} {
 >     depends_lib-append path:lib/.libstdcxx:libstdcxx
 >     require_active_variants path:lib/.libstdcxx:libstdcxx universal
 > }
 > }}}
 > This is with including the `active_variants 1.1` port group somewhere
 > earlier in the portfile of course. Also I'm adding the dependency on
 > libstdcxx because I'm assuming that `require_active_variants` only
 > works with ports that are already in a port's dependency list.

 a. As a dependency of a universal port, MacPorts would already make sure
 that `libstdcxx` was installed universal. So `active_variants-1.1` would
 not be necessary.
 b. So then `perl5.12 +universal` would be recorded as being a dependent of
 `libstdcxx`, which it doesn’t use at all? No, this is not a viable
 workaround.

-- 
Ticket URL: <https://trac.macports.org/ticket/36438#comment:54>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list