[darcs-users] fromJust error in darcs-2.0.0

Greg Holtz gh2377 at hotmail.com
Sat Apr 26 01:57:21 UTC 2008


I don't know much about autoconf and how to modify it, but I'll
look into learning. I've been using darcs-2 and it seems fine.
I'd be glad to help get darcs2 opensolaris friendly.

and the latest sources of ghc (6.8.2-20080420) does not fix the
getSymbolicLinkStatus issue.

> Date: Fri, 25 Apr 2008 19:02:35 -0400
> From: gwern0 at gmail.com
> To: daveroundy at gmail.com
> CC: gh2377 at hotmail.com; darcs-users at darcs.net
> Subject: Re: [darcs-users] fromJust error in darcs-2.0.0
> 
> On 2008.04.24 10:06:18 -0400, David Roundy <daveroundy at gmail.com> scribbled 5.5K characters:
> > On Wed, Apr 23, 2008 at 9:19 PM, Greg Holtz <gh2377 at hotmail.com> wrote:
> > >  I know this is really wrong, but I changed all instances of
> > > getSymbolicLinkStatus to getFileStatus, and things seem to
> > > work now. I did double check the whole tree to make sure
> > > there were no symbolic links.
> >
> > It shouldn't actually cause trouble.  In fact, some folks argue that
> > we should use getFileStatus instead of getSymbolicLinkStatus, so that
> > we'd automatically follow symlinks.  (I think there's a bug on the
> > tracker for this.)  So there's no danger that I'm aware of, of using
> > getFileStatus as a workaround for a bug in getSymbolicLinkStatus.
> 
> Do you know any more specifics about that bug? I tried searching for symbolic links and getSymbolicLinkStatus and getFileStatus, and I eyeballed the link of outstanding bugs, but I didn't see anything.
> 
> If switching would solve Greg's bug, and there's no particularly compelling reason to not follow symbolic links, I guess we should just ask Greg for a patch and apply it?
> 
> > It does sound like it's the library bug you referenced, although I
> > don't know why in that case getFileStatus would work.  One option here
> > would be to institute a workaround in darcs for this bug.  That'd
> > require some autoconf hackery, and you'd have to do most of the
> > testing for that (and as much of the coding as you're comfortable
> > with).  This would have the advantage of fixing darcs on OpenSolaris
> > for any other users, and would also fix darcs on any unidentified
> > platform with a similarly buggy getSymbolicLinkStatus.  On the other
> > hand, you've got a perfectly good workaround for yourself, and perhaps
> > it's a rare enough platform that we can afford to wait for a new ghc
> > release.  Which we choose really depends on how much work you are
> > willing to put into this (or someone else with a similarly failing
> > system).
> >
> > David
> >
> > > I'll toy with getting the latest ghc to compile to see if that
> > > fixes things.
> >
> > That sounds like a good plan.
> 
> --
> gwern
> E.T. CDA SAI LEETAC Hague 50BMG Meade SIGDASYS guest 26

_________________________________________________________________
Spell a grand slam in this game where word skill meets World Series. Get in the game.
http://club.live.com/word_slugger.aspx?icid=word_slugger_wlhm_admod_april08
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osuosl.org/pipermail/darcs-users/attachments/20080425/2fee4934/attachment-0001.htm 


More information about the darcs-users mailing list