[darcs-devel] [issue2240] getSymbolicLinkStatus: inappropriate type (Not a directory)

maltem bugs at darcs.net
Thu Sep 27 14:06:26 UTC 2012


maltem <malte.sommerkorn at gmail.com> added the comment:

To finally deliver a reply: I'm sure now that this is totally unrelated
to the cache. Furthermore I found that darcs 2.5.2 (binary from the
website) has no such problems.

The log is so short because darcs fails so early, I think.

Now, for the error message… according to the documentation of
getSymbolicLinkStatus, it seems to come from lstat(), the man page of
which says about error codes:

  ENOENT   A component of path does not exist, or path is an empty string.
  ENOTDIR  A component of the path prefix of path is not a directory.

I'm very confused why this should not be reproduceable; even funnier,
another repository which exhibits this problem is
http://code.haskell.org/haskeline, but for that one it doesn't even
happen consistently for me. For example, once I got:

  $ darcs get http://code.haskell.org/haskeline --no-cache
  Directory '/home/maltem/haskeline' already exists, creating repository
as '/home/maltem/haskeline_1'
  Copying patches, to get lazy repository hit ctrl-C...
  Finished getting.                                           
  darcs:
/home/maltem/haskeline_1/_darcs/patches/0000000637-47d49aea2dfc48e229437778e73aa5a1b50c8520e27a8614742ba14011acd018-new_33e8e3f27abfe01c9b7b908dae3bcedd:
getSymbolicLinkStatus: does not exist (No such file or directory)

(The file does indeed not exist.) On other attempts, the same command
does not print the error, or prints the same error with a different path.

I noticed that the darcs binaries are 32-bit, so I should really try
with a custom build. At the moment I'm just too lazy to downgrade ghc.

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue2240>
__________________________________


More information about the darcs-devel mailing list