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
The following reply was made to PR pkg/52250; it has been noted by GNATS.
From: Joern Clausen <joern.clausen%uni-bielefeld.de@localhost>
To: gnats-bugs%NetBSD.org@localhost, solaris-pkg-people%NetBSD.org@localhost,
gnats-admin%NetBSD.org@localhost, pkgsrc-bugs%NetBSD.org@localhost
Cc:
Subject: Re: pkg/52250: gmp and mpfr not found by some packages
Date: Tue, 20 Feb 2018 11:02:23 +0100
On 02/20/18 08:25, David Holland wrote:
> The following reply was made to PR pkg/52250; it has been noted by GNATS.
>
> From: David Holland <dholland-pbugs%netbsd.org@localhost>
> To: gnats-bugs%NetBSD.org@localhost
> Cc:
> Subject: Re: pkg/52250: gmp and mpfr not found by some packages
> Date: Tue, 20 Feb 2018 07:24:23 +0000
>
> On Wed, Jun 21, 2017 at 07:05:01AM +0000, J?rn Clausen wrote:
> > BTW: The original problem regarding mpfr and gmp is still present, so
> > this PR should be kept open.
>
> As already noted the mpfr builtin.mk seems to be baloney. That should
> get fixed. (It should look roughly like the gmp one.)
>
> If the gmp one still isn't working, I guess the first question is what
> gmp.h it's finding, what version of gmp it thinks that is, and why it
> thinks that's suitable for use.
>
> What are IS_BUILTIN.gmp, BUILTIN_VERSION.gmp, and H_GMP getting set
> to? Also, am I correct in thinking USE_BUILTIN.gmp is coming out
> "yes"?
I'm not sure if the solution was that simple all the time, or if
anything changed in the meantime:
Adding
BUILDLINK_API_DEPENDS.gmp+= gmp>=5.0
to gnutls's Makefile fixes the problem. The native gmp is
$ bmake show-var VARNAME=BUILTIN_VERSION.gmp
4.3.2
The fix above is stolen from security/nettle, which already worked in
the past.
In the original PR 52244 I had trouble building print/luatex because of
mpfr. The same there:
$ bmake show-var VARNAME=BUILTIN_VERSION.mpfr
2.4.2
but pkgsrc provides version 4.0.1. luatex includes mpfr without
requesting a minimal version.
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.
--
Jörn Clausen
Plattformen & Serverdienste
BITS - Bielefelder IT-Servicezentrum
Home |
Main Index |
Thread Index |
Old Index