Boost logo

Boost-Build :

Subject: Re: [Boost-build] New engine version
From: Vladimir Prus (ghost_at_[hidden])
Date: 2011-12-09 06:57:40


On 09/12/11 15:47, Daniel James wrote:
> On 9 December 2011 04:30, Steven Watanabe<watanabesj_at_[hidden]> wrote:
>> AMDG
>>
>> On 12/08/2011 01:14 AM, Daniel James wrote:
>>> Hello,
>>>
>>> Since the new engine isn't compatible with older versions of boost,
>>> can the version be updated, so I can tell which one I'm using? When I
>>> run 'b2 --version' it still says "Boost.Build 2011.04-svn".
>>
>> Done.
>
> Thanks.
>
>> I think the right behavior is
>>
>> a) installed b2 uses installed Boost.Build
>> b) b2 built in the Boost tree uses Boost.Build from
>> the Boost tree.
>>
>> To make work, all we need to do is search
>> for boost-build.jam relative to the directory
>> containing the executable instead of using
>> the current working directory. Thoughts?
>
> That sounds good to me. Might be worth considering package management
> systems that have odd directory layouts. Although they can always just
> patch it if they need to.

I think this is the way it is supposed to work anyway, almost.

1. b2 checks self location via SELF_PATH builtin, and adds $SELF_PATH/../share/boost-build
to the search path for boost-build.jam

2. boost-build.jam in C++ Boost is checked before that one, so overrides the location.

So, is the proposal to make 'b2' installed in system directory use boost-build in the
system directory even if run inside Boost?

Thanks,
Volodya


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk