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: [EPICS] Support for Staged Installs ?
From: Michael Davidsaver <[email protected]>
To: [email protected]
Date: Sun, 05 Oct 2014 12:54:25 -0400
On 10/05/2014 09:08 AM, Ralph Lange wrote:
...
Pavel,

I don't know what kind of build system you are using, but setting INSTALL_LOCATION inside a make based build of a standard EPICS application does exactly what you describe. It builds locally and installs into the selected location (instead of TOP).

The EPICS makefiles don't allow the full generality of autoconf/automake, but they come close.

The rough equivalent of

$ ./configure --prefix=/usr/local/epics
$ make install DESTDIR=/tmp/builddir

Would be

$ make FINAL_LOCATION=/usr/local/epics INSTALL_LOCATION=/tmp/builddir LINKER_USE_RPATH=NO

The LINKER_USE_RPATH=NO is necessary as rpath is always set using INSTALL_LOCATION.  So unlike auto* it will be necessary for users to set LD_LIBRARY_PATH.  Alternately you can adjust the runtime linker config[3], or use an ELF file editor[1] to set rpath yourself.

I use this recipe (almost) when building debian linux packages[2].  I don't bother with INSTALL_LOCATION since I already have to pick which files to include in the installable package.  It can be helpful if you're looking to quickly tar the result.

[1] http://nixos.org/patchelf.html

[2] https://github.com/epicsdeb/epics-base/blob/master/debian/rules

[3] cf. /etc/ld.so.conf


Replies:
Re: [EPICS] Support for Staged Installs ? J. Lewis Muir
References:
[EPICS] Support for Staged Installs ? Pavel Maslov
Re: [EPICS] Support for Staged Installs ? Ralph Lange
Re: [EPICS] Support for Staged Installs ? Pavel Maslov
Re: [EPICS] Support for Staged Installs ? Ralph Lange

Navigate by Date:
Prev: Re: [EPICS] Support for Staged Installs ? Ralph Lange
Next: RE: Driver/Protocol for Lin Engineering Silverpak 23CE stepper motor Peter Linardakis
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: [EPICS] Support for Staged Installs ? Ralph Lange
Next: Re: [EPICS] Support for Staged Installs ? J. Lewis Muir
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 ·