Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
<== Date ==> <== Thread ==>

Subject: RE: 3.14 build system doesn't cope with hyphens in IOC names
From: "Ernest L. Williams Jr." <ernesto@ornl.gov>
To: "Denison, PN (Peter)" <peter.denison@diamond.ac.uk>
Cc: EPICS tech-talk <tech-talk@aps.anl.gov>
Date: Thu, 01 Sep 2005 09:37:13 -0400
On Thu, 2005-09-01 at 14:29 +0100, Denison, PN (Peter) wrote:
> > -----Original Message-----
> > From: Ernest L. Williams Jr. [mailto:ernesto@ornl.gov] 
> > Subject: Re: 3.14 build system doesn't cope with hyphens in IOC names
> > 
> > We use hyphens in our IOC names under EPICS R3.14.7.
> > I don't remember making any modifications to support this.
> > 
> > For example,
> > 
> > ==============================================================
> > 
> > [williams@lion test]$ makeBaseApp.pl -t example example 
> > [williams@lion test]$ makeBaseApp.pl -i -t example my-new-ioc 
> > The following target architectures are available in base:
> >     vxWorks-mv2100_v6
> >     vxWorks-mv5100_v6
> >     vxWorks-ppc603_T2-2
> >     vxWorks-ppc603_long
> >     vxWorks-ppc603
> >     linux-x86
> >     vxWorks-ppc604_T2-2
> > What architecture do you want to use? vxWorks-ppc603 
> > [williams@lion test]$ ls configure/  exampleApp/  iocBoot/  Makefile 
> > [williams@lion test]$ ls  iocBoot/ iocmy-new-ioc/  Makefile
> nfsCommands 
> > ==============================================================
> > 
> > Works perfect.
> 
> Sorry - I wasn't clear enough in my original explanation of the problem.
> It is in the substitution of "APPNAME" that problems occur with hyphens.
> In your example, the appname was "example", which doesn't contain
> hyphens (so no problem) 

Still works for me:
==============================================================================
[williams@lion test]$ makeBaseApp.pl -t example my-example
[williams@lion test]$ ls
configure/  Makefile  my-exampleApp/
[williams@lion test]$ makeBaseApp.pl -i -t example my-example
The following target architectures are available in base:
    vxWorks-mv2100_v6
    vxWorks-mv5100_v6
    vxWorks-ppc603_T2-2
    vxWorks-ppc603_long
    vxWorks-ppc603
    linux-x86
    vxWorks-ppc604_T2-2
What architecture do you want to use? vxWorks-ppc603
[williams@lion test]$ ls -l
total 16
drwxrwxr-x  2 williams williams 4096 Sep  1 09:32 configure/
drwxrwxr-x  3 williams williams 4096 Sep  1 09:33 iocBoot/
-rw-rw-r--  1 williams williams  391 Sep  1 09:32 Makefile
drwxrwxr-x  4 williams williams 4096 Sep  1 09:32 my-exampleApp/
[williams@lion test]$ ls iocBoot/
iocmy-example/  Makefile  nfsCommands
==============================================================================






> and you'd need to modify the st.cmd file by hand
> to change to example_registerRecordDeviceDriver from
> my-new-ioc_registerRecordDeviceDriver, also avoiding the problem.
==========================================================
Now modifying the st.cmd file has always been an issue with us.
However, given that one could have many Apps associated with one IOC it
was a good choice to choose the IOC name as the prefix.

Maybe, the script could ask what should be your main App?
=====================================================================



> 
> If you use the same name for the app and the ioc, both with a hyphen in,
> you'll see the problem.
> 
> Peter Denison, Senior Software Engineer
> Diamond Light Source Ltd., Diamond House, Chilton, Didcot, Oxon, OX11
> 0DE
> Tel: +44 1235 778511


References:
RE: 3.14 build system doesn't cope with hyphens in IOC names Denison, PN (Peter)

Navigate by Date:
Prev: RE: 3.14 build system doesn't cope with hyphens in IOC names Denison, PN (Peter)
Next: SNCSEQ... Laznovsky, Michael
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
Navigate by Thread:
Prev: RE: 3.14 build system doesn't cope with hyphens in IOC names Denison, PN (Peter)
Next: SNCSEQ... Laznovsky, Michael
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·