Boost logo

Boost-Build :

Subject: Re: [Boost-build] symlink problem
From: Kip Carr (kcarr_at_[hidden])
Date: 2014-08-28 11:35:11


I originally put that bug in. Below is my fix. I don't know if this is completely proper as I don't check path-to-out LOCATE but it seems to work for me:

Open symlink.jam in /usr/share/boost-build/ and make the following changes in the "rule ln" code section:
        
                Replace:
                
                        # Remember the path to make the link relative to where the symlink is located.
                                local path-to-source = [ path.relative-to
                                        [ path.make [ on $(<) return $(LOCATE) ] ]
                                        [ path.make [ on $(>) return $(LOCATE) ] ] ] ;

                With:
                
                        local path-to-out = [ on $(<) return $(LOCATE) ] ;
                        local path-to-in = [ on $(>) return $(LOCATE) ] ;

                        if ! $(path-to-in)
                        {
                                path-to-in = [ on $(>) return $(SEARCH) ] ;
                        }

                        local path-to-source = [ path.relative-to
                                [ path.make $(path-to-out) ]
                                [ path.make $(path-to-in) ] ] ;
                                
        This will fix the problem by allowing the $(SEARCH) var to be used if $(LOCATE)
        is empty.

Kip

-----Original Message-----
From: Boost-build [mailto:boost-build-bounces_at_[hidden]] On Behalf Of Vladimir Prus
Sent: Thursday, August 28, 2014 11:32 AM
To: Boost.Build developer's and user's list
Subject: Re: [Boost-build] symlink problem

On 08/28/2014 12:06 AM, Phillip Seaver wrote:
> Hello,
>
> I ran into this bug when trying to create symbolic links:
> https://svn.boost.org/trac/boost/ticket/10096
>
> Is there a different way I could do it or an easy fix?

Phillip,

I don't quite remember the context, do you have an easy reproduction recipe?

- Volodya
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build


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