Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] Making RPM from source that respects --prefix
From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2009-10-02 08:05:46


rpmbuild likes to pass many of its own options to configure, including
many that set bindir, libdir, etc. explicitly. Try setting _prefix
instead of passing the prefix as a configure_options. For example:

   rpmbuild --rebuild --define '_prefix /tmp/bogus'
openmpi-1.3.3-1.src.rpm

On Oct 2, 2009, at 6:48 AM, Bill Johnstone wrote:

> I'm trying to build an RPM of 1.3.3 from the SRPM. Despite typical
> RPM practice, I need to build ompi so that it installs to a
> different directory from /usr or /opt, i.e. what I would get if I
> just built from source myself with a --prefix argument to configure.
>
> When I invoke buildrpm with the --define 'configure_options --
> prefix=<desired path> ...', the options do get set when the building
> process gets kicked off. However, when I query the final RPM, only
> vampirtrace has paid attention to the specified --prefix and wants
> to place its files accordingly. How should I alter the .spec file
> (or in some other place?) to get the desired behavior for the final
> file locations in the RPM?
>
> Thank you for any help.
>
>
>
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>

-- 
Jeff Squyres
jsquyres_at_[hidden]