Re: [RFC] Removal of Fortran from the base system



On Mon, May 29, 2006 at 03:36:44PM -0600, M. Warner Losh wrote:
In message: <20060527065621.GA4814@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Steve Kargl <sgk@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> 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
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • how to build Spamassassin
    ... Over time I've got into the habit of either using packages or building ... I was rapped over the knuckles :-) and told to use the Ports. ... "Makefile", ... Once I have the perl restored, what is the best way to install SpamAssassin ...
    (freebsd-questions)
  • Re: DPS Initial Ideas
    ... p5-FreeBSD-Portindex comes close but seems to have some wrinkles. ... but the major one seems to be that ports that change their ... This generates an warning about 'duplicate package name' with make index, ... changes a Makefile under /var/db/ports. ...
    (freebsd-hackers)
  • Re: building a port with very long list of build options
    ... Does that solution allow for locating Makefile.local outside the ports tree ... Specify a makefile to read instead of the default one. ...
    (freebsd-questions)
  • Re: Ports Index Update Error - mail/lmtpd Failure
    ... Realizing that I would never install lmtpd, ... lines in the makefile pertaining to DB3. ... I had to hand-edit the Makefile everytime I cvsuped the ports ... ran 'pkg_deinstall db3' at the command line. ...
    (freebsd-questions)
  • Re: Exim and FBSD 5.3
    ... On Thursday 02 December 2004 08:39, Nelis Lamprecht wrote: ... I think it is a different makefile. ... But the one in the ports tree is 16 kBytes. ...
    (freebsd-questions)