-
-
Notifications
You must be signed in to change notification settings - Fork 488
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
Use "tar", not "cp -pr", to copy files in spkg-install #14166
Comments
scripts repo |
comment:1
Attachment: trac_14166-scripts.patch.gz |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:3
On Solaris, things are more complicated. If we use
Now copy it:
Note the permissions on FILE. The way around this seems to be to use Let's ignore the scripts patch and just focus on the patch for the Sage library. |
Changed keywords from cp symlink to cp symlink OSX Solaris |
Attachment: trac_14166-sage.2.patch.gz |
Attachment: trac_14166-sage.patch.gz Sage library |
This comment has been minimized.
This comment has been minimized.
comment:5
There are at least two good ways to test this: start with a fresh Sage 5.8.beta1 tarball, unpack the sage library spkg (spkg/standard/sage-5.8.beta1.spkg), apply this patch, package it back up (with sage -pkg sage-5.8.beta1). Then build Sage. Or do something similar, but start with a built version of Sage. Delete devel/sage and devel/sage-main. Delete spkg/installed/sage-5.8.beta1 and anything more recent. Create a patched version of the Sage spkg, as above. Run |
comment:6
Alternatively,
|
comment:8
If you decide to stick with the current approach, please use
instead of
|
comment:9
I like the tar approach. Here's a patch. |
This comment has been minimized.
This comment has been minimized.
Sage library |
comment:10
Attachment: trac_14166-sage-tar.patch.gz |
comment:11
With this patch, everything seems to work on sage.math, a few other linux machines on skynet, OpenSolaris (hawk), Solaris (mark), and a few OS X 10.8 boxes I have access to. |
Reviewer: Jeroen Demeyer |
Merged: sage-5.8.beta2 |
comment:12
Works fine! |
comment:13
See also #14236. |
According to http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.68/html_node/Limitations-of-Usual-Tools.html#Limitations-of-Usual-Tools, we should avoid the "-r" flag for
cp
. On linux, using "-r" or "-R" doesn't make a difference, but on OS X, the man page for cp says that with the -r flag, "it does not correctly copy special files, symbolic links, or fifo's."As a result, after building from scratch using #6495 on OS X or OpenSolaris, the various files
doc/en/reference/MODULE/conf.py
, which are all supposed to by symlinks todoc/en/reference/conf_sub.py
, are copies of that file instead, and the hg repo is not clean. So I'm marking this as a blocker. The only other instances of "cp -pr" in any spkg are in R spkg and in sage-make_devel_packages, neither of which causes problems, so we shouldn't worry about them.Apply attachment: trac_14166-sage-tar.patch.
Component: scripts
Keywords: cp symlink OSX Solaris
Author: John Palmieri
Reviewer: Jeroen Demeyer
Merged: sage-5.8.beta2
Issue created by migration from https://trac.sagemath.org/ticket/14166
The text was updated successfully, but these errors were encountered: