I'm testing to set a fortran dependency for port netCDF (this is a library which may be built with an optional fortran interface). I have difficulty convincing port(1) to find the fortran compiler in $PATH.
Trying to use a commercial compiler (intel fortran), I source its dotfiles interactively (to augment $PATH etc.), then run:
port -dk install netcdf +ifort
This fails because "configure" when run under port claims it cannot find the fortran compiler. However, when I run the exact same command manually (as root), it succeeds (diff attached).
Does port(1) clean out $PATH ??