On Mon, Dec 14, 2009 at 1:17 AM, Dr. David Kirkby <[email protected]> wrote: > William Stein wrote: >> 2009/12/13 Dr. David Kirkby <[email protected]>: >>> I've had some error messages whilst trying to create a binary distribution >>> of >>> Sage on Solaris. cp is complaining about broken link. >>> >>> So I decided to build Sage on linux and see if the link is broken there too, >>> which it is. >>> >>> >>> >>> kir...@sage:~/sage-4.3.rc0/local/lib/python2.6$ ls -l python2.6 >>> lrwxrwxrwx 1 kirkby kirkby 9 2009-12-13 11:23 python2.6 -> python2.6 >>> kir...@sage:~/sage-4.3.rc0/local/lib/python2.6$ file python2.6 >>> python2.6: broken symbolic link to `python2.6' >>> >>> I think we should remove local/lib/python2.6/python2.6 >>> >>> Comments? >> >> We need to figure out what creates that file and get rid of it. >> Presumably it is some line in the spkg-install for the python spkg. >> >> William > > It does not appear to be created in spkg-install. I looked over that > spkg-install, and can't see it. Perhaps you can. There several directories > deleted, then a link made, but I can't see this incorrect link being made. > > I think it must be the python distribution, which by the way is a couple of > versions out of date. But there are so many patches to python in Sage, I was a > bit reluctant to attempt an update of the python .spkg > > This is also a rather annoying hard-link created in python - the only hard > link > in the whole of Sage. Someone (forget who) found the line in the python > distribution which does that, but I was a bit reluctant to start patching > python. Perhaps I should, as that hard link creates issues on Solaris. > > It would apear POSIX is not explicit about how hard links are copied, which > would be a good reason for replacing this with a symbolic link. But I am not > too > happy about attempting to upgrade a package I know little about, and don't > understand fully.
If there is exactly one hard link, why not just delete it and make the equivalent symlink? It seems like patching Python is overkill. William -- To post to this group, send an email to [email protected] To unsubscribe from this group, send an email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org
