[RFC] Removal of Fortran from the base system

Steve Kargl sgk at troutmask.apl.washington.edu
Mon May 29 14:46:46 PDT 2006


On Mon, May 29, 2006 at 03:36:44PM -0600, M. Warner Losh wrote:
> In message: <20060527065621.GA4814 at troutmask.apl.washington.edu>
>             Steve Kargl <sgk at troutmask.apl.washington.edu> writes:
> : On Fri, May 26, 2006 at 11:49:43PM -0700, Maxim Sobolev wrote:
> : > C'mon. Nothing in the base system requires fortran  - install the 
> : > version you like from ports and enjoy the life. What's the problem?
> : > 
> : 
> : The problems are the Cons points in my initial post.
> : FreeBSD has always shipped a Fortran compiler.  Stripping
> : it out violates POLA.  Additionally, the the Ports Collection
> : currently assumes the availability of a Fortran compiler.
> : 
> : What happens with
> : 
> : cd /usr/ports/math/lapack
> : make install
> 
> If the above just works with gfortran as a port, or in the base
> system, what's the difference to the end user?
> 

It doesin't work because the port maintainer has explicitly included
a LDADD+=-lg2c in the Makefile.   Applying this patch to 
math/lapack/script/configure and everything works fine with systems
that do not have /usr/bin/f77 and its runtime library.

troutmask:sgk[203] more conf.diff
--- configure.orig      Sun May 28 14:38:00 2006
+++ configure   Sun May 28 14:38:20 2006
@@ -1,9 +1,3 @@
-if [ ${OSVERSION} -lt 400012 ]; then
-    LIBG2C=f2c
-else
-    LIBG2C=g2c
-fi
-
 cd $WRKSRC/SRC || exit 1
 mv Makefile Makefile.old
 
@@ -11,8 +5,6 @@
 LIB=   lapack
 SHLIB_MAJOR=   3
 SHLIB_MINOR=   0
-
-LDADD= -l${LIBG2C}
 
 END
 cat >>Makefile <<'END'


-- 
Steve


More information about the freebsd-current mailing list