From owner-freebsd-current@FreeBSD.ORG Mon May 29 21:46:39 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA64B16B12B; Mon, 29 May 2006 21:46:39 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6243343D48; Mon, 29 May 2006 21:45:02 +0000 (GMT) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.13.6/8.13.6) with ESMTP id k4TLiTWM029654; Mon, 29 May 2006 14:44:29 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.13.6/8.13.6/Submit) id k4TLiTA1029653; Mon, 29 May 2006 14:44:29 -0700 (PDT) (envelope-from sgk) Date: Mon, 29 May 2006 14:44:29 -0700 From: Steve Kargl To: "M. Warner Losh" Message-ID: <20060529214429.GB29556@troutmask.apl.washington.edu> References: <9f7850090605262331j352d98acwa3837251300c591b@mail.gmail.com> <4477F687.2030109@FreeBSD.org> <20060527065621.GA4814@troutmask.apl.washington.edu> <20060529.153644.1782790633.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060529.153644.1782790633.imp@bsdimp.com> User-Agent: Mutt/1.4.2.1i Cc: lyndon@orthanc.ca, mf.danger@gmail.com, mikej@rogers.com, freebsd-current@freebsd.org, kmacy@fsmware.com Subject: Re: [RFC] Removal of Fortran from the base system X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 May 2006 21:46:46 -0000 On Mon, May 29, 2006 at 03:36:44PM -0600, M. Warner Losh wrote: > In message: <20060527065621.GA4814@troutmask.apl.washington.edu> > Steve Kargl 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