On Thu, Dec 22, 2011 at 9:11 AM, Chekuri S. Choudary <span dir="ltr"><<a href="mailto:cchoudary@rnet-tech.com">cchoudary@rnet-tech.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">
<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I am building an RPM for petsc-3.2-p5. I would like the users of the RPM to be able to mention the PETSC_DIR at installation time, i.e, the RPM should be relocatable.<u></u><u></u></p>
<p class="MsoNormal">For example, <u></u><u></u></p><p class="MsoNormal">rpm –ivh --prefix=$HOME/petsc<u></u><u></u></p><p class="MsoNormal">export PETSC_DIR=$HOME/petsc <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The issue is that while building the RPM, the “configure –prefix=$DIR” builds the package assuming that $DIR is the final location of the files. So, the only way seems to be to decide the<u></u><u></u></p>
<p class="MsoNormal">installation path upfront and make the RPM non relocatable.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Even with PETSC_DIR and PETSC_ARCH, it looks like the path is being hardcoded, i.e, once PETSc is built, the files cannot be simply moved by changing PETSC_DIR and PETSC_ARCH. I was wondering if there is workaround for this issue or if I am missing anything.</p>
</div></div></blockquote><div><br></div><div>No, we do not support relocatable binary packages. There are too many things to do during the build.</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">
<div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal"> </p><p class="MsoNormal"><u></u></p><p class="MsoNormal">Thanks<u></u><u></u></p><p class="MsoNormal">Shiva<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></div></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>