pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/52250: gmp and mpfr not found by some packages

On 04/29/18 06:35, David Holland wrote:
  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.

If I remember @jperkin correctly, the bulk builds are done on Illumos, which probably does have a different (i.e. newer) userland compared to Solaris 11.

  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."
(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?

I don't think that a mix of packages using native and pkgsrc versions of gmp and mpfr is a good idea, so I will keep

PREFER_PKGSRC = gmp mpfr

anyway and not try to solve this on a per-package level. And if the per-package solution depends on the exact derivative of Solaris, I think this will get way to complicated.

Jörn Clausen
Plattformen & Serverdienste
BITS - Bielefelder IT-Servicezentrum

Home | Main Index | Thread Index | Old Index