Subject: [Boost-bugs] [Boost C++ Libraries] #1811: Help packaging by supporting DESTDIR
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-04-10 23:36:48
#1811: Help packaging by supporting DESTDIR
----------------------------+-----------------------------------------------
Reporter: iive | Type: Patches
Status: new | Milestone: Boost 1.36.0
Component: Building Boost | Version: Boost 1.35.0
Severity: Optimization | Keywords: build, make, compile, install, package
----------------------------+-----------------------------------------------
Usual practice for package builders is to invoke installation with
{{{
DESTDIR=/tmp/package make install
}}}
and then build package from the content of "/tmp/package" directory.
When package is installed "/tmp/package/usr" becomes "/usr"
Usually this is different than --prefix, because some component may need
to reference another by using the full path. For example - in pkgconfig
.pc files. If prefix is set to the temporarily location the component
would try to reference on the wrong place, instead of the place where the
needed component is installed.
I was assured that boost doesn't have any such dependences, however for
packager convenience it is relatively easy to make it follow the above
convention.
The attached patch adds "${DESTDIR}" into the generated Makefile, so when
make is involved normally , DESTDIR would be empty and files would be
generated using the PREFIX where they are going to reside.
On installation if it is not empty, it would place the files in the
directory requested by the package builder.
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1811>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:57 UTC