On Jun 14, 2022, at 12:33, René J.V. Bertin wrote:

> On Monday June 13 2022 04:34:46 Ryan Schmidt wrote:
> 
>> The standard universal variant has no content. (Universal support is 
>> implemented by adding the return value of procedures like 
>> [get_canonical_archflags cc] to CFLAGS.) Many ports implement their own 
>> universal variant by manually creating this empty universal variant 
>> ("variant universal {}") and using get_canonical_archflags where needed.
> 
> Bummer, looks like "base" is trying to be too smart: the manually created 
> variant is removed after the Portfile has been parsed, "due to < 2 supported 
> universal_archs".

Base is exactly smart enough. When supported_archs contains only 1 arch, it 
does make sense to offer a universal variant, therefore base prevents it.

Reply via email to