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

Mark M. Ito marki at jlab.org
Thu Apr 22 09:17:43 EDT 2010


David,

We could dump sim-recon and call it halld. See

http://www.jlab.org/Hall-D/software/wiki/index.php/Building_a_roof_over_src#What_about_the_name.3F

Then we would keep HALLD_HOME and it would be consistent with the 
directory name.

   -- Mark

On 04/22/2010 08:54 AM, David Lawrence wrote:
>
> Hi Mark,
>
>     Since we're in the business of intellectual and philosophical 
> pursuits, I'll add a little more to everyone's Inbox here ;)
>
>     As I understood it, the choice of the name "sim-recon" made sense 
> because it was in reference relative to the repository. For example, 
> we checkout the code using:
>
> svn co https://halldsvn.jlab.org/repos/trunk/sim-recon
>
> The URL already has the string "halld" prominently at the beginning 
> and "sim-recon" is therefore within that context.
>
> In my environment, however, I may have a mixture of variables 
> referring to multiple experiments in multiple halls. Without the 
> context of the repository, the string "sim-recon" is too generic. The 
> HALLD_HOME string clearly points to the root of my "Hall-D" software.
>
>
> Regards,
> -David
>
>
> Mark M. Ito wrote:
>> Richard and David,
>>
>> After this exchange, I'm thinking that suggestion 2 is more or less 
>> unavoidable.
>>
>> On cost/benefit, the short term benefit is clearly zilch, but the 
>> overall idea of making the switch was to make the structure clearer 
>> and easier to describe, knowing that there would be some pain in 
>> having to switch. Having the legacy environment variable hanging 
>> around is kind of like not finishing the job. Long-term, it is easier 
>> to understand.
>>
>> We could somehow grandfather in the use of HALLD_HOME in the 
>> makefiles by checking for the case where HALLD_HOME is defined and 
>> SIM_RECON_HOME is not and making the definition of the latter on the 
>> fly. We could warn that such usage is deprecated.
>>
>> Typing? How about SR_HOME, SRSYS, SR,...?
>>
>>   -- Mark
>>
>> On 04/21/2010 10:46 PM, David Lawrence wrote:
>>>
>>> Hi Richard,
>>>
>>>     I'll let Mark give his take on this, but  since you asked on a 
>>> public mailing list, I can't help but chime in :)
>>>
>>>
>>>     We did discuss this at the March 9th meeting. I believe Mark 
>>> advocated something close to your suggestion 2., but was shouted 
>>> down by the majority in attendance. One major reason being that 
>>> HALLD_HOME is pervasive not just in lots of Makefiles, but in 
>>> peoples' login scripts etc. Changing it would have some ripple that 
>>> would likely cause more pain (or at least annoyance) than any gain 
>>> from simply changing the name of the variable. It may not have been 
>>> well advertised, but the standard install is now supposed to have 
>>> the HALLD_HOME environment variable point to the sim-recon directory 
>>> and everything else should work as before.
>>>
>>>     Your suggestion 1. has the problem that HALLD_HOME could no 
>>> longer be used to point to a tagged release. Because our tagged 
>>> releases are now named e.g.  sim-recon-2010-03-29 you'd want your 
>>> environment variable (whatever it is named) to point to that 
>>> directory, not its parent. Also, it seems more standard to have the 
>>> "HOME" directory contain src, include, bin, and lib directories as 
>>> in your suggestion 2.
>>>
>>>     IMHO, I can see possibly going with suggestion 2., but I would 
>>> still advocate keeping it as it is for two reasons:
>>>
>>> A: Cost/Benefit doesn't strongly motivate a change
>>> B: "HALLD_HOME" is quicker to type than "SIM_RECON_HOME" (and some 
>>> of us type it a lot!)
>>>
>>> My $0.02
>>>
>>> Regards,
>>> -David
>>>
>>>
>>>
>>> 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
>>>
>>> -- 
>>>
>>> ------------------------------------------------------------------------
>>>   David Lawrence Ph.D.
>>>   Staff Scientist                 Office: (757)269-5567   [[[  [   [ [
>>>   Jefferson Lab                   Pager:  (757)584-5567   [  [ [ [ [ [
>>>   http://www.jlab.org/~davidl      davidl at jlab.org          [[[  [[ [[ [[[
>>> ------------------------------------------------------------------------
>>>
>>>    
>>>
>>>
>>> _______________________________________________
>>> Halld-offline mailing list
>>> Halld-offline at jlab.org
>>> https://mailman.jlab.org/mailman/listinfo/halld-offline
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Halld-offline mailing list
>> Halld-offline at jlab.org
>> https://mailman.jlab.org/mailman/listinfo/halld-offline
>
> -- 
>
> ------------------------------------------------------------------------
>   David Lawrence Ph.D.
>   Staff Scientist                 Office: (757)269-5567   [[[  [   [ [
>   Jefferson Lab                   Pager:  (757)584-5567   [  [ [ [ [ [
>   http://www.jlab.org/~davidl      davidl at jlab.org          [[[  [[ [[ [[[
> ------------------------------------------------------------------------
>
>    

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


More information about the Halld-offline mailing list