[racket] many permissions & other problems using packages in 5.3.6... workarounds?

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Sun Oct 13 14:55:43 EDT 2013

At Sun, 13 Oct 2013 13:43:27 -0400, "David T. Pierson" wrote:
> On Sun, Oct 13, 2013 at 08:00:11AM -0600, Matthew Flatt wrote:
> > I imagine that we need to make `raco pkg` attempt to rename a directory
> > to something like "trash" when the directory can't be deleted (and
> > purge any found "trash" directories that can be deleted).
> 
> I might be misunderstanding the problem, but...
> 
> If Racket on Windows can't delete the directory because a file
> downstream of that directory is open, then Windows will not allow
> renaming the directory either.

Ah, that's probably often true.

Windows seems to allow renaming in many cases when it wouldn't allow
deleting. For example, if I load a DLL from Racket, then I'm not able
to delete the DLL file, but I can rename its enclosing directory (and
that's an experiment that I tried earlier). After I start Racket,
however, I see that I cannot rename the directory that contains Racket.

Maybe the solution is that the package manager should install a package
to a directory "<name>+1" (and so on) if for any reason it can't
replace the directory "<name>".


> Is Racket opening some file in that directory and holding it open?

In the case of "portaudio", maybe it's a DLL. I don't have a guess for
"rsound".


Posted on the users mailing list.