[MacPorts] #56466: QtCurve-extra: universal variant fails

MacPorts noreply at macports.org
Sat May 12 15:27:48 UTC 2018


#56466: QtCurve-extra: universal variant fails
----------------------------+------------------------
  Reporter:  ryandesign     |      Owner:  ryandesign
      Type:  defect         |     Status:  closed
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:
Resolution:  fixed          |   Keywords:
      Port:  QtCurve-extra  |
----------------------------+------------------------

Comment (by RJVB):

 > Your patch makes the portgroup's universal variant print an error if
 `${supported_archs} eq noarch`. That might be a reasonable safeguard to
 have in the portgroup

 A warning, but yes, that was the intention since apparently it's not
 possible to do anything else.

 But is that really true? I'm guessing that the standard universal variant
 is defined by "base" after the Portfile has been interpreted, and only if
 such a variant wasn't already defined?
 If true, the muniversal PG could use `if {[variant_isset universal]}`
 instead of declaring the variant, and set a special state variable. The
 "base" code could then use that state variable to decide whether to
 declare the standard universal variant, or an empty variant (= without
 code) instead.

-- 
Ticket URL: <https://trac.macports.org/ticket/56466#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list