Boost logo

Boost-Build :

From: Rene Rivera (grafik666_at_[hidden])
Date: 2002-05-02 13:50:14


On 2002-05-02 at 01:30 PM, david.abrahams_at_[hidden] (David Abrahams) wrote:

>Further trying to track down our bugs, I am looking at project.jam. In
>v. 1.4, before I started mucking with it, I see the following in
>project.find-jamfile:
>
> # Normalize the paths of each file found.
> #
> local jamfile-found = ;
> for local jamfile in $(jamfile-glob)
> {
> local normalized = $(jamfile) ;
> if ! [ os.path.is_rooted $(jamfile) ]
> {
> local root-path =
> [ os.path.parent [ os.path.make [ modules.binding [
>CALLER_MODULE ] ] ] ] ;
> normalized =
> [ os.path.native [ os.path.root_relative_path $(jamfile)
>$(root-path) ] ] ;
> }
>
>Can somebody please explain the logic behind this? It looks completely
>flawed to me. What it seems to do is to try to find any Jamfiles
>specified with relative paths in a directory which is relative to >>>the
>directory containing the module which called find-jamfile<<< !! Usually,
>that's just $(BOOST_ROOT)/tools/build/new, since it gets called from
>load-jamfile, etc. This looks like another instance of checking in
>untested behavior, though I can't be sure.
>
>I'm planning to simply remove this bit of nastiness for the time
>being...

This is one of the things that Vladimir pointed out that I need to fix. If
removing it for now works for you great :-) Now that you pointed out we
should normalize all paths to the os.path format I'll take that into account
when fixing this.

-- grafik - Don't Assume Anything
-- rrivera_at_[hidden] - grafik_at_[hidden]
-- 102708583_at_icq - Grafik666_at_AIM - Grafik_at_[hidden]

 


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