#14406: Various prereq fixes
----------------------------------+-----------------------------------------
       Reporter:  jdemeyer        |         Owner:  drkirkby    
           Type:  enhancement     |        Status:  needs_review
       Priority:  major           |     Milestone:  sage-5.9    
      Component:  porting         |    Resolution:              
       Keywords:                  |   Work issues:              
Report Upstream:  N/A             |     Reviewers:              
        Authors:  Jeroen Demeyer  |     Merged in:              
   Dependencies:                  |      Stopgaps:              
----------------------------------+-----------------------------------------

Comment (by jpflori):

 Replying to [comment:28 jpflori]:
 > Replying to [comment:27 leif]:
 > > Replying to [comment:26 jpflori]:
 > > > Replying to [comment:23 leif]:
 > > > > So what's your conclusion?  (Regardless of perhaps cheating on
 FreeBSD as well.)
 > > > Don't really know.
 > > > Check for sqrtl, logl, tgammal and lgammal everywhere except where:
 > > > * we cheat, which is currently Cygwin,
 > > > * we install Cephes, which is currently FreeBSD.
 > > > And if that fails, rant that supported platform should provide "long
 double" functions (except for the the two categories filtered out above)
 and suggest:
 > > > * setting SAGE_PORT to something non-empty,
 > > > * and:
 > > >  * either try installing the Cephes spkg,
 > > >  * or cheating as on Cygwin.
 > >
 > > + * switch to another OS
 > >
 > > + Provide a link to the C99 standard.
 > >
 > > [[BR]]
 > >
 > > > Both of these will be non-trivial anyway.
 > >
 > > Really?
 > Depends on who tries it...
 > * Cheating as on Cygwin is easy if you know where to look, although you
 should know a little bit of Sage to modify the R spkg, but I somehow agree
 it is not a long term solution, we don't want to patch every part of Sage
 which at some point will use "long double" functions... but then we can
 hope that Cygwin also include these functions in their libm, as they did
 for the "complex" functions, if every piece of software in the world need
 them.
 > * Don't really know if installing Cephes just works out of the box, i.e.
 "oh I have a non-C99 compliant libm, let's just install cephes and every
 piece of Sage looking for C99 libm functions will find them now", that's
 surely the case but I've never tried.
 I think that for the long term, especially if a lot of standard stuff we
 need use "long double" functions by default and provide no way of easily
 disabling their use (as R will do), the best solution would be to:
 * check for sqrtl (or any random "long double" function);
 * if that's not available, then set some SAGE_INSTALL_CEPHES variable
 which triggers the installation of Sage;
 * remove all the Cygwin "long double" hacks.

 But please, let's do that later...
 For the moment, just:
 * check for sqrtl except on FreeBSD and Cygwin,
 * rant if not available, provide links to C99 standard, suggest the user
 to use a mainstream OS, invite him to have coffee or whatever (and maybe
 mention the fact that if he dares to set SAGE_PORT, then he could also try
 to manually install the cephes spkg when something fails because of the
 lack of "long double" functions).

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14406#comment:30>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to