Ticket #263 (new defect)
Multiple compilers of the same version confuse Cabal
|Reported by:||guest||Owned by:|
|Cc:||Difficulty:||very hard (<1 week)|
Description (last modified by guest) (diff)
It often happens that two or more copies of the same version of the same compiler are installed on a system. For example, the compiler can be installed with an installation package, or be built from the source tarball, or from darcs, or using MacPorts?.
If a package is installed for each of these copies of the compiler while allowing Cabal to use the default installation location each time, Cabal will always use the exact same folder. This leads to mayhem and anarchy.
Cabal should also use the base path of the compiler when it constructs the directory name for the package, not just the compiler name and version.
For example: If I install a package foo-188.8.131.52 --with-compiler=/opt/local/bin/ghc-6.8.2 and the installation base path is /usr/local, then Cabal should install the package into /usr/local/lib/foo-184.108.40.206/opt_local_ghc-6.8.2