From kargl@troutmask.apl.washington.edu  Fri Apr  7 11:14:14 2000
Return-Path: <kargl@troutmask.apl.washington.edu>
Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.54])
	by hub.freebsd.org (Postfix) with ESMTP id 4E73237BDE9
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  7 Apr 2000 11:14:14 -0700 (PDT)
	(envelope-from kargl@troutmask.apl.washington.edu)
Received: (from kargl@localhost)
	by troutmask.apl.washington.edu (8.9.3/8.9.3) id LAA14160;
	Fri, 7 Apr 2000 11:15:50 -0700 (PDT)
	(envelope-from kargl)
Message-Id: <200004071815.LAA14160@troutmask.apl.washington.edu>
Date: Fri, 7 Apr 2000 11:15:50 -0700 (PDT)
From: "Steven G. Kargl" <kargl@troutmask.apl.washington.edu>
Reply-To: kargl@troutmask.apl.washington.edu
To: FreeBSD-gnats-submit@freebsd.org
Subject: remove support for CSRG libm
X-Send-Pr-Version: 3.2

>Number:         17848
>Category:       misc
>Synopsis:       Patches to remove support for CSRG libm
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bde
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr  7 11:20:00 PDT 2000
>Closed-Date:    Thu Mar 21 21:12:15 PST 2002
>Last-Modified:  Thu Mar 21 21:12:15 PST 2002
>Originator:     Steven G. Kargl
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
apl/uw
>Environment:

All version of FreeBSD.

>Description:

Compilation of CSRG libm is broken.  From the cvs repository,
it appears as if it has been broken for a long, long, long time. 

The SunPro math library in lib/msun is the default library, and
it appears to be maintained.

>How-To-Repeat:
cd /usr/lib/libm
make clean
make cleandepend
make depend
make


>Fix:

cd /usr/src/lib/libm
rm -rf *
cvs delete -m 'Moving libm to attic' .
cvs commit .

Apply this patch to etc/defaults/make.conf

--- make.conf.orig	Fri Apr  7 10:50:29 2000
+++ make.conf	Fri Apr  7 10:50:54 2000
@@ -73,10 +73,6 @@
 #
 #COPTFLAGS= -O -pipe
 #
-# To compile and install the 4.4 lite libm instead of the default use:
-#
-#WANT_CSRG_LIBM=	yes
-#
 # If you do not want unformatted manual pages to be compressed
 # when they are installed:
 #

Apply this patch to lib/Makefile

--- Makefile.orig	Fri Apr  7 10:57:05 2000
+++ Makefile	Fri Apr  7 10:57:31 2000
@@ -7,7 +7,7 @@
 # csu must be built before all shared libaries for ELF.
 # libcom_err must be built before libkrb, libpam and libss.
 # libcrypt must be built before libkrb, libpam and libskey.
-# libm must be built before libg++ and libstdc++.
+# msun must be built before libg++ and libstdc++.
 # libmd must be built before libatm, libopie, libradius, libskey, and
 # libtacplus.
 # libncurses must be built before libdialog, libedit and libreadline.
@@ -18,7 +18,7 @@
 #
 # Otherwise, the SUBDIR list should be in alphabetical order.
 
-SUBDIR=	${_csu} libcom_err ${_libcrypt} ${_libm} libmd \
+SUBDIR=	${_csu} libcom_err ${_libcrypt} msun libmd \
 	libncurses libradius libskey libtacplus libutil \
 	${_compat} libalias libatm ${_libbind} libc ${_libc_r} libcalendar \
 	libcam libcompat libdevstat libdisk libedit libfetch libform \
@@ -53,12 +53,6 @@
 _compat=	compat
 _libncp=	libncp
 _libvgl=	libvgl
-.endif
-
-.if defined(WANT_CSRG_LIBM)
-_libm=		libm
-.else
-_libm=		msun
 .endif
 
 .if ${MACHINE_ARCH} == "alpha"

>Release-Note:
>Audit-Trail:

