Bug 85495 - lang/gcc40 needs to depend on math/mpfr if WITH_FORTRAN
Summary: lang/gcc40 needs to depend on math/mpfr if WITH_FORTRAN
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Gerald Pfeifer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-30 19:30 UTC by Jonathan Lennox
Modified: 2005-09-01 23:18 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Lennox 2005-08-30 19:30:21 UTC
The port math/mpfr has been split off from the port math/gmp4 (see the PR
ports/84724).

Gfortran in GCC 4.0.x depends on the MPFR libraries.  Since GCC's configure
script does not detect MPFR, it does not build gfortran.

When installing lang/gcc40 with the WITH_GFORTRAN flag -- i.e., when
installing lang/gfortran -- the install therefore fails if math/mpfr was not
previously installed.

Fix: 

Add a dependency on math/mpfr to lang/gcc40 under the WITH_GFORTRAN
conditional.
How-To-Repeat: 
[pkg_delete math/mpfr]
portinstall lang/gfortran
Comment 1 Jean-Yves Lefort freebsd_committer freebsd_triage 2005-08-30 22:24:11 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gerald

Over to maintainer.
Comment 2 Gerald Pfeifer freebsd_committer freebsd_triage 2005-08-31 00:43:11 UTC
State Changed
From-To: open->feedback

Thanks for the pointer.  Do we need math/mpfr _and_ math/gmp4, or just 
the former?  I assume we'll have to do the same for lang/gcc41 as well?
Comment 3 Jonathan Lennox 2005-08-31 02:57:18 UTC
math/mpfr does depend on math/gmp4, so I suppose a direct dependency isn't
strictly speaking necessary.  However, GCC's configure script does seem to
check for gmp as well as for mpfr, so it's probably a good idea to depend on
both, in case a future mpfr version loses its gmp4 dependency.

I haven't tried lang/gcc41, but I imagine it's the same.
Comment 4 Gerald Pfeifer freebsd_committer freebsd_triage 2005-09-01 23:17:44 UTC
State Changed
From-To: feedback->closed

Fixed.  Thanks for the report.