Boost C++ Libraries: Ticket #1811: Help packaging by supporting DESTDIR https://svn.boost.org/trac10/ticket/1811 <p> Usual practice for package builders is to invoke installation with </p> <pre class="wiki">DESTDIR=/tmp/package make install </pre><p> and then build package from the content of "/tmp/package" directory. When package is installed "/tmp/package/usr" becomes "/usr" </p> <p> 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. </p> <p> 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. </p> <p> 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. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1811 Trac 1.4.3 iive Thu, 10 Apr 2008 23:39:13 GMT attachment set https://svn.boost.org/trac10/ticket/1811 https://svn.boost.org/trac10/ticket/1811 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost-1.30.0-destdir.patch</span> </li> </ul> <p> make install to DESTDIR support </p> Ticket Vladimir Prus Sun, 07 Dec 2008 08:20:07 GMT owner set https://svn.boost.org/trac10/ticket/1811#comment:1 https://svn.boost.org/trac10/ticket/1811#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Douglas Gregor</span> </li> </ul> <p> Doug, do you have any comment? </p> Ticket Vladimir Prus Tue, 10 Nov 2009 07:05:18 GMT owner, milestone changed https://svn.boost.org/trac10/ticket/1811#comment:2 https://svn.boost.org/trac10/ticket/1811#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Douglas Gregor</span> to <span class="trac-author">Vladimir Prus</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.36.0</span> → <span class="trac-field-new">To Be Determined</span> </li> </ul> Ticket anonymous Mon, 29 Oct 2012 12:27:38 GMT <link>https://svn.boost.org/trac10/ticket/1811#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1811#comment:3</guid> <description> <p> any determination emerging? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Wed, 16 Jan 2013 22:13:17 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1811#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1811#comment:4</guid> <description> <p> See <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7846" title="#7846: Bugs: a DESTDIR equivalent is necessary for package installation (closed: duplicate)">#7846</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Mon, 04 Mar 2013 14:48:55 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1811#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1811#comment:5</guid> <description> <p> <a class="ext-link" href="http://www.gnu.org/prep/standards/html_node/DESTDIR.html"><span class="icon">​</span>http://www.gnu.org/prep/standards/html_node/DESTDIR.html</a> </p> <p> btw the patch above does not apply, it was written for the old, much saner buildsystem </p> </description> <category>Ticket</category> </item> <item> <author>dank@…</author> <pubDate>Sun, 15 Sep 2013 15:52:29 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1811#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1811#comment:6</guid> <description> <p> How do debian distros work around the lack of DESTDIR support? The key seems to be to abuse --prefix like this: </p> <blockquote> <p> jam --without-python jam --prefix=$DESTDIR --without-python install </p> </blockquote> <p> So I tried </p> <blockquote> <p> ./bootstrap.sh --prefix=$PREFIX ... ./b2 --prefix=$DESTDIR$PREFIX install </p> </blockquote> <p> and it seemed to work. Haven't used this in practice yet, but it's promising. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Sun, 15 Sep 2013 15:58:09 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1811#comment:7 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1811#comment:7</guid> <description> <p> Sorry about the missing newlines... that should have been </p> <blockquote> <p> ./bootstrap.sh --prefix=$PREFIX ... </p> </blockquote> <blockquote> <p> ./b2 --prefix=$DESTDIR$PREFIX install </p> </blockquote> </description> <category>Ticket</category> </item> <item> <author>sdeflaboffiial@…</author> <pubDate>Fri, 13 Jul 2018 07:03:45 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1811#comment:8 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1811#comment:8</guid> <description> <p> boost offline installation not working </p> </description> <category>Ticket</category> </item> <item> <author>sdeflaboffiial@…</author> <pubDate>Fri, 13 Jul 2018 07:04:16 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1811#comment:9 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1811#comment:9</guid> <description> <p> Building Boost.Build engine with toolset gcc... Failed to build Boost.Build build engine Consult 'bootstrap.log' for more details </p> </description> <category>Ticket</category> </item> <item> <author>sdeflaboffiial@…</author> <pubDate>Fri, 13 Jul 2018 07:10:00 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1811#comment:10 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1811#comment:10</guid> <description> <p> ./bootstrap.sh --prefix=/usr/include </p> </description> <category>Ticket</category> </item> </channel> </rss>