#4072: Local package DB doesn't take preference over global DB
---------------------------------+------------------------------------------
Reporter: tibbe | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Package system | Version: 6.12.2
Keywords: | Difficulty:
Os: Unknown/Multiple | Testcase:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Changes (by tibbe):
* status: infoneeded => new
Comment:
As far as I understand it the problem is that the local package DB (as
given by `--package-conf`) contains a package with the same version and
name as in the global and user package DBs. Here's the output you
requested:
{{{
$ ghc-pkg list -v
using cache:
/home/tibell/.ghc/x86_64-linux-6.12.2/package.conf.d/package.cache
using cache: /home/tibell/lib/ghc-6.12.2/package.conf.d/package.cache
/home/tibell/lib/ghc-6.12.2/package.conf.d
Cabal-1.8.0.4 (Cabal-1.8.0.4-2ca0b54de31e7c6e2bf5bdd1d294fd8d)
array-0.3.0.0 (array-0.3.0.0-d9af0944cfaff6e31a60b739d6d47c7e)
base-3.0.3.2 (base-3.0.3.2-33c49b5f57a891ca80151e2f4f33f82c)
base-4.2.0.1 (base-4.2.0.1-c940d2a54839812fa8d9282ba8a04d97)
bin-package-db-0.0.0.0 (bin-package-
db-0.0.0.0-b60c3890a93c0e84992e4667fae10b36)
bytestring-0.9.1.6
(bytestring-0.9.1.6-3efaf1cf13176910a8fe21aaa93dd52f)
containers-0.3.0.0
(containers-0.3.0.0-f7a8eb7985c3ceb30e259aeffe8acb2e)
directory-1.0.1.1 (directory-1.0.1.1-81da781295a0f481dc84f3aceebed6e1)
dph-base-0.4.0 (dph-base-0.4.0-16c7be48d8f613872e1ab52cdc72dbd8)
dph-par-0.4.0 (dph-par-0.4.0-8b5bb633ae873c4353c98adb62f7307e)
dph-prim-interface-0.4.0 (dph-prim-
interface-0.4.0-9e88ad99b0f092cf6fc514f5c29dc010)
dph-prim-par-0.4.0 (dph-prim-
par-0.4.0-b4dd59c80b0c180128950f6cb1e7b9ea)
dph-prim-seq-0.4.0 (dph-prim-
seq-0.4.0-35632563a8a22a6ed4f5108f8cee712f)
dph-seq-0.4.0 (dph-seq-0.4.0-beb9865134d3d32dcbd91f4f4e4d18cf)
extensible-exceptions-0.1.1.1 (extensible-
exceptions-0.1.1.1-28a83091e117b2e719d4a1c4a320a1c8)
ffi-1.0 (builtin_ffi)
filepath-1.1.0.4 (filepath-1.1.0.4-1425f312faf5b8e9f4babf887e252326)
ghc-6.12.2 (ghc-6.12.2-42b9205304708195bb810ce0efe91c67)
ghc-binary-0.5.0.2 (ghc-
binary-0.5.0.2-ab1951a3cdcc71a778a5b71d32a0ac82)
ghc-prim-0.2.0.0 (ghc-prim-0.2.0.0-5da421112969a971aa3433fdf154b37a)
haskell98-1.0.1.1 (haskell98-1.0.1.1-64d0d2445dbab2ae6f4c0ef4dd5acffb)
hpc-0.5.0.5 (hpc-0.5.0.5-b6985a307d62ee1ed124a6dd89bb983c)
integer-gmp-0.2.0.1 (integer-
gmp-0.2.0.1-67f3940ec8fd509683668f40451c9ca1)
old-locale-1.0.0.2 (old-
locale-1.0.0.2-0c1a4b40f2d3b9f6b725f54c00fe0923)
old-time-1.0.0.4 (old-time-1.0.0.4-822971e14a3962dc5100f8d184d86e17)
pretty-1.0.1.1 (pretty-1.0.1.1-b6652d4fb1f996119a76dcaa986e9d70)
process-1.0.1.2 (process-1.0.1.2-0c055170be2e835c5f6ae3f2604fdf39)
random-1.0.0.2 (random-1.0.0.2-a4bf29bbfd08ec91d43a4c919e9253f8)
rts-1.0 (builtin_rts)
syb-0.1.0.2 (syb-0.1.0.2-de132fee12fc0d855087b9b238b4565a)
template-haskell-2.4.0.1 (template-
haskell-2.4.0.1-e9e9c63092746bd4a3f64cc37ddb1e06)
time-1.1.4 (time-1.1.4-668ce7f110e803952c4ceda6e172096c)
unix-2.4.0.1 (unix-2.4.0.1-2b0b5b03649c4a1de993dc31207c5ff7)
/home/tibell/.ghc/x86_64-linux-6.12.2/package.conf.d
HTTP-4000.0.9 (HTTP-4000.0.9-972661e5536b4092b64da20c52f61612)
HUnit-1.2.2.1 (HUnit-1.2.2.1-d35431fff52a1f91c4acc421023743e7)
ListLike-1.0.1 (ListLike-1.0.1-f5400115ed118ccdf2bb8fd5656ad5f5)
MonadCatchIO-transformers-0.2.2.0 (MonadCatchIO-
transformers-0.2.2.0-2f29616558987a7d7eed29310fd8bf1a)
QuickCheck-1.2.0.0
(QuickCheck-1.2.0.0-ee5d098db953518f791659b618ecb726)
ansi-terminal-0.5.0 (ansi-
terminal-0.5.0-44de05d7ced544a3dcb4f8c3c7ed69ce)
ansi-wl-pprint-0.5.1 (ansi-wl-
pprint-0.5.1-ea5fb065aa0a892907d99fce370658f1)
attoparsec-0.8.0.2
(attoparsec-0.8.0.2-c983acfc734cf9f692254afe211c2172)
attoparsec-iteratee-0.1 (attoparsec-
iteratee-0.1-286cb78f6db1b8426878a7584a3c49c0)
binary-0.5.0.2 (binary-0.5.0.2-114aafd6be4c69911a13814716c1a1ff)
bytestring-mmap-0.2.1 (bytestring-
mmap-0.2.1-b70c3176c819b04b19f4cda31dde8989)
bytestring-nums-0.3.1 (bytestring-
nums-0.3.1-3466195f4521bcb558a0d09fb364a91c)
bytestring-show-0.3.3 (bytestring-
show-0.3.3-1b6240d206a1c31bd8fae969b5514ed4)
cereal-0.2 (cereal-0.2-896c8696cecede96e0b73efdec9d02e4)
cpphs-1.11 (cpphs-1.11-dc4ed5972565ec04edf7c8afa652366e)
criterion-0.5.0.0 (criterion-0.5.0.0-0537bc2eef1340077e93001e1869334b)
darcs-2.4.1 (darcs-2.4.1-9c7e6ed0316492adaa048098481e843f)
dataenc-0.13.0.2 (dataenc-0.13.0.2-326308bda43e226979ca4ec57b5a8ecc)
deepseq-1.1.0.0 (deepseq-1.1.0.0-996c7e4d83de94a039c29582abddb80c)
directory-tree-0.1.1 (directory-
tree-0.1.1-0dc1c6ec83a9180c11d21b60d3be95c9)
dlist-0.5 (dlist-0.5-a386e34fa917b02efe60bdec59cb50f8)
erf-1.0.0.0 (erf-1.0.0.0-a5561059617bd2ff465e382c3c189eb0)
hashed-storage-0.4.11 (hashed-
storage-0.4.11-2f4d7c10b9c9b021a5383135ad60ee5c)
haskeline-0.6.2.2 (haskeline-0.6.2.2-b39eb86da35184afbe4e404af604b050)
haskell-src-exts-1.8.2 (haskell-src-
exts-1.8.2-518a72725ef9c7e07d0bc0261933fc22)
hlint-1.6.21 (hlint-1.6.21-3e387d96c6b5a6ceffb5134e579674f8)
hscolour-1.16 (hscolour-1.16-0c11ad9a00f1dcf3f9cde0a1386ac868)
html-1.0.1.2 (html-1.0.1.2-9df9e817033241284f64034c2478a7d3)
iteratee-0.3.5 (iteratee-0.3.5-ac2a065d9222fdcd8436e5381c352ff2)
mmap-0.4.1 (mmap-0.4.1-d061032c04761f84e3f5e6bafcb728f9)
monads-fd-0.1.0.0 (monads-fd-0.1.0.0-f92ca4a992ff0c7884d701f0a2ad3f9c)
mtl-1.1.0.2 (mtl-1.1.0.2-174e84f60f8c2192a4ee7d2ff2833953)
mwc-random-0.5.0.0 (mwc-
random-0.5.0.0-1c1dd213ed3d9235683cb3a737e101ce)
network-2.2.1.7 (network-2.2.1.7-c873d333afa36ee1d496acf30a14dc9d)
network-bytestring-0.1.3 (network-
bytestring-0.1.3-18648acd4e4fc71693664002cf22a7e6)
parallel-2.2.0.1 (parallel-2.2.0.1-2b656b5454562b671f82c8688fb3ed1b)
parsec-2.1.0.1 (parsec-2.1.0.1-4cd811cd4f9f11963baec3918d510464)
parsec-3.1.0 (parsec-3.1.0-4fa4103140b3319f30edb8cfb8530edd)
primitive-0.2.1 (primitive-0.2.1-73ba566598d33b9d9b7aafd5bf50ea23)
primitive-0.3 (primitive-0.3-2392312a00fc66bd269e6fe78f357e28)
regex-base-0.93.1 (regex-base-0.93.1-acb7fffd78c9f1aa057306a8f26ac604)
regex-compat-0.92 (regex-compat-0.92-ebef22654be4dca41f9c13b54d2a8d1a)
regex-posix-0.94.1 (regex-
posix-0.94.1-d7254566b76812d99812ff1803b88e62)
sendfile-0.6.1 (sendfile-0.6.1-2a63f4c1a811909a5050846dbedbdc72)
statistics-0.5.1.0
(statistics-0.5.1.0-dc60a4f05c371937865433d7e5b8ae30)
stm-2.1.2.0 (stm-2.1.2.0-40208614796ae6e7aa3666d871ef78ec)
terminfo-0.3.1.2 (terminfo-0.3.1.2-2b386f85f4cd28e4ca3429a7aeef5a44)
test-framework-0.2.4 (test-
framework-0.2.4-4ee3cb49520a4c7995ff695e85be2dca)
test-framework-hunit-0.2.4 (test-framework-
hunit-0.2.4-1aa7ebb5bec91b3b6bde6f7aeebb66e8)
test-framework-quickcheck-0.2.4 (test-framework-
quickcheck-0.2.4-b74a148c1b228c606068cbd53116b4f1)
text-0.7.1.0 (text-0.7.1.0-4f2f4fb4a4165e8bf419afe19e3f9ce6)
transformers-0.2.1.0
(transformers-0.2.1.0-83bd04c7d756a68d4480a7c48ea90dcc)
uniplate-1.5.1 (uniplate-1.5.1-a9ad7487aefd86d65a1d31d4ce4097b3)
utf8-string-0.3.6 (utf8-string-0.3.6-2731b60ace897a8daec9b50d3d5b65f9)
vector-0.5 (vector-0.5-67c88965ddc5442e42e944452800f87b)
vector-0.6.0.1 (vector-0.6.0.1-12dcd3f12bf46b05354edd21f0b0a520)
vector-algorithms-0.3.1 (vector-
algorithms-0.3.1-fa6ae76ed70c00227a6fe5d40fbf3e09)
zlib-0.5.2.0 (zlib-0.5.2.0-72f71bad4ead56a811556885b3e4b848)
}}}
{{{
$ cat dist/package.conf.inplace
[InstalledPackageInfo {installedPackageId = InstalledPackageId
"text-0.7.1.0-inplace", sourcePackageId = PackageIdentifier {pkgName =
PackageName "text", pkgVersion = Version {versionBranch = [0,7,1,0],
versionTags = []}}, license = BSD3, copyright = "2008-2009 Tom Harper,
2009 Bryan O'Sullivan", maintainer = "Bryan O'Sullivan
<[email protected]>\nTom Harper <[email protected]>\nDuncan
Coutts <[email protected]>", author = "Tom Harper
<[email protected]>", stability = "", homepage = "", pkgUrl =
"", description = "An efficient packed Unicode text type.", category =
"Data, Text", exposed = True, exposedModules =
["Data.Text","Data.Text.Encoding","Data.Text.Encoding.Error","Data.Text.Foreign","Data.Text.IO","Data.Text.Lazy","Data.Text.Lazy.Encoding","Data.Text.Lazy.IO"],
hiddenModules =
["Data.Text.Array","Data.Text.Encoding.Fusion","Data.Text.Encoding.Fusion.Common","Data.Text.Encoding.Utf16","Data.Text.Encoding.Utf32","Data.Text.Encoding.Utf8","Data.Text.Fusion","Data.Text.Fusion.CaseMapping","Data.Text.Fusion.Common","Data.Text.Fusion.Internal","Data.Text.Fusion.Size","Data.Text.IO.Internal","Data.Text.Internal","Data.Text.Lazy.Builder","Data.Text.Lazy.Encoding.Fusion","Data.Text.Lazy.Fusion","Data.Text.Lazy.Internal","Data.Text.Lazy.Search","Data.Text.Search","Data.Text.Unsafe","Data.Text.UnsafeChar","Data.Text.UnsafeShift"],
importDirs = ["/tmp/text/dist/build"], libraryDirs =
["/tmp/text/dist/build"], hsLibraries = ["HStext-0.7.1.0"], extraLibraries
= [], extraGHCiLibraries = [], includeDirs = [], includes = [], depends =
[InstalledPackageId
"base-4.2.0.1-c940d2a54839812fa8d9282ba8a04d97",InstalledPackageId
"bytestring-0.9.1.6-3efaf1cf13176910a8fe21aaa93dd52f",InstalledPackageId
"deepseq-1.1.0.0-996c7e4d83de94a039c29582abddb80c",InstalledPackageId
"ghc-prim-0.2.0.0-5da421112969a971aa3433fdf154b37a"], hugsOptions = [],
ccOptions = [], ldOptions = [], frameworkDirs = [], frameworks = [],
haddockInterfaces = ["/tmp/text/dist/doc/html/text/text.haddock"],
haddockHTMLs = ["/tmp/text/dist/doc/html/text"]}
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4072#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs