RPM build problems
sven.panne at aedion.de
Sun Aug 26 08:38:27 EDT 2007
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"
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.
Any hints how to proceed? What is the rationale behind the current confusing
logic? I can't be the first one to experience this problem. :-(
A completely different sad story is the handling of the Haddock docs, but this
is a concern only when GHC itself is working...
More information about the Cvs-ghc