Package database locking patch broke ghc-pkg with non-existent database
It seems that D3090 (#13194) broke ghc-pkg
's behavior in the face of non-existent package databases. Namely, cabal install
fails during registration with,
Creating package registration file: /tmp/pkgConf-compact-0.1.0.1-13684/pkgConf
("/opt/exp/ghc/roots/master/bin/ghc-pkg",["update","-","--global","--user","-v2"])
/opt/exp/ghc/roots/master/bin/ghc-pkg returned ExitFailure 1 with error
message:
ghc-pkg: Couldn't open database
/home/ben/.ghc/x86_64-linux-8.1.20170227/package.conf.d for modification:
/home/ben/.ghc/x86_64-linux-8.1.20170227/package.conf.d.lock: openBinaryFile:
does not exist (No such file or directory)
Trac metadata
Trac field | Value |
---|---|
Version | 8.0.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | highest |
Resolution | Unresolved |
Component | Package system |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |