On Sun, Aug 26, 2007 at 02:38:27PM +0200, Sven Panne wrote:
> I'm currently trying to resurrect ghc.spec.in after all those build system 
> changes in the last few months. One thing I'm currently fighting with is the 
> totally obscure non-standard logic regarding the handling of build/install 
> prefixes. Just to recap what is needed for sane (non-relocatable) RPM builds:
> 
>    a) "configure" gets a "--prefix" option, stating where the package should 
> be installed later (normally "/usr").
> 
>    b) "make" builds everything, baking in absolute paths based on "--prefix" 
> if necessary.
> 
>    c) "make install" gets an additional argument "prefix=/var/foo/usr" 
> (where "/var/foo" is some temporary place and "/usr" is what was stated in 
> the configure stage for "--prefix"), so everything gets installed 
> below "/var/foo/usr". After some checks "rpmbuild" picks up the files there, 
> but nevertheless the resulting stuff gets installed below "/usr" later.
> 
> If I see things correctly, the current build system mixes b) and c) a little 
> bit, baking in the prefix given in the install phase, which is totally wrong 
> for RPM builds as outlined above.

Exactly which paths are getting baked in where?

If it's the libraries causing problems then I think we need to set a
CopyDest in installPackage.hs.


Thanks
Ian

_______________________________________________
Cvs-ghc mailing list
Cvs-ghc@haskell.org
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to