Universal issues
Joshua Root
jmr at macports.org
Tue Jun 10 21:17:48 PDT 2008
Joshua Root wrote:
> Ryan Schmidt wrote:
>> For the sake of ports like apr and isightcapture and others in the
>> same boat, we need a way to indicate in each port which architectures
>> are supported. MacPorts would by default assume that all ports can be
>> built for all four architectures, but individual ports could add
>> lines to change this. For example, apr could add "supported_archs
>> i386 ppc" until their bug is fixed. wine could add "supported_archs
>> i386 x86_64". This could solve a number of problems. 1) If the user
>> requests the universal variant but the list of supported
>> architectures doesn't include all the architectures the user
>> requested in their universal_archs definition in macports.conf, a
>> warning can be issued informing the user. 2) If a port isn't
>> available at all on the user's local architecture (for example, the
>> user is on ppc and tries to install wine which only supplies i386 and
>> x86_64) port can issue an error and halt. Then we could eliminate
>> from the portfile the code that currently checks the architecture and
>> warns the user and exits.
>
> Sounds good to me. Noarch ports could specify 'all' in supported_archs,
On second thought, 'any' would be better than 'all', particularly for
the purposes of displaying which archs a port was built for in 'port
installed' output.
- Josh
More information about the macports-dev
mailing list