-
-
Notifications
You must be signed in to change notification settings - Fork 522
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
Fix 'gap' to remove usage of '$RM' and replace wth 'rm' #7873
Comments
patch file to replace $RM with 'rm' and similar |
comment:1
Attachment: gap-#7873.patch.gz At a new spkg, which fixes these can found at http://boxen.math.washington.edu/home/kirkby/portability/gap-4.4.10.p13/gap-4.4.10.p13.spkg Dave |
Author: David Kirkby |
comment:3
Two comments: you've changed "$CP" to "cp" even though $CP is still defined in sage-env. Does this matter? Also (and this is not new -- it happens with the old spkg, too): when I install the spkg, I get this at the end:
Any ideas why? Anyway, since gap works, maybe we shouldn't worry about this right now. |
comment:4
Replying to @jhpalmieri:
No. I looked at that before deciding to replace them, but could see no reason not to in this case. One was a simple copy
the other was recursive, but simply used the POSIX compatible '-r' option. There seemed to be no reason to use any other version of cp in such cases. The GNU verison of 'cp' has some non-POSIX options (-a being one of them). Had that be iused in gap, then I would have left the $CP, but in this case, with only a very standard option used, there is no reason not to use whatever version of 'cp' is in the path first. Any 'cp' will work.
Looking at the 'cp' (or $CP) command I could not work out what spkg-install was trying to do (I just posted something on sage-devel about it). The code simply makes no sense to me. Since
it seemed like it was best left to another day. Like the fact CC and CXX get unset. I think it would be wise to find a way around the issues this creates, but again I did not attempt to fix it. That will certainly present a problem if one tried to use a Sun compiler to build gap. I'm not even convinced this will work in 64-bit mode on OS X, as it does not have the SAGE64 stuff which every other spkg-install file has. So, overall, the changes I made were only necessary ones, and no others. Dave |
Reviewer: John Palmieri |
comment:5
It works for me on OS X 10.6, and the changes are obviously the right ones to make. Positive review. |
comment:6
Thank you very much for the positive review. |
Merged: sage-4.3.1.rc0 |
As agreed here:
http://groups.google.com/group/sage-devel/browse_thread/thread/bd7ae07a1157bead/970aa0dc8fa56ab7?lnk=raot
there is no need to have variables for very basic commands such as 'rm'. Gap relies on the use of $RM, $LN and $MKDIR, which seems a bit pointless. All are standard Unix commands, defined by POSIX. We should not make make use of any special options some versions might use.
I'm no fan of GNU, but even their coding standards acknowledge one can assume some commands exist, and include all of these.
http://www.gnu.org/prep/standards/standards.html#Utilities-in-Makefiles
Hence I would replace the use of $LN, $RM and $MKDIR on the spkg-install and anywhere else it may be found in gap.
Component: build
Author: David Kirkby
Reviewer: John Palmieri
Merged: sage-4.3.1.rc0
Issue created by migration from https://trac.sagemath.org/ticket/7873
The text was updated successfully, but these errors were encountered: