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
GNUism in $SAGE_ROOT/spkg/install #7188
Comments
comment:2
I just added a new comment to the file
That site is providing the AIX machine which allowed me to test the patch under AIX, which I would not otherwise had been able to do so easily, even though I have an old RS6000 in my garage. |
comment:3
Just for the record this BUILDSTART thing was added to Sage very recently by Harald Schilly, evidently in trac #6744, and it is completely ignored at present, and used absolutely nowhere else in Sage. |
comment:4
I understand this will not work on OpenBSD, which though not supported, I am aware of a method now which should work on any OS. Apparently POSIX states the random number generator must be seeded from the time, but does not state in which way. Most OS's uses seconds since the epoch, but OpenBSD does not. A more portable solution has been posted, which should work for any OS. I believe this issue should be resolved. If nothing else, it does not look very good to be generating unnecessary error messages on some platforms. (Solaris and AIX). |
Changed author from David Kirkby to Frédéric Chapoton |
comment:9
here is a branch that just get rid of the unused BUILDSTART file New commits:
|
Commit: |
Branch: u/chapoton/7188 |
Reviewer: François Bissey |
comment:11
Looks good to me. |
Changed branch from u/chapoton/7188 to |
Once one runs make it runs the script $SAGE_ROOT/spkg/install.
Unfortunately, the very first command in there, the result of ticket #6744 has a GNUism.
The '%s is not part of the current POSIX standard and fails to work on both the latest version of Solaris (which is a supported operating system), and with HP-UX 11i, which is not supported
by Sage, but I think we should try to build Sage in such a way
that is should run on any decent operating system.
There are at least two ways around this issue of find the number of seconds since 1//1/1970:
http://shell.cfajohnson.com/cus-faq.html#Q6
One requires 'perl' (which is not tested for at this point), the other relies on 'awk' being POSIX complaint, which we can't assume, but is probably the safer of the two assumptions. A third way would be a way to make it work with any 'date' command using some maths with 'bc' but that looks like a lot of work, for little gain.
The updated install script, can be found at
http://sage.math.washington.edu/home/kirkby/Solaris-fixes/top-level-install-script/
I've tested this on
According to #6744 this needs to be manually integrated into Sage. Note I stuck a readme file in the directory highlighting the fact this needs to have execute permissions too.
Dave
CC: @embray @jdemeyer @kiwifb
Component: porting
Keywords: GNUism AIX HP-UX Solaris
Author: Frédéric Chapoton
Branch/Commit:
c04ba36
Reviewer: François Bissey
Issue created by migration from https://trac.sagemath.org/ticket/7188
The text was updated successfully, but these errors were encountered: