Should not register packages when installing with DESTDIR option
After compiling GHC 6.8.1 configured with --prefix=/usr --libdir=/usr/lib/haskell, I installed it with DESTDIR=/usr/pkg/ghc/6.8.1-swp . During the installation, Cabal emitted some (ignored) warnings like so:
Registering parallel-1.0.0.0...
Reading package info from "dist/installed-pkg-config" ... done.
/usr/lib/haskell//ghc-6.8.1/lib/parallel-1.0.0.0 doesn't exist or isn't a directory (ignoring)
/usr/lib/haskell//ghc-6.8.1/lib/parallel-1.0.0.0 doesn't exist or isn't a directory (ignoring)
cannot find libHSparallel-1.0.0.0.a on library path (ignoring)
In other words, the build system didn't tell Cabal that the files were not yet in their final place.
I'm not sure if this does any harm, but it seems like, if DESTDIR is set, GHC ought to use Cabal's "copy" instead of "install" and then provide a separate Makefile target for registering all the libraries.
Trac metadata
Trac field | Value |
---|---|
Version | 6.8.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Build System |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture | Unknown |