qt4-mac on M1

Peter West pbw at pbw.id.au
Sat Apr 2 03:35:58 UTC 2022


Where are the portgroups (like qt4) defined?


—
Peter West
pbw at ehealth.id.au
“Truly, truly, I say to you, an hour is coming, and is now here, when the dead will hear the voice of the Son of God, and those who hear will live.”

> On 2 Apr 2022, at 1:26 pm, Peter West <pbw at pbw.id.au> wrote:
> 
> Down the rabbit hole.
> 
> I’m following dependencies which have their own dependency on qt4-mac and are set to universal, I presume, because I get messages like
> 
> Error: Cannot install automoc for the archs 'arm64 x86_64' because
> Error: its dependency qt4-mac only supports the archs 'ppc ppc64 i386 x86_64'.
> 
> 
>> Peter West
> pbw at ehealth.id.au <mailto:pbw at ehealth.id.au>
> “Truly, truly, I say to you, an hour is coming, and is now here, when the dead will hear the voice of the Son of God, and those who hear will live.”
> 
> 
>> On 2 Apr 2022, at 12:44 am, Ryan Schmidt <ryandesign at macports.org <mailto:ryandesign at macports.org>> wrote:
>> 
>> 
>> 
>> On Apr 1, 2022, at 09:42, Peter West wrote:
>> 
>>> On 1 Apr 2022, at 11:53 pm, Ryan Schmidt wrote:
>>> 
>>>> On Apr 1, 2022, at 04:32, Peter West wrote:
>>>> 
>>>>> On 1 Apr 2022, at 7:22 pm, Peter West wrote:
>>>>>> 
>>>>>> I just tried to install kmymoney4 on my M1 running 12.2.1. MacPorts spat the dummy with
>>>>>> 
>>>>>> Error: Cannot install kmymoney4 for the arch 'arm64' because
>>>>>> Error: its dependency qt4-mac only supports the archs 'ppc ppc64 i386 x86_64’.
>>>>>> 
>>>>>> 
>>>>>> Is it possible for me to install this somehow?
>>>>>> 
>>>>>> Should I file a ticket for this?
>>>>> 
>>>>> My Xcode version is 13.3. #61789 was closed as fixed 8 months ago.
>>>> 
>>>> https://trac.macports.org/ticket/61789#comment:6 <https://trac.macports.org/ticket/61789#comment:6> says "qt4-mac is old enough that my best guess is it'll take significant work to get it working on ARM64". Therefore #61789 was fixed by making the qt4-mac port indicate that it does not support the arm64 architecture, and thus if you try to install it on an Apple Silicon Mac, MacPorts should install it for the x86_64 architecture instead and it will run in emulation via Rosetta 2.
>>>> 
>>>> However, kmymoney4 and probably most other ports that depend on qt4-mac do not similarly indicate that they do not support arm64, therefore MacPorts tries to install them and their dependencies (including qt4-mac) for arm64, which as we know doesn't work.
>>>> 
>>>> The kmymoney4 portfile does include the kde4 portgroup which in turn includes the qt4 portgroup. The qt4 portgroup seems like a great place to set supported_archs to indicate non-support of arm64.
>>> 
>>> Can I do this with a local portfile?
>> 
>> Sure. To test whether this works, you could add the line
>> 
>> supported_archs ppc ppc64 i386 x86_64
>> 
>> to the kmymoney4 portfile.
>> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20220402/72d11bbd/attachment.htm>


More information about the macports-users mailing list