RPM build problems
sven.panne at aedion.de
Sun Aug 26 10:26:26 EDT 2007
On Sunday 26 August 2007 14:38, I wrote:
> 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. [...]
Just another remark: The above is basically a hack because GHC's install phase
was very non-standard. To follow the principle of least surprise, it would be
good if we followed established conventions:
So in a nutshell: Use configure's --prefix (and friends) for everything, and
just prepend $(DESTDIR) when copying/installing files.
On Windows things might be handled differently, but I don't care about that
and we should not let this dictate the behaviour on other platforms. This
shouldn't be too hard, given conditionals in Makefiles etc.
More information about the Cvs-ghc