Where are the portgroups (like qt4) defined?

—
Peter West
[email protected]
“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 <[email protected]> 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
> [email protected] <mailto:[email protected]>
> “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 <[email protected] 
>> <mailto:[email protected]>> 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.
>> 
> 

Reply via email to