id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	difficulty	ghcversion	platform
601	cabal setup doesn't respect --prefix	zooko		"I'm trying to install Cabal here.  The install process (and the running cabal executable itself) isn't allowed to write into {{{/var/lib}}}, nor into any directory outside of {{{/usr/local/stow/Cabal}}}.  So I pass {{{--prefix=/usr/local/stow/Cabal}}} and in addition I use unix permissions to make it so that if it attempts to write outside of the specified prefix it will fail.  Good thing I did, because it does indeed so attempt:

{{{
./Setup configure --prefix=/usr/local/stow/Cabal
./Setup build
./Setup install
Fri Oct 23 21:29:12 MDT 2009
Installing library in /usr/local/stow/Cabal/lib/Cabal-1.6.0.2/ghc-6.10.4
Registering Cabal-1.6.0.2...
Reading package info from ""dist/installed-pkg-config"" ... done.
Writing new package config file... ghc-pkg: /var/lib/ghc-6.10.4/./package.conf: you don't have permission to modify this file
}}}

Is there a different option to tell it to use a {{{package.conf}}} file in a specific directory?  In any case, the fact that it is attempting to write outside the specified {{{--prefix}}} seems like a bug to me."	defect	closed	normal		Cabal library	1.6.0.1	normal	wontfix			unknown		
