[Halld-offline] usage of HALLD_HOME in Makefiles with new sim-recon root

Mark M. Ito marki at jlab.org
Thu Apr 22 08:14:02 EDT 2010


Richard,

There is a third option:

3. After following your checkout procedure, redefine HALLD_HOME to point 
to the sim-recon directory. Explicitly:

setenv HALLD_HOME_SAVE $HALLD_HOME
setenv HALLD_HOME HALLD_HOME_SAVE/sim-recon

which is a bit baroque. The recommended procedure is to use a different 
checkout procedure than the one you describe:

3a. Identify a directory that you want to have contain sim-recon, let's 
call it $FOO.

setenv HALLD_HOME $FOO/sim-recon
cd $FOO
svn checkout https://halldsvn.jlab.org/repos/trunk/sim-recon
cd sim-recon/src
make

i. e., have the checkout create the sim-recon directory (by checking out 
trunk/sim-recon and not trunk/sim-recon/src) and have HALLD_HOME point 
to it.

Unfortunately, the only place where this is documented explicitly is in 
a mail message to the list: 
https://mailman.jlab.org/pipermail/halld-offline/2010-March/000200.html

   -- Mark

On 04/21/2010 05:49 PM, Richard Jones wrote:
> Dear Mark,
>
> In trying to move over to the new structure of the Gluex software 
> tree, I encountered the following issue.  First, I created a new 
> directory called $(HALLD_HOME)/sim-recon.  Then I cd'ed into sim-recon 
> and did a fresh checkout of the trunk from subversion into the 
> directory $(HALLD_HOME)/sim-recon/src.  After this, I did cd src, 
> followed by make.  This fails in HDGeant.
>
> The reason for this is that in HDGeant/Makefile.bms there is the 
> assumption that $(HALLD_HOME)/src is the absolute path to the 
> sim-recon/src directory.  I see a couple of ways forward.
>
>    1. go through a modify all instances of $(HALLD_HOME)/src to become
>       $(HALLD_HOME)/sim-recon/src in the makefiles.  You might then
>       also consider whether $(HALLD_HOME)/lib and $(HALLD_HOME)/bin
>       should also descend into the sim-recon folder or not.
>    2. invent a new environment variable called SIM_RECON_HOME and then
>       use $(SIM_RECON_HOME)/src in place of $(HALLD_HOME)/src in the
>       makefiles.  This is more consistent with other cases, such as
>       $(JANA_HOME).
>
> For the time being, I have implemented option 1 above (src only).  I 
> have only modified my local copy, and have not checked my changes into 
> the trunk.
>
> -Richard J.
>
>
> _______________________________________________
> Halld-offline mailing list
> Halld-offline at jlab.org
> https://mailman.jlab.org/mailman/listinfo/halld-offline

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.jlab.org/pipermail/halld-offline/attachments/20100422/e2c5645c/attachment-0002.html>


More information about the Halld-offline mailing list