On Sat, Nov 7, 2009 at 11:00 PM, Dr. David Kirkby <david.kir...@onetel.net> wrote: > But how did you find out these two were hard links? I'm not aware of any way > to > find if A is a hard link of B, unless one finds the inodes and compares them, > which would be next to impossible where there are a lot of files. I assume > there > is some way you do this.
$ ls -l sage-4.1.1/local/bin/python* -rwxr-xr-x 2 tornaria tornaria 5528068 2009-09-04 21:45 sage-4.1.1/local/bin/python -rwxr-xr-x 2 tornaria tornaria 5528068 2009-09-04 21:45 sage-4.1.1/local/bin/python2.6 -rwxr-xr-x 1 tornaria tornaria 1419 2009-09-04 23:54 sage-4.1.1/local/bin/python2.6-config lrwxrwxrwx 1 tornaria tornaria 16 2009-10-30 01:25 sage-4.1.1/local/bin/python-config -> python2.6-config The "2" in the second column indicates the number of hard link references; you can guess they are the same file b/c they have the same metadata --- you can confirm by looking at the inode numbers. What I actually did, is check out the tarball: $ tar tvf sage-4.1.1-core2-jsmath_fonts-x86_64-Linux.tar.gz | grep ^h hrwxr-xr-x tornaria/tornaria 0 2009-09-04 21:45 sage-4.1.1-core2-jsmath_fonts-x86_64-Linux/local/bin/python link to sage-4.1.1-core2-jsmath_fonts-x86_64-Linux/local/bin/python2.6 WRT symlinks: $ tar tvf sage-4.1.1-core2-jsmath_fonts-x86_64-Linux.tar.gz | grep ^l | wc -l 125 >> 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. I suppose in the python spkg... >> [a. is not critical, but as long as it's not done, sage-bdist should >> keep using -a or -d on gnu systems, to avoid bloat in the bdist >> tarfile] > > Though the bloat will already exist on OS X, as OS X uses -pR, and no -a. Their choice ;-) > not waste much time over it. Clearly the use of this non-POSIX option '-a' > needs > to be removed asap, as it stops a binary being created on Solaris. I'm > reluctant > to put tests in the script to handle Solaris differently to linux, when POSIX > options should be suitable for either. If its possible to do something which > works on all platforms (HP-UX etc), so much the better. But that is hardly > that > important. <rant> POSIX is not suitable. There's no posix way to copy hardlinks. The standard is just too restrictive, like a dinosaur: big, fat, and slow. We can try to adjust to posix, for the sake of portability, but that doesn't make it suitable. We can do it because we are small, lean, and fast :-) </rant> 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 -~----------~----~----~----~------~----~------~--~---