[GHC] #10205: On Windows ghc-pkg always reports cache out of date

GHC ghc-devs at haskell.org
Thu Jun 4 20:49:15 UTC 2015


#10205: On Windows ghc-pkg always reports cache out of date
-------------------------------------+-------------------------------------
        Reporter:  hgolden           |                   Owner:
            Type:  bug               |                  Status:  infoneeded
        Priority:  normal            |               Milestone:  7.10.2
       Component:  ghc-pkg           |                 Version:  7.10.1
      Resolution:                    |                Keywords:
Operating System:  Windows           |            Architecture:
 Type of failure:  Incorrect result  |  Unknown/Multiple
  at runtime                         |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:                    |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by hgolden):

 Replying to [comment:5 thoughtpolice]:
 > Yes, to be clear, was this with the binary distribution, MinGW, Haskell
 Platform, etc? We shouldn't ever need administrative privileges in the
 regular binary distribution for anything, so this may not be our bug if
 that fixes it?

 In my original report, there are two separate sets of messages: One is for
 the global directory and the other is for my personal directory. As a non-
 administrator user, I don't have write access to the global directory,
 since it is a subdirectory of C:\Program Files (under Windows 7 or later).
 However, I do have access to my own directory. I am getting the out-of-
 date messages for both files.

 As I recall, when I ran into this situation, I had administrative
 privileges on my PC. In my company's wisdom, I no longer have
 administrative privileges, so I can't test the proposed fix in comment #4,
 but I believe I already did that in the original report.

 Storing the global cache (or any other part of GHC) in a subdirectory of
 C:\Program Files will not work if the user doesn't have administrative
 privileges, at least under Windows 7 or later.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10205#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list