Opened 2 weeks ago

Last modified 2 weeks ago

#62027 accepted defect

mythtv.28 fails to build on Big Sur 11.1 with Apple silicon

Reported by: dfleck Owned by: ctreleaven (Craig Treleaven)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: bigsur arm64 Cc: ctreleaven@…
Port: mythtv.28


mythtv.28 builds for x86_64. Logrotate builds for arm64. mythtv won't build because it can't find an X86 version of logrotate (I don't think it should care - should it?)

--->  Computing dependencies for mythtv.28
Error: Cannot install mythtv-core.28 for the arch 'x86_64' because
Error: its dependency logrotate does not build for the required arch by default
Error: and does not have a universal variant.
Error: Follow to report a bug.
Error: Processing of port mythtv.28 failed

Change History (5)

comment:1 Changed 2 weeks ago by ctreleaven (Craig Treleaven)

AFAIK, you are the first person to attempt to build Myth 0.28 on Apple Silicon.

You could try adding arm64 to the supported_archs (line 26 of the Portfile). The build dependency on yasm will then be superfluous, I believe.

Are you looking to try running mythbackend on an M1 Mac? I'll be glad to offer what advice I can but I don't have such hardware myself.

comment:2 Changed 2 weeks ago by ctreleaven (Craig Treleaven)

Owner: set to ctreleaven
Status: newaccepted

comment:3 Changed 2 weeks ago by dfleck

Actually I *have* mythbackend (and mythweb) running on the M1. I installed a v28 app package I found somewhere. But I'd like to get it running "properly" as a service thru MacPorts (plus the webbackend server isn't working right with the app).

I'll try to modify the Portfile - but so far I've been flummoxed with updating the checksums.

comment:4 Changed 2 weeks ago by dfleck

Modifying the Portfiles as suggested results in a different error:

Error: Cannot install mythtv.28 for the arch 'arm64' because
Error: its dependency qt5-qtbase only supports the arch 'x86_64'.

comment:5 Changed 2 weeks ago by ctreleaven (Craig Treleaven)

Interesting. I would guess that you installed from the all-in-one installer and are therefore running Myth under Rosetta2 emulation. First report I've heard of that.

I'm not sure what the status is on qt5 on Apple silicon. I think it might be best to send a query to the macports-dev mailing list, copying the qt5 maintainers, and ask what the plan is to bring Qt up. I did notice that Qt6 was released recently. The indication was that Qt6 was not a major departure from Qt5 so maybe it won't be hard to add to MacPorts. OTOH, Qt is a massive, complicated suite of software and making it work in a MacPorts-context has been far from trivial.

Please feel free to contact me directly at my address if you'd like to discuss further.

Last edited 2 weeks ago by ctreleaven (Craig Treleaven) (previous) (diff)
Note: See TracTickets for help on using tickets.