use_configure yes fails building universal(?)
Ryan Schmidt
ryandesign at macports.org
Mon Mar 30 21:24:08 PDT 2015
On Mar 30, 2015, at 11:11 PM, Mihai Moldovan wrote:
> I've hit a very strange issue/bug in base and need some help with that.
There is no bug. Everything is working correctly.
> I've been trying to build this Portfile universal:
> https://git.ionic.de/macports-overlay.git/blob/02c90350a:/textproc/mandoc/Portfile
>
> This *configures* universal, but doesn't *build* universal, though.
This port's configure phase uses [get_canonical_archflags] inside a pre-configure phase. By the time this code runs, the default universal variant has been declared, so this proc returns universal arch flags here.
But for the build phase, [get_canonical_archflags] is invoked while setting build.env in the global part of the portfile, which is before the default universal variant has been declared, so the proc returns non-universal arch flags in this case.
> After adding use_configure no, variant universal {} and configure {
> system -W "${worksrcpath}" "./configure" } -- the ONLY changes -- the
> port builds correctly!
The only change you need to make is adding "variant universal {}" before the first time that [get_canonical_archflags] is invoked.
More information about the macports-dev
mailing list