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

MacPorts noreply at macports.org
Sat May 12 08:26:29 UTC 2018


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

Comment (by RJVB):

 You're right of course.

 But can't this be handled in the muniversal PG? I don't think it will be
 possible to use `supported_archs eq "noarch"` to skip declaring the
 `universal` variant but something like the patch below should make the
 variant a noop (it removes the error for QtCurve-extra):

 {{{
 diff --git a/_resources/port1.0/group/muniversal-1.0.tcl
 b/_resources/port1.0/group/muniversal-1.0.tcl
 index
 4d2d121a155d00b625086ef429ec3c0e2b7a76fd..d8c0767d5b928f67ca4147f55724628af393ffeb
 100644
 --- a/_resources/port1.0/group/muniversal-1.0.tcl
 +++ b/_resources/port1.0/group/muniversal-1.0.tcl
 @@ -129,6 +129,11 @@ merger_target_provides ${org.macports.destroot}
 destroot
  variant universal {
      global universal_archs_to_use

 +    if {${supported_archs} eq "noarch"} {
 +        ui_info "Port ${subport} is architecture-agnostic"
 +        return
 +    }
 +
      foreach arch ${universal_archs} {
          configure.universal_cflags-delete    -arch ${arch}
          configure.universal_cxxflags-delete  -arch ${arch}
 }}}

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


More information about the macports-tickets mailing list