[66374] trunk/dports/aqua/gimp-app/Portfile

Joshua Root jmr at macports.org
Sat Apr 10 23:49:08 PDT 2010


On 2010-4-11 05:44 , Rainer Müller wrote:
> On 2010-04-10 21:16 , Ryan Schmidt wrote:
>> Since this problem is not specific to Snow Leopard (merely most commonly observed there), it would be better to fix this kind of problem with the following code:
>>
>>
>> if {[info exists supported_archs]} {
>>     supported_archs i386 ppc
>> }
>> switch ${configure.build_arch} {
>>     x86_64 {
>>         configure.build_arch i386
>>     }
>>     ppc64 {
>>         configure.build_arch ppc
>>     }
>> }
> 
> You are right. My fix seems to be wrong anyway. Using trunk, I did 'port
> -n upgrade --force gimp-app' to test my changes to build_arch and it worked.
> 
> But '-n' seems to disable the archcheck (quite reasonable) which makes
> it now result in:
>   Error: Cannot install gimp-app for the arch(s) 'i386' because
>   Error: its dependency gimp2 is only installed for the arch 'x86_64'
>   Error: and does not have a universal variant.
>   Error: Unable to execute port: architecture mismatch
> 
> Fixed in r66378 by using depends_skip_archcheck with your proposed
> changes as well.

What was wrong with
<http://trac.macports.org/attachment/ticket/21718/patch-main.c.diff>?
(Well, apart from the fact that it just removes StandardAlert instead of
replacing it with the modern equivalent...)

- Josh


More information about the macports-dev mailing list