EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: 3.15.1 DB Build Issue
From: Ralph Lange <[email protected]>
To: EPICS Tech-Talk <[email protected]>
Date: Thu, 04 Dec 2014 16:56:10 +0100
On 04/12/2014 16:43, Dudley, David wrote:

And finally, I’m down to where the problem comes from.

 

1.       I don’t have to have MSI defined in either makefile, but they work differently.

2.       If I have a  <dbname>_TEMPLATE defined, then when msi is executed, the FIRST FILENAME in that variable is passed as a parameter to the MSI program in 3.15.1.  That causes the utility program to use ONLY that template file, and all sections in the file are expanded using that file, regardless of what the substitutions file says.

3.       In 3.14.12.4 the exact same thing happens, but I originally didn’t have the _TEMPLATE definition in there (I’m working on that IOC, and trying to get everything in the MAKEFILE right).

4.       Defining a <dbname>_DEPENDS in the Makefile does not cause the problem to occur, because the filename is not passed to the MSI program.

 

So, I can’t use <dbname>_TEMPLATE definitions in the Makefile, because (if I had considered it, it probably have made more sense) according to 4.6.10, <name>_TEMPLATE can only have a single template file name.  Not sure that makes too much sense to me, as I don’t think I have a single substation file that only uses 1 template file.

Also it seems that <name>_DEPENDS is no longer supported (at least it’s definition in 4.6.10 has been deleted.


I would say:
Use your substitutions file as it was. (Using different template databases.)
Define the DB file in the Makefile (should be the base name of substitution file with .db extension).
Do not define MSI nor <name>_DEPENDS nor <name>_TEMPLATE.

Doesn't that work?

Does the mkmf.pl program understand substitution file dependencies, so I don’t have to list the template files in the Makefile?


Yes.
If not, that would be a bug. (You can look at the dependency snippets in the O.* directories.)

Good luck,
~Ralph


References:
RE: 3.15.1 DB Build Issue Dudley, David
RE: 3.15.1 DB Build Issue Dudley, David

Navigate by Date:
Prev: RE: 3.15.1 DB Build Issue Dudley, David
Next: RE: Sorenson SGA DC power supplies Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: 3.15.1 DB Build Issue Dudley, David
Next: CA Gateway 2.0.5.0 released Ralph Lange
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·