EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: IOC build fails after removing an iocBoot dir from Git
From: "Konrad, Martin via Core-talk" <core-talk at aps.anl.gov>
To: "core-talk at aps.anl.gov" <core-talk at aps.anl.gov>
Date: Wed, 18 Mar 2020 19:04:33 +0000
Hi,
I have an IOC directory which is revision controlled using Git. It
contains iocBoot directories for multiple IOC instances. An automatic
deployment system runs something like this (simplified):

git pull
make

This generally works fine. But whenever we are retiring an IOC instance
which means we are removing the corresponding sub-directory in
$(TOP)/iocBoot from the Git repo. Now running the commands above fails.
Turns out this is because the first make run generated
iocBoot/ioctest2/envPaths which is left behind when running "git pull"
(Git only manages files, it automatically deletes empty directories but
it can't delete my iocBoot directory since it still contains an
auto-generated file).

I'm wondering if it would be possible/safe to use a Make rule that only
considers sub-directories of iocBoot that actually contain a Makefile.
Any thoughts?

Thanks,

Martin

P.S.: Steps to reproduce:

mkdir test
cd test/
git init
makeBaseApp -t ioc test
makeBaseApp -t ioc -i -a linux-x86_64 -p test test
git add -A
git commit -m "IOC with one boot dir"
makeBaseApp -t ioc -i -a linux-x86_64 -p test2 test2
git add -A
git commit -m "add 2nd IOC boot dir"
make -s
git revert HEAD
make

-- 
Martin Konrad
Facility for Rare Isotope Beams
Michigan State University
640 South Shaw Lane
East Lansing, MI 48824-1321, USA
Tel. 517-908-7253
Email: konrad at frib.msu.edu

Replies:
Re: IOC build fails after removing an iocBoot dir from Git Johnson, Andrew N. via Core-talk

Navigate by Date:
Prev: Re: write to a single element of an array field Ben Franksen via Core-talk
Next: Re: write to a single element of an array field Ben Franksen via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: Re: write to a single element of an array field Timo Korhonen via Core-talk
Next: Re: IOC build fails after removing an iocBoot dir from Git Johnson, Andrew N. via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
ANJ, 25 Mar 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·