-
-
Notifications
You must be signed in to change notification settings - Fork 567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Various prereq fixes #14406
Comments
This comment has been minimized.
This comment has been minimized.
Author: Jeroen Demeyer |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:5
Attachment: prereq-1.2.diff.gz |
comment:6
In the prereq install script, the Solaris part could be a little bit polished.
whereas nothing precedes it. I don't really like the fact that both tar and make are tested together in the constructions
The only advantage of doing this is to easily suggest to do
I think we'd better split the two tests, i.e. only check for tar in the tar part and for make in the make part. There are also ugly double spaces before "&&" on the (new) lines 132 and 165 :) |
comment:7
We could also include the Solaris parts together with the HP-UX and other strange Unix oses as elif clauses a little down below. That may look nicer and prevent running "tar --version" twice. If so, the commented out comments will need just a little rewriting and relocation. |
comment:8
OK, making changes... |
comment:9
Didn't we want to replace the check for Actually, we need both |
comment:10
Also recall we still don't have |
comment:11
Replying to @nexttime:
We don't build Cephes on Cygwin. |
comment:12
Here is what was recently included in Cygwin:
|
comment:13
And I don't know what the FreeBSD libm lacks that make Sage's compilation fail (except for the logl function for R of course). |
comment:14
And of course we could revert the patch for R from #14078 and let Cephes install again on Cygwin. |
comment:15
Attachment: 14406_cygwin_prereq.patch.gz Replying to @nexttime:
It seems not, Cygwin doesn't have |
comment:16
OK, simplified the |
comment:17
Ok, I've slightly recomplexified it :) |
comment:18
Oops, something is wrong, coming back with a proper patch. |
comment:19
Replying to @jdemeyer:
IIRC, because we (still) have some special-casing on Cygwin w.r.t. at least (just?) the ( To repeat Karl-Dieter's question: What is Cephes then needed for at all [on e.g. FreeBSD]? I.e., we should probably check for those functions Cephes provides (and Sage needs) [unless we're on FreeBSD where Cephes gets built anyway, or |
comment:20
Replying to @nexttime:
I'll have a look.
Maybe for complex functions "c*" (which are now in Cygwin libm but used not to be)?
|
comment:39
Replying to @jdemeyer:
On Cygwin the lapack packages provide both BLAS and LAPACK. |
comment:40
Replying to @jpflori:
Assuming not, the check for SunOS is redundant anyway. It all goes back to the philosophy of not checking the system, but checking features. |
comment:41
Replying to @jpflori:
OK, so it's a problem with the ATLAS spkg. In that case, would it not make more sense to add the check to the ATLAS spkg instead of |
comment:42
Attachment: trac_14406+reviewer-v3.patch.gz Replying to @jdemeyer:
Its already there and provides info. (And I just uploaded a new patch without redundant SunOS check.) |
This comment has been minimized.
This comment has been minimized.
comment:43
Replying to @jdemeyer:
Ive got a slight preference for the SAGE_INST_CEPHES solution, espoecially it "could" be easier to maintain, but for the moment I could go with not even testing sqrtl anywhere assuming that its in the libm of supported platforms or were dealing with Cygwin or FreeBSD. |
comment:44
Reviewer patch is okay for me. |
comment:45
Replying to @jpflori:
I don't really know what that "solution" would be. The main thing I don't want is to spread the same checks in different places. For example, the lapack check should be either in prereq, either in ATLAS, not in both. Since it currently cannot be done only in prereq, it must be done in ATLAS. |
comment:46
Replying to @jdemeyer:
That would be:
|
comment:47
I thought that was basically what I was saying... not sure what happened here. Anyway, as to the check, the reason to have it early is that atlas might build quite late in a process, and then someone says "Oh, Mxyzptlk, why did I waste all that time building Sage and I didn't have the right prereqs?" Which I guess JP just said too. |
comment:48
Replying to @jpflori:
And how would a prereq check "trigger" the installation of the cephes spkg? I don't think that can currently be done. |
comment:49
Replying to @kcrisman:
I certainly don't disagree with this, but for this to work (and also jpflori's idea of "triggering"), we need to change the prereq mechanism which is a lot less trivial than this ticket. |
comment:50
Replying to @jdemeyer:
I thought we could do that just like you do for GCC. |
comment:51
Replying to @jpflori:
Just a little more details of the way I see this, but that may be wrong:
|
comment:52
And I'm in for the idea of "let's postpone this complicated stuff" (for the ATLAS and Cephes stuff). If nobody rants too loud, I'll put this ticket to positive review so that we have official "experimental" for Cygwin in 5.9 or 5.10. |
comment:53
Replying to @jpflori:
Not really, the check for GCC is done in I agree that all these checks should eventually move to a new file |
comment:54
Agreed, let's move on and merge this considering:
|
Reviewer: Jean-Pierre Flori, Jeroen Demeyer |
Changed author from Jeroen Demeyer to Jeroen Demeyer, Jean-Pierre Flori |
comment:55
I've opened #14410 for the ATLAS on Cygwin stuff. |
comment:56
Okay, this is better than the alternatives. |
Merged: sage-5.9.beta4 |
comment:58
Groumpf, I just realized that the last elif clause filtering OS names should include Cygwin (and beware that uname does not just return CYGWIN but CYGWIN... where ... gives additional precision which we don't really care about at the moment). |
SAGE_PORT
.sqrtl()
which is apparently not needed (Cygwin doesn't have it, yet Sage builds).SAGE_FORTRAN_LIB
.AC_ARG_VAR(SAGE_FORTRAN)
which is a deprecated variable.tar
before actually untarring the prereq tarball (originally Test for a GNU tar on Solaris is broken #14407), only do these checks ifSAGE_PORT
is unset.Copy http://boxen.math.washington.edu/home/jdemeyer/spkg/prereq-1.2.tar.gz to
spkg/base
(diff)Apply attachment: trac_14406+reviewer-v3.patch
CC: @jdemeyer @nexttime @jpflori
Component: porting
Author: Jeroen Demeyer, Jean-Pierre Flori
Reviewer: Jean-Pierre Flori, Jeroen Demeyer
Merged: sage-5.9.beta4
Issue created by migration from https://trac.sagemath.org/ticket/14406
The text was updated successfully, but these errors were encountered: