On Sat, Nov 7, 2009 at 11:00 PM, Dr. David Kirkby <david.kir...@onetel.net> wrote: > Gonzalo Tornaria wrote: >> Is it really necessary for sage-bdist to preserve hardlinks? >> >> [ ... checking a bdist tarball of 4.1.1 ... ] >> >> there is exactly one hardlink in this bdist tarball: >> "local/bin/python" is a hardlink to "local/bin/python2.6". >> >> IOW, using -P instead of -d would produce a tarball with two copies of >> the python binary. Shouldn't this be handled with a symbolic link >> instead? > > I would have thought so too. But I'm puzzled, as python-2.6.2.p4/spkg-install > creates a symbolic link. It has the line: > > ln -s python2.6 python
This is actually creating a local/lib/python symlink to local/lib/python2.6. It seems to me the line at fault is in file python-2.6.2.p4/src/Makefile.pre.in, line 763: (cd $(DESTDIR)$(BINDIR); $(LN) python$(VERSION)$(EXE) $(PYTHON)) an "-s" option to that could make a difference, I think. (I didn't try it) >> My suggestion would be: >> >> a. fix installation of python so that a symlink is used instead of a hard >> link > > Do you know where this bit of code is? As I say, from what I can see, the link > should be created as a symbolic link, not a hard link. > >> b. use -PRp as options for cp (this is posix!) >> c. for the sage-main directory, use the trailing / trick so the -L / >> -H option is not necessary (double check this with whoever wrote the >> sage-bdist script to use -L option) Actually, use a trailing "/." as this is more portable. >> d. for systems where -P is not supported, figure out a way to copy >> preserving symlinks. For the HP-UX, it turns out that "cp -Rp" is good. It preserves symlinks, and it turned out also hard links. Gonzalo --~--~---------~--~----~------------~-------~--~----~ To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---