Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 53853 - boost and boost-jam's files not installed in default location
Summary: boost and boost-jam's files not installed in default location
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All All
: High critical (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-13 21:28 UTC by John (EBo) David
Modified: 2004-06-14 23:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John (EBo) David 2004-06-13 21:28:11 UTC
Synopsys:
  dev-libs/boost installes shared .jam files in /usr/share/boost.
dev-util/boost-jam predefines the BOOST_BUILD_PATH to be /usr/share/boost-build.

Rationale:
  It should work "out of the box" in the most intuitive way...  
But that is only my opinion...

Workaround 1: as root, create a symbolic link:
       ln -s /usr/share/boost/v2 /usr/share/boost-build

Workaround 2: each user set the environmental variable BOOST_BUILD_PATH 
    as per documentation.

Further Issues:
  Another way to possibly solve the configuration problem is to add a
conventional configuration tool such as boost-config which would allow 
a user or administrator to manage the default locations, tool specifications, etc., without having to edit the specific configuration files.
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2004-06-14 11:03:14 UTC
fixed in cvs.  please try the -r1 ebuild
Comment 2 John (EBo) David 2004-06-14 23:30:26 UTC
In order for the previous fix to work, the definition of BOOST_BUILD_PATH
should be /usr/share/boost/v2 not /usr/share/boost.  Otherwise I get the following error:

    Unable to load Boost.Build: could not find "boost-build.jam"
    ---------------------------------------------------------------
    Attempted search
    from /old_root/home/ebo/projects/rapid_proto/new_spirit/spirit_boost_examples/libs/spirit/test
    up to the root and in these directories from BOOST_BUILD_PATH and
    BOOST_ROOT: /usr/share/boost, /usr/include.
    Please consult the documentation at 'http://www.boost.org'.


Diff follows:

diff -Naur boost-jam-3.1.9.orig/Jambase boost-jam-3.1.9/Jambase
--- boost-jam-3.1.9.orig/Jambase        2004-06-15 00:04:52.905033048 -0600
+++ boost-jam-3.1.9/Jambase     2004-06-15 00:26:37.442713176 -0600
@@ -49,7 +49,7 @@
 # required by Debian Policy.
 if ! $(BOOST_BUILD_PATH) && $(UNIX)
 {
-    BOOST_BUILD_PATH = /usr/share/boost ;
+    BOOST_BUILD_PATH = /usr/share/boost/v2 ;
 }


diff -Naur boost-jam-3.1.9.orig/jambase.c boost-jam-3.1.9/jambase.c
--- boost-jam-3.1.9.orig/jambase.c      2004-06-15 00:04:52.824045360 -0600
+++ boost-jam-3.1.9/jambase.c   2004-06-15 00:24:52.583654176 -0600
@@ -21,7 +21,7 @@
 "BOOST_BUILD_PATH.user-value = $(BOOST_BUILD_PATH) ;\n",
 "if ! $(BOOST_BUILD_PATH) && $(UNIX)\n",
 "{\n",
-"BOOST_BUILD_PATH = /usr/share/boost ;\n",
+"BOOST_BUILD_PATH = /usr/share/boost/v2 ;\n",
 "}\n",
 "rule boost-build ( dir ? )\n",
 "{\n",
Comment 3 Jeremy Huddleston (RETIRED) gentoo-dev 2004-06-14 23:37:01 UTC
fixed now, thanks.