#9543: Enable cephes on FreeBSD and disable it on Cygwin
---------------------------------------------------+------------------------
       Reporter:  pjeremy                          |         Owner:  pjeremy    
             
           Type:  defect                           |        Status:  
needs_review            
       Priority:  major                            |     Milestone:  sage-5.6   
             
      Component:  FreeBSD                          |    Resolution:             
             
       Keywords:                                   |   Work issues:             
             
Report Upstream:  N/A                              |     Reviewers:  Stephen 
Montgomery-Smith
        Authors:  Peter Jeremy, Jean-Pierre Flori  |     Merged in:             
             
   Dependencies:                                   |      Stopgaps:             
             
---------------------------------------------------+------------------------
Changes (by kcrisman):

  * status:  new => needs_review


Old description:

> FreeBSD does not currently have a full C99 libm and therefore also needs
> cephes.  The attached patch enables cephes on FreeBSD, enables error
> checking and renames the long double gamma() functions in line with C99.
> The latter two components are applicable to Cygwin as well as FreeBSD.
>
> A number of areas still need work - in particular some of the cephes self
> tests have been removed and some of the other self tests fail (at least
> some of the failures reflect bugs in cephes).  Suitable self-tests and a
> spkg-check script need to be developed.  It's possible mpfr could be used
> as a reference library.
>
> Spkg at http://boxen.math.washington.edu/home/jpflori/cephes-2.8.p0.spkg

New description:

 FreeBSD does not currently have a full C99 libm and therefore also needs
 cephes.  The attached patch enables cephes on FreeBSD, enables error
 checking and renames the long double gamma() functions in line with C99.
 The latter two components are applicable to Cygwin as well as FreeBSD.

 Spkg at http://boxen.math.washington.edu/home/jpflori/cephes-2.8.p0.spkg


 ----

 Additional comments for perusal in the future:

 A number of areas still need work - in particular some of the cephes self
 tests have been removed and some of the other self tests fail (at least
 some of the failures reflect bugs in cephes).  Suitable self-tests and a
 spkg-check script need to be developed.  It's possible mpfr could be used
 as a reference library.

--

Comment:

 Replying to [comment:17 stephen]:
 > Regarding testing the cephes library - I don't think it is fair to
 > expect them to give super accurate answers.  I believe that the linux
 > library functions will fail in the same way.  Same with OpenBSD.
 I'm not sure anyone was suggesting doing this, just to at least
 ''provide'' such functions on Cygwin.
 > Anyway, all this is to say that you shouldn't hold the cephes libraries
 > up to any kind of high standard.  Treat them as work arounds so that
 > ccosh and such like will actually be compiled into sage on FreeBSD,
 > rather that the answers should be particularly accurate.
 Hopefully that is all we are asking for!  I'm going to change the
 description to point out that we really just want this.

 ----

 So... would you mind checking (at your convenience) whether this spkg
 indeed does the same thing as the patches from before and at
 [http://www.freebsd.org/cgi/cvsweb.cgi/ports/math/sage/files/spkg-patch-
 cephes_-_big-patch your port]?  Then if it works on Cygwin (i.e., if
 Cygwin doesn't need it) we can merge this and simplify things slightly.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9543#comment:18>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to