On Tue, Feb 20, 2018 at 10:05:01AM +0000, Joern Clausen wrote:
> I think the overall fix would be to check all packages depending on gmp
> and mpfr and adding appropriate BUILDLINK_API_DEPENDS - whatever the
> minimal version might be in any case. Another fix might be to make SunOS
> always use pkgsrc's versions and never ever use the builtins.
There's on the order of 100 such packages, and since minimum versions
are rarely documented well (or at all) this doesn't entirely seem like
an effective approach.
Also some crosschecking with the Solaris bulk reports doesn't seem to
suggest that it's a huge problem, although maybe that's a function of
Solaris version.
Would it be feasible for you to put something like
.if defined(USE_BUILTIN.gmp) && !empty(USE_BUILTIN.gmp:M[Yy][Ee][Ss])
.warning "****** CAUTION"
.warning "****** Using builtin gmp."
.warning "****** This might be problematic."
.endif
(and maybe another one for mpfr) in your mk.conf, so if you step on
this problem again it doesn't waste your time, and if you hit any
cases let us know?