[MacPorts] #63561: dav1d +universal: meson: error: unrecognized arguments: --host=aarch64-apple-darwin20.6.0

MacPorts noreply at macports.org
Sun Oct 3 13:14:22 UTC 2021


#63561: dav1d +universal: meson: error: unrecognized arguments: --host=aarch64
-apple-darwin20.6.0
-----------------------------+------------------------
  Reporter:  johanmattssonm  |      Owner:  ctreleaven
      Type:  defect          |     Status:  assigned
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:  2.7.1
Resolution:                  |   Keywords:
      Port:  dav1d           |
-----------------------------+------------------------

Comment (by ctreleaven):

 Replying to [comment:4 kencu]:
 > most meson ports have a block  something like this in them to fix this:
 > {{{
 > if {![info exists universal_possible]} {
 >     set universal_possible [expr {${os.universal_supported} && [llength
 ${configure.universal_archs}] >= 2}]
 > }
 > if {${universal_possible} && [variant_isset universal]} {
 >     foreach my_arch {ppc ppc64 i386 x86_64 arm64} {
 >         # strip the automatic setting of host, meson does not accept
 >         set merger_host(${my_arch}) ""
 >     }
 > }
 > }}}
 >
 > the automatic adding of the {{{host}}} information by the
 {{{muniversal}}} portgroup is not accepted by meson.

 The only ports I can see with this code block are glib2 and glib2-devel.

 If this is a shortcoming of meson, should we not add this block to the
 meson portgroup rather than patching port by port?

 BTW, I have no ability to build universal so I'd be shooting in the dark
 trying to fix dav1d.

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


More information about the macports-tickets mailing list