mxcl/homebrew — Issue #9543: Unclear gfortran version for Snow Leopard with XCode 3.2.6
Author: manphiz
Created: 2012-01-11 22:07:47+00:00
State: open

On my Snow Leopard with XCode 3.2.6, when I issue `brew install gfortran`, the log below downloads version 5664, but the installing stage suggests build 5666. This doesn't seem right, or the build version is referring to gcc version instead of the gfortran version. If it is the first case, it might be useful to install version 5666 instead, which however only contains 2 archs (i386 and x86_64, without ppc); If it is the latter case, it'd better to be more clear.

Here is the install log with verbose and debug:

$ brew install -vd gfortran
==> Downloading http://r.research.att.com/gfortran-42-5664.pkg
/usr/bin/curl -qf#LA Homebrew 0.8.1 (Ruby 1.8.7-249; Mac OS X 10.6.8) http://r.research.att.com/gfortran-42-5664.pkg -o /Users/dxy/Library/Caches/Homebrew/gfortran-4.2.4-5664.pkg
######################################################################## 100.0%
/usr/bin/xar -xf /Users/dxy/Library/Caches/Homebrew/gfortran-4.2.4-5664.pkg
mv *.pkg/Payload Payload.gz
ls | grep -v Payload | xargs rm -r
==> Installing gfortran 4.2.4 for XCode 3.2.6--4.1 (build 5666)
pax --insecure -rz -f Payload.gz -s ',./usr,/usr/local/Cellar/gfortran/4.2.4-5664,'
ln -sf /usr/local/Cellar/gfortran/4.2.4-5664/share/man/man1/gfortran-4.2.1 /usr/local/Cellar/gfortran/4.2.4-5664/share/man/man1/gfortran.1
==> Caveats
Brews that require a Fortran compiler should not use:
depends_on 'gfortran'

The preferred method of declaring Fortran support is to use:
def install
...
ENV.fortran
...
end

==> Finishing up
ln /usr/local/bin/powerpc-apple-darwin10-gfortran-4.2.1
ln /usr/local/bin/i686-apple-darwin10-gfortran-4.2.1
ln /usr/local/bin/gfortran-4.2
ln /usr/local/bin/gfortran
ln /usr/local/share/man/man1/gfortran.1
ln /usr/local/share/man/man1/gfortran-4.2.1
ln /usr/local/lib/gcc
==> Summary
/usr/local/Cellar/gfortran/4.2.4-5664: 29 files, 83M, built in 20.0 minutes