From: Joe Karthauser <joe@pavilion.net>
To: "Steven G. Kargl" <kargl@troutmask.apl.washington.edu>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: misc/17848: remove support for CSRG libm
Date: Tue, 2 May 2000 15:19:03 +0100

 I've removed the build support for libm, but have left the source
 in the tree for the moment.  Bruce Evans says that there's still
 some functionality that needs to be merged into msun from libm
 first.  Once this has been done msun could do with renaming back
 to libm, or libmsun.
 
 Joe
 

From: "Steven G. Kargl" <kargl@troutmask.apl.washington.edu>
To: Joe Karthauser <joe@pavilion.net>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: misc/17848: remove support for CSRG libm
Date: Tue, 2 May 2000 09:11:31 -0700 (PDT)

 Joe Karthauser said:
 > I've removed the build support for libm, but have left the source
 > in the tree for the moment.  Bruce Evans says that there's still
 > some functionality that needs to be merged into msun from libm
 > first.  Once this has been done msun could do with renaming back
 > to libm, or libmsun.
 
 Thanks Joe.
 
 I went hunting for the msun sources at Sun's web site/FTP 
 server to see if newer sources were available, but came
 up empty.
 
 I suspect that bde is the only person who has a functioning
 libm.  As far as the functionality in libm that is missing
 in msun, I would be interested in some details because I removed
 libm several weeks ago and I haven't noticed any problems
 with my computations.  Additionally, a quick glance at 
 msun/Makefile suggests that the sources in libm are not
 used in building the math library.
 
 -- 
 Steve
 

From: Joe Karthauser <joe@pavilion.net>
To: "Steven G. Kargl" <kargl@troutmask.apl.washington.edu>
Cc: FreeBSD-gnats-submit@freebsd.org, bde@freebsd.org,
	pkh@freebsd.org
Subject: Re: misc/17848: remove support for CSRG libm
Date: Tue, 2 May 2000 17:48:35 +0100

 On Tue, May 02, 2000 at 09:11:31AM -0700, Steven G. Kargl wrote:
 > I suspect that bde is the only person who has a functioning
 > libm.  As far as the functionality in libm that is missing
 > in msun, I would be interested in some details because I removed
 > libm several weeks ago and I haven't noticed any problems
 > with my computations.  Additionally, a quick glance at 
 > msun/Makefile suggests that the sources in libm are not
 > used in building the math library.
 
 For the record, this is what Bruce and Poul-Henning said:
 
 	On Sun, 30 Apr 2000, Poul-Henning Kamp wrote:
   
 	> In message <20000430201742.C48739@pavilion.net>, Joe Karthauser writes:
 	> >What's your opinion?  Should libm be delegated to the attic, or
 	> >should it be made to work again?
   
 	Support for building it should be removed.  The sources may as well be
 	left around a little longer, at least in -current, until bits from them
 	are merged into msun.  The botched source tree (msun instead of libm
 	or at least libmsun) will take longer to recover from.
   
 	> I wasn't aware that it was broken.  How long time has it been broken ?
   
 	Someone removed __pure from <sys/cdefs.h> on 1998/08/24 without updating
 	libm.
   
 	> if significant amounts of time I think removal is the smartest way.
   
 	It's interesting that msun is still missing the gcc-2 version of __pure
 	(__pure2) and that the module that was broken (lgamma) is related to
 	why I left libm around (gamma is actually gamma in libm and should become
 	tgamma (true gamma) in C99-supporting libraries).
   
 	Bruce
 
 I'm not familiar enough with the code/concepts to understand what
 needs porting.  Bruce, is it worth expanding on above?
 
 Joe
 
State-Changed-From-To: open->closed 
State-Changed-By: billf 
State-Changed-When: Thu Mar 21 20:59:17 PST 2002 
State-Changed-Why:  
libm has been put to rest 


Responsible-Changed-From-To: freebsd-bugs->bde 
Responsible-Changed-By: billf 
Responsible-Changed-When: Thu Mar 21 20:59:17 PST 2002 
Responsible-Changed-Why:  
bde put libm to rest 

http://www.freebsd.org/cgi/query-pr.cgi?pr=17848 
>Unformatted:
