platform range and set arguments?

Jordan K. Hubbard jkh at apple.com
Mon Jan 28 15:22:26 PST 2008


On Jan 24, 2008, at 9:35 PM, Ryan Schmidt wrote:

>> That makes good sense to me, especially after looking at the
>> ghc Portfile.
>
> The gsl port seems to think this functionality already exists:
>
> platform darwin 6 7 {
>    configure.cflags-append "-O1"
> }
>
> I wonder whether this section actually gets used on Panther or  
> Jaguar...

Looking at the code, I don't think it can  be.  The current code  
treats the arguments as "platform-name [arch] [version]", so the above  
statement is only matching for darwin version 7, architecture "6".

Unfortunately, fixing this is a bit more complicated than simply  
hacking some regex matches.  The platform procedure just recasts its  
arguments in terms of a variant, so you'd have to walk the set  
notation and register multiple variants for each element.   I may  
still find time to do this, but it's more complicated than a 10 minute  
change.

- Jordan



More information about the macports-dev mailing list