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  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024  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  <20232024 
<== Date ==> <== Thread ==>

Subject: Re: How to use INSTALL_LOCATION with system directories
From: Lucas Russo via Tech-talk <tech-talk at aps.anl.gov>
To: Ralph Lange <ralph.lange at gmx.de>
Cc: EPICS Tech Talk <tech-talk at aps.anl.gov>
Date: Wed, 11 Oct 2023 08:54:32 +0200
Hi Ralph,

Nice. =]

I wanted to know if this was something useful before digging into the makefile
rules. I'll try to take a look and will let you know.

Thanks!

Lucas

On Tue, Oct 10, 2023 at 11:57 AM Ralph Lange via Tech-talk <tech-talk at aps.anl.gov> wrote:
On Tue, 10 Oct 2023 at 10:21, Lucas Russo via Tech-talk <tech-talk at aps.anl.gov> wrote:
Regardless of the location our sites decide, does it make sense to try
to support that use case straight out of the box (box = epics base makefile rules)?

I don't really care about the staging area, that being out of source build or not,
so INSTALL_LOCATION could be $(TOP) or something I have write access to,
that is fine. I think I'm just concerned with the final installation step or FINAL_LOCATION,
from what I understand now.

So, does it make sense to add or split rules in EPICS base (maintaining
backwards compatibility) to provide that?

Something like:

make build
sudo make FINAL_LOCATION=/opt/test install

Or whatever target name to compile and one target for installing the binaries/libs/etc?

You do have a point there.

Classical open-source answer, then: The developers will be happy to review your PR. :-)

Be aware that EPICS has a number of quirks, though: tools being generated, header files being generated, such things.
Shouldn't make it impossible, but if you split build and install, the build of Base, e.g., while using the same Make rules, can't use locally created tools using the installation path, while building any downstream support modules needs to use Base's (installation) path for the same tools.

One thing is certain: You will learn a lot about how the EPICS Build system internally works, which - when working with EPICS - is a valuable thing.

Cheers,
~Ralph


References:
How to use INSTALL_LOCATION with system directories Lucas Russo via Tech-talk
Re: How to use INSTALL_LOCATION with system directories Ralph Lange via Tech-talk
Re: How to use INSTALL_LOCATION with system directories Lucas Russo via Tech-talk
Re: How to use INSTALL_LOCATION with system directories Jure Varlec via Tech-talk
Re: How to use INSTALL_LOCATION with system directories Ralph Lange via Tech-talk
Re: How to use INSTALL_LOCATION with system directories Maren Purves via Tech-talk
Re: How to use INSTALL_LOCATION with system directories Lucas Russo via Tech-talk
RE: How to use INSTALL_LOCATION with system directories Abdalla Ahmad via Tech-talk
Re: How to use INSTALL_LOCATION with system directories Lucas Russo via Tech-talk
Re: How to use INSTALL_LOCATION with system directories Ralph Lange via Tech-talk

Navigate by Date:
Prev: Re: Question regarding ADPluginFile driver Jörn Dreyer via Tech-talk
Next: Install EPICS on Raspberry pi and control motor 백호령 via Tech-talk
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  <20232024 
Navigate by Thread:
Prev: Re: How to use INSTALL_LOCATION with system directories Ralph Lange via Tech-talk
Next: Re: How to use INSTALL_LOCATION with system directories Lucas Russo via Tech-talk
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  <20232024 
ANJ, 11 Oct 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·