Hi,
I've just started using EPICS 3.14.6 and encountered the same problem as
Benjamin Franksen from Bessy (original tech-talk posting follows this
email).
At Diamond we use the same approach i.e. produce an expanded db file
using a substitution file and an (externally defined) template file. In
R3.13.x we used to do this by having the following lines in the
Makefile.Host file of the /Db directory:-
DB += test.db
USES_TEMPLATE += $(TEMPLATE_PATH)/test.template
This didn't seem to work in EPICS 3.14.6, due to an error in the
RULES.Db file. The following corrects this problem:-
--- RULES_Db.ori 2005-06-08 17:02:07.000000000 +0100
+++ RULES.Db 2005-06-08 17:02:37.000000000 +0100
@@ -138,5 +138,5 @@
TEMPLATE_LINKS = $(filter-out $(notdir $(USES_TEMPLATE)),
$(USES_TEMPLATE))
TEMPLATE_FILES = $(filter $(notdir $(USES_TEMPLATE)),
$(USES_TEMPLATE))
-COMMON_TEMPLATES=$(addsuffix $(COMMON_DIR)/,$(notdir
$(TEMPLATE_LINKS)))
+COMMON_TEMPLATES=$(addprefix $(COMMON_DIR)/,$(notdir
$(TEMPLATE_LINKS)))
Cheers,
Martin Norbury
Software Engineer Beamline Systems
Diamond Light Source Ltd.
Rutherford Appleton Laboratory
Chilton, Didcot.
Oxon
OX11 0QX
Tel: 44 (0) 1235 778235
Email: [email protected]
> -----Original Message-----
>
> I'm in the early stages of porting a 3.13 application to 3.14 and got
> stuck almost immediately.
>
> Our typical application creates X.db using X.substitutions
> and template
> files a.template and b.template. X.substitutions looks like this
>
> file a.template {
> { NAME="a1" }
> { NAME="a2" }
> }
> file b.template {
> { NAME="b1" }
> { NAME="b2" }
> { NAME="b3" }
> }
>
> In my old (3.13) Makefile.Host I have
>
> USES_TEMPLATE = a.template b.template
> DB = X.db
>
> which creates X.db by calling (more or less)
>
> msi -S X.substitutions > X.db
>
> That is, msi is used as substitution for host side dbLoadTemplate.
>
> What definitions do I need in my Makefile to make this work in 3.14?
> Make complains about a missing "../X.template".
>
> I read chapter 4 of the ADG but there is no clue to what I should do
> here. The doc seems to suggest that expanding substitutions files in
> the dbLoadTemplate style is no longer supported because it seems that
> *one* template file is required for each substitution file
> and a subst
> files like the above obviously needs not one but many different
> template files.
>
> Almost all of our applications use above style to expand db
> on the host
> side and most of the substitutions files are generated by
> scripts from
> a relational Database.
>
> I am quite astonished that I seem to be the first one stumbling over
> this. Any suggestion on how to proceed would be greatly appreciated.
>
> Ben
>
- Replies:
- Re: Porting db file generation from 3.13 to 3.14 Janet Anderson
- Navigate by Date:
- Prev:
Re: SSCAN parameters problem Tim Mooney
- Next:
Re: epics on ecos Ronald L. Sluiter
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
<2005>
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: SSCAN parameters problem Tim Mooney
- Next:
Re: Porting db file generation from 3.13 to 3.14 Janet Anderson
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
<2005>
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|