On Mar 31, 2005, at 2:07 PM, Glen Otero wrote:
>> Changing the prefix in an SRPM rebuild is unfortunately a sticky
>> thing; the distro macros are usually setup to do their own prefix and
>> no others. :-\
>
> I can understand (but not condone) this behavior when the %configure
> macro is used, but in the older specfiles where good ol' ./configure
> is used," --prefix=$RPM_BUILD_ROOT/opt/lam" doesn't work either. Isn't
> that a little strange?
No -- if you set the prefix to $RPM_BUILD_ROOT/opt/lam, then that is
what the prefix will be. More specifically, LAM will think that it
should be installed into /tmp/rpm-build-root/opt/lam (or whatever your
RPM_BUILD_ROOT is).
So you really want to have a prefix of /opt/lam, and use a DESTDIR kind
of install (e.g., "make DESTDIR=$RPM_BUILD_ROOT install").
> Thanks for this suggestion. If I'm stuck with the default install,
> what should $LAMHOME be set to?
We actually recommend not setting LAMHOME. There are a few cases where
it is necessary, but unless you really need it (and you probably
don't), it isn't necessary to set it.
--
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/
|