On Thu, Dec 22, 2011 at 10:32 AM, Lisandro Dalcin <span dir="ltr"><<a href="mailto:dalcinl@gmail.com">dalcinl@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 22 December 2011 12:19, Matthew Knepley <<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>> wrote:<br>
> On Thu, Dec 22, 2011 at 9:11 AM, Chekuri S. Choudary<br>
> <<a href="mailto:cchoudary@rnet-tech.com">cchoudary@rnet-tech.com</a>> wrote:<br>
>><br>
>><br>
>><br>
>> I am building an RPM for petsc-3.2-p5. I would like the users of the RPM<br>
>> to be able to mention the PETSC_DIR at installation time, i.e, the RPM<br>
>> should be relocatable.<br>
>><br>
>> For example,<br>
>><br>
>> rpm –ivh --prefix=$HOME/petsc<br>
>><br>
>> export PETSC_DIR=$HOME/petsc<br>
>><br>
>><br>
>><br>
>> The issue is that while building the RPM, the “configure –prefix=$DIR”<br>
>> builds the package assuming that $DIR is the final location of the files.<br>
>> So, the only way seems to be to decide the<br>
>><br>
>> installation path upfront and make the RPM non relocatable.<br>
>><br>
>><br>
>><br>
>> Even with PETSC_DIR and PETSC_ARCH, it looks like the path is being<br>
>> hardcoded, i.e, once PETSc is built, the files cannot be simply moved by<br>
>> changing PETSC_DIR and PETSC_ARCH. I was wondering if there is workaround<br>
>> for this issue or if I am missing anything.<br>
><br>
><br>
> No, we do not support relocatable binary packages. There are too many things<br>
> to do during the build.<br>
><br>
<br>
Mmm... Are you shure? Looking at the code in config/install.py, I<br>
would say that relocating a PETSc installation tree is just a matter<br>
of fixing PETSC_DIR/PETSC_ARCH in a bunch of text files in conf/ ...</blockquote><div><br></div><div>Its in at least one C file, reg,c</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Lisandro Dalcin<br>
---------------<br>
CIMEC (INTEC/CONICET-UNL)<br>
Predio CONICET-Santa Fe<br>
Colectora RN 168 Km 472, Paraje El Pozo<br>
3000 Santa Fe, Argentina<br>
Tel: <a href="tel:%2B54-342-4511594" value="+543424511594">+54-342-4511594</a> (ext 1011)<br>
Tel/Fax: <a href="tel:%2B54-342-4511169" value="+543424511169">+54-342-4511169</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener<br>