LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2005-03-31 06:36:23


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. :-\

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.

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/