<div dir="ltr"><span style="font-size:12.8000001907349px">Hi,</span><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I am trying to build a self-contained package-db that is independent of the global package-db.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I am using ghc-7.8.4 and cabal-1.22.0.0. I create an empty package-db in package-db and type the following:</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">    cabal-1.22.0.0 install --package-db=clear --package-db=package-db bytestring-0.10.4.1</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">but I get</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><div>   cabal-1.22.0.0: With current ghc versions the global package db is always used</div><div>   and must be listed first. This ghc limitation may be lifted in future, see</div><div>   <a href="http://hackage.haskell.org/trac/ghc/ticket/5977" target="_blank">http://hackage.haskell.org/trac/ghc/ticket/5977</a></div></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">5977 was fixed 3 years ago -- should the error message be updated?</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I am told that cabal allows building without the global package db, but how?</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Cheers,</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Chris</div></div>