On Apr 24, 5:27 pm, "Nicolas M. Thiery" <nicolas.thi...@u-psud.fr>
wrote:
> On Fri, Apr 24, 2009 at 01:23:25AM -0700, mabshoff wrote:

Hi Nicolas,

> > I remember a discussion about the problem, but did not see any fixes
> > in 3.4.1. If someone knows a ticket and/or even better a patch please
> > let us know so we can get this reviewed and fixed.
>
> For information: the patch suggested on #5852 seems to work fine on my
> machine (macbook pro ubuntu intrepid)

Well, give the complexity of the patch why did you not do a formal
review then? :)

The following is likely to happen:

 (a) You are somewhere under $SAGE_ROOT/devel/sage - where sage is a
symlink to whatever branch you are using
 (b) There is a link somewhere in the path up to $SAGE_ROOT somewhere.

readlink does not seems to follow symbolic links per default, at least
not on Linux. So if you doctest via -t from outside the devel/sage
directory everything works, but inside the followup doesn't work.

Note that the -f option is different between Linux and BSD-ish systems
as pointed out before:

Linux:

       -f, --canonicalize
              canonicalize by following every symlink in every
component of the given name recursively; all but the last component
must
              exist

On OSX:

Sprocketer:~ michaelabshoff$ readlink -fn .
readlink: illegal option -- f
usage: readlink [-n] [file ...]

due to

    -f format
             Display information using the specified format.  See the
FORMATS section for a description of valid formats.


Since it does just fail on OSX the second version of readlink kicks
in, so the patch should be good to go.

Gonzalo: Can you please post a proper patch for bugfixes you suggest -
I am happt to convert your diff into a proper patch attributed to you,
but if you did it would just be easier :)

>                                 Nicolas

Cheers,

Michael

> --
> Nicolas M. Thiéry "Isil" <nthi...@users.sf.net>http://Nicolas.Thiery.name/
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to