On Mar 31, 2005, at 3:36 AM, Jeff Squyres 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?
>
> In the OSCAR LAM/MPI RPM, we had to do the following to override the
> prefix (I'm not an RPM expert -- there may be better/easier ways to do
> this):
>
> -----
> %{!?oscar_prefix: %define oscar_prefix /opt/lam}
>
> # Override default paths.
>
> %define _prefix %{oscar_prefix}-%{version}
> %define _libdir %{oscar_prefix}-%{version}/lib
> %define _sysconfdir %{oscar_prefix}-%{version}/etc
> %define _datadir %{oscar_prefix}-%{version}/share
> %define _pkgdatadir %{oscar_prefix}-%{version}/share/lam
> %define _localstatedir %{oscar_prefix}-%{version}/var/lib
> %define _mandir %{oscar_prefix}-%{version}/man
> %define _infodir %{oscar_prefix}-%{version}/info
> -----
>
> This allows the use of the default path /opt/lam, but you can --define
> it when you rpmbuild as well.
Thanks for this suggestion. If I'm stuck with the default install, what
should $LAMHOME be set to?
Glen
>
>
> On Mar 31, 2005, at 5:48 AM, Glen Otero wrote:
>
>> Hi folks-
>>
>> I've gone through the docs and I've tried every way possible to pass
>> --prefix=/opt/lam to configure during the lam-7.1.1-3.src.rpm rebuild
>> without success. Adding "%define config_options --prefix=/opt/lam" to
>> the specfile doesn't work and issuing "rpmbuild --define
>> 'config_options --prefix=/opt/lam --rebuild lam-7.1.1-3.src.rpm" from
>> the command line doesn't work either. The rebuilds finish and install
>> without problems and I can boot the lam universe and run jobs easily,
>> but I can't get everything to install under one directory. Am I
>> missing something? I'm trying this on FC2.
>>
>> Thanks!
>>
>> Glen
>>
>> Glen Otero Ph.D.
>> Linux Prophet
>> _______________________________________________
>> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
> --
> {+} Jeff Squyres
> {+} jsquyres_at_[hidden]
> {+} http://www.lam-mpi.org/
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
>
Glen Otero Ph.D.
Linux Prophet
- text/enriched attachment: stored
|